ActionScript 2.0 :: Commanding MC In Root To GotoandPlay From A Button In Another MC

Jan 7, 2009

I've a button in MC1 (MC1 is resting in root) and I want it to take another MC2 (also resting in root) to go to a certain frame.Supposing, the instance name for MC1 is 'blah1'.How'll i make the button in MC2 to take MC1 to lets say frame#10.. ?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Commanding A MC In Root To GotoandPlay From A Button In Another MC?

Jan 7, 2009

I've a button in MC1 (MC1 is resting in root) and I want it to take another MC2 (also resting in root) to go to a certain frame.. the instance name for MC1 is 'blah1'

How'll i make the button in MC2 to take MC1 to lets say frame#10.. ?

View 4 Replies

ActionScript 3.0 :: Root.gotoAndPlay(##) Not Working?

Mar 19, 2010

Basically the title is the question. I want to loop the root movieclip; in this case it plays from frame 1 through to frame 240, then I want to loop back to 97-240 infinitely afterwards... I tried adding to an actions frame on frame 240, "root.gotoAndPlay(97);" and got an error call to a possibly undefined method).What am I doing wrong?

View 3 Replies

ActionScript 3.0 :: GotoAndPlay Movie In Root?

May 24, 2011

In the past I've used _root.smoke.gotoAndPlay(1);.I can't seem to target this "smoke" movie clip that is on the root with actionscript 3.

View 7 Replies

ActionScript 2.0 :: Commanding Multiple Mc's?

May 18, 2007

I want to disable 6 movie clips after an onRelease function ..Rather than writing:

myMC.onRelease = function (){
thisMC._alpha =50;
myOther1_mc.enabled = false;

[code].....

View 1 Replies

ActionScript 2.0 :: Commanding The Multiple Mc's?

Feb 20, 2009

I want to disable 6 movie clips after an onRelease function ..Rather than writing:

myMC.onRelease = function (){
thisMC._alpha =50;
myOther1_mc.enabled = false;
myOther2_mc.enabled = false;

[code]....

How could I sum up all those myOther*_mc's as one term, so that I can call 'group_mc.enabled = false;' instead, and have it in one nice line. ... ?

View 2 Replies

ActionScript 3.0 :: Commanding Timeline Or MovieClip

Jul 23, 2009

Is it possible to command a timeline or MovieClip from an external swf? Main.swf calls in External.swf - How would I control a movie clip in main.swf from External.swf?

View 0 Replies

A Button In A Video Symbol - Do A GotoAndPlay

Jan 22, 2009

I'm trying to work on a flash project. Essentially, when I press a button it initiates a video symbol. Once that video symbol is loaded, there are 3 buttons to choose from. When I click one of the buttons, it should do a gotoAndPlay. Instead, what does happen is I click the first button:

[Code]....

View 1 Replies

Flash 9 :: Gotoandplay Using A Button Or Movieclip In AS3?

Aug 23, 2008

I have a video that starts after an introduction is played.it plays fine but my members are asking for a non autoplay video. So I'm trying to put a "start video" button or movieclip to start the video manually.

View 1 Replies

ActionScript 3.0 :: GotoAndPlay WITHOUT A Button Or Movieclip?

Oct 9, 2009

Is there a simple gotoAndPlay code to tell a scene what scene to go upon completition?I know they automatically go to the next scene in the timeline, but I have multiple scenes that I want to play through and all link to the same scene. I want to do this without a stop(); and without the user having to click a button or movieclip...

View 1 Replies

ActionScript 3.0 :: GotoAndPlay From Button Class?

Mar 14, 2012

I need some assistance with making this button class file go to a frame label in the FLA. This is new for me so bare with me, but my goal is to have complete external control over creating buttons and adding new ones as they will change frequently. [code]...

View 6 Replies

Actionscript 2.0 :: GotoAndPlay Button That Controlls MC

Nov 23, 2009

is there anyway to have a button play frames 5-10 on a movie clip inside the current frame, as well as skipping to...lets say...frame 10 of the scene?

i want to create a site where buttons go to different pages, but those pages have animations in and out. so if someone is in one page, and clicks a button to go to another, that page plays the "out" animation while the other page plays the "in" animation.

View 1 Replies

Actionscript 3.0 :: Have A Button GoToAndPlay A Few Frames Only?

Apr 7, 2010

It seems like no matter where I check, there isn't a clear answer to this particular issue.Rather than blabber on about the code, I think it is important for me to address that I may just not be setting up my document correctly. At present, I created several layers, some in folders, for a basic portfolio website. I have my problems with my main buttons, in my "Sections" folder, where each button is a distinctive layer so it can be animated when it is pressed.I have a button called 'architecture' that is pressed, but instead of just statically moving the frame to the desired content, I want to play 5-7 frames that I tweened for a small transition (sometimes opacity, sometimes sliding mask) that occurs right before the content. All my transitions and everything is just on this one main timeline.

Basically, I sort of want to have the best of both worlds, where I can goToAndPlay, but then stop it at the end of that segment, as to not run into my next frames of content.My first solution was to simply place a stop(); at the end of the transition, but then the menu just locks and stops. Of course this was on my top layer named 'actions.'I then tried applying each event listener to it's buttons' layers, but that resulted in the button simply not working.I segmented up the actions layer into keyframes, but then realized that it didn't call on the event listeners if I did that.

View 2 Replies

ActionScript 2.0 :: [CS4] GotoAndPlay Button Not Working?

Apr 10, 2010

my timeline I have animated and placed all the images and info as well as 'stop();' and 'gotoAndPlay();' actions here and there, they are mainly to constrain part of the timeline so when the user clicks on a button he's taken past those constraints further on the timeline to another page with information. Problem is, I have four buttons, the first one has a on (release) { gotoAndPlay(107); } on it and frame 107 is past my first stop(); action and is working fine. The second one with the same properties and the same action just a different frame, doesn't work at all! All the buttons have instance names. I can't understand what's wrong. All I have are some stop();, gotoAndPlay();, gotoAndStop(); actions! Do they affect the button behaviors? It's really annoying me and giving me headaches... What am i doing wrong here?

View 7 Replies

ActionScript 2.0 :: Goto And Play Scene - _root.gotoandplay And Even Scene1.gotoandplay Won't Work?

Nov 9, 2007

For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;

[Code]...

View 1 Replies

ActionScript 3.0 :: Use A Button Within A Movieclip To Go To The Root?

Dec 4, 2008

I made a script for the file that i am working with that hasbuttons located within 2 movieclips. I want that button to load andimage into a UILoader (problemLoader_mc) that I placed on the stageon the main timeline (the timeline that contains WeekBar_mc). Theproblem is that I don't know how to get to the root of the file tostart a new directory to tell my function to load the image i want.I have tried multiple approaches including:

MovieClip(root).problemLoader_mc.source = problemArray[0]
MovieClip(parent).problemLoader_mc.source = problemArray[0]
root.problemLoader_mc.source = problemArray[0]

[code]......

View 5 Replies

ActionScript 2.0 :: Call Every Button In A MC Or Root?

Feb 29, 2004

is there a function or a method to call every button in a MC or root?

View 3 Replies

ActionScript 3.0 :: Make A Button With GotoAndStop, And GotoAndplay?

Sep 2, 2011

How do you go abouts on making a game menu???
 
I Know how to make a button with gotoAndStop, and gotoAndplay. I understand timeline coding. And have started with classes and OOP, im ok at writing classes i guess.
 
But I have know idea how to make a menu that has basic things like instructions start ect basic things.. I have a library with a exported SWC, so i presume i need to grab my graphical assets from this, correct? or is there other ways?

View 2 Replies

ActionScript 3.0 :: A Button In One SWF Gotoandplay In Another SWF On The Same HTML Page?

Nov 21, 2011

Basically i have two SWFs on my page, one of them has a button which i want to affect the SWF to the right of the page. So when you click the button, it simply goes to and plays from a frame in the second swf!

View 7 Replies

ActionScript 2.0 :: MC Button To Pull Root MC Animation?

Jun 15, 2009

I have in root, two MCs1. MC is my content that a horiztional pan of multi MCs within the "content MC" 2. I have a MC that should function as a button each button linking to example "b3" for which b3 is on _root within "content MC" panel b3.PS. If I simply label the instance of the MC button "b3" this will play _root "content MC to that panel" However, I lose my animation on the button MCBelow is my _root code for (content MC)

Code:
var currentPosition:Number = contentHold.content1._x;
var startFlag:Boolean = false;

[code]....

View 3 Replies

ActionScript 3.0 :: Simple Button Command Using Root

Jul 9, 2010

I want to make a MovieClip called "menuText" go to and stop at frame 2 on the click of a button thats in another MC.

This "menuText" MC is on the _root, but i know you cant use "_root" anymore with AS3, although i think you can use "root".

This is what i have:

ActionScript Code:
home.addEventListener(MouseEvent.CLICK, onClickNextSlide);
function onClickNextSlide(event:MouseEvent):void{
root.menuText.gotoAndStop("2");
}

Whats wrong with that code? The button is called "home" by the way.

View 2 Replies

ActionScript 3.0 :: Variables - Have The Same Button In The Same Frame When Clicked Gotoandplay An Mc

Jun 25, 2010

this is so complicated i don't think i'll ever be able to do it a button is clicked to start the game which is all playing in the second frame of main timeline according to the maths for as3 but i need to be able to have the same button in the same frame when clicked gotoandplay an mc which exists in frame 3

View 9 Replies

Professional :: Possible To Have A Button Gotoandplay A Frame Inside A Different Movieclip?

Mar 22, 2010

hi i am having trouble getting my buttons to work right in flash cs4. is it possible to have a button gotoandplay a frame inside a different movieclip? if so how?

View 2 Replies

ActionScript 2.0 :: Gotoandplay - When The Button Is Pressed The Animation Should Run. But It Doesnt?

Dec 4, 2004

I have a button and a movie clip animation, when the button is pressed the animation should run. But it doesnt. I can make it all work if I place a second frame on my main stage and make the button gotoandplay that frame which has the animation on it. But the problem arises when the animation is done it just loops over and over. So I placed a gotandstop AS on the last frame. This only makes it so that if you want to click on the button a second time (to see the animation) you have to click twice

View 1 Replies

ActionScript 2.0 :: Make A Button Use The Gotoandplay Action To Go To Another Scene?

Jun 1, 2006

how do you make a button use the gotoandplay action to go to another scene? Its scene 420 i need to get to

View 3 Replies

Button Inside Of ScrollPane To GotoAndPlay Frame On The Main Timeline?

May 5, 2011

I have a scrollPane on my stage, and I have a movieClip inside of it with a bunch of buttons. When you click on one of the buttons, I need it to gotoAndPlay a frame label on the main timeline. So far I cannot get this to work.

View 6 Replies

ActionScript 3.0 :: Adding Two Functions To One Button (gotoAndPlay - Stop Sound)

Dec 10, 2010

I`d like to say that i`m total newbie regarding to as3. Ok, lets look at my problem.. I have 2 scenes (first is main menu with New Game button; second scene is intro for game). I`m having difficulties to make two functions within one button. Why do I need that? First function is to go to next scene (in my case, IntroScene). Second is for turning off sounds, so I can`t hear them in next scene. Here is the code:

[Code]...

View 9 Replies

ActionScript 3.0 :: Creating A GotoAndPlay Function On A Button In A Document Class?

Oct 27, 2011

I got a simple block of code that stops the main timeline on a certain frame, but so far I've been unable to form a code that would gotoAndPlay when mouse click happens on a button I made, and mind you I'm doing this in a document class. I've heard different instructions how to make the button, some say make it a movieclip, some say nest it in a movieclip

View 6 Replies

ActionScript 3.0 :: Button To Play Fade Out Of Page Then Root To Framelabel?

Jul 14, 2009

I am creating a flash site, and inside my frame label for lets say "pageA" the movie clip begins In pageA, fades up shows the content and stops(); alowing for the page content to be read.

After reading, the viewer clicks on the button inside the nav bar, to take them to say "pageB" i now want "Page A" to fade out and then root to "pageB

my thinking is that i insert a stop on the time line of the movieclip, then when the button is pressed it plays, lets say, the remaining 10 frames in the clip (the fade out), and then roots to pageB.

i just need a simple actionscript to do that, if there is an easier way, any one who could point that out and end my misery is a god/godess respectfully!

View 2 Replies

ActionScript 3.0 :: Stopping Root Timeline & GotoAndStop Button Code?

Oct 18, 2009

I want to tear my hair out and cry! I've just upgraded to CS4 and am trying to create a simple swf that consists of a root timeline with various frames, each labelled 'home', 'bio' & 'contact'. There are buttons on the stage with instance names and then on the first frame of my root timeline I have the following code (as well as the _root.stop() as actionscript on the labelled frames):

Code:
_root.stop()
homebtn.onRelease = function():Void {

[code].....

View 2 Replies







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