Buttons With If / Else - Keep Playing Clips

Aug 9, 2010

I've got 4 mc clips on the main timeline, each with an embedded button. When I click on one button I want that mc clip to disappear and the other 3 to keep playing. When I click on the next one, the same must happen. The problem is I need a function to see which button was selected to that it knows which of the movies to keep playing and it must check what buttons have previously been selected so that it knows not to show those mc clips as well. if release button 1 play mc 2 ,3 and 4.......if release button 3 and button 1 has been released, play mc 2 and 4

View 9 Replies


Similar Posts:


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

Using Multiple Movie Clips For Separate Buttons And Mouse Over Buttons?

Nov 24, 2009

I am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
 
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
 
2. How can I use multiple movie clips for seperate buttons?

[URL]

View 3 Replies

Multiple Movie Clips On Stage - Buttons Not Working In Movie Clips?

Jul 15, 2009

I have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.

View 2 Replies

ActionScript 3.0 :: Two Sound Clips Playing

Oct 23, 2009

I have a 355 frame timeline with a sound-clip explaining there are two demonstrations, the first will follow automatically but if the user wants to see the second demo first then to click on the link. When the swf file runs, at frame 350 Demo1 (the first demo) starts automatically as expected. If the link is clicked, the main sound clip stops and the second demo starts but the sound clips for both demos play together.How can I ensure that only the relevant sound clip runs?[code]

View 7 Replies

Actionscript 3 :: API For Playing Music Clips?

Jul 5, 2011

I've got a project I'm working on in Flash / AS3 and I was hoping to find a way to have the program run a search through a publicly accessible API using an artist name and pull an MP3 sound clip that the user could play. I looked through Amazon's API but it didn't seem like it could accomplish this. It also seemed pretty daunting to integrate into flash.

View 1 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

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

ActionScript 3.0 :: Auto Navigation - Playing Video Clips One After Another

Nov 25, 2011

I wanna control 4 or 5 video clips by AS3, here video clips are separates on files/frame, how can play this one by one.............!

View 1 Replies

ActionScript 2.0 :: Stobe Effect And Playing Multiple Clips

Dec 4, 2003

i just started learning to work with actionscript so im not that good.i have 5 movieclips on the bottom on the site im trying to make.i want them to blink in order first clip to th eother.so when the first one is done blinking i want the other one to do so, and so on untill they are all done this is the code i got for strobe like effect, but im not sure how to use it with multiple clips so they dont all do that effect at the same time.[code]

View 4 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 :: Stobe Effect And Playing Multiple Clips?

Dec 4, 2003

i just started learning to work with actionscript so im not that goodi have 5 movieclips on the bottom on the site im trying to makei want them to blink in order first clip to th eother.so when the first one is done blinking i want the other one to do so, and so on untill they are all donethis is the code i got for strobe like effect, but im not sure how to use it with multiple clips so they dont all do that effect at the same timethe code iis

Code:
cir.step = 0;
cir.seconds = 1;

[code]......

View 4 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 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 2.0 :: Playing 2 Different Sound Clips When Dragging Object Left Or Right

Jan 26, 2011

I currently have an dragable button that is locked to only move left and right within a small bar, and want to have that button playing one sound going left, and another sound going right.

View 3 Replies

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

ActionScript 2.0 :: Move My Mouse To The Button It Resets The Movie Clips Thats Playing

Apr 18, 2011

I am having a movie clip playing on a loop on the ON frame of a button , and something else on the OVER frame, and everytime i move my mouse to the button it resets the movie clips thats playing. heres my file:
[URL]

View 1 Replies

Professional :: Movie Clips / Sound Keeps Playing After Navigating Off Frame/page?

Aug 17, 2010

Basically I have a flash website built on different frames of the timeline, the simplest way I think.Some of these frames have movie clips embedded into them using the flv playback component class.The problem I have is the following, the site works fine and videos play fine, but whenever I navigate offa part of the website to another, from a frame to another - the sound of the clips that were playing keepsplaying on the background and never stop and it keeps building up every time I navigate of.f each page.I want to remark that I believe is not only the sound that keeps playing "invisible" but the whole clip butThis is the AS code for my buttons on an example frame, would you be so kind to tell me what I should add or change

stop();cvbtn15.addEventListener(MouseEvent.CLICK,onClick25);function onClick25(event:MouseEvent){  gotoAndStop(27);}showbtn15.addEventListener(MouseEvent.CLICK,onClick26);function

[code].....

View 3 Replies

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 3.0 :: Calling FLV / F4V Clips In Main Timeline And Checking If One Has Finished Playing

Mar 30, 2011

I'm working on a campaign website and I need to catch the deadline by tomorrow! I'm stuck. I hope somebody here could help me. Here's how I want to do it:Everything will happen in the main timeline / main Stage.

1. I have F4V clips that I want to load into the FLV Playback, placed in the main timeline (stage), every time the corresponding buttons are clicked. The buttons with questions and their actions are each placed in their corresponding MC. (is it possible? And is it possible to load different flv clips in one FLV Playback?)

2. The user is asked a question, they will have to answer yes or no before they can continue. So if they answer yes, "yes.f4v" will play, no then "no.f4v" will play. Then the corresponding clip will play and the next question will have to appear ONLY after the clip is done playing. How do you check if an f4v is finished playing? Does it matter whether you use FLV or F4V? (I have this one worked, see the code below)

I have made 2 setups:

- Setup 1 is I place an FLV Playback Component in the main timeline and I am planning to load all F4Vs in it when a corresponding button is clicked.

- Setup 2 is I create swf's of all the F4Vs and load the swf in the main timeline on certain frame into a blank MC.

View 2 Replies

Movie Clips And Buttons

Mar 12, 2009

i just started tackling Flash and Actionscript 3.I know how to have a button react to a click by going to and playing (gotoAndPlay) a certain set of frames within the same scene [code].themselves are in a movie clip, and the "aboutpage" frames are in another movie clip back outside in the main timeline... How do I tell it to target that other Movieclip thats on the main timeline and contains the frames called "aboutpage"?Ive seen somethign like: currentTarget.gotoAndPlay ("aboutpage");But currenttarget i think looks for stuff within the target/Movieclip it lies in.. what is the code to do this:

View 2 Replies

IDE :: Buttons To Switch Between Clips?

Jun 26, 2009

I need to include a swf file on my client's web page. The swf file includes 4 movie clips appearing one by one. Each clip links to their designated page. I want to have small buttons to let viewers to click and switch to the clip they want. When click, the still shot (may be the last frame) of the clip appears. [URL]

View 4 Replies

AS2 :: Connect Swf With Buttons And Movie Clips

Mar 14, 2009

I have connected 2 pages to the index page with movieclips and buttons. I have used this action script on the button "fotoalbum"; [code]This takes me to the page called "bilder".My question is: how do i get from the flashpage "bilder" directly to the other page called " tekst" using the button "om meg"? As it is now i have to use the Home button to go back to the index page...and from there to the other pages.I have attached some test files as im sure my explanation is a bit akward.

View 3 Replies







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