ActionScript 1/2 :: Jumping From Main Timeline To A Specific Frame Of A MovieClip?

Apr 6, 2010

The situation is as follows:I'm using Action Script 2.0 --- I'm obligated to in the course I'm attending.I have a main timeline that has 3 frames. On the 2nd frame I have a movieclip named mc_nbr. On the 3rd frame I have a button "voltar" that when pressed I want it to "Go and Stop/Play" at frame 3 of the movieclip (that is embedded on frame 2 of the main timeline).

I used the folowing code for the button btn_voltar:
on (press)
{

[code]......

View 2 Replies


Similar Posts:


ActionScript 3.0 :: External SWF - Jumping To Frame Of Main Timeline

Aug 10, 2011

I have an external swf (is is an intro, nade in aftereffects)..and it loads in the main timeline of the site with a preloader. Everything is ok, but, when the intro in done plating. It stops and I want do see de site. I mean from the last frame of the external swf, I want to jump to the second frame of the main timeline.

Here is the script:
stop();
var req:URLRequest = new URLRequest("intro.swf");
var loader:Loader = new Loader();
function fileLoaded(event:Event):void{
addChild(loader);
[Code] .....

View 2 Replies

ActionScript 1/2 :: Pausing The Movieclip And Jumping To Frame 2 On The Timeline?

Mar 24, 2011

I tried to get this right but it just won't work for me. It's probably something very simple. I have a video in a movieclip on my timeline. On the first frame, I have the stop(); command. I want to be able to hit the SPACEBAR: which results in pausing the movieclip and jumping to frame 2 on the timeline.

View 8 Replies

ActionScript 2.0 :: Pausing The Movieclip And Jumping To Frame 2 On The Timeline?

Mar 24, 2011

I tried to get this right but it just won't work for me. It's probably something very simple. I have a video in a movieclip on my timeline. On the first frame, I have the stop(); command. I want to be able to hit the SPACEBAR: which results in pausing the movieclip and jumping to frame 2 on the timeline.

View 4 Replies

ActionScript 2.0 :: Hit The SPACEBAR: Which Results In Pausing The Movieclip And Jumping To Frame 2 On The Timeline

Mar 24, 2011

I have a video in a movieclip on my timeline. On the first frame, I have the stop(); command. I want to be able to hit the SPACEBAR: which results in pausing the movieclip and jumping to frame 2 on the timeline.

View 1 Replies

Flex :: Make A Button Go To A Specific Frame On The Main Timeline?

Sep 13, 2010

how to make a button go to a specific frame on the main timeline my button called a play_btn and i want it to go to a specific frame on the main timeline ???

View 2 Replies

ActionScript 3.0 :: Main Timeline Control - GotoAndPlay Specific Frame

Oct 15, 2009

I want a button which is on an externally loaded swf to tell a movieclip on my main swf to gotoand play a specific frame. Is this possible and how would I do it?

View 0 Replies

ActionScript 3.0 :: Button - Move The Main Timeline To A Specific Frame

Jan 12, 2011

I have this code below on this button that is inside of a movieclip. I just want this button to do is move the main timeline to a specific frame thats all.

[Code]...

I didnt put i a object name before the addeventlistener because I'm not sure what to put because if I put "this" the other buttons will bt controlled by this code and if i put "parent" only that button will work.

View 7 Replies

ActionScript 2.0 :: Currentframe - Send Movie Clip To A Specific Frame On The Main Timeline When Close

Jun 25, 2006

I have a movie clip which, when closed, should send you to a specific frame on the main timeline... I have used frame labels on the main timeline... Here is a bit of my code so far:

[Code]...

View 5 Replies

ActionScript 3.0 :: Jumping To Label In Main Timeline?

Apr 29, 2011

I am trying to make a button jump to a label in the main timeline from within a movieclip but I dont think i have the syntax etc correct. I'm getting "access of undefined property _root" when I run the following code. Any ideas what I'm doing wrong here? heres the code..

menuButton_IN.pHome_IN.addEventListener(MouseEvent .MOUSE_DOWN, onPressHandler);
function onPressHandler(myEvent:MouseEvent){
_root.gotoAndPlay ("home");

[code]......

View 2 Replies

ActionScript 2.0 :: [Flash8] Assign A Variable To The Current Frame Of The Main Timeline (not Movieclip Timeline)?

Mar 16, 2007

I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.

View 4 Replies

Professional :: Moving To A Frame In Movieclip Timeline From The Main Timeline

Apr 26, 2011

I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.

[Code]...

View 1 Replies

ActionScript 1/2 :: Clip Jumping Back To Main Timeline Even After LoadClip()?

Jul 26, 2010

On the last frame of my swf, I placed a loadClip("filename.swf", fileholder); using a MovieClipLoader object. Now it is successfully loading the external swf, I can see it, but it immediately jumps back to the first frame of the parent swf. Why is this happening?I have placed the fileholder movieclip in the same frame. Also, the moviecliploader code is not inside any container, it is just placed into the actions section as is, starting with moviecliploader declaration.

View 5 Replies

ActionScript 3.0 :: Middle Frame Of A Movieclip In Main Timeline?

Mar 5, 2010

chimera-studio.com/misery.fla Any ideas as to why this won't work?? It's such a simple concept...

I have this code on the middle frame of a movieclip in my main timeline. When the nav buttons are pressed they play an animation and report their names to a variable called "navigation" that's declared in the first frame of the main timeline.

[Code]...

View 1 Replies

ActionScript 3.0 :: Main Timeline - Running MovieClip On Next Frame

Nov 8, 2010

I have 6 frames on the main timeline each with a different movieclip. Is it possible that when one movie clips finishes running it will go to he next frame on the maintime line and run the next movieclip on the next frame with AS3?

View 2 Replies

ActionScript 3.0 :: Access Movieclip On Different Frame Of Main Timeline?

May 21, 2009

I have two frames in the timeline of my flash file. On frame 1 there is a movie clip. How can I access this movie clip with code located in frame 2?

It doesn't matter whether the mc is already placed on the stage or is added dynamically from the Library - I just need to access the alpha property. I can provide a more detailed description of my file if needed.

View 3 Replies

ActionScript 3.0 :: OnEnterFrame - MovieClip Sitting On The First Frame Of Main Timeline

Apr 19, 2011

I have a movieClip sitting on the first frame of my main timeline. When it gets to the last fram of the movieClip, I want it to go and play frame 2 of the main timeline. I have this code on the last frame of my movieClip:

[Code]....

It actually doesn't throw it just once, it keeps throwing it as long as my preview window is open. As if it just keeps hitting that frame repeatedly. Am I doing this correctly? Or is there a better way to do it in AS3?

View 5 Replies

Professional :: Creating Button On Main Timeline To Go To Frame In MovieClip

Feb 5, 2010

In AS2 I need code for a button, on the main timeline, to go to a frame in a mc off the main time line. I have attached a picture of the time lines in case I have not articulated my needs well.

View 5 Replies

Actionscript 3.0 :: Link From Main Timeline To A Frame Inside A Movieclip?

Apr 9, 2009

I make a website. First I have a frame with a movieclip, where my entire page is within.Inside of that is where all of my pages is in different frames, and in each of these frames there are other movieclips with content. My example:Top level /Entire site/My pages, in different frames /Movies/Pictures/About/Etc./Content (inside the "Movies") /Info about movies/Movie one/Movie two/Etc./My problem is as easy as this: I will link from the "My pages" level, to the first frame in "Content" (info about movies)If i just link to the, "Movies" frame, I can't get from "Movie One" to Info about movies by pressing the button, wich lies on the "My pages" Level.

View 4 Replies

IDE :: _currentframe From Loaded Swf Movieclip Return Main Timeline's Frame

Jan 9, 2009

My script have a list of .swf files and needs to play them one by one. My problem is that i can't detect when the movieclip (containing the swf) completes playing.

I understood that i need to copmare between _currentframe and _totalframes of the moviecip but i keep getting 1 as the _currentframe (my main timeline contains only 1 frame).

Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
var container:MovieClip =

[Code]....

View 4 Replies

ActionScript 2.0 :: Buttons - Makes A Movieclip In The Main Timeline Go To The Prevous Frame?

May 18, 2005

I have abutton that makes a movieclip in the main timeline go to the prevous frame... but it doeasn't work.

on(release){
_root.pregunticas.gotoAndStop(prevFrame);
}

View 3 Replies

ActionScript 2.0 :: Link A Button Thats Embedded In Frame 2 (music Page Timeline) To A Frame In The Main Timeline?

Nov 22, 2011

How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.

View 1 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 :: Code The Button Inside The Movieclip To GotoAndPlay To Frame 1 On The Main Timeline?

May 11, 2011

ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?

[Code]...

View 4 Replies

Flash 10 :: Export Specific Frames Not All Frame - Specific Timeline

Sep 15, 2010

how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.

View 0 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 3.0 :: Execute Functions In Main Document Class When Main Timeline Reaches Frame X

Oct 16, 2009

I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?

see the code and comments

public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;

[Code]....

View 5 Replies

ActionScript 3.0 :: Get Back To A Specific Label In Main Timeline?

Jun 26, 2009

In the main timeline I have several movie clips, buttons and labels that navigate to the appropriate mc's. Inside the movie clip I have a button that will send you back to the main timeline and the appropriate label. I thought that would be relatively easy but it's not working.[code]...

View 2 Replies

ActionScript 1/2 :: Specific Frame On A Specific Movieclip?

Sep 1, 2010

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) {  _root.gotoAndPlay("cont");  _root.smallbutton.gotoAndPlay(5);

View 7 Replies

ActionScript 3.0 :: GotoAndPlay Specific Frame In External Swf From Main Swf?

Jul 27, 2011

I have a main swf that loads 2 external swfs. I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)

In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff. NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.

However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.

[Code]...

View 9 Replies







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