|
-
Senior Member
Transition woes
Ok, I posted this in the Kirupa forum, seeing as the turtorial was from there:
http://www.kirupa.com/developer/mx2004/transitions2.htm
but, no one has responded, and it's holding up my project. If anyone here can help, I would be very appreciative. basically, I am loading swfs into a level via loadMovieNum instead of into a container like in the tutorial. But I am having issues, here is the code I am at presently-been many variations of it today:
code:
on (release) {
if (_global.currMovie == undefined) {
_global.currMovie = "Discography2";
loadMovieNum("Discography2.swf", 3);
} else if (_global.currMovie != "Discography2") {
if (_level3._currentframe>=_global.midframe) {
_global.currMovie = "Discography2";
_level3.play();
}
}
}
I can get the first movie to do its intro, and then on another button click, movie 1 does its outro, and movie 2 does its intro, but then it just stays there...any other clicks don't make movie 2 do anything...any ideas?
Adam
-
Senior Member
Anyone have any ideas?....or is my scripting just that bad 
Adam
-
Your on(release) code puts things into a state in which nothing will happen. One release of the button gets you into a state where _global.currMovie == "Discography2", and your code doesn't do anything in that case.
Edit: P.S. I assume you mean "other clicks on the same button." If that's not the case, you need to give more detail about what you're clicking and what effect you expect to see.
Last edited by mkantor; 03-15-2004 at 12:30 AM.
-
Senior Member
Thank you very very much, mkantor. I finally gave up on what I was doing and redid four pages, and umpteen hours, of work, and reconstructed everything....it's coming along now, but basically all I've done this weekend 30+ hours, have been for naught....oh well, such is AS, I guess. Thanks for responding, though...I do appreciate your time 
**edit..No, this was one code on one of 5 buttons...each destination swf was different on each button...I basically copied the code from the tutorial, but the menu bar I had the buttons on, was also loaded into the main swf...so I had to try to figure out the paths, and even when they looked how they were supposed to, nothing was working....arg...lol....thanks for your help.
Adam
Last edited by Adam14; 03-15-2004 at 12:36 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|