ActionScript 3.0 :: Create A Holder And Use AddChild To Play Them Instead Of Jumping To The Frame Labels?

Feb 3, 2009

I'm basically creating a huge slideshow presentation for a live show. I decided to put everything into 1 huge fla/swf so that it is more manageable in the future.With AS3, I have made it so that when the user presses the right arrow key, it will seek out the requested frame label and play the next slide.This works well.However,some of the frames need to be played again in later slides.So I would prefer to reuse those frames again, instead of copying and pasting them 10 times.When I do that though,I have no way of switching to the next slide, as I've already set the nextframetoplay variable in my class.

Does anyone have a better way of doing this? Should I perhaps create the screens and just create a holder and use addChild to play them instead of jumping to the frame labels?

View 10 Replies


Similar Posts:


ActionScript 3.0 :: Using Frame Labels To Play Section Of Video?

Sep 1, 2010

what i want to do is embed a video into a flash time lime, then once it is one the time line use frame labels to play different sections of the video.everything i have tried up to now just plays the video from the beginning.

i have used a stop at the beginning on a blank key frame but i dont want it to play the video from the beginning i need it start playing from about half way in.the first half of the video is being used on a different section.

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

Frame Jumping - Click On Button 1 > Plays Frames 10 - 15 > Goes To Frame 20?

Oct 11, 2010

I have 5 different buttons for the navigation on my flash website.The first page is on frame one.When you click on any of the 5 buttons I want it to play frames 10 - 15 before moving to which ever frame the button 1-5 corresponds to. So:

Click on button 1 > plays frames 10 - 15 > Goes to frame 20
Click on button 2 > plays frames 10 - 15 > Goes to frame 30
Click on button 3 > plays frames 10 - 15 > Goes to frame 40 etc

How do I make this work?

View 3 Replies

IDE :: Jumping To A Frame Using XML

May 10, 2009

I'm adapting this iTunes coverflow style gallery for my own purpose [URL] Basically, the locations of the artwork and the URLs for when you click on a picture are stored in an XML file. Is it possible to adapt the AS or XML so that instead of opening a URL, clicking on a cover jumps to a particular frame on the timeline? Basically what I want to do is have the first and last items acting as previous and next buttons to go to a different frame on the timeline. I guess what i need to do is get the actionscript to do whatever is within and replacing that with the action I want it to perform?

View 2 Replies

ActionScript 1/2 :: Jumping From One Frame To Another?

May 4, 2010

I have a piece of code in AS3 but it doesn't work with AS2:
 
stop();
function login(event:MouseEvent):void
{
this.gotoAndPlay("first_page");

[Code]....
 
But I still have a problem. I have stops in each key frame but when I play the movie it shows directly the first_page section skipping all other frames before it.

View 4 Replies

Professional :: Tween Before Jumping To Frame?

Jun 25, 2011

I am wanting to fade out of a frame and then fade into another, and the way i was thinking of doing this was to code a tween to alpha 0 and then use the code:
 
home_btn.addEventListener(MouseEvent.CLICK, startMovieHome);
function startMovieHome(e:MouseEvent):void
{

[Code]....
 
I dont know how to ask it to tween and then go to the label "home" once the tween is complete..

View 1 Replies

ActionScript 3.0 :: Jumping To Frame And Line?

Jul 5, 2011

ok so i know you can use gotoAndPlay to jump to a different frame but how do you jump to a curtain line of code in that frame

View 7 Replies

ActionScript 3.0 :: Frame Jumping On MOUSE_OVER?

Nov 11, 2011

What I created was just a test but I can't seem to get it working. What I did was create a very small rectangle at frame 1. Created a tween and then at frame 100 made it a very large rectangle.

Then in my code I wanted the user to MOUSE_OVER something and the rectangle to ease to the length it was at frame 30. However I keep getting this error message:

ArgumentError: Error #2109: Frame label frame 30 not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/test()

Here is my code:

[CODE]
stop();
circle_mc.addEventListener(MouseEvent.MOUSE_OVER, test, false, 0, true);
circle_mc.addEventListener(MouseEvent.MOUSE_OUT, test2, false, 0, true);

[Code].....

View 5 Replies

ActionScript 2.0 :: CS3 Jumping To Frame Based On The Value In A Text Box?

Feb 23, 2011

I have a maths-based movie on which a number of points are allocated depending on the answers given to a series of multiple choice questions.

At the end of it, a person will score somewhere between 1 and 10 points depending on the answers they gave.

I have got to the stage where the system keeps track of the cumulative score, and at the conclusion, I have a text field on stage, which has an instance name of "results". When the person enters the frame, the results field displays the total number of points scored.

That is ok, but what I actually would like to happen is that the movie jumps to a different frame based on that figure, so that if they score 2, it would take them to the frame labelled "two" and if they score 9, it takes them to frame "nine"

Is there a way of effectively saying:

On frame enter
if results.text = 1 go to "one";
if results.text = 2 go to "two"
etc etc

I'm guessing that I need to use the:

_root.onEnterFrame = function(){
};

how to describe the bit in the middle...?

View 4 Replies

ActionScript 2.0 :: Jumping To Next Frame After Video Is Complete?

Jul 7, 2010

I have a video (that im calling from my harddrive) that i would love to play once through,then jump onto the next frame (where theres another video that continues from the end of the first). Why can i not use the following code to jump?

on(complete){
gotoAndStop(5);
}

View 1 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 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 2.0 :: Jumping To A Frame *inside* A Loading Swiff?

Feb 1, 2008

I have this code on the home page of a site:

_root.createEmptyMovieClip("loadExternalSwiffs_mc" , 2);
loadExternalSwiffs_mc._x = 0;
loadExternalSwiffs_mc._y = 103;
_root.loadExternalSwiffs_mc.loadMovie("introSplash Page.swf")

The "introSplashPage.swf" it loads initially has buttons on it that swap in one or another swiff in its place, for instance, "mediaPage. swf"

This works OK, but in the case of "mediaPage.swf" I'd prefer that the button take the viewer directly to a labeled frame *inside* the swiff. I can't figure out how to do that.

Online, I saw tantalizing code that used...

on (press) to get to the new swiff and then...

on(release){
_level2.gotoAndStop(10);
}

to get to a specific, numbered frame. But I couldn't get it to work, either going to my my frame number or, when modified, to my label.

View 2 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 1/2 :: Navigate From Btn Of Mc_B To FRAME Of Mc_A Using Frame Labels?

Jul 28, 2009

Im using Flash MX (the pre-02004 version) to design a photo portfolio that will be distributed on CDs to potential clients.Its broken up into subject galleries, each of which is its own movie clip.The pages of those gallery movie clips are all separate movie clips, too, regardless of whether they contain single images or layouts of images. Frame labels with stop codes separate each gallery_mc.

Within each gallery, previous and next buttons allow page-to-page navigation.From the last page of gallery_A_mc (e.g.), I can to go to the first page of gallery_B_mc by using the following ActionScript:

on (release) {
this._parent.gotoAndStop("gallery_B_FrameLabel");
}[code]....

Id think that this should make it go to frame 5 of gallery_B_mc,which is on the gallery_B_ FrameLabel, but it doesn't make it go anywhere.

on (release) {
this._parent.gotoAndStop("gallery_B_mc", 5);
}

Also doesnt make it go anywhere.

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

ActionScript 2.0 :: Frame Labels And Frame Numbers?

Feb 19, 2002

For example if I wanted an action to occur untilt the movie hit the frame label I would ideally be able to do somethign along the lines of:

do {
play ();
} while (_currentFrame != "label name");

This does not seem to work, but I am hoping that this is close to something that willObviously, I can put an action to stop the clip in the labeled frame, but I only want it to stop there under certain conditions . . .

View 2 Replies

ActionScript 3.0 :: Using Frame Labels Instead Of Frame Numbers?

Mar 2, 2012

I am building a large project that could be subject to change during it's construction, I am stressing out a bit because I am relying on the timeline to go foward and backward through the structure, (as well as user having the ability to use a menu to go where ever they want). So apart form the menu that specifies where to go, there is a forward and back button using next and previous frame to go forward and backwards.

So, what if after building a large section of this, the client wants to put in an extra page? this will upset all of my navigation (OR if I put the extra page at the end of the timeline the menu will work fine but the forward adn backwards buttons wont work properly) So should I be using frame labels instead of frame numbers? (How do I do this gotoAndStop(?) Or is there some other way I should be approaching this? like having a variable to keep track of page number instead of frame numbers?

View 5 Replies

ActionScript 3.0 :: Tweens - Get The Previous Image / Piece Of Work To Fade Out Before Jumping To The Selected Key Frame

Oct 19, 2009

I curenttly making a simple online portfolio using flash (as3). Each piece of work i'm displaying resides within a mc on the main time line, and within that each piece of my work lives in its own keyframe, so the site has a basic 'mc.gotoandstop("label")' navigation. I can get my images to fade in using a AS tween, but I want to get the previous image/piece of work to fade out before jumping to the selected key frame and fading in the selected work. Currently, the innards of my button function reads something like:

tween (fadeout)
gotoandstop
tween (fade in)

but this clearly not the right way to go about it? Is there a way of putting slight delay after the fade out tween in the function? To let it fully fade out before fading in the new work?

View 3 Replies

ActionScript 1/2 :: Photo Gallery - Create An Empty Movie Clip Holder That Would Reside On The Main Timeline?

Mar 7, 2011

I am using CS4 and ActionScript 2.0.I am trying to create a photo gallery.I have created 4 different movie clip buttons that reside on the content layer.Each button consists of one image.When the movie clip button is pressed, I want the full size image to appear on the stage next to the buttons.You can see the buttons in the image below.I am trying to create an empty movie clip holder that would reside on the main timeline while the buttons reside on the content layer.I need to get the images to load into the empty movie clip and then unload when the next button is selected?I can't seem to get the buttons to "talk" to the empty movie clip holder.I did manage to create code for an empty movie clip holder within each button, but then I end up with all four images on top of each other.

View 7 Replies

ActionScript 2.0 :: Play Two Labels One After One?

Apr 19, 2011

I have a flash file(attached) that contain with little movie. play two labels one after one. In attached flash file there is a button in frame 1. I want to play s1 label first when i click the button then it needs to play s2 label. I dont need to put any action script in frames. just want to put action script only on the button.

View 1 Replies

ActionScript 2.0 :: Create A Section For A Site Where Mousing Over A Button Will Play A Certain Frame Of A Movie Clip?

Dec 10, 2009

Flash CS4/Actionscript 3 I am trying to create a section for a site where mousing over a button will play a certain frame of a movie clip, which is sitting next to the button. Mousing over different buttons will play (and stop) different frames in the movie clip.

View 1 Replies

ActionScript 3.0 :: Different Frame Labels Are At Frame 1?

Apr 13, 2010

I added some actionscript 3 to an app with 5 repeated sets of animations each beginning with a different frame label. The different frame labels are at frame 1, 31, 61, 91, and 121. Here is the actionscript.

[Code]...

View 2 Replies

Use Frame Labels Instead Of Frame Numbers?

Mar 1, 2012

I am building a large project that could be subject to change during it's construction, I am stressing out a bit because I am relying on the timeline to go foward and backward through the structure, (as well as user having the ability to use a menu to go where ever they want). So apart form the menu that specifies where to go, there is a forward and back button using next and previous frame to go forward and backwards.

..  So, what if after building a large section of this, the client wants to put in an extra page? this will upset all of my navigation (OR if I put the extra page at the end of the timeline the menu will work fine but the forward adn backwards buttons wont work properly)
 
So should I be using frame labels instead of frame numbers?  (How do I do this gotoAndStop(? );)Or is there some other way I should be approaching this? like haveing a variable to keep track of page number instead of frame numbers? Use frame labels instead of frame numbers?

View 5 Replies

Navigate Among Frame Labels?

Sep 15, 2009

I use scrollbar at the bottom of the timeline to go to different frames. This is slow if I have thousands of frames. I wonder if there is a similar interface like the Actions window for labels on timeline. I mean you can see all the scripts at left pane and be able to go there directly by clicking on anyone on the list. I would be nice if you can see all your labels in a menu and click to go there directly (I believe Director has that). Maybe I can put some dummy script in different label and then I can use Action window to travel to there.

View 2 Replies

ActionScript 2.0 :: Go To Frame Labels Of A MC?

Nov 19, 2003

I have a button on the main stage, and a movieclip "qccontent". When the user presses the button, I am trying to check if the MC is on a specific frame label. The MC starts on a stopped frame labeled "closed".

Right now, each time the button is pressed, it currently goes and plays the label "closemenohit". It is not reading the first part.

[AS]
on (release) {
if (_root.qccontent._currentframe("closed")) {
_root.qccontent.gotoAndPlay("openme");

[Code].....

View 2 Replies

ActionScript 3.0 :: Tweens Play Too Fast When Jumping From Scene To Scene?

Aug 13, 2009

I have an eventListener on a particular movieClip that triggers the timeline to play when clicked.  This should play through a short tween, then hit another piece of actionscript in the last frame of that scene, which should take you to the next scene.  I also have an audio file loaded into a soundChannel, as well as a few timers that operate a click prompt over the movieClip already mentioned.  My bug is that if you click on said movieClip before the soundChannel is finished playing, all functions properly.  However, if you wait for the sound to finish, this initiates a few timers that cause a prompt to fade in, telling you to click on the movieClip.  If you click on it, still, everything works fine.  But once the timers complete their work, and the click prompt fades back out, the tweens do not operate properly.  If you then click on the movieClip, the timeline seems to play doubletime until coming to a stop() action in the next scene.

[URL]

View 2 Replies







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