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


Similar Posts:


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

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

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

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

ActionScript 3.0 :: Play The Movieclip, Then Pause It On The Last Frame?

Aug 27, 2011

i have a swf with a movie clip in it (38 static image frames long)on loading of the swf i would like to play the movieclip, then pause it on the last frame for 1 second then play the frames in reverse then pause it on the first frame for 1 seond and then play the frames in correct order ETC ETC ETC

View 1 Replies

Flash :: Play A Movieclip Then Go To A Different Frame For Each Buttons?

Apr 13, 2011

I have 10 buttons on my homepage and I want to play the same movieclip when you click on a button and after that move to a specific frame for each different button.

Someone know an easy to make this without having to create 10 differents movieclips just to change the action at the end of the movieclip?

View 1 Replies

Make A Frame Become Visible And Play / When Click On A Movieclip

Apr 27, 2009

This time I'm experimenting with visibility. All the tutorials online vary a lot. I'm trying to find something noob proof. I have actionscript 2 and 3. I'm not sure which one to use..I'm just trying to learn how to make a frame become visible and Play when I click on a movieclip.

View 5 Replies

ActionScript 1/2 :: Play Movieclip Once Finished Move To Next Frame?

Jul 3, 2009

The problem I have is that I have created a Movie clip of an animated logo. The timeline within the movieclip contains 163 frames.

I have placed the movie clip on the main timeline at frame 1. What I would like to happen is the movie clip to the play all the way through and then move to the next frame (frame 2) of the main timeline to continue the animation. the next frame has a frame label, named 'main'. I have split the timeline up into sections as I am created a webpage.

There must be a pretty straight forward Actionscript code to do this, I have come across some things but they dont seem to make  much sense to me. I am pretty good at the drawing and animation side of things in flash but I complete newbie when it comes to the Actionscript code.

View 5 Replies

ActionScript 3.0 :: Use Frame Labels To Play Some Part Of MovieClip?

Jan 29, 2010

I now how to use frame labels to play some part of MovieClip:

mc.gotoAndPlay("label1");

but is it possible to acces to frames INSIDE labels? i mean, i need gotoAndStop(25) (25 is last frame of that label)i only know this dont work:

Code:
mc.("label1").gotoAndStop(25);

View 4 Replies

ActionScript 3.0 :: How To Play MovieClip To Frame Number Then Stop

Jun 10, 2009

I have a movie clip that loads variables from an XML file. One of those variables is a number between 1 and 100. I have an movie clip file of a "speedometer" that has a needle. The needle is set with a motion tween between frame #1 and frame #100. The number in the XML file is, currently, set to "gotoAndStop" to the corresponding frame # in the speedometer movie clip. What I want to do is for the speedometer to "play" and THEN stop at the frame # that corresponds to what the XML is feeding it. All of this happens "on load". There is no "button" that activates it.

Here's the code I have for the parsing the XML into the speedometer. This is working. I just want it to "play" then "stop".
Code:
var SideGRAPH_01_01:XMLList=contentINPUT_01.StudentRptItemDetailDefinitions.StudentRptItemDetailDefinition.(@StudentRptItemDetailID=="5").(@Seq=="1").attribute("Value");
for each (var GRAPHElement_01_01:XML in SideGRAPH_01_01) {
MovieClip(root).page_01.dashboard.speedometer.gotoAndStop(GRAPHElement_01_01);
}

View 10 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 3.0 :: Movieclip Jumps To And Play Another Frame When Press A Certain Keycombination

Apr 29, 2009

i'm looking for a code for a keycombmanager in AS3, if anyone have played the advergame from cokezero, you have to press a certain keycombination the movieclip kind of jumps to and play another frame, that's the kind of kombination i'm looking for. [URL]

View 1 Replies

ActionScript 2.0 :: GoTo A Frame In A Movie Clip From Another Movieclip And Play?

May 18, 2005

What is the actionscript if i want to go to a frame in a movie clip from another movieclip? And also for future reference, how do you go to a frame from a movieclip/button to a frame in the main scene? Is it something to do with root?

View 5 Replies

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

Dec 2, 2010

Ive had a search through quite a few forums and message boards but havent quite been able to pin down what I need to do. I'm working in flash cs5 and using AS3

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. Hopefully i've explained it ok...

View 4 Replies

ActionScript 3.0 :: Make Buttons Within A Movieclip Play From A Specific Frame In Scene 1?

Aug 30, 2011

I have a movie clip on the main timeline. This movieclip has buttons that I want to play different frames in scene 1.
 
At the moment, this is the code I'm using in scene 1.
 
[Code]...
 
I'm getting the error below but have no idea what I should be doing.
 
[Code]...

View 3 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 3.0 :: Play MovieClip On User Click And Stop At Specific Frame?

Sep 16, 2009

I'm using Flash CS4 with AS3. I'm building a website for a friend the problem I have. When a user clicks on a button I want it to play a movie clip then stop at a specfic frame. I want all the buttons to play the same movieclip but go to a different frame.

The current actionscript I am using is located on frame 1 is:
home_btn.addEventListener(MouseEvent.CLICK, homebuttonClicked);
function homebuttonClicked(event:MouseEvent):void{
gotoAndStop(0)
}about_btn.addEventListener(MouseEvent.CLICK, aboutbuttonClicked);
function aboutbuttonClicked(event:MouseEvent):void {
gotoAndStop("aboutme")
[Code] .....

This allows me to navigate to the right frame but does not play for obvious reasons, if I use the gotoAndPlay function its carries on playing to the end of the movie.

View 2 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 :: Detect The MovieClip Playhead That Is In Play() Condition Or Stop() In One Frame?

Feb 23, 2009

How to detect the MovieClip playhead that is in play() condition or stop() in one frame?

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

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

ActionScript 3.0 :: Event Listener - When The Mouse Rollsover The Movieclip To Go To Frame 3 Of The Movieclip

Mar 4, 2009

i've not tried to do anything odd with eventListeners up until now. i have a movieclip with multiple frames that i use AS to attach a textfield to it. problem is i have a eventlistener for when the mouse rollsover the movieclip to go to frame 3 of the movieclip.

[Code]...

what's causing the textfield to suddenly take precedence and how do i stop it. when i trace the evt.target - it is my movieclip.

View 5 Replies

ActionScript 3.0 :: Hiding A Movieclip On Stage From Inside A Movieclip Frame Action

May 4, 2011

I have the scenario below. I have a movieclip on the stage (root). Inside this movieclip I have a frame with the action below:

_root.MCHappy.visible = false;
_root.MCSad.visible = false;
_root.MCNormal.visible = true;

I cant get this working with AS3. How is the correct way to do that inside a MovieClip with AS3?

View 6 Replies

ActionScript 3.0 :: Get A Button Inside A Movieclip Link To A Frame In Another Movieclip On The Scene?

Feb 16, 2010

How can I get a button inside a movieclip link to a frame in another movieclip on the scene? I tried this code:

function gotoCenter(event:MouseEvent):void {
MovieClip(root).centermc.gotoAndPlay(2);
}
skruetest.addEventListener(MouseEvent.CLICK, gotoCenter);

..where "skruetest" is the button, "centermc" is the movieclip where I want to go to frame 2. I don�t get errors with this code, but nothing happens when I click the button. What can I do?

View 4 Replies

ActionScript 3.0 :: Button Code Play MovieClip Within A MovieClip?

Jun 18, 2010

Can a button play a movieclip if it lives within another movieclip? Let me explain: Buttons in a map key ran route animations on the map. Code for button (accessed by selecting button and F9) ..reads : on (release) { gotoAndPlay("BusRoute_375");}

[Code]...

All layers and consequently all route movieClips that relate to the map as well as the stop codes for the individual route animations now reside within that MovieClip which sits on a new layer above the map key layer. However, the key buttons no longer run the route animations. What should be done so that when clicked they still play the route MovieClips. Its like the button code cant see the layers it once refered to, now that they are in a movieclip.

View 5 Replies







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