I have had a nose at the tutorial and I was hoping I could modify the buttons.
I have placed five seperate buttons onto the stage and would like each one to go to a different place.
I have removed the kirupa.com line and replaced it will code saying onreleasegotoandstop (5) on the assumption it will go to frame number 5, but I am not sure if this will simply go to frame five in the button movie or in the main scene movie.
However when I published the movie I was told that the action I wrote in could only be applied to buttons and I believe the button is a movie clip and not a button.
I would post up my Flash File but I have not worked out yet how to upload stuff to the website yet.
Thanking everyone in advance for their help.
P.S. this is my first post and I am not that proficient at Flash so if this is a very simple problem then I apologise.
Ta
I posted this before the weekend and no one responded so thought I would re post it first thing on Monday morning
There are a couple of ways to write a on release command…
//on a button - click on the button instance, then open your script box and paste
on(release){
gotoAndStop(5)
}
//or inside a movieclip. dobuel click on a movie clip and paste
this.onRelease = function(){
gotoAndStop(5);
}
//or on a script layer in the root/stage pointing to a button/movieclip instance
myBtn_btn.onRelease = function(){
gotoAndStop(5)
};
As for posting your fla, there is an upload section in the advanced reply section. Post it anyway as it all depends what frame we need to go to. As if its in a movieclip it different to if its on the main timeline.
Try those scripts as I described where they can be placed. One at a time obviously, see if you can get any to work. Otherwise I’ll look at your fla to see how its structured and what you need to do.
Have to help a local from watford…even tho im from luton…
The file has had some work over the weekend so its a little different but the file is essentially the same as is the problem.
Basically I am aware what the problem is, one of the code lines says next frame and previous frame and I would like to change it to go to a certain frame number but am not sure how to do this.