View Full Version : NEED HELP
dommega
08-08-2001, 11:05 AM
I have multiple submenus that have three frames. The 1st is blank. The second has a script that moves it forward. The 3rd does the same thing backwards and when it reaches a point it goes to frame1. When I test the movie it works fine.
I call the sub from my main menu. The first button is
// Whatever menu is in that clip.
on (release) {
_level0.subclip.gotoAndPlay (3);
}
on (release) {
_level0.subclip.loadMovie ("graphsub.swf");
}
It loads the movie, but does not have the movie first go to frame 3. If I tell it to go to (1), it goes. What am I doing wrong?
red penguin
08-08-2001, 02:25 PM
What (I think) is happening, and what you want to do from the code, is that you are telling the swf to load into subclip...is that right?...And BEFORE that you tell subclip to go to 3...So the subclip should be at frame three and the swf loads into it...isn't that what you want to do? Or do you want to load the movie into subclip and then have it jump to frame three??
If this is the case, you aren't targeting it properly but even more importantly, you can't tell a movie to do something UNTIL it's fully loaded...
That said...you gotta get the total bytes loaded, compare it to total bytes and then and only then can you tell the movie to do whatever...
dommega
08-08-2001, 02:39 PM
Actually I already have a submenu that has been preloaded into that clip. When I release the button I want it to go to Frame 3 (F3 tells it to go to F1; f3 has an animation;F1 is empty so that I can park the clip). Then I tell the next movie to load into that location. But for some reason I cannot tell the submenu to go into that frame. Doesn't a loaded movie take over a clip's content?
I have tried putting a function, amongst others, on the menu's timeline, where the button calls the function to go f3, but no luck.
Why? Please help!
Dommega
red penguin
08-08-2001, 02:48 PM
yes, loaded movie takes over content...you are right...ok, try '_root.' instead of '_level0'...
dommega
08-08-2001, 05:10 PM
thanks for the suggestion, but it is still not working. I thought that maybe you could not address the goto from a button, so I tried it from the main timeline, but that didn't work either. When a loaded movie with sequential animation or activated by a user to go to the next frame what do people do. I am putting it all in the same button. Any more suggestions I would be thankful for.
dommega
dommega
08-09-2001, 09:40 PM
Have a lot of posts here.
Figuered out problem halfway: did not know that _parent existed. A good tutorial is http://www.were-here.com/forum/tutorials/clipevents/index.html
Another quick question: I have many buttons that control various movies and events. Each command has a release. All the movies work correctly, but when I bring one button to do various commands it fails. Is there a way to bypass this?
Thanks to anybody
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.