The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsOkay so I don't know if flash 8 actionscript is just near impossible or if i'm just rusty but i'm having the hardest time assigning functions to my buttons. All I want one of them to do is go to and play the next scene, but I get an error message every time saying "statement must appear within on handler". I'm sorry, what the hell does that mean?
is the code "Thingy.onRelease = function(){" or "on(release){" , also, where are you putting it? That's the main problem, it's saying it's not in the right place pretty much
At 8/15/08 10:24 PM, BeefyBoy12 wrote: is the code "Thingy.onRelease = function(){" or "on(release){" , also, where are you putting it? That's the main problem, it's saying it's not in the right place pretty much
what do i put instead of "thingy". whats supposed to go there?
the instance name which is made by clikin on ur buton n typing something in where it says properties inspector n the code goes inside the frames of the main timeline
I use it a little differently... I put the code in the button and say
on(release) {
DO STUFF
}
it should work if you put this in to go to different scenes
on (release) {
gotoAndPlay("2", 1);
}
the 2 is the scene number and the one is the frame number
but i have flash 6 not 8
At 8/16/08 10:29 AM, kiljoy96 wrote: it should work if you put this in to go to different scenes
on (release) {
gotoAndPlay("2", 1);
}
the 2 is the scene number and the one is the frame numberbut i have flash 6 not 8
What if I have specific names for my scene, like for instance if the fourth scene was called "chase", what would I put in the script then?
oh god, i feel ya man i had this same prob with switching scenes, AND THE ANSWER IS SO SIMPLE!! YET SO HARD IF YOU DONT ALREADY KNOW IT! SO HERE YA GO!
put this on ur button --
on(release){gotoAndPlay("BOB");}
than go to the frame of any scene that you want the button to play and single click it, then look down at your fram properties and name the fram "BOB"
and there u go! all done!
At 8/16/08 02:10 PM, MOC-Productions wrote: What if I have specific names for my scene, like for instance if the fourth scene was called "chase", what would I put in the script then?
on (press) {
_root.gotoAndPlay("chase",1)
}
You put your exacts scene name in quotation marks :)
on(release){
nextScene();
}
zomgz?!
on(release){
gotoandplay("scene","frame");
}
on (release) {
play();
}
At least that's what i think it is. apply script directly to button!!!!
The Problems of the Future, by Everyone!