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


Similar Posts:


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

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

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 :: [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 :: [CS3] : Getting GotoAndStop From Main Timeline To Movieclip Within Movieclip?

Nov 20, 2008

I have a main timeline with a button. I need the action for this button to gotoAndStop to a frame within a movieclip, within another movieclip. I have tried on the main timeline setting the actions of the button to:

on (release){
clip1.clip2.gotoAndStop("frame1");
}

and tried:

on (release){
_root.clip1.clip2.gotoAndStop("frame1");
}

lastly:

on (release){
_parent.clip1.clip2.gotoAndStop("frame1");
}

If I double-click on the movie clip (clip1) and then double-click on the movie clip (clip2), I have several frames labeled "frame1", "frame2", etc.The button doesn't work.

View 7 Replies

Actionscript 3 :: Access A Movieclip On The Main Timeline From Within A Movieclip?

Mar 6, 2012

Working on an RPG type flash, and I have to be able to control a text-box from quite a few locations. The one that is causing me trouble is the inventory. I need to be able to access the textbox with an instance of "statusWindow" from within the inventory clip (instance name "inventory"), so when I mouse over an item within the movieclip it will change the status window on the stage.In this instance I want to mouse over inventory.invHealth from the main timeline to get the display.itemName and itemProps are strings containing information about the item.I tried the following but it gave me a "possibly undefined" error.

invHealth.addEventListener(MouseEvent.MOUSE_OVER, itemStats);
function itemStats(e:Event):void
{
root.statusWindow.text = itemName+"
"+itemProps;
}

View 1 Replies

IDE :: Possible To Make MovieClip Of Main Timeline?

Jan 28, 2009

I want to embed all the content of my flash project in a movieClip.

View 3 Replies

Professional :: Play Movieclip On Main Timeline ?

Jan 7, 2010

I've created a movie clip with an animation on it's own timeline 30 frames long. When I press 'Enter' while inside the movieclip the animation plays ok.On the main timeline, I have one layer 30 frames long with the movieclip symbol placed on frame one. If I press 'Enter' the main timeline play head moves to frame 30 but the movieclip animation does not play on the stage. If I press 'Ctrl + Enter' or publish to swf then the animation plays ok but I can't setup the stage how I want it without the animation playing on the stage. Do I need to just change a viewing setting (tick box in preferences) or is this related to AS3 or new CS4 inner workings?

View 4 Replies

ActionScript 1/2 :: Variables Between Main Timeline And MovieClip

Oct 14, 2010

I've got a problem using variables in my Flash project. I've got a variable called "count" decelerate in a layer of my main timeline.
Like this: _global.count=0;
In my movieclip I want to set that variable from 0 to 1.
For do that I wrote in a code layer of my mc: _global.count=1;
Now... When I perform a new action the variables count return to 0.
It's seem that Flash reset all variables.

View 1 Replies

MovieClip Called Target_mc On The Main Timeline?

Sep 18, 2007

I have a movieClip called target_mc on the main timeline... Inside that movieClip, I have four frame animation where there are aim1_mc and aim2_mc on each frame...I also have a for loop that hides aim1_mc on all the frames... It works fine on the first loop, but I see the aim1_mc of the frame 1 from the second loop...

ActionScript Code:
this.target_mc.onEnterFrame = function ()
{

[code]......

View 7 Replies

ActionScript 2.0 :: Goto Main Timeline From A Movieclip

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 Replies

ActionScript 2.0 :: Refer To The Main Timeline Within A Movieclip?

Dec 4, 2006

Is there a way to refer to an object on the main timeline from inside another movie clipThe "_root." function does not work and I am still unfamiliar with the "_parent." functions purpose.

View 2 Replies

ActionScript 2.0 :: Controlling Movieclip From The Main Timeline?

Jun 26, 2008

this ex. .fla controls the mc from itself but i would like to control it from the main timeline, ive tried a number of things but cant seam to get it to workthe .fla is here.and the code is here if you dont dl the .fla:

Code:
onClipEvent (load)
{

[code]........

View 5 Replies

ActionScript 3.0 :: Control The Main Timeline From Within A Movieclip?

May 20, 2009

How can I access the main timeline from inside a MovieClip. In short words I would like to be able to move the main timeline from a MovieClip, for instance if I have a MovieClip called myMc and I want the main timeline to gotoAndStop in frame (3) when myMc is done paying.

View 2 Replies

ActionScript 3.0 :: Frames On The Main Timeline Each With A Different Movieclip?

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

ActionScript 2.0 :: Goto Main Timeline From A Movieclip?

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 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 :: Splicing An Array On The Main Timeline From Within A Movieclip

Feb 16, 2011

i am trying to splice data to an array which is on the main timeline by using code placed in a timeline within a movieclip and no matter what i try i dont seem to be able to do it i am an absolute beginner Code on timeline

[Code]...

View 1 Replies

Control MovieClip Inside Button From Main Timeline

Aug 13, 2011

I have a movieclip inside the OVER on a button, right now I have an animation that causes the button's brightness increases from 0 to 10 over 24 frames and then come stops because of a stop (). I now intend to add an animation after stop () which gets the button's brightness goes back to 0 again when you no longer hold the mouse over the button. I would therefore like to make some kind of mouseOut event that allows Movieclip go to the next frame. I have tried to insert a target path but it seems that it can't reach the movie clip inside the button.

View 1 Replies

ActionScript 3.0 :: Accessing Main Timeline Variables From Within A MovieClip

Jun 13, 2009

Let us say we have a movieclip "mc1" on the stage. We also have another movieclip "mc2" inside mc1. We have declared a variable, say, var number1:Number=5 on the first frame of the main timeline. Now we go inside mc1 and then inside mc2 and write some code on its first frame. Is there any way to use the variable number1 over here? Can properties of mc1 be altered using the code written here? In AS2, it could be done using the "_parent" command, but it doesn't seem to work in AS3. (when we use parent and try accessing a property, it says that it is possibly undefined)

View 3 Replies

ActionScript 3.0 :: Movieclip To Act Independently Of The Main Timeline FPS Change?

Jun 19, 2009

My question. How do I control a movie clips FPS independently of the main time line. I believe in the previous version of Flash this was not possible but I think it can be done with CS4 with AS3.
 
I have five images with motion add to them. One fades out while the next fades in. To get this to work slower then the main time line I would have to add a lot of frame for that movie clip to not run so fast. Which this will make the file size larger.
 
I need this movie clip to run at say 12 FPS instead of the 24 the main timeline is running at.

View 1 Replies

ActionScript 3.0 :: MovieClip Buttons Referring To Main Timeline?

Sep 1, 2009

I've got what I think isn't a real tough one however I can't seem to get this working.
 
I have a MovieClip. This movie clip has 21 buttons. These 21 buttons should be forwarding the user to frames 60-81 on the maintime line.
 
The actionscript I've added is not providing any errors however it's working either as these buttons don't do anything unfortuanlty.
 
Below is a sample of the code i've placed within the MovieClip itself, as the buttons and the button names are contained in the movieClip.
 
AS3 Code Being Used

button1_btn.addEventListener(MouseEvent.CLICK, button1Click);function button1Click(e:MouseEvent):void{    gotoAndStop(55)}
 
This code is listed for each button instance and to forward the user to a frame on the main timeline (NOT the timeline in the MovieClip itself).
 
Again, this code is contained in the MovieClip itself and not on the main timeline, as the buttons exist in the movieClip I.E. button1_btn to button21_btn
 
Lastly, to provide a visual idea of what i'm expereincing, please refer to screenshot embeeded in this message or the attachment (same thing).

View 4 Replies

ActionScript 3.0 :: Button To Access MovieClip In Main Timeline?

Nov 2, 2009

as always, this seemed simple in AS2, but i am stumped with this simple command in AS3.
 
i have a main timeline [one scene] that has multiple movies, one after each other, in different frames.  i need the buttons that are placed in a layer below the movies to access various movies in the scene.  was really simple in AS2.

it appears that i can get my button to go to the frame, but the movie contained in the frame will not load and or play. [i have 2 frames dedicated to each movie, the second frame, in the actions layer has a stop command].  the following is the actionscript and the errors i am getting.
 
AS3:
food_btn.addEventListener(MouseEvent.CLICK, playfood);
function playfood(event:MouseEvent):void {
gotoAndPlay("food");
}

[Code].....

View 3 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 3.0 :: Controlling Movieclip From Main Timeline & Child?

Sep 26, 2010

This code is currently contained within my "mc_1" movieclip. I want to be able to have this code on my main timeline, however no matter what I try I constantly get errors, multiple different versions. I've tried adding mc_1 infront of everything, but that just gives an output error about a Sprite.Also, I'm currently using visible to control whether the back image to the textbox should show - What I'd really like to do is control it using a child, but they're movieclips not buttons, so when I try to addChild within the function it errors saying I'm trying to control a movieclip within a simplebutton function.

import flash.events.MouseEvent;
stop();
mc_textbox.visible = false;

[code].....

View 12 Replies

ActionScript 3.0 :: Button On Main Timeline Control Movieclip?

Oct 16, 2010

I have a stop on my main timeline. At the stop I have a movieclip play. In the movieclip I will have a video play. After the video plays I have a button for the user to continue play until the end of the movieclip. Once the movieclip is done I want to resume back to a specific frame in my main timeline.

View 3 Replies







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