I want highNumber to be = to the value high from above and if its not there highNumber to be =to 40, and the same thing for lowNumber. I have this so far:
Syntax looks correct. I'm assuming you are having trouble getting the flashVars in to the movie clip? I'd put a text box so I could print the value of "higher" out to the screen. Then I'd try looking at whether my reference paths were correct. Try doing a full _root.path.to.your.movie.clip. See if that helps.
neophyte wrote:Syntax looks correct. I'm assuming you are having trouble getting the flashVars in to the movie clip? I'd put a text box so I could print the value of "higher" out to the screen. Then I'd try looking at whether my reference paths were correct. Try doing a full _root.path.to.your.movie.clip. See if that helps.
Ok, I'll try that and post back, what is the full _root.path.to.your.movie.clip.. i am very new to flash...
It's been a while since I did Action Script like this:
_root represents the main level of the movie.
So I have a variable named "Weasley" in a movie clip. The movie clips instance name is "George". But George is inside a movie clip with a instance named Fred.
So to access "Weasley from the main timeline I would:
Okay so the flashvars are associated to the main timeline. If you are more than one movie clip deep you have to build a relative or absolute path to the value you need.
I am using the code below now. And this is what happens.... If I don't set any variables in FLASHVARS then it does 0-9 and then if I set high=9&low=0 it outputs numbers 0-9 but with a zero on the end.... anybody know how to fix this?
After playing around some more I've found that its doing that weird thing to every number if I put in high = 40 and low =1 then i get numbers in the hundreds... is my line:
var arraycount = 3
for(var c:Number=0; c < arraycount; c++){
array[c] = arrayval# (<--- where the number is 3 so that I can get the flashvar that is arrayval3)
}