Nope... won't work.
Nothing happens. Tried to use _level0. both on the variable myRoom
(_level0.myRoom) and the incoming FlashVars (_level0.roomNr) but no reaction.
The movieclip instance won?t change color... only when I hardcode the variable
to be: myRoom = G207
So, I know that the script itself works. The movieclip changes color... BUT
why won't it read in my FlashVars?
Hi,
It is possible that this is a scope issue (as AnandMX indicates).
My approach to debugging this problem would be as follows:
1) Insert trace() statements in key areas to quickly see the values of
variables
Example:
trace("myRoom = " + myroom);
trace("this.myRoom = " + this.myRoom);
2) Experiment with scope:
a) myRoom
b) _level0.myRoom
c) this.myRoom (note: you probably know, but I'd suggest this
syntax**)
d) _parent.myRoom
e) _root.myRoom (note: when using _root you need to use lockRoot =
true)
3) Try setting a local variable to the loadVars value and use trace()
Example:
var XX:String;
XX = myRoom;
trace("XX = " + XX + ", myRoom = " + myRoom);
Hope this gives you some ideas,
--JK
> Nope... won't work.
>
[quoted text clipped - 5 lines]
> So, I know that the script itself works. The movieclip changes color... BUT
> why won't it read in my FlashVars?