ActionScript 2.0 :: Initiate An Action When Movie Clips Finish Playing?

Feb 26, 2007

I have a main movie called home.fla. In this movie I only have one frame and I have place 5 different movie clips (not SWF) on this frame at different positions but on the same layer. These five movie clips are named mc_main1, c_main2.Each of these movie clips contains 5 frames, with a button on each frame. Each of these buttons also has a movie clip inside them (mc_sub1 mc_sub5). You can only go from frame 1 to frame 2 of each clip (main1, main2 etc.) my clicking on the button on frame1.The user can go to any of the main movie clips in whichever sequence they want. For example, they can choose to go to clip main3 and click on it twice (this will take the user till frame 3 of main3 and play the movie clip that is inside frame3) and then they can decide to click on main1 once and then main4 three times until they have visited all the parts of (all the 25 mc_sub) all the movie clips (main1 main5).

Once the user has visited all the 25 mc_sub i.e. once they have finished going thru all the 5 main movie clips completely, I want to display an animation (mc_animation) on the frame1 or any other frame of the home.fla movie.Is there away to determine if the user has finished watching all the 25 mc_sub i.e. if the user has gone thru each and every frame of each of the mc_main movieclips.I think the problem is that since the user can select any of the mc_main clips in any sequence, I am finding it difficult to determine when they have finished going through everything. If it was all in a sequence then I know I could have calculated if the current frame is equal to total frames and then I would have displayed the animation if the above was true; but that is not the case here.

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Make Movie Clips Return To Scene 1 After They Finish Playing?

May 26, 2010

I have 6 scenes, the first scene has 5 pictures that i converted to buttons. each button goes to a different scene to play the appropriate movie clip. right now it shows up with scene 1, then i click on the button and it goes to the appropriate movie clip but after it finishes playing it just goes to the next clip on the next scene, then after it is finished it goes to the next clip on the next scene and so on. i would like to know is there some way i can make the movie clips return to scene 1 after they finish playing?

View 1 Replies

ActionScript 2.0 :: Action On Frame When External FLV Movie Finish Go To Next Frame

Sep 27, 2011

I'm new to actions script. I creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File)This is what I need, when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.if is any help I upload a sample FLA with some FLV for reference.

View 9 Replies

ActionScript 3.0 :: Action When On Frame External FLV Movie Finish Go To Next Frame

Sep 27, 2011

I creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File) what I need? = when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.I upload a sample FLA with some FLV for reference.

View 4 Replies

ActionScript 2.0 :: Initiate Events With Jps And Loaded Clips?

Aug 4, 2007

Can you not initiate events with jps and loaded clips?

I am trying just to do a basic roll over function and its not working

Code:
function loadItem(itemID) {
newsTitle = _root.newsxml.firstChild.childNodes[itemID].childNodes[0].firstChild.nodeValue;

[Code]....

View 7 Replies

ActionScript 2.0 :: Movie Clip Finish Playing When A Button Is Clicked And Then Go To The Frame Label Associated With The Button

Jun 2, 2011

Anyway what I need to do is have a movie clip finish playing when a button is clicked and then go to the frame label associated with the button. I hope I'm explaining myself ok. So if I had say 4 buttons Home Gallery About Contact If Contact is clicked then I want the Home page to play (Which is a fade out) and then go to Contact Page (which will fade in). Then If Gallery is clicked then I want Contact to fade out and then go to Gallery page and fade in.

View 6 Replies

ActionScript 2.0 :: Action Script To Import Audio Files Into Flash Movie While Movie Is Playing

Jun 10, 2002

Is it possible for action script to import audio files into the flash movie while the movie is playing. (Instead of manually importing a file from within the flash application) Or some way to load an audio file located at a remote url, that is not preloaded, and play it.I've searched through the action script reference guide, but have found nothing to do the job.

View 3 Replies

ActionScript 3.0 :: Replay A Banner On Finish Action?

Aug 19, 2010

I have one banner in flash, and i want make this replay on finish action. I try whit loop in html, i try gotoAndPlay(2) but don't worrk. This is code on actions script:

[Code]....

View 3 Replies

ActionScript 2.0 :: Changing Properties Of Multiple Movie Clips With 1 Action?

Jan 14, 2010

you'll notice on their main page, when you roll over section "living" all movie clips below which are "living" projects are highlighted, while others are faded out.I have a vague notion that this is done by creating a series of arrays, one for living, one for learning, one for working, etc etc etc... and then changing whole sale all MC's contained in those arrays upon roll over.First of all, am i correct in this assumption? If so, i really need some pointers to get started. Say i want to define these arrays, and on the press of a button, one directs its movie clips to change alpha to 50, and the other to 100. All of these movie clips by the way are visible on the stage.

Code:
var High = new Array();
High[0]=mc_pAICM;

[code]......

View 9 Replies

ActionScript 3.0 :: Two Movie Clips Each Is Linked With Action Script File?

Jan 22, 2010

I got a problem, there I have two movie clips each is linked with action script file. The first movie clip "level screen" has a loop (code is not shown there) in it's code which addChild a lot of same icons (but each has different number) and add them to array levelArray. Then when I click a icon, for example one with nmber 31, it addChild the other movie clip "main screen" and send it a variable "levelNumber" with value 31, so mainScreen could then addChild a level 31. Below is the code for levelScreen checking what icon is being clicked and taking right actions. However first I will write how i imagined this to work step-by-step

1. The timer activates the loop over and over again, so when it comes to end, it starts again.

2. The loop loops through array called levelArray, in which all icons are stored.

3. Inside the loop it first defines a variable checkIcon which is the icon at which the loop is.

4. Now there the things get complicated, I want to add a MouseEvent listener to icon, if it would be triggered the function "onLevelButtonClick" should be executed, and the I want to remove the listener again, so I wont have 1000 listeners on same icon after some time.

5. And the function dispatch event which add main screen and send it a variable levelNumber, which should be number of icon clicked.

[code]...

View 7 Replies

ActionScript 3.0 :: Flash - Play Movie Clip With The Button Click Without Playing All The Movie Clips On The Main Timeline

Apr 26, 2009

I'm trying to make a flash website that has clickable buttons that will play different movie clips. But I dont know how to make it to just play the movie clip with the button you click without playing all the movie clips on the main timeline.

View 1 Replies

IDE :: Go To A Frame When FLV Has Finish Playing?

Mar 2, 2009

Ive got a standard flash file with the option to play one of three FLVs and when each flv is clicked it makes the others stop.What I need to do is set an action so that when an flv reaches the end of its duration it goes to a specific frame in the timeline?

ps. here is my code

Code:
stop();
import flash.events.MouseEvent;
import flash.media.SoundMixer;

[code]....

View 1 Replies

Flash :: Action Script 3 - Multiple Movie Button Clips - Change The Instance Names?

May 24, 2011

So I have a code, shown below:

[Code]...

and I want to add multiple buttons, not just this one. I figured out by trial and error that I couldn't just consecutively list the instances, I also found I couldn't just replicate the code and change the instance names. I just need to know how to go about having multiple buttons/clips.

View 2 Replies

ActionScript 3.0 :: Go To A Frame When FLV Has Finish Playing?

Mar 2, 2009

Ive got a standard flash file with the option to play one of three FLVs and when each flv is clicked it makes the others stop.

What I need to do is set an action so that when an flv reaches the end of its duration it goes to a specific frame in the timeline?

ps. here is my code

Code:
stop();
import flash.events.MouseEvent;
import flash.media.SoundMixer;

[Code]....

View 5 Replies

ActionScript 3.0 :: Stopping And Playing Some Movie Clips?

Mar 17, 2011

I have a problem with some AS3 code and i don't understand why.. my code looks like this:stop();

[Code]....

But there shouldn't be a problem with this, cause the movieclips are the same as the others and has an instance name of gt5 and gt6 just like the other movie clips, and the code is obviously the same?

View 11 Replies

Professional :: Movie Clips Playing On The Timeline?

Feb 26, 2012

I have a movie clip on my timeline and it has maybe 60 frames in it. There's enough space for it to play and loop, and when I press ctrl enter to preview it, it plays as expected. However, as I scrub through my animation, the only things that play are the motion tweens I made. The movie clip just stays stuck on the first frame. I was curious so I exported it as is right now and it goes through the frames correctly there too. However, this is fustrating because I want to see the movie clip cycle through it's frames when I scrub through my timeline!

View 2 Replies

Actionscript 3.0 :: Movie Clips Not Playing On MOUSE_DOWN?

Jan 12, 2010

Basically when I click the Photo and Graphic sections, none of my MOUSE_DOWN states are working on the MovieClips within... the only one that works is Motion. And for the life of me, I can't seem to spot what's wrong. I've looked over the code a thousand times and seem to hit the same loss of words all over again.

*EDIT* Oh and apparently everything loads fine after you initially click "MOTION" but if you don't click Motion and go Straight to one of the other two sections, it's like a certain movie clip hasn't been initiated or something. Meaning... The buttons within the sections will all work if you Click the Motion Section First. (But only once you've clicked on the Motion Section.)

View 1 Replies

ActionScript 3.0 :: Remove Child When Finish Playing?

Nov 2, 2011

I have a movieclip with timeline which was suppose to play when stage.addchild() is triggered, the instance will be from the library and when the movieclip finished playing its time line, the stage.removechild() will be trigger to remove the movieclip....What script should i add in order to detact when the instance of the addchild finish playing its timeline?

View 4 Replies

ActionScript 3.0 :: Finish Playing Movieclip Before Going To Particular Scene?

Jun 27, 2010

Basically I'm doing a flash website for my 3D animations. Once my intro animation ends my menu comes up which is within a main movieclip called menustage_mc and within that movieclip is a bunch of movieclips acting as buttons to navigate through the site and their animation.When you press on a button it will move to a particular scene. I'm using multiple scenes so i don't clutter the main timeline for myself. I've read a couple of posts saying that i shouldn't use multiple scenes but there is no explanation as to why. I'm assuming i should add and remove movieclips but i'm very new to actionscript and in particular as3 but that's a different question somewhere down the line.

My problem is that when i click on a button for example sketches, i want to finish playing the menustage_mc animation and then go to the sketches scene. However i'm trying different variations and am not getting any success. There are instances where the animation plays but then doesn't go to the next scene. Another instance is that it goes straight to the selected scene but doesn't finish playing the menustage_mc.So all I really want to do is finish playing the menustage_mc animation before it goes to the correct scene? I have seen things where I can go the menustage_mc and put nextScene(); on the final frame but it's not what i am really aiming to do.

View 0 Replies

Flash8 :: Playing Movie Clips On Different Frames From A Button?

Apr 9, 2010

I have a button which when pressed I need it to play a frame on the main timeline which contains a movie clip. I also want the same button to play another frame with another movie clip after the previous frame has finished playing. I have attached a sample file of what I am looking to d

View 18 Replies

Playing Movie Clips Inside Main Timeline?

Oct 16, 2010

I've created six movie clips of cursive text effect using masking for the animation. Each clip is approximately 160 frames long. I need to play these sequentially, one after the other, when the page loads. structure multiple clips to play after each other?

View 3 Replies

IDE :: Loading And Playing Internal Movie Clips Randomly?

Sep 18, 2003

how to get movie clips to play randomly? Here's what I want to do:

I have four movie clips already created and I want to make it so that when someone visits the page and accesses it for the first time, one of the four is randomly selected and plays (I also want to be able to tell it what frame of the movie clip to go to)!

View 1 Replies

ActionScript 3.0 :: Random.Math Playing Different Movie Clips?

Oct 23, 2010

I just recently tried getting the hand of understanding AS3 from AS3. I am finding it a bit of a struggle to try and understand using random.math.I am trying to use random.math to make each movieclip play randomly and then stop. I tried looking for online tutorials but I only seem to get information of creating a random math number which I don't want.I am not sure I am meant to use a timer or to use random.math function. The idea is to have say 4 movieclips start an animation randomly so when the user looks at the screen, a different movieclip will play.For my button I have put this code for them (photo_mc is my button):

Code:
import fl.transitions.*;
import fl.transitions.easing.*;

[code].....

View 8 Replies

ActionScript 2.0 :: Reverse Playing Nested Movie Clips?

Jan 29, 2011

I have 3 movie clips mainclip(_root),one_mc(inside _root),two_mc(inside one_mc). and i want to play the animation in reverse direction so that it has to play two_mc in reverse direction first then one_mc ,and _root all in reverse.

View 2 Replies

ActionScript 2.0 :: List All The Current Movie Clips Playing?

Oct 9, 2004

On my main timeline, I have a "Background" graphic object with some control buttons, on the main timeline there may (or may not) be a few other movie clips playing at any given point.

I want the pause button (in the Background object) to figure out what all movie clips are playing from the _root down, and stop them all. I am currently doing this by putting in the code: mc1.stop(); mc2.stop(); mc3.stop(); etc...

View 7 Replies

ActionScript 3.0 :: Playing Random Movie Clips On Main Timeline?

Feb 18, 2009

boards and even newer to ActionScripting and FlashWhat I would like to do is play random movie clips on my main timeline. I've tried using the below code, but it does not work:

Code:
var movieList:Array = new Array(mc1, mc2);
var i:int = Math.round(Math.random() * movieList.length);

[code]....

View 1 Replies

Professional :: Playing Multiple Movie Clips One After Other On Main Timeline?

Apr 23, 2010

Excuse the probably simple question but I'm just starting off with Flash.I have imported a few video trailers directly into flash and saved them as movie clips. I want to be able to insert these movie clips onto the main timeline and play them one after the other, repeating once they have all played. On the main timeline I have set a layer for each clip and a keyframe where the clip is inserted for each layer. When I go to play the flash file, it is showing the first frame from each movie file and then moving to the first frame of the next movie file. What do I need to do to make flash play the entire movie file in that specific frame before moving to the next frame where the next movie file is and playing all that movie?

View 7 Replies

ActionScript 3.0 :: Playing Multiple Movie Clips On A Timeline Using Buttons?

Aug 23, 2011

I'm trying to play different animations using buttons using the below code but I keep getting an error. Totally new to flash but I'm sure it's something really simple

function goHome(event:MouseEvent):void {   home_animation.play(); }  home_btn.addEventListener(MouseEvent.CLICK, goHome);
function goIntro(event:MouseEvent):void { intro_animation.play(); } 

[code]......

View 1 Replies

ActionScript 3.0 :: Playing Random Movie Clips On Main Timeline

Feb 18, 2009

What I would like to do is play random movie clips on my main timeline. I've tried using the below code, but it does not work:

[Code]...

I've got them on a layer named "BG" and each movie clip is in a key frame. The ActionScript is on a seperate layer named "AS".

View 1 Replies

ActionScript 3.0 :: MP3 Player - Trigger Event When Track Finish Playing

Feb 2, 2010

I'm working on an mp3 player. I want to trigger an event when the track finishes playing. I've created a function that will just trace a statement so that I know the event listener is working, but I can't seem to get it to trigger. Here is the playSong function in which the code is used:

Code:
function playSong(mySong:Number):void {
var myURL = my_songs[mySong].@URL;
playingTra = mySong;
current_song = mySong;
my_sound = new Sound();
[Code] .....

I tried to add in the following lines, but that instead institutes some playback issues:
Code:
if (my_channel){
my_channel.stop();
my_channel.removeEventListener(Event.SOUND_COMPLETE, stuff);
}

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved