Linking Back To The Main Timeline?

Aug 26, 2010

I recently started creating a flash website from a template that was created back in 2004. I have very little knowledge of either AS 2.0 or AS 3.0. I am currently attempting to link my buttons that are in separate movieclips back to specific parts of the main timeline "scene 1". Currently when clicked, the buttons just cycle through the varying pages that have been created, "s1" , "s2" etc.

How do I link a movieclip/button back to "s8" in the main timeline?The AS 2.0(I think it's AS 2.0 anyway) that currently exists is as follows:

PHP Code:

on (rollOver) {
gotoAndPlay(2);
}

[code]....

I understand what first rollOver and rollOut commands are and they work fine, but the "On (release)" doesn't seem to go where it needs to.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Linking External SWF To Main Timeline?

Feb 27, 2012

keyframe one - dialogue / conversation with characters ( then a button is triggered to call an external swf [placed at keyframe two] )keyframe two - the external swf game. i want to put a button that makes you go back to the main timeline once you're done with the game and proceed to keyframe three (that's the problem. i dont know how to declare and make that button work)keyframe three - dialogue / conversation again .

keyframeone [main timeline]

Code:
...
memory_t.addEventListener(MouseEvent.CLICK, recalltraining)
function recalltraining(e:MouseEvent):void{
gotoAndStop(2)

[code]....

View 0 Replies

ActionScript 2.0 :: Linking From One MovieClip To Another On Main Timeline

Dec 21, 2009

I have been trying to figure this out for 3 days now. Here is the structure on the timeline:
movie clip (portbtn)
inside port btn (button)
I need (button) inside (portbtn) to link to a keyframe inside of another movie clip on the main timeline called portPage.

Here is the code I have been trying to get to work and it seems like it would:
Select allusa.onPress = function() {
_root.portPage.gotoAndStop(1);
gotoAndStop ("closed")
};

Now this is what everyone else tries and it doesn't seem to work. Also I want to note that I have tried to trace the movie clip "portPage" and it says undefined which from what I have read means that the button is working but it is just not getting the right directory. I have no clue what other directory to put in there since this one seems to be the right one.

View 7 Replies

Professional :: Linking From A Swf In A Scrollpane To Positions On The Main Timeline?

Jan 30, 2010

I have a scrollpane where I have loaded a swf of many small images that are set up as buttons.How do I create the link between this swf/actionscript to the main fla/timeline that the scrollpane is contained in?

View 1 Replies

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 :: Linking External Sfw File In Main Timeline Lebel?

Dec 28, 2005

I am using flashmx 2004. I am creating a presentation where the main (suppose "main.swf" )movie has seven "lebels" on the timeline. I am require to link to external swf files for each lebel which I can do by using the button script :

on (release) {
loadMovieNum("externalmovie1.swf", 0);
}

[code]........

View 1 Replies

ActionScript 2.0 :: Back To Main Timeline?

Mar 1, 2010

i have a button and i would like to send the user back to the main timeline once click using on (release) does anyone know what code it is to send it back to the main timeline?

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

ActionScript 3.0 :: Navigating Back To Main Timeline?

Jul 14, 2009

Lets say i have a button on the first frame of my main timeline that leads to another frame on my main timeline. On the second frame, i have a button that has tweening animations inside it's over and down states. At the last frame of the tweening, i want to have a button that navigates to the first frame of the main timeline, and not the first frame of the tweening.

View 4 Replies

ActionScript 3.0 :: Getting Playhead Back To Main Timeline?

Nov 26, 2010

When the playhead is sent from the main timeline (Scene 1) to play a movieClip timeline, what code is used to send the playhead back to the main timeline (Scene 1) after the movieClip has played?

View 9 Replies

Professional :: Button That Goes Back To Main Timeline From Movieclip

Feb 11, 2010

I have a movie created that is broken down into sections on the timeline (home about contact etc) Each section has a movieclip I want to be able to be in the about movieclip and click a button that will bring you back to the main timeline contact section Heres is the actionscript I am using to navigate the main timeline for each section
stop();

//handle events for buttons...
index.addEventListener(MouseEvent.CLICK, clickSection);
about.addEventListener(MouseEvent.CLICK, clickSection);
wind.addEventListener(MouseEvent.CLICK, clickSection);

[Code].....

View 1 Replies

ActionScript 1/2 :: Button Within Movieclip Won't Go Back To Main Timeline

Dec 1, 2010

I have a btn within a Movieclip at a certain keyframe the user is asked if they want to go back to make another selection from a choice category (within the maintimeline)
 
As of now the code I have for the btn that jumps you back to the main timeline is:
 
on (press) {    gotoAndStop(_root.stop(24));}
  
Does _root.stop(24) need to be in quotes?
 
ie. "_root.stop(24)"

View 1 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 3.0 :: Target Button In Movieclip Back To Main Timeline?

Oct 1, 2009

I have some submenu buttons in a movieclip on the mainline. My first level of navigation in on main timeline. The submenus are grouped in movieclips on the main timeline. I basically used the same code on the main navigation for the sub navigation except the code for the submenus is in that movie clip. My trace statement reads the button is clicked (which was a quantum leap for me) but I know I need some kind of _parent code in there so it knows to go to label back on main timeline. I feel like I am so close.
 
Also is this an ok way to set this up? I couldn't figure out how to do it in one frame. I didn't realize this basic framework was going to be so difficult.

[Code].....

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

Professional :: Convert A Movie Clip Back To The Main Timeline?

Feb 23, 2011

The entire .fla animation consists of nothing but two really long movie clips. Which are placed on frames 1 and 2 of the main timeline. Now for reasons that are too deep for me to go into explaination about my boss is telling me that I have to have everything main timeline -no movie clips. I've tried copypasting all of the frames but they all paste wayyy to large on the main timeline and they wind up in different places on the stage.

How can I move all of the frames from my two movie clips onto the main timeline without everything breaking? Better yet - is there any way to just convert a movie clip into an .fla?

View 2 Replies

ActionScript 3.0 :: Navigating Back To Main Timeline Using A Button In A Movieclip?

Jul 14, 2009

I can get my menu buttons to move me around the timeline, but am at a loss as to how to move to a frame on the main timeline using a button within a movieclip that has it's own timeline.

So what I mean is that on the mian timeline, a movieclip graphic with a button in it drops down. This movieclip has it's own timeline, and any AS to control the button has to be in this timeline. So how do I tell it 'when the button is clicked, go BACK to frame X on the MAIN timeline?

Here's the AS on the main timeline for the menu buttons (how would I adapt it to apply to buttonX within movieclipZ?, and where would I put this extra code in my movie?):

function Nav(event:MouseEvent):void {
trace("Nav "+arguments)
switch(event.target.name){
case "gilbert": gotoAndPlay(72); break;

[code]....

View 0 Replies

ActionScript 2.0 :: Button In Nested Mc Needs To Jump Back To Main Timeline?

Mar 4, 2008

so i have a main timeline and a nested one. the main timeline has a button named "how_btn" that plays the nested mc (named "how"). once i get into playing "how", i have a button named "menu" that i want to bring the user back to the main timeline (where the "how" button is). this is how i scripted:

how_btn.onRelease = function () {
gotoAndStop("how");
}
menu_btn.onRelease = function () {
gotoAndStop("nav");
}

the how button script works, however the menu button does not. is this b/c it's in a nested mc? i tried specifying the root, but that didn't do it either.

View 12 Replies

ActionScript 2.0 :: Button Go Back To The Main Timeline And Then Goto Another Mc Nested In Another Mc?

Jan 23, 2005

I'm trying to have a button go back to the main timeline and then goto another mc nested in another mc. For some reason it the output section when i test this says the following...Target not found: Target="_root.printmc" Base="_level0.instance8.instance29" Here is the script I have on the button.

on (rollOver) {
gotoAndPlay("move");
}
on (press) {[code]....

View 4 Replies

Make Button In Movieclip Target Back To Main / Root Timeline?

Oct 1, 2009

I have some submenu buttons in a movieclip on the mainline. My first level of navigation in on main timeline. The submenus are grouped in movieclips on the main timeline. I basically used the same code on the main navigation for the sub navigation except the code for the submenus is in that movie clip. My trace statement reads the button is clicked (which was a quantum leap for me) but I know I need some kind of _parent code in there so it knows to go to label back on main timeline.[code]...

View 3 Replies

ActionScript 3.0 :: Navigate From Nested Movie Clip Back To The Main TimeLine?

Nov 24, 2009

I have an action script code for playing a nested movie clip from the main timeline. I want to come back to the frame2 of the main time line when the nested movie clip goes to the last frame. Which code I have to add at the last frame of the nested movie clip to come back to the frame2 of the main timeline..

View 1 Replies

ActionScript 2.0 :: Using GotoAndPlay From Inside A Movie Clip To Go Back To The Main Timeline

Aug 12, 2009

I have a ten-frame Flash doc. Seven of these frames have movie clips. What I want to do is be able to have a user navigate to another frame in the main timeline by clicking a button at the end of each movieclip.

I'm using this code:

on(release){
gotoAndPlay("Scene 1",6);
}

[Code]....

And I"m not getting errors but it's not working when I launch the movie.

View 5 Replies

ActionScript 3.0 :: Click On The X Box That Appears In Order To Go Back To Frame 42 In The Main Timeline?

Nov 9, 2011

Okay so our current assignment in class is to create our own version of the jeremy levine design website. But I am currently stuck and have not gotten anywhere for the last 3 days that I have worked on it.

The problem is when I click on the box to go into the wood grain texture, I want to be able to click on the X box that appears in order to go back to frame 42 in the main timeline. (the x is currently only on the box with the 1 on it.)

View 0 Replies

ActionScript 3.0 :: Create A Timeline Scrubber - Nothing Allows To Just Scrub Back And Forth On The Whole Timeline In The Exported Swf?

Aug 20, 2011

I've been looking for a tutorial to create a timeline scrubber (not animating specific movie clips, but actually a scrubber that can move along different keyframes of a timeline that has a series of images on it).I found a bunch of these (scrubber controlling specific movie clips): http:[url]....but nothing that allows you to just scrub back and forth on the whole timeline in the exported swf.

View 3 Replies

IDE :: Linking Back To Flash Frame From XML URL?

May 27, 2009

I am but a lowly martial arts instructor who has 'foolishly' decided to try and do our website. I decided to use a flash template which has actually worked out ok (word to the wise - DON'T BUY FLASH TEMPLATES UNLESS YOU ARE WILLING TO KISS YOUR LIFE GOODBYE FOR A COUPLE OF MONTHS).

Anyway, I wanted to put a news ticker on the site to display 'latest news' - I took an example that was kindly supplied from this site, and it works fine. However, I just cannot figure out how to create a link in the XML file that when clicked takes you back into another part of the flash site. I can get it to link to an external URL no problem at all but just cannot get the link to take it back to a section of the site I want it to go to.

[Code]...

View 5 Replies

Professional :: Cant Get Buttons To Work After Linking Back?

Jan 6, 2010

The buttons in the flash movie also link to movie frames in the flash and external html pages. Once movie plays and stops, all links work fine, the links to the anchors and the links to the other html pages, however when I try and link back to the flash movie from an external html page, to specific frames in the flash movie, the html link will link back to flash movie frame fine, however once your back in the flash movie, none of the buttons in the movie work anymore.I have embedded the flash movie in an HTML and published it with anchors,"home, about, events etc.used this code for several buttons in the flash linking to frame anchors in the movie:

///////////////////////////
home_btn.addEventListener (MouseEvent.CLICK, handler);
function handler (event:MouseEvent):void

[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

IDE :: Timeline Inside These Movie Clips And The Timeline On The Main Scene Have To Correspond To Work

Jun 10, 2009

why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]

View 1 Replies

ActionScript 3.0 :: Loading Main Timeline Variable From Movie Clip Timeline?

Feb 2, 2010

I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.

[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







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