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


Similar Posts:


IDE :: Linking Buttons - Return To Frame 1 On The Main Timeline?

Apr 27, 2009

im creating a character sheet and all i have to do is get the character to do a few things, im using Stan from american dad, so he draws his gun, salutes, and does this guns speech, only problem is. i can get him to salute by using the code

on(release){
gotoAndPlay("2");
}

this links fine, the salute is in a movieclip on frame 2 of the timeline, and the button is set to link to this.problem starts after the movieclip finishes playing, how to return to frame 1 on the main timeline, ive tried gotoAndStop("1") amongst other things (gotoAndStop ("Scene 1", 1)ive also tried frameLables too but that didnt work, though im not sure if i was doing that right to start with.Then im having a problem with my other buttons, even when set to on(release){gotoAndPlay("3");} they still go to frame 2 (with salute on)

View 2 Replies

ActionScript 2.0 :: Return To Main Timeline When MovieClip Finished

Dec 10, 2002

I am in a movieclip, on the 1st frame of my main timeline. Once my movieclip has reached a point/finished, I would like return to the main timeline.

View 16 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 2.0 :: Dilemma - Get Loaded In Swf To Goto Frame Label On Main Timeline?

Oct 21, 2005

I have a button that is loaded into my main movie at level 2. in my main movie on the timeline I have a frame label called guestbook. I want my button, when released to go to trigger the frame label. on my button i have the script:

on (release) {
_root.gotoAndStop("guestbook");
}

Obvously this does not work because it references the wrong timeline so i tried:

on (release) {
_parent.gotoAndStop("guestbook");
}

thinking that somehow it would see the parent swf and work - haha - me and my dumb ideas of course it doesnt work.do you know how i can get it to work. Perhaps i should mention that the button that loads in at level 2 is inside a movie clip (for reasons of animation)

View 1 Replies

Actionscript 3.0 :: Controlling Main Timeline From A Loaded MovieClip?

Mar 17, 2009

I am building a website in as3. As of now this is what I have. My main file has a button on it and builds a movieclip to hold loaded movieclips.

The file runs and loads about.swf into the main file. When the button is pressed it tells about.swf to play the exit animation.

All of that is working. What I want to happen now is once the exit animation finishes I want the about.swf file to tell the main timeline to load a new movie.

I can control loaded movieclips from the main timeline I just do not know how to control the main timeline from loaded movieclips.

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

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

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

ActionScript 2.0 :: Get ._currentframe And Return As Number?

Apr 4, 2011

Working on a linear movie and I want to do dynamic page numbers, i.e. when on the page, display that you are on page "x" of "xtotal" I created a dynamic text box, and tried to set it equal to ._currentframe, but that didn't work. Is there a way to do this?

View 2 Replies

ActionScript 2.0 :: _currentframe Not Working - Movieclip To Reach Frame And Then Jump To "organos De Gobierno"

Dec 2, 2009

I have this code

[CODE]...

I need ohm movieclip to reach frame 25 and then jump to "organos de gobierno", but although it is stopped at frame 25, it does not do the jump to the other frame.

View 2 Replies

ActionScript 3.0 :: Return From Loaded Swf To Main?

Mar 13, 2012

I have some swfs that i want to combine: I have the main.swf that containes buttons, and i want each button to lead to an external swf. I have already done that.What i dont know is how to return to  main.swf. I want all external swfs to have a button called "Back to menu" and go back to main.swf

View 3 Replies

ActionScript 3.0 :: Flash Return Values From External File To Main Timeline?

Jan 11, 2011

I have just started using external AS3 files to try wean myself off using code in the main time line.I am importing an XML file using an external as3 file, but cant return the values to the main timelineIt worked when I used the trace option, but I need these values to dynamicly populate a movieclip on stage (another problem I cant add movie clip to stage even though I have the linkage etc)AS3 Code ----------------------------------

package com.teamSelection
{
import flash.display.DisplayObjectContainer;

[code].....

View 4 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 :: Return Timeline Play To Frame 1 And Stay There?

Jun 18, 2010

I have a stop play button but it freezes play as opposed to what I require which is returning cursor to frame 1 to then await the next button click when an animation would play again.I currently have code for the button as :-
 
on (release) {stopMovies(this);function stopMovies(mov:MovieClip) {for (movs in mov) {if (typeof (mov[movs]) == "movieclip") {mov[movs].stop();stopMovies(mov[movs]);}}}}

View 3 Replies

ActionScript 3.0 :: "gotoAndStop" On A Frame In A Nested Timeline From The Main Timeline?

Aug 9, 2010

I am trying to "gotoAndStop" on a frame in a nested timeline from the main timeline, but can't seem to figure out the correct way to write it with it's 'parents' etc... this is how I have tried which makes sense to me (have tried other ways too) but no success.
 
gotoAndStop(parent."framename");

View 3 Replies

IDE :: Go To Previous Frame Of Main Timeline?

Apr 22, 2009

So I have a frame labeled 'init' and a button called _exit. I want _exit on click to keep going back until it reaches 'init'

I'm guessing something like this but it doesn't work:

[AS]_exit.addEventListener(MouseEvent.CLICK , function(e:Event):void
{
if(currentFrame!='init'){
gotoAndPlay(currentFrame-1)
}
});
[/AS]

View 1 Replies

ActionScript 3.0 :: Go To Frame In The Main Timeline?

Aug 27, 2009

How do you go to a frame in the main timeline?I tried stage.gotoAndStop(2); but that did not work.

View 4 Replies

ActionScript 3.0 :: Controlling Main Timeline From Loaded SWF

Nov 2, 2010

I have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu I'm able to navigateToURL but I also need that it goes to frame 50 in menu.swf.

View 1 Replies

ActionScript 3.0 :: Referencing The Main Timeline From A Loaded Swf?

Jun 14, 2009

I just poked around google as well as these forums, but the only answer I am seeing that was successful, is from kglad, and for some reason his posts are not showingAnyway, I am just trying to figure how to reference a frame label on my main timeline from a loaded swf (through my imageLoader).

View 4 Replies

ActionScript 1/2 :: Getting Back To Main Timeline In Loaded Ext. SWF

Jul 7, 2009

I have a project I'm working on where the user is presented with an overhead shot of a building and is able to mouse-over the different rooms to choose one to "enter." Once clicked, the chosen room is an external .SWF that is loaded that has options to view other external .SWFs within that room. Problem is, within the first loaded .SWF, I have a "home" button that is supposed to take the viewer back to the main overhead view but I can't get the AS to work. I've tried _parent and _root with no luck (not sure I even typed out right code).

View 29 Replies







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