Skip to main content
April 17, 2006
Answered

I need some Help Please!!

  • April 17, 2006
  • 2 replies
  • 193 views
Hi,

First of all, i will declare i am a total noob at flash, i have been using it for the past few weeks and am just getting to grips with it, but there is one thing that i have been trying to do for the past 2 days and it really is driving me up the wall. I have searched the net and this forum and nothing seems to work.

I was trying to link scenes, and i tried everything, naming frames, _root, etc.. and nothing worked, and i read that linking scenes was a bad idea, so im just gonna link to frames now on the one scene.

The problem i have now is, at the end of the scene i have a stop, this is at frame 60, and i have 4 buttons which i want to link to different scenarios, so i was gonna link each button to a specific frame number, I tried to link the button to frame 61 to start playing there, but it goes all the way back to the start of the scene and doesnt play frame 61 because there is a stop. all i want it to do is from the button relaease, play frame 61 and stop at 80, but it wont? There is a stop at frame 80 as well. any ideas?
the scripts i am using on the button is

on (release) {
gotoAndPlay(61);
}

These past 2 days have been killing me and got to get this flash thing ready very soon. Any help would be fantastic.

Thanks and look forward to some help!!

cheers
This topic has been closed for replies.
Correct answer aniebel
try by naming your instance name of your button like this:

buttonName_btn.onRelease = function(){
gotoAndPlay(61);
};

2 replies

April 17, 2006
click on the button, in the properties, name it "myButton", for the others, continue such as "myButton01", etc.

now, click on the frame in the timeline where it stopped, and the buttons are awaitng to be click, on that frame, right click and open the actions panel.

like aniebel wrote, use this

myButton.onRelease = function(){
gotoAndPlay(61);
}
aniebelCorrect answer
Inspiring
April 17, 2006
try by naming your instance name of your button like this:

buttonName_btn.onRelease = function(){
gotoAndPlay(61);
};
April 17, 2006
that didnt work? i renamed the button and replaced it. Is something supposed to go in the function ()

as i said, i am a complete noob to flash!

thanks for your help