View Full Version : Another stupid newbie question.
Steak&Taters
11-05-2002, 05:40 PM
I'm sure this has been asked before, but I have been unable to find an anwer that makes sense to me, so I'm posting this. Sorry for any inconveniance.
I have a movie where the backround scrolls to make it look like an airplane is flying. How would I put this movie into another movie, so it would play continuosly, and be independant from the rest of the movie? It just moves right to left, and uses gotoandplay(1);. So, I need it to go back to frame 1, without setting the whole movie back to frame 1.
publish your swf file.
then open a new flash movie and load your back ground swf into your new movie.
Steak&Taters
11-05-2002, 07:47 PM
I'm a noob :) How do I do that? Also, If I didn't make it clear, I only want it as the background for 1 scene, not the whole movie.
simontheak
11-06-2002, 08:26 AM
Originally posted by Steak&Taters
How would I put this movie into another movie, so it would play continuosly, and be independant from the rest of the movie?
I'm not 100% sure I know what you mean by this. There are a couple of ways of keeping the movie clip 'independant.' Perhaps the simplest is just to put your movie clip on a different layer to everything else.
Or along a smilar theme, you could drop that movie clip into another clip that might contain something like the image of your plane. If you gave these two clips instance names then you'd be able to access each one individually
Is this the sort of stuff you meant?
Steak&Taters
11-06-2002, 09:48 AM
I can't just put it on a seperate layer, because it uses gotoandplay to keep going back to frame 1 to make it look like its moving. I want only the background to go back to frame 1.
d.arkins
11-06-2002, 10:35 AM
I am a big newb too but I think I understand what you want.
I might not have followed correctly but here goes...
What you want to do is simple: you want the background to move behind the plane for a while and then stop when you are ready to go to a new scene. You want the sky to loop while everything else progresses in a linear fashion. Your dilemma is that everything is looping along with the sky.
You may know the following but here goes:
Make that background a movie clip. That means dragging the sky over to your library and turning it into a movie clip. Create the fifty frames or whatever that it takes for the sky to scrolll across. Now you have a movie clip which you can drop into a layer of your choice. The clip will automatically loop in the backgound. You don't need to use gotoandplay.
So if you want the sky to be looping for 200 frames just create a layer- drop the clip into frame one and then select frame 200 and choose insert> frame. Then create the other layers and as soon as the timeline hits 200 it the sky will stop but the rest will continue. (this is just one approach- it all depends on how you want your movie to run)
I have a feeling that you may not be able to follow all i've said_ I think you need to start at the beginning and learn what a movie clip is..
I'm sorry if i've gotton this wrong but this my first attempt to help someone with a technical question.
Good luck.
Steak&Taters
11-06-2002, 10:22 PM
Thank you, I got that working. I have another question now,I hope it gets seen in this thread. I'm trying to make it delay 5 seconds then go to scene instructions.
On a movie clip I have the following actionscript:
onClipEvent (enterFrame) {
if (_root.delay) {
if (_root.waitHowLong<=(getTimer()/1000)-_root.startTime) {
// time is up
_root.delay = false;
trace ("yay!");
gotoandplay("instructions",1);
} else {
// keep waiting...
}
}
}
On another layer I have:
_root.waitHowLong = 5;
_root.delay = true;
_root.startTime = (getTimer()/1000);
It waits 5 seconds and traces yay! just fine, but gotoandplay doesn't work.
try:
_root.gotoAndPlay("instructions",1);
Steak&Taters
11-07-2002, 07:12 PM
Nope, didn't work tg. :confused:
Ricod
11-08-2002, 03:40 PM
if "instructions" is a scene, and you are adressing it from anywhere except the main timeline, it won't work. Label the first frame, and target the frame by its label.
Steak&Taters
11-08-2002, 07:17 PM
Thank you so much Ricod.:D
Ricod
11-10-2002, 04:57 PM
np ! tg did all the work anyway :D !
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.