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!

Movie clip

Status
Not open for further replies.

Golding

Vendor
Aug 4, 2000
9
US
I'm trying to make a movie clip loop. I imprted a .swf and converted it to a clip, then I dragged it onto the stage. What's happening is that it doesn't play until the end of the movie. I want it to play from the beginning, any ideas?
 
Have you dragged it on it's own layer (for sake of clarity!)and covering all the frames of your movie, i.e. from frame 1?
mywink.gif
ldnewbie
 
Yes, it has it's own layer, and lasts 99 frames.
 
Nope.. The main movie is scene 1. I imported the swf to scene two, converted it to a movie clip, then dragged the clip from the library onto a new layer in scene 1, at frame 1. The original swf lasted 99 frames, so that's how long I made the scene 1 movie. what it happening, is that the movie plays for the 99 frames, then the clip plays afterwards. I want the clip to play from frame one. :)
 
The way I'm understanding this is that what you see playing is your scene 2. Did you get rid of it?
Can you email me the .fla?
oldnewbie@hotmail.com
mywink.gif
ldnewbie
 
Ok, I deleted scene 2. Now I just have one scene lasting 99 frames. Layer one just has a symbol on it ( a coloured square covering the whole area). Layer 2 has the clip on it (a flame) When I go to test movie now, I see the square, I see the flamne, but it's not animated.
 
No stop action in the mc, I hope? But hope you have a looping one though! Anyways you should at least see it playing once!
One other question: when you double-click the mc in the library, can you play it? Is it animated? Or just a fixed graphic?
mywink.gif
ldnewbie
 
well, it does play once, but only at the end. It doesn't seem to want to animate from the library. I just tried one of the stock movie clips in my movie, and it works... must be something to do with the one I created..
 
Well I guess so!
When you double-click the mc in the library, it does appear up there on the timeline right?
Does it play normally when hit enter?
Make sure you add another layer and name it actions
Select the last frame of this new layer(probably frame 99) and press F6 to insert a keyframe. Now double click this keyframe you've just inserted and double-click the goto action in the left actions' list box.
You should have:
gotoAndPlay(1);
Close that window. You've just instructed the movie clip to return to the beginning when it reaches the end. A loop!
Now, try this:
In scene 1, scrap that layer where you have this mc. And insert a new layer, it should be as long as your other layer, and on top of it.
Now make sure you select the first frame in that new layer and re-drag your flame mc from the library to the stage, and position it.
Test your movie!

Best I can do without seeing the .fla!
mywink.gif
ldnewbie
 
Thanks Oldnewbie, I scrapped everything and started from scratch and all was well.. shrugs..

by the way, I tried to email the fla to you, but it came back undeliverable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top