ActionScript 3.0 :: Create A Play Button For Movie Clip?

Aug 16, 2010

Bit new to this and have been searching the adobe forums and google. I am trying to create a button that will play an imported MovieClip.I have a movie clip that I've imported into it's own layer (Layer1) Frame 1  I've given the MovieClip an instance name offoundationMovie.I've created a button and have that on its own layer(Layer2) above layer1, it is also in Frame 1.I've added a top (); action to layer2The video is not set to autoplay.I want the video to start playing when the viewer clicks the button.  I know I've got to put some kind of event listener using AS3 in my timeline somewhere.I've found some code and I've been trying to work with it.  I'm sure I've mutilated it beyond usability but this is what I've got.
 
stop ();
player.addEventListener(MouseEvent.CLICK,play);
function play(event:MouseEvent)

[code].....

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Create A Section For A Site Where Mousing Over A Button Will Play A Certain Frame Of A Movie Clip?

Dec 10, 2009

Flash CS4/Actionscript 3 I am trying to create a section for a site where mousing over a button will play a certain frame of a movie clip, which is sitting next to the button. Mousing over different buttons will play (and stop) different frames in the movie clip.

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

Get A Movie Clip To Play When A Button Is Clicked ?

Apr 12, 2009

On looking into buttons, I understand that to get a movie clip to play when a button is clicked you simply place the movie clip on the buttons 'hit' state. Having done this it does not work? Have I read wrong? Also the movie clip has a background the full size of the stage area. So when I attach this to the button, the button changes size to the same size as the movie? (i.e. whole stage area). How do I keep the button in it's original size while still playing the movie clip with large background?

View 2 Replies

ActionScript 2.0 :: Play A Movie Clip On Button?

Jun 12, 2010

I have a simulation of a 3d rotation in a movie clip and what I want to do is on button press:

1) check to see if the movie clip is on a certain frame and if it is do nothing

2) if it is less than the 16th frame reverse the movie clip and play until it gets to a certain frame

3 if it is more than the 16th frame play until it gets to a certain frame

View 13 Replies

ActionScript 3.0 :: Play A Movie Clip With A Button?

Feb 14, 2009

i am tryin to play a movie clip with a button and my code is like this..

stop();
function onSouthClick(evt:MouseEvent):void {
gotoAndPlay("southsouth");

[Code]....

View 1 Replies

ActionScript 2.0 :: Play Movie Clip From A Button?

Nov 18, 2009

I have a button which I have made into a button symbol.

I have created a movie clip in which a panel fades in and out.

I would like to play the movie clip when the button is hovered over.

I have the below entered on the button but not sure what to put next to make the clip play.[code]...

View 3 Replies

ActionScript 2.0 :: Play And Rewind Movie Clip Button?

Oct 2, 2009

I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:

on (release) {
design_thumbnails.gotoAndPlay (20)
}

When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.

Here's what it looks like:I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:

on (release) {
design_thumbnails.gotoAndPlay (20)
}

When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.

View 3 Replies

ActionScript 3.0 :: Play Movie Clip On Button Click?

Apr 8, 2010

I have been using flash for a while, but AS3 is a whole new world to me.

I simply want to have a movie (box1) to play when a button (btn1) is clicked.

NOTE: The button is within a movie clip (bulb1) which is within another movie clip (trees).

I tried this, but it just kept replaying the whole animation:

Code:

btn1.addEventListener (MouseEvent.CLICK, onClick);
function onClick( event:MouseEvent):void
{
box1.play();
}

View 15 Replies

ActionScript 3.0 :: Click Button To Play Movie Clip?

Dec 7, 2010

I am working on a project that I have three movie clips animate onto the stage.I then have 3 buttons come up correlating with each movie clip.How do I script the buttons to play the movie clips?The movie clips are embeded FLV files just fyi.

View 4 Replies

Make Movie Clip Play On The Over Stage As A Button?

Dec 23, 2009

I have a very simple fla i built, all i need is the hover "over" stage to play this tween. On the keyframe I made it a symbol, movie clip. In there all the tweens are set exactly. It seems if you wanted motion on a stage,you would just put that clip on the over stage. I uploaded the fla file: [URL]

View 6 Replies

Flash :: Play Movie Clip When Click On Button?

Sep 16, 2011

I working on the timeline and have some Actionscript 3 code (I have a actions layer on the timeline). I am not sure what the code is for clicking on a button(I made the buttons movie clips since I wanted to animate it) and it plays a movie clip.

View 2 Replies

ActionScript 3.0 :: Play A Movie Clip By Clicking A Button

Nov 20, 2010

I have a button on the stage called 'play_btn' and a movieclip called 'movie_mc'. The movieclip has a stop on it's first fame so that it doesn't play on the main timeline. I want to use actionscript to have the movieclip play when the button is clicked.I know i need to do some kind of movie_mc.gotoAndPlay('2') on the button or something like that.

View 1 Replies

ActionScript 3.0 :: Get A Movie Clip To Continually Play Using A Button?

Feb 21, 2011

I am using flash. I have a layer containing my movie clip animation. Another layer contains my 2 buttons and a 3rd layer contains my action script. Here is what I have managed to do- I got the stop and play buttons to work so when the movie plays I can click play and then click stop and the animation will stop and play as I ask. I added a stop(); command at the beginning of my script so that when the movie loads nothing plays until I click play. The problem is I would like to click play and allow the movie to continually play over and over even when it finishes. However I would like to keep the movie with my stop(); command so when it loads nothing plays until I ask it to.

what I can do so that when I click play my animated movie clip continues to loop again and again.

HTML Code:
stop();
start_btn.addEventListener(MouseEvent.CLICK, startCircle);
function startCircle(e:MouseEvent):void{

[Code].....

View 1 Replies

Actionscript 3.0 :: Button To Play Movie Clip Backwards?

Apr 9, 2009

I've made the outline of a site in AS3, on one of the pages it has an area that shows some text and images. If you click on the right arrow, the current info flys off to the left and the new info comes on from the right. This is done by just having a movie clip with a load of stops and code that says "absorbentInfo.play();" so it plays forward to the next bit of info.What I would like is a way to make it play backwards to the previous stop, so that it could cycle indefinitely either way.Code for the next button below.with the previous button.

Code: Select allnextButtonAbsorbent.addEventListener(MouseEvent.ROLL_OVER, nextButtonAbsorbentOver);
nextButtonAbsorbent.addEventListener(MouseEvent.ROLL_OUT, nextButtonAbsorbentOut);

[code].....

View 4 Replies

ActionScript 2.0 :: Play Movie Clip While Dragging Button?

Apr 26, 2004

I was wondering what the best way is to play a movie clip while dragging a button inside a separate movie clip. Example: I'm creating a children's book in Flash form. Some childrens' books have movement using a pull tab on the side of the page. I have created two things for one of these pages:

A) The pull tab movie clip consisting of a button inside of it. Its code is as follows:

on (press) {
startDrag(toggleDrag2,false,596.5,118.0,666.5,118. 0);
}
on (release) {
stopDrag();
}

This way (and it works), the pull tab cannot be dragged along the y axis, and its movement along the x axis is restricted.

B) A movie clip with a symbol in it that has a motion tween, 75 frames, a stop action and key frame on each of the 75 frames.

[Code]...

View 9 Replies

Actionscript 3 :: Flash - CS4 Play A Movie Clip When A Button Is Clicked?

May 17, 2011

I want to play a movie clip when I click a button.I made 3 states: inicial (how it looks before anything happens) (up)hover (plays an animation after waiting 20 frames) (over)click (plays an animation right away) (down)I placed these movie clips inside of my button's up, over, and down frames. This works great except when I click, i'll need to click and hold for my animation to get past the first frame.

View 1 Replies

ActionScript 2.0 :: Make A Certain Movie Clip Play When Press A Button?

Dec 5, 2005

i need to make a certain movie clip play when i press a button.

View 4 Replies

ActionScript 2.0 :: Making A Movie Clip Play ONLY When A Button Is Pressed?

Jan 17, 2011

I have a button, labeled "Main1," in a scene, "Main." When I click said button, I want an animation to start. Said animation is a movie clip named "ArrowAnim."Now, I have done something similar before in another project, using a code which I thought would have worked with this movie clip as well. The code I used before (and which worked flawlessly) was:

Code:
on(release)
{

[code]......

View 4 Replies

ActionScript 3.0 :: Create A Button Out Of A Movie Clip?

Jan 18, 2010

I want to make make a button out of a movieclip (on realease plays the animation) but i can't seem to get it right --' i tried to make a movieclip inside a button but it only works while pressing "click" and i want it on realease. btw i'm working on AS3 sorry if this is too basic i missed that class --' btw the mc is called "flip1".

View 2 Replies

Create A Button Within A Movie Clip Button?

May 27, 2009

I am trying to create multiple buttons within a movie clip button I have already made. I can't figure out how to do it

View 3 Replies

ActionScript 2.0 :: Unable To Create Basic Button To Play Movie?

Sep 2, 2004

I'm trying (and failing it seems) to teach myself Action script and I'm having a really tough time with what I'm sure is something that quite easy to do. Basically I have one button. When this button is pressed I'd like it play a movie. When the button is pressed again I'd like to stop playing the movie. In the first frame of the movie I've put a stop action so that it doesn;t repeat itself when it finishes playing. In the last frame of the movie I've put gotoAndStop(2);In my main timeline I have 2 layers each of which has one frame. The button is one layer and the movie on the other.

I selected the button on the stage and gave it the actionscript
on (press){
gotoAndPlay("vcsound_mc.play(2)");

[code]....

View 5 Replies

ActionScript 2.0 :: Create Movie Clip On Button Press?

Nov 4, 2009

Im making a flash game. And Need to have a menu (sized based on what they click, small medium large) referenced from a movieclip, and variables passed to it. Im using CS4/AS2. Is there a function i can put on my button to create a movie clip at a location?

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

CS4 :: Create A Button That Functions Inside Movie Clip?

May 26, 2010

How do I move / create a button that functions inside a movie clip?I have been creating a quasi-simple website following the tutorial provided by Lynda.com. Using I have created a functional site in which the buttons work so long as they are part of the main timeline. However if I take this functional button and drop it into a movie clip I've created, it ceases to function. Drag it back out of the movie clip and it starts working again. I am sure it's an action script coding problem on my end.[code]

View 2 Replies

ActionScript 2.0 :: Create A Button To Turn On And Off A Movie Clip

Feb 21, 2012

I want to create a button to turn on and off a movie clip, did any one know how to do it!

View 6 Replies

Professional :: Create An Animated Movie Clip Button In AS2 Using CS5?

Nov 22, 2010

I'm trying to create an animated movie clip button in AS2 using CS5. The button should fade in/out as the mouse moves over and away from the button.Lets say my frame rate is 30 FPS. When  I insert a motion tween on frame 1, the timeline is automatically extended by 30 frames. I then select frame 30, select the button and change the alpha value to 30%. When I drag the head marker back and forth, the button fades in and out smoothly exactly as I wanted.But I want to create a motion tween between frame 1 and 10. So I select frame 10, insert a keyframe, select frame 5 and insert a motion tween. Then I select frame 10, select the button and change the alpha value to 30% like before. When I drag the head marker, there is no fade in/out. When the head marker is exactly over frame 10, the button is faded, but when it is on any frame between 1 and 9, it is normal.

View 2 Replies

ActionScript 2.0 :: Dynamically Create Button From Movie Clip?

Feb 16, 2009

this is my code:

this.createEmptyMovieClip("m1",1);
m1.loadMovie("e1.jpg");
this.createEmptyMovieClip("b1",2);
b1.loadMovie("e2.jpg");
b1._y = 350;

now i want to make b1 movie clip to act like button so that when ever i click it any one property should apply to m1 movie clip

View 1 Replies

ActionScript 2.0 :: Create An Animated Button Which It Contain Movie Clip?

Dec 19, 2007

I have a movie clip which contain button in the library than I create an animated button which it contain movie clip, unfortunately after it publish, the animated button doesnt work.

View 12 Replies

ActionScript 2.0 :: Create A Play/pause Button To Control Movie Animation?

Apr 21, 2009

how to create a play/pause button to control my movie animation?

View 2 Replies







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