I was wondering how I might change this to a “local” function instead of “_global”. I’ve been trying, but my syntax is either screwed up or just just plain doesn’t work.
Alright… do this… Only use the “Getting Started” and “Computer Setup” buttons. Click “Getting Started” when the project opens… after that let it run. You’ll notice that the loaded movie will stop at a sub-menu.
It works alright… But…
Goto the menu and hit the “Get Started” or “Computer Setup” buttons… and alternate as you wish.
Let the movie run again… you’ll notice that all the “setIntervals” won’t catch, and the movie totally ignores the stop at the end of the timeline.
I noticed that it only does it when I hit the buttons when the loaded movie is in the middle of a tween.
I looked in the index of “The Definitive Guide” and I didn’t see anything about flash using “pause” for any syntax… so, it should work fine. I’ve never had a problem with this script until I started loading the movie into other movies…
I have no idea about “overloading” or “user written” functions…
lost,
can you explain a little more about the pause feature for the sound object? I can’t find it in the AS dictionary. Is there a built in pause function for the sound object? That would mean I don’t have to build pause buttons anymore which would be nice.
No No… I’m going to add audio later… has nothing to do with this right now.
See my post where I attached the files… that will explain what is happening. If you still don’t understand what I mean, let me know and I’ll try to communicate it in a different way.
Problem is… the pause function works fine as long as I hit the _root buttons when the loaded movie (the paused one) is either paused in a frame or stopped.
If I happen to hit the button while the loaded movie (paused movie) is in the middle of a tween, is totally cancels out the “pause function” and totally ignores my “stop();” at the end of the “loaded movie”
Understand what I’m saying? Hope that makes sense.
So… take the movies I sent you… use the “NewPartner” movie as the _root.
Open the project… press the “Getting Started” button.
Let the movie play until you see another “sub-menu” appear and stop.
After that, press the “Getting Started” and “Computer Setup” buttons a bunch of times…
You’ll notice after that the movie will no longer hold it’s “pause functions” nor will it stop when the “sub-menu” appears.