how can this be happening?

  • panzhuli
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 14, 2004
  • Posts: 135
  • Loc: Cleveland
  • Status: Offline

Post November 6th, 2007, 2:35 pm

I'm working in AS2 in Flash 3.

I have one timeline. Frame one has the following code:

var age_gate = _root.age_gate;
if (age_gate!="yes"){
this.gotoAndPlay("show_video");
}else{
//this.gotoAndPlay("age_gate");
msg_txt.text = "should show age gate";
}
stop();

when I uncomment the gotoAndPlay(); it doesn't go to the "age_gate" label. It does, however, print out the msg listed in the code, so the if/else is working. Ideas. I've also tried going to another label, no luck. If I try going to the same label (show_video), it works. I have no ideas here... I've tried w/o the this. and tried with _root.

thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 6th, 2007, 2:35 pm

  • panzhuli
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 14, 2004
  • Posts: 135
  • Loc: Cleveland
  • Status: Offline

Post November 6th, 2007, 3:07 pm

oh, and another thing. it works locally (ctrl/enter) but not on the server
  • panzhuli
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 14, 2004
  • Posts: 135
  • Loc: Cleveland
  • Status: Offline

Post November 6th, 2007, 3:40 pm

ok - figured it out. it was playing too fast and wasn't registering the labels. moved everything out 10 frames and it worked.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.