ActionScript 2.0 :: Leaving And Embedded Time Line To Main Time Line

Mar 25, 2010

My issue is that for my website I want there to be movies in between the interactive parts of it where the interfaces slide in and out. However, I can't stop a movie from playing over and over instead of playing once and going to the next frame.With 2.0 I haven't been able to find any research that helps me, probably because I don't know the correct keywords to search for.Right now I have my main time line set up with a loading bar on frames 1 & 2, that then jumps to frame 3 where I have embedded a movie (Instance named: mc_start) of the interface sliding in. Preferably after that I need it to jump to frame 4 where the actual interface is.

I can get the movie to end by going into the embedded movie's time line and simply have stop() ; at the final frame, but I can't get it to go to frame 4 on the main time line. If I having something like gotoAndPlay(4) ; on the final frame of the embedded movie's time line, it simply goes to frame 4 of the embedded time line and not frame 4 of the main time line. If there was a command to make it jump back to the main time line instead of the embedded time line, that would work perfectly.Coding on Frame 3 of the main time line to jump to Frame 4 would work if I knew the correct language to detect when the movie has ended (Movie is 191 frames long), so that afterwards it would immediately jump to Frame 4, but I haven't been able to find any resources that will teach me how to do it. Right now having gotoAndPlay(4) ; on Frame 3 of the main time line obviously makes it immediately skip the movie on Frame 3 and jump to Frame 4.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Control A Movieclip Time Line From The Main Time Line?

May 15, 2011

What I have is a movieclip and a button in scene 1 (which is the main timeline).There is an actionscript layer also on the main timeline. what I want to do is when I click the button, it would do a nextFrame(); in the movieclip timeline instead of the main timeline.

View 4 Replies

IDE :: Target Main Time Line From Within Mc?

Apr 14, 2009

how to return to the main time line from within my movie clip. I thought it was something like _root.gotoAndPlay(4); but all I'm getting is errors.

View 1 Replies

ActionScript 3.0 :: Go Back To Main Time Line?

Nov 15, 2009

How do i refer back to a dynamic text box on the main stage?

View 1 Replies

ActionScript 3.0 :: How To Pause Main Time Line

Apr 18, 2011

I was wondering how I might pause my main time line with AS3, currently I'm using the following code for AS2 and it does exactly what I need it to do.[code]

View 3 Replies

Call Functions On The Main Timeline, From A Different Time Line?

Jul 14, 2009

so here's the function on main stage:

function slideImage(btnNum:Number)
{
trace("scrolling image");
trace(btnNum);

[Code].....

How can i acess slideImage function on the main stage. in AS2 _root.slideImage(btnNumber); would work. How Would I do this in AS3?

View 3 Replies

ActionScript 3.0 :: FLV Videos Playing On My Main Time Line?

Sep 24, 2009

I have three FLV videos playing on my main time line.they are each set to auto play and the are each on individual frames.lets say frame 30-31 and 32.how do I have the video stop playing once it detects that the user clicked out of that frame?my problem is the video or I guess it's just the audio keep on playing even though I am already viewing some other page.

View 2 Replies

ActionScript 3.0 :: Reaching The Stage (the Main Time Line) From Anywhere?

Aug 25, 2008

is there a way to reach the stage (the main time line) from ANYWHERE.In AS2 it was _root...The aim is : I want to add on stage an MC from within a class. As expected, addChild(mc) doesn't work, it adds the child to my class, not to the stage. So : is there any stage.addChild(mc) or MainTimeLine.addChild(mc) or anything like this ?The other way is to add the class on stage addChild(MyClassName).

View 12 Replies

ActionScript 3.0 :: Access Main Time Line From Class?

Feb 12, 2009

document class

Code:
package pages
{
import flash.display.*;
import flash.events.*;

[Code].....

the highlighted function is what i need to be working but it isnt.. have no idea whats going on... i basically need to jump between frames on the root timeline (superMain)

View 1 Replies

ActionScript 3.0 :: Access A Var From The Main Time Line In To A Movieclip?

May 19, 2009

I'm making a quiz-type animation, since I'm new with ActionScript I had developed my own way to make this work. I want to add like a meter that shows one out three position depending on the answer given, I had made this animation as a movieclip but now I need it to react according to the answer, so it changes on every question to do that I need to access the variables I'm using in the main time line, how can I access the the main time line variables from the movie clip? The movie clip (meter) is basically the background and the questions will change and advance on top of that movie clip so it'll change with each answer until you get the final result.

View 12 Replies

ActionScript 3.0 :: Target A Timer That Is Declared On The Main Time Line?

Dec 10, 2009

So here's the run down. I'm trying to target a timer that is declared on the main time line (frame1) from within a movieclip. So here is the code for the timer on the main timeline:

ActionScript Code:
var timer1:Timer = new Timer(1000);
timer1.addEventListener(TimerEvent.TIMER, timedFunc1);
timer1.start();

The name of the movieclip is ssRightMask_mc. I'm trying to get the currentCount from timer1, but I'm having some targeting issues. I've tried:

[Code]...

View 7 Replies

ActionScript 3.0 :: Way Of Text Field Are Targeting Is On Main Time Line?

Feb 2, 2010

I received an AS file from an outside source and I want to understand the what MovieClip(root) is doing? I know there is a movieClip on the stage called "field" and with in it a dynamic text field called "txt" and that this text field is being tied into a css class. But I don't quite get the MovieClip(root) part.Is this just a way of saying that the text field you are targeting is on the main time line? [code]

View 9 Replies

ActionScript 3.0 :: Load And Control Swf Files In Main Time Line?

Jun 27, 2011

I need to load an into and exit .swf files into my project. I have the code to load the swf but it is an animation (with sound) and it continues to loop. What I need it to do is play once then move (and stop) on the next frame of the main timeline. [code]...

View 6 Replies

ActionScript 2.0 :: Put A Series Of Movie Clips On The Main Time Line

Jun 24, 2004

I'm making a movie w/ no interactivity and I want to put a series of movie clips on the main time line, each to play after the previous movie clip is done. The only way I can make it work is to put the movie clips in keyframes and then allow all all the frames for the movie to play. My movie is way too long and I know there has to be a better way! I'm trying to figure out the action to assign to the keyframe that will play the movie clip within that one frame and when it's done, go on to the next movie clip.

View 1 Replies

Actionscript 3 :: Attach Movieclips In A Movieclip From Main Time Line Dynamically?

Feb 15, 2012

I've a movieClip called "picChange" and inside that movieClip, there is another movieClip called "picFrame" and inside that movieClip there are three movieClips called "HolderL1", "HolderL2", "HolderL3". I use these 3 movieClips to attach movieClips(questions for game) from library. I put movieClip inside movieClip to add some animation while it loads. I used following code:

for(var i:int = 0; i<3; i++) {
var pic_mc:String = "picLeft" + ranque[i];
var que_mc_class:Class = getDefinitionByName(pic_mc) as Class;

[code].....

View 2 Replies

ActionScript 3.0 :: Using Child Navigation To Load AddChild Main Time Line

Jan 23, 2009

Using Child Navigation to load main time line.I am new to AS3 and have done pretty well but have been caught up this area.I have been loading swfs into a loader (imageLoader) which has been added to the stage using addChild. Then with buttons and functions I load other swfs into the same loader which replace each other. I now have an swf "testProject3a.swf" loaded into (imageLoader) which has icons for navigation and when each icon is clicked I need it to load another swf into (imageLoader) and replace it's self "testProject3a.swf" with "portalB.swf".I've tried adding removeChild code to the loaded swf but it removes the original (imageLoader) and the other buttons have nothing to load into.[code]

View 3 Replies

ActionScript 3.0 :: Refer The Main Time Line Or Stage From Inside The Class?

Apr 13, 2009

how to refer the main time line or stage from inside the class.

class sample{
function sample(){
trace(root); // its displaying as null
}
}

in actionscript 2 we use _root for this... in actionscript3 if we use root...why its not working inside the class....?

View 1 Replies

ActionScript 3.0 :: Three FLV Movie Files That Are Places On Diffrent Frames On The Main Time Line?

Oct 5, 2009

I have three FLV movie files that are places on diffrent frames on the main time line. When the viewer clicks on diffrent buttons I send them to that specific frame by go to and stop action and the flv start playing, but if they click out of that frame by pressing another button the video still plays on the background and they can hear the audio.this doesn't hap stop the video from playing by pressing thepen if they stop button on the flv player.

View 2 Replies

Professional :: Going Back To The Main Frame, From Inside A Movie Clip Time Line?

Mar 29, 2011

In flash CS5 I want to go back to the main time line, from inside a movie clip button, so when i click the the movie clip it goes to another frame on the main time line.. 

View 5 Replies

ActionScript 2.0 :: Set Interval With In A Movie Clip Affectin Buttons On Main Time Line?

Apr 2, 2011

i'm kema and i have a problem with the setInterval and clear Interval function with in a movieclip i created.the interval seems to still be running even though it is with in a movieclip and not on the main time line. how do i stop it from affecting the buttons on the main time line. i tried applying the clearInterval function to the button on the main time line but still no change. i would be very grateful if anybody can profer a solution to this problem,

View 1 Replies

ActionScript 3.0 :: Root Timeline - Access The Main Time Line To Send It Over To The Page Services?

Nov 3, 2011

I have a label on my root timeline called "services". I have a services button inside a movie clip. How do I access the main time line to send it over to the page services? I'm using actionscript 3. Back in the day it would have been as simple as root.gotoandplay("services")

View 5 Replies

Professional :: Displaying Time - According To Time Line

Feb 15, 2011

I have a time line of 1441 frames my frameRate is 24 fps so it takes 1 minute exactly to complete the timeline animation I want to Display the Remaining time as file starts I need formula to place in ENTER_FRAME event which displays the time left

View 2 Replies

ActionScript 3.0 :: Displaying Time , According To Time Line?

Feb 15, 2011

I have a time line of 1441 framesmy frameRate is 24 fpsso it takes 1 minute exactly to complete the timeline animationI want to Display the Remaining time as file startsI need formula to place in ENTER_FRAME event which displays the time left

View 1 Replies

ActionScript 2.0 :: "duplicateMovieClip" Function - Duplicate A Line 4 Times And Move Each Line On Yaxis With A Delay Of 1sec Each Time

Nov 16, 2005

i want to duplicate a line 4 times, and move each line on Yaxis, with a delay of 1sec each time. I know i must use setinterval+duplicateMovieClip, but i've got pbs :-( actually, i've got my AS code on my line :

[Code]...

View 7 Replies

Flash :: Relationship Of Code On First Frame Of Main Time Line To Class Code And Library Objects?

Mar 27, 2011

Got to the point where the hole in my AS3 knowledge is getting large!Realising I have confusion about the relationship of:Body of code on first frame of AS3 file.(Which I have so far used to create instances of library objects using addchild and make calls to class code).Is this code called the document code? What do people call it?Numerous classes linked together by extending each other etc.Library objects (usually graphical objects)Should it be done differently? have the following problems due to lack of understanding:Addchild complicated from a class but straight forward in main body code.Cant call functions on the main body code from classes, because class code does not know the main body code exists?

View 1 Replies

ActionScript 3.0 :: Imports And Includes - Use The Imports Once In The Main Time Line?

Jul 25, 2009

My current project imports the following on the root time line

[Code]...

I then have a series of movieclips in my library that get loaded in as required at run time using addChild. In each of these movieclips I am having to use the same import commands or I get an error. Is there a way of me changing my code in some way so I only need to use the imports once in the main time line?

View 2 Replies

IDE :: If I Put Var = X In The Time Line It Comes Out Undefined?

Feb 10, 2009

AS2 on a button symbol:

on (release) {
_root.randomVar = pie
trace (_root.randomVar)[code]..........

If I put Var = X in the time line it comes out undefined, no variables seem to be working, tried it in 2x flash projects

View 8 Replies

Professional :: Sound In A Time Line?

Feb 24, 2010

I want to run a sound once in a timeline but want the sound to stop at the end of the first run on the timeline but want the timeline to continue to repeat without the sound running again.

View 3 Replies

ActionScript 3.0 :: Audio On The Time Line?

Feb 9, 2009

What I mean is, can I add a sound that will only play if there are enough frames for the sound?I want to only play on the frames that it is on, but it plays all the way through the sound file regardless of the amount of frames.

View 0 Replies

ActionScript 2.0 :: Controling MC Time Line?

Jun 14, 2006

I am wanting to control the timeline of a MC using AS. What I mean is when I click on a movie click and drag right it controls the reverses the MC and when I go left it plays it (but i only want this to happen when I click and drag).

View 7 Replies







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