Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking embeded videos via loadMovie

Status
Not open for further replies.

AudreyLucy

Technical User
Jul 19, 2002
42
US
I'm working on a CD project. Our client has filmed a lengthy "message from the president" to be included.. that is 47M (way to big). I've cut it up into 11 sections that are close to 3M in size (the maximum size for smooth play back in Flash MX), using iMovie and exported the sections separtely. My plan was to have them load as external swfs, into a _root level via loadMovie.
Here are some details on the ActionScript I've used:
The _root level consists of 8 total frames and 4 layers.

The _root level's first 5 frames, on the fist layer, are preloader frames. The sixth frame on that layer has a stop(); action on it.

In the next layer (_root level) I have this action in the 6th frame:
loadMovie("frame9.swf","frame9_mc");

The last frame of "frame9.swf " has this action on it:
_root.gotoAndPlay(7);
stop();
this is where the loadMovie("frame9.swf", "frame9_mc"); action is located. There is a stop(); action in the layer above this one.

the next swf has a similar action on:
_root.gotoAndPlay(8);
stop();
this is where the loadMovie("frame10.swf", "frame10_mc"); action is located. There is a stop(); action in the layer above this one.

The swfs load correctly, but the previous videos seem to loop before it loads the next section of video. There is no audio, in the looping section when it does this...The section that it loads up, is fine..but then looks as though it starts to loop before loading the next swf, even though I have added a stop action. Does anyone have a suggestion as to how to make this work more smoothly?
 
probably the _root.gotoandplay statement is targeting the wrong path

ie

The last frame of "frame9.swf " has this action on it:
_root.gotoAndPlay(7);
stop();
This is probably targeting frame 7 of frame9.swf and causing the loop.

Thats where I would start anyway.
 
The issue has been solved. I realized that the number of frames needed for the embedded video was lower than what I had allowed for...so, the video was looping before it came to the action that refered back to the root level...It works well now, and transitions smoothly. Thanks, Jenny
 
Yes, that is one thing about embedded video that I dislike in Flash MX. You have to have the video spread out with enough frames in order for it to play correctly. Do not even try putting it into a MC and think it will play correctly on one frame either.
 
I tend to export the video as it's own swf (via Sorenson Squeeze) and then load that into a clip in the main flash movie and it gives great results (as long as you have tons of RAM available). You can control playback by targetting the instance name of the 'holder' clip you load the swf into.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top