ActionScript 2.0 :: Make A Movie Clip Symbol Plays When Click On It?

Jul 17, 2007

I am using Flash MX 2004.

Layer 1 - A simple movie clip symbol moves from Frame 1 to Frame 30 Layer 2 - I apply an actionscript stop(); on Frame 1 so that the movie stop at the beginning

I wish the movie clip symbol play when I click on it. How can I do that?

P.S. I tried to use the following AS on the movie clip but it fail.

on (release) {
play();
}

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Symbol Movie Clip Plays In Loop Despite Stop() In Clip?

Jun 14, 2010

I am importing a movie clip as a symbol from a SWF using Embed to a AS3 program and, after attaching the movie clip to the stage, the movie clip keeps repeating. Before you ask I have indeed creating a script layer and put a "stop()" on the last frame. In fact the swf containing the symbol works perfectly fine when executed on its own or in Flashdevelop (my choosen IDE). Its only when imported does the clip keep repeating.Here is the code:

Code:
package {
import flash.display.*;

[code]......

View 2 Replies

Professional :: Movie Clip Symbol Plays Then Disappears?

Jan 16, 2010

I have a movie clip symbol that is about 8 frames long. I am staggering it 14 times throughout scene one, with varying times.My problem is that it plays once then disappears (I added actionscript on the last frame in the symbol movie clip). I would like it to play then keep the last frame displayed in scene one until a specific keyframe (60). Not have the movie clip instance loop, rather show the image that is on its last frame.

View 9 Replies

ActionScript 3.0 :: Button Plays Movie Clip Symbol?

Jul 12, 2010

want to make a time line (timeline is my graphic not the timeline in cs4, like historical timeline WWI, WWII, ETC) with clickable dates (D-DAY, Pearl HARBOR), when you click on a date it will fade in a semi-transparent box that has text (still seeing the original stage in the background behind the semi-transparent text box), when you are done reading the text box you can hit GO BACK to go to the historical timeline.I only have been using flash for about 3 months so bare with me.

I understand button symbol, movie clip symbol, etc. I can make it so that when you are OVER the date it plays an animation of the text box fading in but is kind of bad because if you move the mouse off the date it goes away, which is why I want to make it clickable.Basically I thinkI am using CS4 by the way.In short, make a button that when hit plays a movie clip animation of the textbox fading in front of the historical timeline, I believe I can easily do the go back by using the gotoAndPlay(); feature on the go back button to go to the beginning of the scene.Sorry about the long text, I am pretty sure the answer is easy.

View 2 Replies

Professional :: Movie Clip Symbol Plays At End Of Animation, But Does Not Appear In Timeline?

Jul 11, 2011

When I play my animation in the Flash working file, the animation stops at the end of the timeline, as it should. But when I test the movie, or export it to any movie format, it will play an instance of a movie clip symbol that I used within the animation. There are no extra frames in the timeline beyond what should be considered the last frame. Is there a setting or something I have overlooked that might cause that instance of the symbol to play at the end of the animation, without appearing in the main timeline?

View 3 Replies

ActionScript 3.0 :: Updating Slider Thumb Position As Movie Clip Symbol Plays?

Feb 9, 2012

I would like to know if there is a way to update the position of the thumb on the Slider component when a movie clip plays. Currently I have a movie clip symbol on my stage with the instance name ShapeMC. It has about 10 frames or animation and two actions. the first frame has a stop action as does the last frame. The actions are on their own layer, separate from the actual animation. I also have the slider component in my library, but it is only there so I can reference it through AS3. My AS3 instantiates a variable of type Slider. I then define the properties, like the width, hieght, thumb size, minimum, maximum, as well as enabling livedragging. I did this so the user can drag the slider and move through the Movie Clip symbol. I added a button that allows the user to click it and autoplay the Movie Clip symbol (ShapeMC). All that works. What I would like to do is when I hit the play button, I would like to see the thumb on the slider move along the slider as the Movie Clip symbol (ShapeMC) plays. So if the Movie Clip symbol reaches frame 5, the slider thumb show be seen as being half way through the tread. I tried putting the currentFrame into the .value property of the slider, but that didn't do anything. No errors, but it didn't move the thumb at all.

View 3 Replies

ActionScript 3.0 :: Rotate A Symbol (Movie Clip) On Double-Click?

Jul 25, 2010

I have a problem, if I use this code to rotate a Symbol (Movie Clip) on Double-Click it rotates only on the first Double-Click, is there a solution that it will rotate on every Double-Click?

[Code]...

View 5 Replies

ActionScript 3.0 :: Make A New Instance Of An Existing Symbol (movie Clip Or Graphic)?

Aug 22, 2011

I want to make a new instance of an existing symbol (movie clip or graphic) when an object hits the side of the stage. I have the code to figure out if it hit the side of the stage, i just need to know how to make a new instance and make it show up where the ball hit. I also want to be able to have multiple of these instances on screen.

View 5 Replies

ActionScript 2.0 :: Make Movie Clip Appear Under Cursor On Click?

Oct 12, 2009

Ok so in it's simplest form, i just want to be able to click anywhere in the movie and have a movie clip show up (or duplicate from the library then show) at the exact point where you click, an example for use might be a bullet hole or a stamp tool.

View 2 Replies

ActionScript 1/2 :: Click On A Certain Button, It Plays A New Music Clip?

May 3, 2006

I want to make it so that when I click on a certain button, it plays a new music clip. I am trying to do it by selecting the button I want, then going into behaviors, then +, then Sound, Play Sound... It then asks for the instance of the audio file that I want to play... but I don't know what it is.

View 6 Replies

Professional :: Blinking Inside Of A Movie Clip Symbol And Placed The Symbol?

Aug 5, 2011

I animated eyes blinking inside of a movie clip symbol and placed the symbol on a face outside of the symbol.The eyes are stuck on the first frame. I am using CS5. What do I do?

View 5 Replies

ActionScript 2.0 :: Placing Movie Clip Inside A Movie Clip Symbol?

Feb 27, 2008

I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?

View 1 Replies

Actionscript 3.0 :: Movie To Loop - Movie Plays A Certain Number Of Times Then Plays The Opening Of A Screen Then Stops

Aug 30, 2011

I want my movie to loop. Would prefer an If/Else loop so that the movie plays a certain number of times then plays the opening of a screen then stops. This is a simple 4 screen ad I am doing for a school project. Can't get it to work. I tried containing my code in the proper loop syntax, didn't work. Then wrapping the loop in a function and calling that with a timer event, didn't work. My final solution was to call my whole movie in a timer event set to play once. Then calling the entire movie again in a second timer event set to play 20 times and set to start at an interval when the first movie ended. This did work but each time the movie plays thru function calls drop off making the movie degrade.

[Code]....

View 5 Replies

Starting Movie Clip AFTER Animation Plays

Mar 29, 2010

I have a demo/spec file I'm working with (download the .fla here): [URL] I'd like to have a movie clip (FLV) start playing AFTER the animation stops playing. I know once I bring the clip in, I'll have to give it an instance name and reference it in AS, but I'm not just not sure exactly how to start. I feel like the whole timeline thing traps me up...

View 1 Replies

ActionScript 3.0 :: Brief Appearance Before Movie Clip Plays?

Oct 31, 2011

I'm trying to introduce a movie clip that's a simple image sliding into place from off stage.It's triggered by a cue point in a video that's playing.However, just as the movie clip is due to slide into position on the stage, it flashes a brief preview of its final resting place.Here's the code I'm using...

var myPic2 = new pic2();
import fl.video.MetadataEvent;
test.addEventListener(MetadataEvent.CUE_POINT, fl_CuePointHandler);[code].....

View 7 Replies

ActionScript 3.0 :: Short Clip Before Movie Plays?

Jun 22, 2009

how to create a short video to play before the user clicks on a video to watch. Kinda like a short advertisement (for our department) when the viewer wants to watch one of our football games.

With the help of another user here, I was able to get a video player to work using an xml list containing all of the video file names, once the title is clicked in the .swf file the player plays that video file.

xml file

Code:
<root>
<video>
<filename>UA029_Fb_1929_WA.flv</filename>
<title> WSU VS UW 1929</title>
<description></description>

[Code]....

so what I am trying to achieve is to have a short clip play every time a person wants to watch a video.

Also, Is there a way to create some type of text box in the swf player that will display all the metadata (game, year, score etc.) in that box?

View 2 Replies

ActionScript 2.0 :: Movie Clip Only Plays Every Other Time?

Jun 17, 2010

i have a button with some code on it to play a movie clip when pressed. the movie clip should run until the last frame and then stop at the end where i have a stop action.what actually happens is the movie clip plays the first time the button is pressed but not the second time. the third time it plays again but not the fourth, the 5th time it plays etc. etc.i have noticed that if i change the stop action to a gotoAndStop(1) action the film plays everytime without problems. but what i need is it to play everytime and then stop at the end without going back to frame one until the button is clicked once more.

View 1 Replies

Create A Button That Plays A Movie Clip And Stops?

May 20, 2010

I'm trying to create a button that plays a movie clip and stops when it's moused over. I've attached a file (help.fla) that illustrates my problem.

View 8 Replies

ActionScript 2.0 :: Movie Clip Plays Slow First Time

Nov 19, 2010

I have made a scene with a flv in it. The problem is that when I first run my scene the flv plays slow, then when I have played thru it and starts at the beginning again it plays in the speed I want it to. I would really like it to play in normal speed first time as well.

View 3 Replies

ActionScript 2.0 :: Movie Clip That Plays In Reverse On Rollout?

Jan 16, 2009

I have the following code which is applied to the movieclip

on(rollOver){
_root.over = true;
_root.off = false;

[code]......

View 7 Replies

ActionScript 2.0 :: Letting A Movie Clip Finish Before A New Plays With Buttons?

Aug 14, 2009

I am creating an online banner where I want movie 3 movies clips to move to different parts of the banner when a button is rolled over. the 3 movie clips move independently of each other. When I roll off the button I want the clips to move back to where they started. I have achieved this fine, but the problem is when i roll over a different button on the banner the file automatically plays the commands for that button of course. What I need to do is have each movie clip finish before the next button plays it's commands. The coding I have for the buttons is just simple.

PHP Code:
on (rollOver) {
cta1.gotoAndPlay(11);

[code]......

View 0 Replies

ActionScript 2.0 :: Setup A Click And Drag To Control A Movie Symbol?

Jul 21, 2011

Basically what I have is a 31 frame, frame-by-frame animation that plays(no stop() command at all currently) in a continuous loop on one "page" of a flash presentation. What I need to be able to do is set it up in actionscript 2.0 so that when a viewer has his mouse over the movie symbol and then clicks and drags to the right, the movie plays forward, click and drag to the left and it plays in reverse, and on release stops on the frame it is currently on.

I need it set up so that if someone is dragging it to the right and reverses direction, the frames are played in reverse from that point (frame) and vice versa and releasing the mouse button stops the movie on that frame: e.g. if the viewer is dragging right up to frame 20 then starts dragging to the left the animation will play backwards from frame 20 to frame 1 so long as the mouse button is held down) I can't use playback buttons, I have to set this up this way for a specific reason for a work project. I'm not even sure if I explained it correctly If I can set this up on the frame the symbol is nested in, fine. If it has to be done within the symbols' animation, fine. Doesn't matter really, the end result is what counts.

View 3 Replies

ActionScript 3.0 :: Click On The First Button Loads Ok But When Click On Second Still Showing The First Movie Clip In The Back

Dec 14, 2011

I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .

[code]....

the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,

View 3 Replies

ActionScript 2.0 :: Click To Move + When Click Image - Go To Frame In A Movie Clip?

Aug 28, 2010

I would like to know how to make it so when you click a button, it goes to a different frame within a MOVIE CLIP. Kind of like gotoAndPlay but not a frame in the timeline. I would like it to move to a different frame in a movie clip.

View 1 Replies

ActionScript 3.0 :: Mouse Events - Keyframe That Plays A Movie Clip By Fading From 0 Alpha To 1

Apr 29, 2010

I have a gallery made of 3 layers : actions, buttons, and images. Fore every image i have a keyframe that plays a movie clip by fading from 0 alpha to 1. I made a new keyframe that has no image so the page doesnt display the big photo from the start just the thumbs(which are the buttons). What i want to do is that the big images to be dispalyed only while i hold the mouse button, and on release to go back to the first frame state (no image).

View 3 Replies

ActionScript 2.0 :: Click On A Movie Clip It Is Changed By A Image On Click?

Jul 9, 2010

i want to know that when i click on a movie clip it is changed by a image on click using action script any ver.

View 3 Replies

Put ActionScript Into A Movie Clip Symbol?

Jun 29, 2011

My group is trying to create pong. We got the ball moving and bouncing off the walls and all that, but we are trying to get the paddles to move up and down. We've run into a hundred problems, and i've looked at every pong tutorial, but I notice that I can't put actionscript in my movieclip like the tutorial people can.How do I enable actionscript in a movie clip symbol?

View 1 Replies

IDE :: Button Symbol Or Movie Clip?

Jan 19, 2010

When your button has 3 different states like rollover, rollout and selected and these are images. Is it best to make it a movieClip or a button symbol?

View 1 Replies

ActionScript 3.0 :: Add Script To A Movie Clip Symbol?

Apr 8, 2010

In AS3 you can add script to a movie clip symbol. But in AS3 you cannot, correct?

So what do you do in AS3? What is the "correct" way of coding, lets say, characters or objects in a game? Or more specifically, where is the correct place to put the code for each character or item?

View 1 Replies

Convert Several Images To A Symbol (movie Clip)?

Jan 31, 2010

When I try to import several images (from a folder on disk), I cant seem to make a movie clip of them. What do I have to do to import a bunch of images and then test the movie and see each image appearing after one another?

View 1 Replies







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