ActionScript 2.0 :: On Release Of Button "A" Tell Movieclip "B" To Play Frame "X"?

Nov 21, 2003

how to express it in Actionscript - can anyone out there translate the following!? On release of button "A" tell movieclip "B" to play frame "X",but if the button has already been released before (or if movieclip "A" is already at frame "X") then on release of button "A" go to frame "Y" instead

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Advanced Button - Change The On.Release Command To Goto And Play Another Frame Into Movie Instead Of Opening A New Url

Jan 9, 2006

I'm new to Flash and am looking to use the following tutorial to create an advanced button. I know it is probably a very simple fix, I just cannot figure it out. [URL] In the tutorial the rollover and onrelease has the following script this.onRollOut = function(){ rewind = true;} this.onRelease = function(){getURL [URL]); } I have tried to change the on.Release command to go to and play another frame in to movie instead of opening a new url. But I'm not getting it to work correctly.

View 4 Replies

ActionScript 2.0 :: Release Play Frame Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 2.0 :: On Release, Play Frame, Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 2.0 :: Button To Play MovieClip Animation - Current Frame

Mar 19, 2005

I've got a button that tells a movie clip to play its animation (goto and play frame 2), but I only want it to play that frame if the current frame is frame 1 - meaning that I don't want people to be able to keep clicking the button while the clip is playing and have the clip restart.

I'm guessing it would be something like:
If ( current frame is frame 1 ) { goto and play frame 2 }
But I can't seem to get it to work.

View 1 Replies

ActionScript 2.0 :: Button Go To A Particular Frame On Release?

Dec 13, 2004

I want my button to go to a particular frame on release,show me the AS for this? I am using Flash MX for reference.

View 3 Replies

Professional :: Configure Which Symbol To Play Upon Release Of A Button?

Aug 17, 2010

I installed a Flash template that has some "Read More" buttons.I see the actionscript for a button is:

Header 1onClipEvent (load) { num = 1; this.title2.num = 4; // this line is the frame number of the symbol which the button links to this.title2.name1 = "More 04";}

After experimenting, I realize that it is the 3rd line which controls which page (ie/ frame number) the button links to.So in the above example, the button will link to frame 4 of the symbol.In another button that same line reads:this.title2.num = 5 and so clicking that button will link to frame 5 of the symbol.Now here in that above code shows which symbol to go to - it just seems to know where to go (it actually goes to a symbol called 'Content Movie Y6').So my question is, how does it know which symbol to link to?I'd like to know in case I want to change the link in the future.

More info:All of these "Read More" buttons have a roll-over effect which is a movie clip symbol called 'button_more'.The actionscript code for the button_more symbol is:

Header 1on (rollOver) { if (_root.link<>6) [code].....

I still can't see anywhere where it configures which symbol to play upon release of the button.

View 2 Replies

ActionScript 3.0 :: Make Button Instance Containing Movieclip Play Specific Frame?

Sep 27, 2011

What I want to do is have one movieclip that has many frames and turn that into a button and then make different instances of the button and have those instances display a certain frame of the underlying movieclip.

View 17 Replies

ActionScript 2.0 :: Make A Button Do Two Things / Play A Movieclip And Goto Frame

Aug 27, 2005

What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X" As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)

View 3 Replies

ActionScript 3.0 :: Click Button To Play Movieclip And Then Pause On Desired Frame?

Dec 2, 2010

I have a button (bttn1) which when clicked plays a movieclip (bounce), but I would like it to play from frame 1 then stop on a desired frame(say frame 10), so when a second button is clicked (bttn2) it plays from frame 10.

View 7 Replies

Making A Button Go To A Specific Frame On Release?

May 30, 2010

Im creating a simple flash presentation and i have created four buttons, what i want to now do is make each button go to a differant frame on the timeline, im guessing this is go to and stop? But i cant figure it out [URL]

View 1 Replies

ActionScript 2.0 :: On The Button Release It Doesn't Go To The Frame That I Labelled?

Dec 15, 2006

here is my script:

stop();
//setting up the list of frame names for the buttons
imagelist = ["horror","legs","chair"];[code]....

So my problem is that on the button release it doesn't go to the frame that I labelled .My button symbol is called b_next with instance name of next_b. So don't think thats the problem. Is it because I made an array that equals the instance name of my frames?

View 1 Replies

ActionScript 2.0 :: On(release): Displaying A Movieclip -> Waiting -> Jumping To Frame

Oct 8, 2011

DISCLAIMER I've just started to learn flash to fulfill a class assigment. This problem probably has a very easy answer, but I can't find it and now I'm getting close to my deadline.

PROLOGUE The title describes what actions I'm trying to put in a button. I'm making a quiz. Each keyframe has a pic and 4 buttons. The correct answer should show a green V onscreen; the wrong answer should show a red X. After one second, it jumps to a new question in a new keyframe. I've made the X and V as both 12-frame movieclips and 1-frame graphics on the library, but can't seem to make them show up correctly.

1st issue: showing the movie clip/graphic. The movieclip/graphic should appear in the center of the stage *after* you press the button. Currently, the clip is there from the start; can't find a way to make it start invisible, then visible when I click the button. 2nd issue: waiting 1 second before going to next frame.I've tried using setInterval, but failed. Maybe the best way is to use a command that waits for the movieclip to play before making the jump?

[Code]...

View 6 Replies

ActionScript 1/2 :: Good Video Tutorial To Make A Button Goto And Play On Release?

Dec 30, 2009

Anyone know a good video tutorial to make a button goto and play on release?

View 5 Replies

IDE :: Movieclip - Make A Button Access A URL On Release?

Apr 30, 2009

I know you can use the following code to make a button access a URL on release:

[Code]...

Just wondering if there is any other code or actionscript you can put on a movie clip so that on release, it accomplished the same thing?

View 6 Replies

ActionScript 2.0 :: Put A Condition On The Button Event On (release) To Check Which Frame Of The Movie Symbol Is Stopped?

Mar 16, 2009

i want to put a condition on the button event on (release) to check which frame of the movie symbol is stopped. something like if(frame 3 is stoped) gotoAndPlay(14).

View 3 Replies

ActionScript 2.0 :: Navigate To A Completely Different Movieclip On Release Of The Button ?

Jan 12, 2012

on release of the button, how do I navigate to a completely different movie clip? so I know about _parent and _root in terms of moving between layers but say I wanted the press of a button to gotoAndStop(2); inside a different movie clip that is not parented or on the _root?

View 2 Replies

ActionScript 2.0 :: Bi-lingual Pathway - Call Up A MovieClip To Play From Frame 10, And Not Frame 1?

Mar 8, 2005

I'd like my Flash site to be bi-lingual. What I have currently is a Flash movie with an empty Movie Clip which then allows users to go from movie to movie. The movies are all small movieClips that are loaded into the empty movieclip on demand. There is some video and text in each of the 30 movieClips.
Here is sample of code that i'm using to call up next MovieClip.

[Code]...

My solution for the bilingual version is to create a separate frame with the French version + video and then when user presses the French button they are directed to that frame. This way I could easily create the French text within the one movie. however i don't know the Actionscript code to call up a movieClip to play from frame 10, and not frame 1.

View 3 Replies

ActionScript 2.0 :: Tell _root To Goto Frame And Then Play Certain Frame Of Movieclip?

May 7, 2006

When you click a button I want my flash to go to the frame label where the movie clip is located, and then play a certain frame of that movie clip.

View 5 Replies

CS3 Delay - Button To Play Frame 10 To 40 Then After Playing From Frame 10-40 The Movie Stops

Jul 3, 2010

how to code this on a button

onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);

the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100

View 4 Replies

ActionScript 2.0 :: Button Play A Frame And When It's Stopped Jump To Another Frame

Sep 6, 2011

I built a button in one of the movie clips in my project,

when I release this button, it goes to the 41st frame of the main timeline and continue to play until the frame 70 which has got a stop; command. till here everything's just OK. But I want this button to do something more though I don't know whether it's possible or not.

I want this button to go and play the frame number 41 in the main timeline, and then after it stopped at the frame 70 , then jump to frame 73.

View 5 Replies

ActionScript 3.0 :: From Button Click Event - Play To Certain Frame Then Go To Another Frame

May 25, 2011

I have a small flash site made up of a number of pages all on the one timeline.

The query is this. When i release a button i want the timeline to roll on for x frames (fading components out) before going to the frame that button links to (The beginning of the new page).

I have no idea what AS to use for this.

No matter where in the timeline you are, the button should fade out that area and then skip to a new one.

View 2 Replies

Flash :: MovieClip To Play From Frame 5 To Frame 30 And Then Stop?

Aug 1, 2011

I want my MovieClip to play from frame 5 to frame 30 and then stop. How can I do this?

View 5 Replies

ActionScript 3.0 :: Go To A Frame And Play A Certain Frame In A Movieclip?

Aug 11, 2008

This may be a really simple question but I'm trying to go to a frame on the timeline which has a movieClip object in it and then goto a specific frame in that movieClip and I can't figure out how to code it. I thought something like:

gotoAndPlay("movieClipframe");
this.theMovieClip.gotoAndPlay("theFrame");

but I get a null reference error.Does anybody know what I'm doing wrong or if I'm?

View 6 Replies

ActionScript 3.0 :: Play Button - Frame By Frame?

Oct 18, 2010

What I'm trying to do is play 5 frames all attached with short audio wav files one right after another. I want to be able to press play for each frame.When I insert either of these codes:

Code:
play_btn.addEventListener(MouseEvent.CLICK, playSound);
}
function playSound(event:MouseEvent):void

[code]....

The video goes straight to playing the frame 1 wav sound file I have there, then when I press the button it rushes through the rest of the sound files in the rest of the frames and starts back at frame 1.Am I missing a code that I need to insert into the other frames, or am I using the wrong coding?

View 1 Replies

ActionScript 2.0 :: Play Frame In Movieclip From Other Movieclip?

Mar 29, 2011

I was asking button to go to a movie clip on the main timeline that had a stop frame at the beggining. Flash won't do this because it doesn't recognise anything past a stop frame and used _parent instead of _root

code on the button:

on (release) {
_global.destination_detail = "first"
_parent._parent.gotoAndStop("content_mc");
}

And in the stop frame that's at the beginning of the movieclip that contans my content:

content_mc.gotoAndStop(_global.destination_detail) ;
stop();

So I've created a variable: destination_detail

View 4 Replies

ActionScript 2.0 :: Play Frame In Movieclip From Other Movieclip

Mar 29, 2011

I can't see how this isn't working:[code]The button with this funtion is nested within a movieclip on the main timeline.'content_mc' is the instance name of a movie clip on the main timeline that contains frame label "1". I want to play frame label one by clicking on this button.

View 8 Replies

IDE :: Play Movieclip Then Go To Next Frame?

Dec 5, 2009

I've a movieclip at frame 1, I want this to play and when it's finished i want to go automatically to frame 2, I've a movieclip their too, I want it to play and when it's finished i want to go automatically to frame 3 and so on.

View 3 Replies

ActionScript 2.0 :: Play MovieClip Then Go To Next Frame?

Dec 5, 2009

I've a movieclip at frame 1, I want this to play and when it's finished I want to go automatically to frame 2, I've a movieclip their too, I want it to play and when it's finished I want to go automatically to frame 3 and so on.

View 1 Replies

IDE :: Play Movieclip On Enter Frame?

Mar 16, 2009

I am trying to play a simple movie clip when the playhead gets to a frame label called "home". The moveclip is called "playRollClick". I am trying to write this in as3.

The code below is what I've come up with so far, but it doesn't seem to work.

addEventListener(Event.ENTER_FRAME,playRollClick);
function playRollClick(event:Event) {
rollClick_mc.play();
}

View 1 Replies







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