-
i want to put in second smaller movie to appear as on my website. i want the menu on the first movie to change the frames in the 2nd movie. (i.e. when someone clicks "home" on the first movie, i want the the second movie to skip to frame #2.) how is this done? i read the help topic, but it went over my head. thanks for the help.
-
I would make the smaller movie a movie clip. You can control the movie clip from the main movie with an action script associated with a button in the main movie. I will someone else fill in the details if required.
-
i need the details for that. i take it i need to use the myMovieClip script, but i haven't gotten it to work yet. a short example would be appreciated.
thanks
-
Hilary is the action script expert but she is on vacation. I am second or third string.
First, I would name the frames in the movie clip movie. Use List of Frames popup and edit the names in the list.
If the name of the movie clip is mc1, add
mc1.gotoAndPlay("name");
action to a button in the main movie (Use Add Action > Advanced > Action Script) where name is the name of the frame you want to go to.
-
works perfectly. thanks a lot.
-
Bob, I think sent you an example of doing this a while back. Anyhow this was the script I used:
Anyhow I had Loaded my SWF by importing it using the import SWF feature of KoolMoves.
I had a Frame action with this script:
if(a<1){
a=1;
}
else if(a>59){
_parent.gotoandplay("start")
};
this.swf1.gotoandstop(a)
My Loaded SWF had 59 Frames. I didn't use KoolMoves to create the loaded SWF but Rather used Motion SWF to convert a large PPT file that had been exported to an Image sequence.
I then Exported this to a SWF and saved it.
Then I created my Main Movie. The first thing I did was imported my other SWF. Then I created Two Buttons.
The Back Button on(press){
this.swf4.a-=1
}
and the Forward Button:
on(press){
this.swf4.a+=1;
}
I had a couple of sections in this SWF divided by labels but that is irelevant for this discusion.
Any how to control a Movieclip ( FYI Imported SWFs are Movieclips with the Defualt Name SWF1...SWFn that simply load a SWF into the clip, while internal editable Movieclips have a defualt name of MC1...MCn ) all you have to do is find the name of the Movieclip (Either through the score or through the List Shapes in Frames). Then simply Name it such as MC1 following a dot . then use the apropriate action (Method or property).
EG; I have a Moviclip named MC1 that has a frame called end and I want it to go to and stop on that frame. In this case I would construct my AS like this:
MC1.GotoAndStop("end")
If I wanted to it to goto and stop on frame 2 of the Movieclip I would use this AS:
MC1.GotoAndStop(2)
You can use either the Label (In Quotes), a variable, or the number of the frame.
You also have more than just the GotoAndStop action (Method) if you hit the question mark it will display all avialable syntax broken down by actions.
I hope that helps.