Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Play One Movie After Another



This should be very simple, but I am quite clumsy with actionscript. I have two movieClips that I just want to play one right after another and loop back to the first one and I can't ge it to work right (they're 116 frames each).

Could anyone help me please?

Thanks a lot in advance



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-08-2006, 12:01 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Play Movie Clips To Fade Off THEN Play New Movie Clip
Hey guys, I've been doing a little searching and I can't find the answer to my dilemma.

I've made up some buttons that play a little movie clip animation when pressed. The scenario is like this: Push the "Illustration" button and little files pop onto the screen. Each file will be a button that opens up an image. Push the "Pictures" button and the "Illustration files" should fade off the screen so the "Pictures files" could pop in in it's place.

I can't find a way to make the "Pictures" movie WAIT for the "Illustration" movie to be done before it pop in. One goes in, and the other simultaneously goes out and I don't want that.

Is there any way?

Check Status Movie, Play Outro, Then Play Selected
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.

I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.

I know it's all done with variables but just cant figure out how to put it together.

here is what i have so far.

menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();

}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}

problem with this code is i have to click the button twice to have it work


thanks for any help in advance

Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
Ok. I've got more problems, now it involves Flash 4. I've got movie clip we'll call "the rock" well, I have a button to play "the rock" forward - that's easy - however, I want a back button to play the clip backwards, a "rewind" type effect ...

am I explaining well? if now feel free to email me doo_wrong@yahoo.com thanks for your help.

Ken
(an example of what I'm looking for can be found at http://www.ccmusic.com - there's a flash movie on the right with posters or something in it, when you RollOver and image it goes to it)

HOW TO PLAY A MOVIE CLIP IN REVERSE AND PLAY ANOTHER SIMULTANEOUSLY
I need to find out how to play a movie clip in reverse. As well how to play another movie clip, forward, at the same time... any help?

christianpalino@hotmail.com

Thanks,
Christian

I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.

-Thanks

Play Movie On Rollover, Play Another On Rollout
Hi!

I have a button on the stage. I want to play a movie clip on rollover that cannot be seen on the stage until the rollover. I then want to play another movie clip when I roll off the button.
Example:
-on Rollover a ball enters the stage from the top of the screen, falls to the middle and stops.
-when I remove my mouse from the button, the ball will fall the rest of the way down the screen and dissappear.

What do you think?

Thanks!

Play Movie On Rollover, Then Play Backwards
ive got a menu im working on where i want it to roll out when you roll over it, and eventually have a little guy that comes down and pulls it down when you roll over it. when you roll off it, it plays backwards.

i made the animation, but when i tried to add the code something went wrong

i got the first help from http://flashmx2004.com/forums/index.php?showtopic=3053

so here is the file now, can anyone help me?

On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

Thanks for the help.

On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

Thanks for the help.

Movie Won't Play Until I Press Menu-play
I hope one of you understands what I mean,

I made a movie with dynamicly created buttons and images.

The problem with this movie is that it doesn't shows anyting when I export it. The only way to make it show everything correctly is to hit the right mousebutton and press play in the menu.

Know I want to know if there's a way I can do this in flash.

My movie contains two frames and a stop statment at the end.

Play Movie When Play Button Is Click.
Hi all,

I am a newbie, and I did use the tutorial on how to create a video with FLV and it works beatiful. There is something I can not figuere out yet.

How do I make the movie not to start playing until I click the play button?

Any questions let me know and thank you in advance for your help.

mperez6109

Movie Clip Play And Then Repeat Frames 15-20 Until Entire Movie Ends
please let me know how to have a movie clip (flash 5) play through once and then repeat frames 15-20 until the movie clip is removed thank you for your answers

Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?

Scrollpane With Movie Needed To Play Frame In MAIN Movie
OK.. still pretty new.

I have a movie in a scrollpane with a button. It needs to tell the main movie/timeline to go to a frame.

How do i do that?

Trig One Movie To Play When Another Movie Enter Specific Frame?
[FLASH MX]
Very annoying problem. Why it is so I don’t know. Very short description of my problem:

What I want to do is to trig movie called “big” to start play when another movie that is playing on the stage is finished (or enter specific frame number).


1.Movie “little” enter (or cross) the frame 100
2.Movie “big” starts playing from label “port”

I don’t think that this is a big problem, but I can manage to put the right script. It said that “this script is only for button instances” or something like that.
Please help…

Regards,
STill

A Movie In A Movie Goto Play Frame Wont Work
I have a movie that when click to link it goes to a frame number and play a submovie. With in this sub movie there's another link that should take back to the original movie (scene1) and plays a certain frame i.e. on release gotoplay scene1 frame(50) but this didnt work. It just keeps reloading my submovie when clicking on my link. Help and thanks in advance.

How To Get A Button Inside Of A Movie Clip Play The MAIN Movie
how to get a button inside of a movie clip play the MAIN movie

( reposted, bad grammer in 1st one)


I got a button, inside of a movie clip.....
How do I get the button to have the MAIN movie play on click, not the MOVIE clip

How Do I Get An Animated Button Within A Movie To Play A Frame In A Seperate Movie?
i've got a menu made out of photo buttons that slide up and down. when i click on one of the buttons i want an area outside of the movie to refresh and show a full size version of the image.
how do i do this?
i have saved all the large images as a movie with the seperate images fading in and stop(); between each image.

[F8] Making Movie Play From Given Frame Number When Loaded In To Another Movie
Hi ! there,

can any body help me pls


There are number of movie sequence movie.swf say movie 1 on frame 1, movie 2 on frame 2 and so on.. and i want a movie 3 on frame 3.

There is another main.swf which has an action to load movie.swf and to stop at movie3(frame 3 ) so that movie play from that number.
At present I can load the movie but fail to start movie from frame 3.

How do I go about it???
I'm stuck...

Sabs

Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?

I have a movie clip that consists of 2 keyframes.

It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).

The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.

My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................

Continuous Play Of Several Movie Clips From One Main Movie Clip
hi,

i'm trying to play several movie clips, one after the other from one main movie clip.

i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".

i've tried using loadMovie, but it only plays the last movie clip. this is what i've got.

in the main movie clip, i've put a play button, and the actionscript i have in the button is:

on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");
this.loadMovie("m2.swf",play);
//this.unloadMovie("m2.swf");
this.loadMovie("m3.swf",play);
//this.unloadMovie("m3.swf");
this.loadMovie("m4.swf",play);
//this.unloadMovie("m4.swf");
this.loadMovie("m5.swf",play);
//this.unloadMovie("m5.swf");
this.loadMovie("m6.swf",play);
//this.unloadMovie("m6.swf");
this.loadMovie("m7.swf",play);
//this.unloadMovie("m7.swf");
this.loadMovie("m8.swf",play);
//this.unloadMovie("m8.swf");
}


is this wrong? how can i get this to work correctly. really important that i get this working for my job.

any help will be greatly appreciated.

cheers

How Do You Attach And Play A Movie Clip To A Movie Object?
I have a movie clip in my library, and i want to use action script to play the clip on my scene1 stage. I know i can simply drag the clip on the stage, but solving this will make most of my other problems dissappear.

I tried in the first frame of my scene:
---------------------------------------
mymovie = new MovieClip();
mymovie.attchMovie(clip,clip,20);
mymovie.play();
---------------------------------------
but it did not work...help! :-)

any suggestions?
zavyzavy

Loading Movie Into Empty Clip, But Movie Won't Play
I have 4 movies that i am trying to load into an empty clip in an existing movie. my problem is that when each of these movies are loaded into the clip, I can physically see it, but it doesn't function as a movie, the rest of the larger movie is moving around it, but the smaller movies won't move. I thought this was because I put a stop action at the end of the smaller movies, but when I take it out, the movie just keeps looping when loaded into the empty clip in the new movie.

does that make sense.
PLEASE HELP ME.
HOW DO I SEE MY MOVIES

Buttons That Play A Movie In Reverse And Loads A Movie
Let's say i have a movie that plays, scene and the buttons are placed on the movie and and the movie stops, okay now my problem is that, I would like to know if its possible, and how to do this:

Once my movie and buttons are loaded on the scene, i want to know if there is a way, that i can make it so that, once i click on one of my buttons, the movie goes to a certain frame on the movie so it looks like its playing backward to a blank screen, and after its to a blank screen i want it to load the appropriate movie for the button i clicked.....

I tried to this a while ago, and it did not work, since i have 12 buttons that are linked to open and play 12 different movies...

any kind of help would be greatly appreciated......

thanks

Movie Control Pause And Play Of The Loaded Swf Movie
I created an swf movie from Camtasia Studio. Now I am loading the movie into a flash movie but I would like to create a button that will control pause and play of the loaded swf movie.
Any sugestions.

Movie Control - Pause And Play Loaded Swf Movie
I created an swf movie from Camtasia Studio. Now I am loading the movie into a flash movie but I would like to create a button that will control pause and play of the loaded swf movie.
Any sugestions.

Loaded Movie To Play A MovieClip In Main Movie ?
Hi all,

I am trying to get a loaded movie to play a movieClip in my main movie. The below actionscript in my loaded movie doesn't play the movieClip in my main movie.

Here is the actionscript I have on a layer of my loaded movie...


_parent.tutor.txtboxer.follow.gotoAndPlay("one");


am i correct in thinking that _parent refers to the main movie?

the movieClip (instance) follow is a child of (instance) txboxer which is a child of (instance) tutor.

_root doesn't work either...

thanks for help

sue

Play Movie And Test Movie Show Different Things
I am still learning/mucking around with Flash Mx 6.0 and want to make some text fade in, so i typed int he text and converted it to a symbol, then created 2 keyframes for it 20 frames apart, made one keyframe have a alpha colour of 0 and the other a alpha colour of 100. then created a motion tween between the 2.

when i click play it shows the text fading in, when i export and test the movie it just shows the text doing nothing.

any help would be greatly appreciated, thks

Cutley

p.s i have attached the fla of the project

Load Movie, Play Movie Then Jump Back
Hello, i am new to Action Scripting so please be gentle, but i have something i would like to achieve using it and Flash 8.

I really need to be able to load a separate SWF file from a button contained in another SWF. When loaded and played, i need to jump back to the previous SWF file, but not to the beginning, to a certain point within it (the frame i left from).

Is this possible? If so, could you talk me through how.

Thanks everyone.

On(rollover) Play Movie, On(rollout) Exit Movie..
I just need a simple solution. Using actionscript 2.0

I have a button
actions:

on (rollOver) {
gotoAndPlay("agentbarnes5")
}

on (rollOut) {
gotoAndPlay("agentbarnes5, 15")
}


basically, I want it to load the movie "agentbarnes5", which it does. But I have a stop in place at frame 14. I want it to then play frame 15 (which fades out)... to give the effect that the user let off the thumbnail(button) and moved onto the next one which would do the same thing..

Not sure if I did the play this movie at this frame part correctly. It's been years since I used flash, any help would be appreciated.

Rollover Play Movie, Rollout Stop Movie - Help
just starting out with Flash/Action Script

I have a simple progessive flv player. I am displaying a thumbnail size video snippet's on my web page.

I want it to load and pause on the first frame so there's something showing on the page load. Then when someone mouse's over (on RollOver) start playing the clip, let clip loop forever. On mouse out (on RollOut) go back to frame 1 and pause.

This is the flv code I have to play the video, it is working in this basic mode:


Code:
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Create a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status_txt.text += "Status (NetStream)" + newline;
status_txt.text += "Level: "+infoObject.level + newline;
status_txt.text += "Code: "+infoObject.code + newline;
};
// Attach the NetStream video feed to the Video object
my_video.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(5);
// Begin playing the FLV file
netStream.play("my.flv");
Thanks for any help!

Play A Movie In Reverse Than Load A New Movie In It's Place
I have an index.fla that is opening an external nav.fla.

From the nav.fla I call back to the index.fla --> on(release) play the _root backwards.

THAT WORKS GREAT!

::inside my nav.fla::
**************************************
this.home_mc.onRollOver = function () {
home_mc.gotoAndPlay(2);
}
this.home_mc.onRelease = function():Void{
_root.onEnterFrame = playBackwards;
}
function playBackwards():Void{
this.gotoAndStop(this._currentframe - 1);
}
**************************************

HOWEVER, what I'd like to do after it unloads (plays reverse to frame 1) is load another movie in it's place (the movie corresponding to the button you just pressed)

i've tried this:

:inside my nav.fla::
**************************************
this.home_mc.onRollOver = function () {
home_mc.gotoAndPlay(2);
}
this.home_mc.onRelease = function():Void{
_root.onEnterFrame = playBackwards;
loadMovieNum("about.swf", 0);
}
function playBackwards():Void{
this.gotoAndStop(this._currentframe - 1);
}
**************************************

however it stops the reverse and just loads the new movie (about.swf).

Any Ideas? Thanks in advance!

here are the index , about and nav fla's.

Loaded Movie Inside Main Movie Will Not Play.
I have a main movie that plays up to a certain frame then stops. From there I have links when clicked on it loads movies using loadMovie() into an empty movie clip.

My problem is, when the only movie with animation loads, it doesn't play. I have a preloader in the first two frames, then when the movie loads it is to gotoAndPlay(3). The preloader runs and works, but when it jumps to frame 3 it doesn't play.

The movie runs fine when the swf file is opened in the flash player. Or when I test it in the flash program is works fine. I only have this problem when I load it into another movie.

Does anyone know what is causing it?

Having A Quicktime Movie Play Inside A Flash Movie
hey everyone,
i know flfash movies can have other flash movies play inside eachother, but is it possible to have quicktime movies and WMV movies play inside a flash movie on the fly?

example: flash.swf?fileToInclude=quicktime.mov

thanks.

Script To Tell A Movie To Play And Stop At A Particular Frame Of That Movie?
Can you add a script on a button that will tell ballmv to play where it is positioned and stop at frame 50.

eg.
I have buttonA.

I have a movie called ballmv that has 100 frames in it which is of the ball sliding from left to right over 100 frames.

I do not want to use MC tween for this. I just want buttonA when pressed to enable ballmv to play from its current frame inside and play till it reaches frame 50 and then stop there. So regardless if inside ballmv, the ball animation is at frame 25. When I press buttonA the ballmv will play from 25 and stop at 50.

I may also have other buttons, thats tells ballmv to stop at frame 80 or 100 which I would like to add this script in.

Hope this makes sense.

Trying To Get Button To Change A Movie And Play Movie
Hey all,

I am having problems trying to get it so that when a button is pressed it will play the movie from its first frame but will also get another movie to play from a certain frame...

I am just trying to create a menu that has pop-up bits and once the user goes to another pop-up bit the one that was open before would close...

Thanks for your time, hope you understand the question cause Im still just a newbie to this stuff :/

Thanks

- Lone

Dragging Movie Clip To Play 2nd Movie
I created a movie clip called drag that is being dragged by the mouse. I have a seconded movie clip called spin that is on the stage. A third movie clip, Which is blank, on the stage has my actions. My goal is to have the spin movie play when the mouse moves. On the first frame in the blank clip, I have:

Begin Tell Target ("../spin")
stop
End Tell Target
Set Variable: "locate" = GetProperty (drag, _x)+GetProperty (drag,_y)

The second frame has:

If (locate = GetProperty (drag,_x)+GetProperty (drag,_y))
Go to and Play (3)
Else
Begin Tell Target (../spin)
Play
End Tell Target
Go to and Play (1)

Frame three has an action that goes back to frame two
When i test the movie and i move the mouse i get a warning telling me that there is an infinite loop.
What could be wrong with the code?

Making A Movie Play Inside A Movie
Ok i realize this may seem like a stupid question. But i am very new to flash. I use FlashMX. And have not designed anything yet. I have read several books, but dont get something that seems very simple.

When i make a movie of a car driving i want to have the wheels spin, so i created the wheels spinning as movie. Now how do i get the original movie to play the spinning wheels from my library?

Please help. I am a very novice user at this. Thank you.

http://members.cox.net/christophersmith

Pause-n-Play Movie And Movie Clips
i've searched the archives and found bits and pieces but i stii need help...
is there any action script i can add to a pause/play button 9it's just one button) that will pause and play the main movie as well as all the movie clips?

Thanks in advance.

Stop Current Movie, Play New Movie
I have 4 movies on my stage, each with a stop action on the first and last frame. When a menu button is pressed I want the movie that is currently playing to fade out and the next movie to play.

I am using this to play the movies.

_root.movie1.gotoAndPlay(2);

In other words I need help to achieve this...

on press (button two)
play the end of the current movie on the stage whichever one it is (which fades out)
When that's done
Play the next movie (movie 2)

How Does A Flash Movie Play Outside The Movie Area?
How does a flash movie play outside the movie area???????
Look at the flash ads in Rediff
Can any body please explain how the movie adds plays out of the defined area.
Thanx.

How Does A Flash Movie Play Outside The Movie Area?
How does a flash movie play outside the movie area???????
Look at the flash ads in www.rediff.com.
Can any body please explain how the movie adds play out of the defined area.
Thanx.

How To Play A Movie Inside A Movie And Then Move?
Hi all,

I have a movie with 2 scenes: Intro and Website.

Can anybody guide me about how to play a movie (SWF) inside the first scene(it is an Intro for the website I want to play) and then at the end of the intro (movie) I want the main movie to move to the next scene (which is the Website)

Like the command "LoadMovie"..


Regards...

Can't Play Movie Clip In Main Movie
Hey guys, I'm new and understand the basics.

I have a movie clip that is a exported .swf file, I imported the .swf file into my library (which by the way doesn't show it animating in the preview window), and imported it into my main movie on its own layer. it tracks across the screen using a motion tween, but I can't get the movie to play once it stops moving, I dont know how to do it, does it need an actionscript? If is so how would you write it? Thanks a lot

How Do Set A Movie To Play After 20 Frames Of Starting Another Movie?
well, as u guessed i am a beginner. but i'm trying to start a text movie after something like 20 frames through a sound file

how can tell flash to start the text movie to do that?

also i'm creating the text in swish, so i was wondering if i can include a sound file with the text in swish..is it possible ?

thanks people , u 've been great

How Do You Play Your Movie In Reverse The Load Another Movie
HELP PLEASE!!!

can anyone tell me how they make this reverse play animation...

the one that www.liquideye-designs.com did on their previous site design....

help please!!!

Movie In Button: How To Play Movie In Reverse...
I have a MC inside a button and I put in in the "Over" state. Can someone help me how to make the MC play in reverse on mouseOut? Or is there a better or easier way of doing this? Tnx!

Play An Swf Movie Inside Another Swf Movie
i am running these little animated screenshots and i want them to be loaded into a movie and not exist in the main movie (in order to keep file size to a minimum)

how is this acheived?

can anyone help me?

Tell Movie Contained In A Movie To Play
how do i get a movie clip on my stage to play its own timeline?

thanks!

on (release) {
_level1.mask.mc.gotoAndPlay(1);
}

that code doesnt work and it seems simple but its not playing my mask.mc movie on level 1

How Can I Get A Button Within A Movie To Play Another Movie?
I'm currently trying to create a Flash based website using Loader Components and external swfs. The master swf file has a menu bar at the top with buttons that call up various external swfs in the appropriate Loader Component below. These links work fine. The problem is I want to sometimes have a button in one external swf that plays another swf at a different part of the timeline of my master swf.

Can anyone tell me what the Actionscript should be for the button?
My Master movie is called: index.swf
The movie with the button is called: home.swf (Loader Component: home_ldr, frame label: home)
The movie I want to link to is called: about_us.swf (Loader Component: about_us_ldr, frame label: about_us)

Here's what I'm currently doing:
Each loader component has its own Instance name and is set to:
autoload: true, content path: (the appropriate .swf movie), scaleContent: False
The timeline is divided into sections. Each has a 'stop' command in 'Actions'. Each has a Frame Label title. To create the button command, I select the button, then go to 'Behaviour' - 'Movie Clip' - 'Go to and stop at frame or label'. Where it says: 'Choose the movie clip ...' I leave it on 'this' and I also leave 'Relative' selected. Where it says: 'Enter the frame ...' I type in the Frame label title.

Cheers

Nick

Copyright © 2005-08 www.BigResource.com, All rights reserved