ActionScript 2.0 :: Goes To Play The Clip, It Keeps Playing The Clip?

Jun 13, 2010

Demographics - Action Script 2.0; Flash CS2 I have 4 MC clips. Each one labeled MC_Ball_1, MC_Ball_2, MC_Ball_3, MC_Ball_4. I want to randomly pick one to play. Have it play in its entirety and then wait 60 seconds and randomly pick another one, have it play in its entirety, and then wait 60 seconds.....keep going in an endless pattern. I can write code in frame 1 of root to randomly generate 1, 2, 3, or 4. Code below.

[code]...

Problem is when it goes to play the clip, it keeps playing the clip. I put stop(); at the beginning of each code, but it only plays the random number first chosen continuously. Instead of stop(); what can I write so it plays in its entirety, then goes back to frame 1 and choses the next.

View 6 Replies


Similar Posts:


ActionScript 1/2 :: Pause Movie After Loading, Then Play After Playing Another Clip

Oct 20, 2010

This is the set up so far. Loader1, is playing till home.swf is loaded. I am using the loadClip function for it. onLoadProgress plays the first bit of Loader1.
 
What I want to do is within onLoadInit() = function(_mc:MovieClip) {
  
root.ldr1.addEventListener("played", function() {_mc.gotoAndPlay(1);});            // add listener to Loader 1
_mc.stop();   

[Code]....
 
The problem is that it is not playing the function. Also _mc.stop(); is not stopping the loaded file. It keeps playing, though _mc._alpha is working fine.
 
How can I make sure the event is being dispatched?? Home.swf ( the _mc being loaded), is within a separate movieclip, over the loader.

View 1 Replies

ActionScript 1/2 :: Play Main Timeline After A Movie Clip Is Finished Playing?

Jul 10, 2009

The movie clip is an actionscript movie which calls images from an external XML file and shows them as a slideshow. What i need to do is after the last image plays, stop the movie and move the main timeline to the next scene of the main movie. Everything logical in my brain is not working, and it may be that I have been staring at this project for too long but for the life of me i can't make this work.

View 11 Replies

ActionScript 3.0 :: Preloader Resuming - Load The Next Clip While The Current Clip Is Playing

Feb 13, 2009

I created a swf which loads multiple external swfs to 100% before playing. Which works fine. If I stop a clip while it's loading, I call loader.close() and I'm able to resume from where I left off at a later time. The problem I'm having is when I added the functionality to load the next clip while the current clip is playing. To be clear, I'll refer to the normal preloader as preloader, and the preloader which loads the next clip as pre-preloader. If the pre-preloader loads to 100%, everything is good. The next clip will play immediately without having to wait. If, however, the pre-preloader for the next clip is stopped at any point before 100%, the preloader will start loading at 0%.

With that being said, If I go back to the previous clip (which was previously already playing), the pre-preloader will pick back up where it left off, then if I go forward again, the preloader will pick up where IT left off.

[Code]...

View 3 Replies

Get A Movie Clip To Automatically Load Up Another External Clip After Playing An Embedded Flv?

May 24, 2010

I'm trying to get a movie clip to automatically load up another external clip, after playing an embedded flv.

This is what I've tried so far:

var holdFrame = setInterval( holdFrame, 5000);
gotoAndPlay(
_root.mc_holder.loadMovie("swf/library.swf"));
clearInterval (holdFrame);

Although it throws no errors, the setInterval is ignored and it just loads direct into the next mc clip.

View 9 Replies

ActionScript 3.0 :: MC To Loop That Is Inside A MC - Play Head Of A Movie Clip To Return To A Certain Frame Of That Clip

Nov 2, 2010

I would like play head of a movie clip to return to a certain frame of that clip so a MC inside it would loop. I now have: stop(); as the action.

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

ActionScript 3.0 :: Flash - Movie Clip To Play Unless The Person's Mouse Curser Is On The Movie Clip For More Than A Second

Jun 24, 2010

I am pretty new to ActionScript 3 and Flash. I don't want my movie clip to play unless the person's mouse curser is on the movie clip for more than a second. If the person just runs their curser over the movie clips really quickly, then it should do nothing. It must be more than a second. How do I code that?

[Code]...

View 17 Replies

Actionscript 2.0 :: Movie Clip Play, Stop And Play On Mouse Event?

Sep 1, 2010

I want a movie clip (let's call it homecontent_MC) with 100 frames play to frame 80 and stop.Then when someone clicks a button on the navigation bar (home, about, services, contact, etc...) homecontent_MC would then begin playing from it's position (frame 80) til it reaches 100, at which point it wouldn't be on screen, and the movie clip that corresponds to the navigation button press (say services_MC...) would start from frame 1 and continue til it stops at it's frame 80...

View 7 Replies

ActionScript 3.0 :: Tell If A Clip Is Playing?

Aug 24, 2010

This is pretty simple: what method or property can I use to tell if a MovieClip is playing or not? There doesn't seem to be a way. Which is strange.

View 1 Replies

[AS3] Playing A Movie Clip?

Jun 5, 2009

I have the code below and I can't seem to get the Movie Clip mcBox to play.

The movie click is on the same layer as the Map Buttons that have a linkage to class MapButton.

It's this line that is the problem but I can't figure out what it is.

[Code]...

View 3 Replies

Delay The Playing Of A Movie Clip?

Apr 9, 2009

I've got a little animation that I'm going to embed in my website. I'd like it to start playing, say, 10 seconds after the page is loaded.

Is there an Actionscript command that effectively says "start play after 10 seconds"?

Or do I need to just add a bunch of blank frames within the animation to effectively start roughly 10 seconds in?

View 1 Replies

Flash8 :: Playing Movie Clip?

Jan 19, 2010

I have very annoying and easy (I believe) problem with Macromedia Flash 8. My movie consists of 10 scenes. I wanted them to be played each after another (e.g. scene 1, scene 2, etc.).However, the scenes that consist of movie clips are just flashing and movie proceed to next scene. There is no problem with scenes that where done just in main timeline. I tried to put some action script on these movie clips like:

on (release) {
play ();
}

View 3 Replies

Nested Movie Clip Not Playing?

Aug 14, 2009

I have a movie clip (that includes a preloader and video elerments) that I created and made a .swf file from which I then imported in my main movie. I then place this .swf file (which is listed as a movie clip symbol in the library) onto the main timeline. I put an action to stop the main timeline at the frame where the nested movie is placed and expected to start. When previewing the movie, the nested movie doesn't play. I see the preloader (in scene 1 of the nested movie)  appears for a second but the movie doesn't play.
 
Any specific action command needs to be define to make the nested movie play?

View 13 Replies

ActionScript 3.0 :: Check If A Clip Is Playing?

Feb 16, 2010

is there a way how I can check if a clip is still playing or if it had a stop command an doesn't play anymore?

View 11 Replies

ActionScript 1/2 :: Movie Clip Not Playing?

Oct 14, 2011

i create some animation. actuvally i move mouse on button some menu visible, i click test button when play "boxani" Movie Clip.
 
Test link
http://megaswf.com/serve/1185333
btn_mc.menu_mc._visible = false;

[code].....

View 6 Replies

ActionScript 3.0 :: Movie Clip Not Playing

Jul 22, 2011

I have a game engine and when the player moves right, I just have a static graphic of a box with a right facing arrow. The player is a movie clip with an instance name of "char" on the main stage, inside of it is a bunch of frames with the player in different positions (ie box with up arrow, box with left arrow, etc). So when the right arrow key is pressed then "char" will go to and stop at frame 1 with the right facing arrow.

Here is my problem: When I replace this graphic of a box and arrow with another movie clip of an animation, the animation doesn't play on run time, it will just show me the first frame of the animation inside the movie clip but it won't play the rest of the movie clip. What is stopping this animation from playing?

View 6 Replies

ActionScript 2.0 :: Movie Clip Is Not Playing

Oct 14, 2011

i create some animation. actuvally i move mouse on button some menu visible, i click test button when play "boxani" Movie Clip.but not playing??[code]

View 1 Replies

Swf File With Video Clip - Cs4 Not Playing On Server

May 21, 2009

brand new to cs4. Created a short swf file with video clip, playback component under the clip, and small gray box around it. Plays fine locally. Copy swf, html, f4v to server and the gray box shows up and the player component shows up, but no video plays. Just have s white/green striped image running where the time indicator in the playback component shows up. Have earlier version of Flash running on server fine (created through 3rd-party). Server is Windows Server2003, running IIS6. Mime types include:

[Code]....

View 14 Replies

ActionScript 1/2 :: Movie Clip Playing Very Fast?

Oct 13, 2009

I have a problem with my loaded movie clip, its playing very fast than its suppose to, (using loadMovie) I've tried to adjust the frame rate of the main file and the movie file, but still the problem occurs....

View 1 Replies

Professional :: Nested Movie Clip Not Playing

Oct 17, 2010

I have some movie clips nested and at some point one on the left side should call one on the right side and it's not working and I'm pulling my hair, and I'm opening this thread for therapeutic purposes, I'm so angry I can't see straight
 
one frame in the left MC calls this

_root.pages_mc.cpr_mc.charr_mc.right_mc.gotoAndPlay("Sidney");
 
and it doesn't work and I don't know why, as I have a root who has a frame with a pages_mc that has a frame with cpr_mc that has a frame with charr_mc that has a frame with right_mc and there is a label 'Sidney'well, that's all. I don't even know flash very well, but looks to me that logically I'm doing it right, but flashly I'm doing it wrong...

View 9 Replies

Professional :: Why Won't Movie Clip Stop Playing

Feb 21, 2011

I am trying to make a shooting game and I am using the Pistol as a movieclip but it just won't stop playing!

View 1 Replies

ActionScript 2.0 :: Playing The Timeline Of A Movie Clip?

Jan 29, 2009

I'm trying to play the timeline forward or backwards by either pressing and dragging left or pressing and dragging right. I can't figure this out.

I have been using instances of buttons to do this but I don't want to use buttons I just want to be able to press anywhere on the screen and weather I drag left or right the movie plays, if I stop pressing the movie stops playing on its current frame.

View 0 Replies

ActionScript 2.0 :: Stop Movie Clip After Playing Once?

Aug 9, 2010

This is probably an easy question, but I fairly new at this. How do you let a movie clip play once then stop it on its last frame? I've noticed that you can't use AS on a movie clip frame like you can in the parent timeline. That's what I was trying to do.

EDIT:I figured it out. I just wasn't setting the parameters. I'm going to have a hard time with AS3 LOL

View 0 Replies

Change Clip While Playing When Hotspot Clicked

Feb 13, 2009

I am looking for some code that will simply change the clip that is playing when the hotspot is clicked.

View 1 Replies

Actionscript 3.0 :: Playing Sound Clip After 3 Seconds?

Mar 28, 2011

I have the follwoing code but I Cant figure out how to make the sound play after 3 seconds.

Code: Select allvar fl_SC:SoundChannel;
function startAnimation():void {
var s:Sound = new mySound();

[code]...

I get the following error when I compile the file with the comments part taken out.Scene 1, Layer 'Layer 1', Frame 1, Line 61061: Call to a possibly undefined method start through a reference with static type Class.

View 2 Replies

ActionScript 2.0 :: Loading Mp3 Before Playing The Movie Clip?

Mar 30, 2005

I'm trying to load an external mp3 into my swf and then get my movie clip to play once the mp3 is fully loaded.This is the code I have in my first frame:

stop();
cyfan = new Sound(this);
cyfan.onLoad = function(true) {
if (true) {

[code]....

View 1 Replies

ActionScript 2.0 :: Remove A Movie Clip After It Is Done Playing?

May 20, 2005

How to remove a movie clip after it is done playing.

View 3 Replies

ActionScript 2.0 :: Tell Movie Clip To Go To The Next Frame And Keep Playing?

Sep 27, 2006

I want to tell my movie clip to go to the next frame and keep playing instead of go to the next frame and stop.

View 5 Replies

ActionScript 2.0 :: Playing Movie Clip Backwards

Aug 23, 2007

I have this movie clip that is a vertical menu. the menu has a left and right button on either side and several small thumbnails inside. when you click on the right arrow, the animation plays, which just slides the thumbs along using a tween. I'm trying to get the left button to play the reverse of the animation.

this is the swf here to have a look. i hope you get the idea of what I'm trying to do.

I've been looking for a tutorial on how to do this through action script, but haven't found it yet. how can i do this so it's more efficient or through action script 2.0?

I did do the scroll tutorial before, but I would like it to go from one thumb to the next one at a time. You can also see that the animation I'm doing now is causing the left arrow to play each time.

View 3 Replies







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