Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with button actions 1

Status
Not open for further replies.

JCKotze

Technical User
Apr 5, 2001
5
ZA
Hi all,

If anyone can help me with this I'd really appreciate it. I have a movie with 3 scenes. I have a button in scene one with a GotoAndPlay Scene 2 Frame 1 action. Yesterday it worked fine, but now (after an hour's work) the button simply restarts scene 1 when pressed.

I'm getting the same thing with 2 buttons in Scene 2 which are supposed to play frame 1 of scene 3 - they all restart scene 2. I've checked all the button's actions, they're all correct. Does anybody have an idea of what might cause this?

cheers
JC


 
hi JC

This has reared its ugly head a few times, label the frames you want to target and try the following on your button:

on (release) {
tellTarget ("_root") {
gotoAndStop ("framelabel");
}
}

dave
davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Hi dave

Thanks for your quick response (deadlines!) - I tried the script - it had no effect, unfortunately. Would it help to reconstruct all the buttons, start from scratch with them, or is the problem more deeply embedded? If you have any more ideas I'd be very grateful.

BTW, what does "_root" do?

Is this a bug within Flash?

Thanks
JC
 
ahah..hm

what version of Flash are you using (excuse the long delay in resonding, had to get some sleep at some point). Judging by your response it ain't version 5. Would I be right? If I am, change "_root" to "level0". davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
if your still having problems. post a link to the fla, or e-mail it to me at the address below.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Hi again

I am using Flash 5, I'm just really new to Flash in general. I reconstructed the buttons and I find it woks fine as long as I publish or export the movie, but doesn't when I test the movie or scene

Thanks for the tips

Cheers
JC
 
no probs davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top