The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 ViewsHokay, so I've got this movie clip that, when you roll over it, will go to this "_over" frame and will make this other movie clip, "words", go to this "_about" frame.
stop();
this.staff_btn.onRollOver = function () {
staff_btn.goto("_over");
words.goto("_about");
}
Only the first part works. I'm trying to figure out the second. The path targeting seems right; I got the movie clip to play when I replaced the second "goto" with a "play". Any ideas on what's going wrong, or how to help?
Add this above your code:
function goto(where):Void {
gotoAndPlay(where);
} Sup, bitches :)
By the "where"s do you mean I need to put my own location or something?
At 9/15/08 12:29 AM, liaaaam wrote: Add this above your code:
function goto(where):Void {
gotoAndPlay(where);
}
This looks to me like AS2, and it looks, from his code, he's working with AS3, which I believe has made the gotoAndPlay function defunct.
Song of the Firefly is on Steam Greenlight and Kickstarter. Give them a look and support the project!
------------------------------
Oops I fucked up D: You'd need to add that function as a prototype of the MovieClip class, lol. Oh well, it's easier to just explain: Just change your goto's to gotoAndPlay :P
@hoeloe, he isn't using AS3 because he is using onRollOver.. plus the way he's using it. GotoAndPlay is still in AS3 I'm sure :P
Sup, bitches :)
Huh. I did think to mention that, but I'm glad I didn't. I think I'm seeing how different 2.0 is from 3.0 now.
They really are, aren't they? Thanks for the help. I'll see if it works soon
Hmmm. gotoAndPlay isn't quite working out. Well, what's the AS 3.0 solution to this, anyway? I'll be getting CS3 soon enough to implement it.
AS3 still uses gotoAndPlay but everything else you did is different i.e:
instead of writing:
<someMovieClip>.onRollOver = function(){...}
you'll have to write:
<someMovieClip>.addEventListener(MouseEv ent.ROLL_OVER, <someFunction>)
function <someFunction>(e : MouseEvent) : void {
...
}