Adobe Dreamweaver Forums



Last 10 THreads :         Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 42 - Views : 259 )           »          swapping images using AS3 only (Last Post : guestonian - Replies : 0 - Views : 1 )           »          passing data from Coldfusion to Flash (Last Post : macanimation - Replies : 1 - Views : 3 )           »          Publishing 16000 frames (Last Post : NedWebs - Replies : 5 - Views : 6 )           »          Flash CS4 3D Spray Brush Tool (Last Post : poodyglitz - Replies : 0 - Views : 1 )           »          Changing platforms (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          Purple border around my link!! (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          DW CS3 won't work on Vista Business (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          misalign graphic (Last Post : Walt F. Schaefer - Replies : 1 - Views : 2 )           »          While executing error (Last Post : TedMoore - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flash
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-25-2008, 06:11 PM
dazzlah
 
Posts: n/a
Diggs:
Default playing movie clips in order

Sorry if this sounds obvious but I've been racking my brain trying to figure
this out for a while! I'm creating a flash presentation in CS3. I have created
each section of the presentation as seperate movie clip symbols - How do I get
my seperate movie clip symbols to play in the correct order? I've tried adding
the movie clips to different layers of the main timeline and also on different
frames on 1 layer but this doesn't seem to work. Any help would be greatly
appreciated. (I need the movie clip symbols to finish playing there sequence
before it moves on to the next movie clip symbol)



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-25-2008, 06:38 PM
DLMAES
 
Posts: n/a
Diggs:
Default Re: playing movie clips in order

I would make an empty movie clip and load your first movie into that clip. At
the end of the timeline for that movie clip, add a key frame with some
actionscript that loads the next movie clip into the same movie clip and repeat
the same for the other clips.

Actionscript to create empty mc and attach movie from library with name
chapter1:

_root.createEmptyMovieClip("holderMc", 999);
holderMc.attachMovie("chapter1", ch1, 1001);

Actionscript to put in movie clip presentation at end of timeline:

_root.holderMc.attachMovie("chapter2", ch2, 1001);

Of course your MC instance names may vary, but you can you something similar
to this code...

There are many ways you can go about doing this, but I'm asuming that you have
you movie clips loading from your library, not as external SWFs, correct? Hope
this helps...

Reply With Quote
  #3 (permalink)  
Old 08-27-2008, 08:21 PM
dazzlah
 
Posts: n/a
Diggs:
Default Re: playing movie clips in order

Thanks DLMAES, i'll give that a go, I will have to load external swf files into the same presentation aswell, whats the best way to do that?

Thanks

D.
Reply With Quote


  #4 (permalink)  
Old 09-01-2008, 10:13 PM
DLMAES
 
Posts: n/a
Diggs:
Default Re: playing movie clips in order

You're welcome, your actionscript to load and external swf should look something like this:

holderMc.loadMovie("myfile.swf", 1001);
Reply With Quote
  #5 (permalink)  
Old 09-02-2008, 03:58 AM
evrardBlom
 
Posts: n/a
Diggs:
Default Re: playing movie clips in order

If it is linear playing, you can also create scenes and put each clip on its
scene's main timeline. By default flash plays scenes following numbers scene1,
then scene2, then....scene X.

Your first solution would work if on main timeline you extend frames for the
duration of each clip. Say clip1's lenght is 210 frame, clip2 is 300 frames,
and clipX is X frames. On root create three blank keyframes: one at frame1, the
second on frame 211, the third at frame 512 (label the keyframes accordingly)
then simply put each clip on the keyframe were it should appear.

Scenes are better than having one long main timeline though.

Reply With Quote
  #6 (permalink)  
Old 09-04-2008, 05:01 PM
DLMAES
 
Posts: n/a
Diggs:
Default Re: playing movie clips in order

That is true evrardBlom... thanks for your insight!
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk