Targeting Sections When Playing Timeline?

May 18, 2009

The site has 6 pages: home, contents, contact, about, showreel, corporate. I have a panoramic photograph as a background across all my pages. When a button,such as contact, is clicked the timeline is enabled and scrolls across the panoramic to the 'contact' area of the photograph.I have a few questions relating to how I can achieve this. 1.) On my actions layer I have this code on frame one: stop(); enter_site_btn.addEventListener(MouseEvent.CLICK, buttonCLicked); function buttonClicked (event:MouseEvent):void { play(); } So when you mouseClick the timeline plays and goes to the next stop point on the timeline which is the contents section. On the contents page are the buttons which lead to the other sections. So far I have this code: stop(); about.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) corporate.btn.addEventListener

(MouseEvent.CLICK,buttonCLicked) showreel.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) contact.btn.addEventListener (MouseEvent.CLICK,buttonCLicked)

Each of the buttons work, but I want the timeline to play and go to the page which corresponds to the button which is clicked, not just to play the timeline until the next stop point. Is there a code which would enable the timeline to play and go to the correct section, and not just roll without a target? 2.) I also want to be able to write a code which enables the timeline to move to any section in the same amount of time. What I mean by this is that if it takes 2 seconds (48 frames) to go from the first section to the second section, I also want it to take 2 seconds to go from the second section to the sixth section (240 frames)

View 40 Replies


Similar Posts:


ActionScript 2.0 :: Targeting Sections In Main Timeline From Separate Menu SWF?

Jan 16, 2006

[URL]

I made a site, but the menu isn't loading properly. If you reload the page the menu loads, but not sure why not loading every time.

Right now menu and site sections in main SWF file. Maybe I put the menu into a separate SWF file it would load properly?

If the site sections are in the main SWF timeline, then how do I do the actionscript for the menu buttons?

Ie)
menu in level7
main site in level0
site sections are "product section", "about us section", "glossary section" on main timeline

So I'm not loading any SWFs, just moving between sections on main timeline.

View 2 Replies

ActionScript 3.0 :: Run The Full Timeline Once, Then View Sections?

Jun 13, 2011

I want to do something like this (Dell home page):[URL]

(But I want the cycling to stop on the selected screen once a button has been clicked.)

It can either cycle continually through the screens (I need 9 of them), or it can cycle once & then stop on the last one.

At this point, I don't really care *sigh*

I can make a movie based on this technique

[URL] (What a PITA to be unable to post links!)

that lets me jump to various sections of the timeline when buttons are clicked, and I can make the entire timeline run & then stop (or repeat), but I can't combine the two.

View 6 Replies

ActionScript 3.0 :: Targeting A Nested Mc Timeline From A Main Timeline?

Dec 30, 2009

I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame. mc_1 is on frame 1 mc_2 is on frame 40 mc_3 is on frame 81 as the main timeline plays the clips each one fades to the other. I need to know how to target this scenerio after mc_3 plays I need to have a goToAndplay (20) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.

View 5 Replies

Clean Up Main Timeline By Breaking It Into 3 Sections And Putting Each Section Into Its Own Clip

Jun 3, 2010

I want to clean up my main timeline by breaking it into 3 sections and putting each section into its own clip. My main timeline is then only 3 frames long with one clip on each frame. Of course, trouble is, the main timeline doesn�t wait for the first clip to play before progressing to the second. Do I need some code in the second main timeline frame to tell it to wait til the first clip has finished?

View 3 Replies

ActionScript 3.0 :: Stop Movieclips From Resetting When Switching Sections In Main Timeline?

Nov 28, 2011

So I have 2 frames at main timeline, one named "Game" and one is "Menu", they are just a movieclip eash does its own thing. I am in the "Game" playing, I want to change settings so I go to frame "Menu"... when I am back to frame "Game", everything is reseted!! I soon realized this is what Flash has been doing and it's a good thing... But I really want to know how to by pass the resetting now...

View 2 Replies

ActionScript 3.0 :: Using Keys To Navigate - Split Each Menu Page Into Labeled Sections Along The Timeline?

Jul 14, 2010

Im making an interactive video menu system in flash cs5, Ive split each menu page into labeled sections along the timeline. I have the following code placed in a specific labeled section so it should jump to the "Directory Screen" when the 3 key is pressed:

stage.addEventListener(KeyboardEvent.KEY_UP,fl_KeyboardDownHandler_9)[code].....

 But when it goes to the Directory Screen, if I press 3 again it shouldnt do anything but flash seems to remember the code and when I press 3 again on the "Directory Screen" it skips to the next labeled item for some reason.

View 2 Replies

Actionscript 3.0 :: Targeting A Mc In A Different Timeline?

Dec 30, 2009

I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame.

mc_1 is on frame 1
mc_2 is on frame 40
mc_3 is on frame 81

as the main timeline plays the clips each one fades to the other.

I need to know how to target this scenerio

after mc_3 plays I need to have a goToAndplay (frame) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.

I know how to do off a button

but there is no buttons, the action needs to happen when the playhead reaches the last frame of the main timeline in main.fla

View 2 Replies

ActionScript 1/2 :: Targeting The Timeline Of A Loaded Swf - AS2

Feb 9, 2010

I'm loading an external swf into a project and I want to be able to start and stop the loaded swfs timeline at will.... I'm loading swf into an MC: loadMovie("myFile.swf", swfHolder_mc);

View 1 Replies

ActionScript 3.0 :: Targeting The Main Timeline From Within A MC?

Feb 3, 2011

I have this project that will basically work like a slideshow. I am trying to do things the right way and avoid scenes so I am building each slide as a separate mc and then placing them on the main timeline. What I'm trying to do is get the playback head to advance to the next frame on the main timeline once the mc reaches its last frame. I have found code that works but it seems pretty ghetto:
 
var _root:MovieClip = MovieClip(root)
stage.addEventListener(Event.ENTER_FRAME, text2);function text2 (myevent:Event):void { _root.gotoAndStop("slide2");}

I guess I have two basic questions:

1. What is the proper way to target a frame on the main timeline from within a mc in as3?

View 6 Replies

ActionScript 2.0 :: Tell Targeting A Mc On Main Timeline?

Jun 30, 2004

i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.

my code is:
on (release) {
_root.crystal.gotoAndPlay("editions");

[code]....

View 1 Replies

ActionScript 2.0 :: Targeting - Tell Another MC To Go To A Marker On Its Timeline

Feb 20, 2006

I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");

View 4 Replies

ActionScript 2.0 :: Tell Targeting An Mc On Main Timeline

Jun 30, 2004

i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.[code]but it only works when the crystalMC is on the first frame of the root.is there a way of telling the root to move to the position of the first mc and then play a label inside that mc?

View 1 Replies

Actionscript 3 :: Targeting Unnamed Timeline Instances?

Dec 31, 2011

Is there any way to control nested MovieClip instances placed on the timeline without naming them through the Properties panel? Are there any unique identifiers I can refer to?

Using instance names (like instance33, instance12, etc.) doesn't help since names are just properties, but how about references like sprite187_27 (as returned by trace(this) inside a MovieClip on the TimeLine)?

(Using ActionScript3, Automatically declare stage instances disabled)

View 1 Replies

ActionScript 3.0 :: Button Inside A MC Targeting Another MC On The Timeline

Jan 1, 2011

So from the headline u know that i want to do but i don't know how to do it!

ActionScript Code:
/// activate the mc with the button from the main Menu
mathSecondMenu.addEventListener(MouseEvent.CLICK, otvoriVtoroMenu);

[Code]....

the problem is that i can get to the button from the first event, but i can make the Mc "proba" to go to "math_basic"!

View 8 Replies

ActionScript 2.0 :: Targeting Main Timeline From AttachMovie?

Nov 18, 2008

I'm working on this project, where i attach movies to an empty movieclip. In these attached movies, i have a button that needs to target a function on the main timeline. Example:

on the main timeline, i have an action that loads a bitmap onto the background: loadBitmapSmoothed("background.jpg",bg_con); On the main timeline, i also have a button with following action:

on(release){
this.mc_holder.attachMovie("MC_products",1);
}

Then, in the attached movieclip i have a button that needs to swap the image previously loaded into the 'bg_con'-movieclip, like thus:

on(release){
_root.loadBitmapSmoothed("product_1.jpg",bg_con);
}

For some reason, this doesn't work. I've also tried using _level0. but nothing happens.

View 5 Replies

ActionScript 2.0 :: Targeting A Timeline In An Loaded Movie Clip?

May 27, 2005

The swf successfully loads where I want it to, but I'm having trouble moving the new movie clip to a specific keyframe in the timeline.

Code:
on (release) {
_parent.productImage.loadMovie("./flash/BT_Closeup.swf");
_parent.productImage.gotoAndStop("set2");
}

View 1 Replies

ActionScript 3.0 :: MovieClip With Button On Main Timeline - Targeting Root?

Oct 31, 2011

If I have a movieclip on the main timeline, and a button in that movie clip. How would I go about getting it to advance the main timeline to its next frame? I understand that in AS3 movie clips are not connected to the timeline in the same way as they are in AS2 but I dont understand why the following works, or if there is a better way?

stop();
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent) {
MovieClip(this.root).nextFrame();
}

View 2 Replies

ActionScript 3.0 :: Targeting Label Inside MovieClip On Main Timeline

May 2, 2011

How to target a label within a movie clip on the main timeline, from a button within another movieclip on the maintimeline.

View 0 Replies

IDE :: Sound On The Timeline Not Playing?

Aug 26, 2010

I have a small sound effect (less than 10KB) I have placed on my timeline. When I test it directly in flash, I can hear the sound effect, but when I CTRL + test my movie, I can't hear the effect?

View 1 Replies

ActionScript 3.0 :: Playing A Timeline Tween Instead Of The MC?

Jun 27, 2009

I've come to the end of my rope at this point in my AS learning, and was seeking some opinions on how to achieve this.

I am attempting to play a motion tween animation which I have applied to a movieclip that exists in the main timeline.

Coding it like this does not result in errors, but instead of playing the motion tween that I have set up, each MC plays the MC animation instead of the tween animation in the main timeline.

Quote:

stop();
//Banana Roll-over Animation\
banana1.addEventListener(MouseEvent.ROLL_OVER, bananaBig);
banana2.addEventListener(MouseEvent.ROLL_OVER, bananaBig2);

[Code].....

View 8 Replies

AS3 - Stop Video Playing In Same Timeline?

Dec 8, 2009

I've just posted a reply in the ActionScript3 Forum as someone else has had the same problem, but I can't find a solution so posting again here as it's taken me about 5 hours of getting nowhere and I'm sure this is really easy... have one frame on my time line called "theatre" and another called "Video" the buttons between the two work but the video continues to play in the background when I go back to the "theatre" frame on the same time line and I can't find a stop function that will work A button on my main page links to Video on the timeline with following AS3

btnVid.addEventListener(MouseEvent.CLICK, clickbtnVid);
function clickbtnVid(event:Event) :void {
gotoAndStop("Video");

[code]....

View 2 Replies

ActionScript 3.0 :: Sound From Timeline Keeps Playing

Feb 5, 2010

I have multple sounds attached to my timeline. When I jump to another frame where the clip doesn't exist anymore the sounds keep playing. All of them are played. Even SoundMixer.stopAll()doesn't help.

View 1 Replies

ActionScript 1/2 :: Playing An Embedded Timeline?

Jan 18, 2011

I may not have the correct terminology and such, but I have a simple symbol that plays, and then I have a timeline within that symbol that I want to play right after that. I named the embedded timeline/frame "trailer" so I used the action

gotoAndPlay("trailer");

this works if the named frame is in the main timeline, but it doesn't seem to be able to access the timeline within the symbol. Is there a different command I could use? Or am I doing something wrong?

View 1 Replies

ActionScript 2.0 :: Stop Code From Playing For Whole Timeline?

Jun 9, 2009

I'm making a mini-game, so ive got various scenes and stuff going on. I found this rain effect [url]... and it works fine and looks pretty good, the problem is I don't know how to get the damn thing to stop! I'm a beginner so know very little actionscript and can't figure this out myself. I do not want the timeline to stop playing only for the rain to stop.

View 5 Replies

Playing FLV Files On The Timeline In Secondary Scene?

Nov 2, 2009

I'm currently working on a project where I mix animation sequences with short videos. My project also has two scenes and the FLV will be placed on the main time line of the second scene. The problem I am having is, if the movie is previewed from the first scene, or exported, the FLV on scene 2 won't load. the timeline on the playhead will just spin. I'm currently using "Load external video with playback component" as the method for importing the flv file.I have already worked with this video multiple times in other flash files and have never had a problem loading the video. Is there a limitation to FLV playback in multiple scene movies?

View 5 Replies

Professional :: Playing Sound In Timeline (For Lip Sync)

May 16, 2010

I've run into a bit of a problem using Adobe's CS3 flash program in terms of lip syncing... I can place the sound files in the timeline at whichever point I like and so forth, but I have no way to play them in such a way where I can adequately make lip syncs. It's hard to explain, but in flash MX I would merely click the timeline, drag the cursor along it, and it would play the sounds as it did the frames, one piece at a time. That way I could tell where the consonants were and therefore where to change my characters' lips. This is not the same as simply hitting "enter" and letting the sound play in its entirety.

View 4 Replies

Professional :: Movie Clips Playing On The Timeline?

Feb 26, 2012

I have a movie clip on my timeline and it has maybe 60 frames in it. There's enough space for it to play and loop, and when I press ctrl enter to preview it, it plays as expected. However, as I scrub through my animation, the only things that play are the motion tweens I made. The movie clip just stays stuck on the first frame. I was curious so I exported it as is right now and it goes through the frames correctly there too. However, this is fustrating because I want to see the movie clip cycle through it's frames when I scrub through my timeline!

View 2 Replies

ActionScript 2.0 :: Playing The Timeline Of A Movie Clip?

Jan 29, 2009

I'm trying to play the timeline forward or backwards by either pressing and dragging left or pressing and dragging right. I can't figure this out.

I have been using instances of buttons to do this but I don't want to use buttons I just want to be able to press anywhere on the screen and weather I drag left or right the movie plays, if I stop pressing the movie stops playing on its current frame.

View 0 Replies

IDE :: Loop To Keep Playing Regardless Of The Timeline Stopping And Starting

Apr 29, 2009

i just want my loop to keep playing regardless of the timeline stopping and starting. is this possible?

View 1 Replies







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