Hi there Kirupa people. Here’s the issue:
I’m passing in a variable from my FlashVar parameters: gameToken, which will control the visibility of several objects through out my movie. The objects are in different frames and all have different labels: review_btn, introReview_btn, endGame_btn. gameToken is being randomly generated by the clients 3D environment, and then passed in the embed code. gameToken would look something like this:
[COLOR=#000000][FONT=Arial]a543239089298bf2c6ea3518929a0249[/FONT][/COLOR]
var gameToken:Object=LoaderInfo(this.root.loaderInfo).parameters.game_token;
What I need to have happen is something like this:
if(gameToken == null){//if there is no game token, do not render the review button
review_btn.visible=false;
}
I had some success using this method before, but only for a single object. Now when I try and repeat the method with the various other objects all I’m getting is a headache. At no point in my movie does gameToken ever get set to anything other than null (I’m not testing within my webspace yet).
What am I doing wrong? Any help you can lend me is much appreciated.