Code A Button To Got To A Specific Frame In Another Mc?

Jun 3, 2009

im trying to code a btn to got to a specific frame in another mc

my code is
stop();
gfhtml.addEventListener(MouseEvent.CLICK,gfclick);

[code].....

View 4 Replies


Similar Posts:


ActionScript 2.0 :: 2.0 W/code For Specific Date & Time For A Frame Jump?

Dec 18, 2010

Just when i think I have learned something and can make something work I find out I know less than nothing. its either laugh or tear my hair out (thinks there must be a lot of bald actionscripters) LOL
this is the code i came up with and is not working. I want this on a frame on main timeline and

nyeve.onEnterFrame = function() {
nyeveDate = new Date();
seconds = nyeveDate.getSeconds();
minutes = nyeveDate.getMinutes();
hours = nyeveDate.getHours();

[Code]...

View 3 Replies

ActionScript 2.0 :: Convert Button Code To Frame Code

Jun 5, 2007

I have a button with the following code attached to it:

[Code]....

I want to use this code on a frame. Is it onLoad I need to use??

View 1 Replies

IDE :: When Button Is Pressed It Goes To Specific Frame?

Dec 10, 2009

So I have 13 buttons and each of these load the same movieclip. Now how do I make an if statement so that depending on what button is pressed it goes to a specific frame in this loaded movieclip?

View 1 Replies

Professional :: Making A Button Go To A Specific Frame?

Aug 30, 2010

I have a button on frame #1.  On that frame, I used the following code I found on the web (which I tried using both AS2 and AS3):

stop();function buttonClick(event:MouseEvent);void{gotoAndPlay(2);

I get errors of varying sorts. What should I use?  AS2 or AS3? And what code should I assign to the button (or that button's frame?) to get it to go to frame 2 once clicked?

View 5 Replies

Making A Button Go To A Specific Frame On Release?

May 30, 2010

Im creating a simple flash presentation and i have created four buttons, what i want to now do is make each button go to a differant frame on the timeline, im guessing this is go to and stop? But i cant figure it out [URL]

View 1 Replies

ActionScript 3.0 :: Button Play Specific Frame On Timeline?

Feb 19, 2010

how to play the timeline with a simple button

example:

in AS2 you could attached script to button something like

on MouseEvent {
gotoandplay(6);
}

thats all I am trying to do, but in AS3 how do I simply get a button when clicked to go to a frame and play.

View 3 Replies

ActionScript 3.0 :: Click Button To Jump To A Specific Frame?

Feb 9, 2010

i see a code back in my old days of flash pro 8.0of gotoAndPlay() and stop(),etc;now its as3.0when i tried my old codes b4 with as3.0 it doesnt work..well my button is named start_btn.. and all my buttons is on the same frame as it is..but i wanted for it jump to the next frame where most of the actions of my flash takes place..can some1 guide me thru this?im jst new to cs4..and lots of things has changed when i jumpd from pro 8.0 to cs4.

View 2 Replies

ActionScript 3.0 :: Jump To A Specific Frame, When A Button Is Clicked?

Mar 2, 2011

This time, my goal is, I want to jump to a specific frame, when a button is clicked.

For example,

When I push button1, jump to frame 55,

When I push button2, jump to frame 65..

Buttons are designed in one frame, at the beginning, together...

View 2 Replies

ActionScript 2.0 :: Get A Button To Make A Movieclip Go To A Specific Frame?

Jan 13, 2004

What I am trying to do is get a button to make a movieclip go to a specific frame. I have a movieclip that plays a set of frames up to the 100th frame, and then I tell it to go back to and play frame 1 again. However, at about 105, I have another set of frames that I want to play at the push of a button. How would I go about doing this?

View 1 Replies

ActionScript 3.0 :: Int - Make A Generic Button To Call An Specific Frame

Sep 16, 2011

I'm trying to make a generic button to call an specific frame but when I'll try it with trace it works perfect... when I make a goto code on it it messes up my entire count....here is the code I'm using...does anyone know whats happening? how can I fix this? here is my code

[Code]...

View 7 Replies

Flex :: Make A Button Go To A Specific Frame On The Main Timeline?

Sep 13, 2010

how to make a button go to a specific frame on the main timeline my button called a play_btn and i want it to go to a specific frame on the main timeline ???

View 2 Replies

ActionScript 3.0 :: Button - Move The Main Timeline To A Specific Frame

Jan 12, 2011

I have this code below on this button that is inside of a movieclip. I just want this button to do is move the main timeline to a specific frame thats all.

[Code]...

I didnt put i a object name before the addeventlistener because I'm not sure what to put because if I put "this" the other buttons will bt controlled by this code and if i put "parent" only that button will work.

View 7 Replies

Flash :: Professional - Make Text (or A Button) Link To A Specific Frame

Aug 9, 2010

1. The old main logo was not as wide as the new one, so now the entire new one is not clickable (to take you back to the main page). How do I fix this?

2. For the life of me I can't figure out how to make text (or a button if need be) link to a specific flash frame. If you look on the site, there are a couple of spots under "What We Do" that I need clickable to take them to the Contact Us page.

View 5 Replies

ActionScript 3.0 :: Make Button Instance Containing Movieclip Play Specific Frame?

Sep 27, 2011

What I want to do is have one movieclip that has many frames and turn that into a button and then make different instances of the button and have those instances display a certain frame of the underlying movieclip.

View 17 Replies

Jump To Specific Frame On Movie File When Relevant Button Clicked

Aug 26, 2009

I have many buttons in a few movie files, i need to select a few of these buttons and store them in an array so i use....

var twocolourbuttons:Array = ["mybutton1", "mybutton23", "mybutton34"];

I then need to show a movie file if the button that has been clicked on is in the array. so something like...

if e.target.name is in the array show the movie twocolor.visible = true;

i then need to go to a certain frame of the movie, depending upon where the button is found in the array. So if the button is at position three of the array, i need to jump to keyframe 3 of my movie.

View 1 Replies

6 Buttons, 6 Lights - Using The Gotoandstop Comand To Go To A Specific Frame Based On The Button Press

Feb 9, 2010

I am trying to make a light comparison chart where the lights can be turned on inividually by the user and one can be compared to another depending on which of the 6 lights you want to view.So far i have managed to make this work with 5 lights over 33 layers and diffferent buttons and different handlers for each of the buttons on each layer but as soon as the 4 and 5 light come into play everything slows down struggles and sometimes gives up.Is there a simple way of doing this which i am unaware of.I am currently using the gotoandstop comand to go to a specific frame based on the button press.

View 8 Replies

ActionScript 2.0 :: Make Button Code On Frame?

Feb 15, 2011

Is it possible to make a code like this[code]..

In to the frame?

View 2 Replies

Professional :: Moving Rewind Button Code To Actionscript Frame?

Jan 5, 2011

I was told that putting code on buttons is bad practice now. So, I'm trying to move my button codes to my main actionscript frame. I did it find with the play and stop/pause buttons. However, the rewind and forward buttons are proving more difficult How would the code look if I transferred it from my button to my actionscript frame I'll post the code I have right now in my rewind button.

on(press){this.onEnterFrame = function(){frame = theTargetClip_mc._currentframe;theTargetClip_mc.gotoAndPlay(frame-6);}}on(release){ theTargetClip_mc.play();delete this.onEnterFrame; }rect" answers.

[code]....

View 1 Replies

ActionScript 3.0 :: Prize For Code Button / Video / Return To Frame?

Sep 10, 2009

I need code that makes a button gotoAndPlay (211) which is a movie in an FLVPlayer that I "imported" as an external file that will play as a progressive file, and then, when that movie clip has finished playing, I need code to make it go back to frame 210, which has the menu with all the buttons on it that will launch other documents and movies on 212 and 213. The big problem is getting Flash to know to go back to my menu page when the video stops playing...All in ActionScript 3. If I can get working code by 8am tomorrow - Thurs 9/10/09, I will pay for the first posted that works. Say, $150. call the button button1 and the video video1.

View 9 Replies

ActionScript 2.0 :: Change The Colour Of A Graphic In A Specific Movie In A Specific Frame

Mar 31, 2006

i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?

View 2 Replies

Flash 10 :: Export Specific Frames Not All Frame - Specific Timeline

Sep 15, 2010

how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.

View 0 Replies

Target A Specific Frame In Specific Movie Clip?

Dec 3, 2009

I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.

View 3 Replies

ActionScript 3.0 :: Load Specific SWF At Specific Frame By Default?

Sep 21, 2009

Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:

Code:
//About Us Button
function test2(evt:Event):void{

[code].....

View 1 Replies

ActionScript 3.0 :: Code The Button Inside The Movieclip To GotoAndPlay To Frame 1 On The Main Timeline?

May 11, 2011

ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?

[Code]...

View 4 Replies

Magical Button That Lets Find All Code In Any Frame In Time Line Or Flash File?

May 30, 2009

Is there a way or some kind of magical button that lets you find all code in any frame in your time line or flash file? CS4

View 1 Replies

ActionScript 1/2 :: Specific Frame On A Specific Movieclip?

Sep 1, 2010

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) {  _root.gotoAndPlay("cont");  _root.smallbutton.gotoAndPlay(5);

View 7 Replies

ActionScript 2.0 :: Make A Specific Thing Happen While Clicking A Specific Button

Jan 17, 2006

What I want is a hint how to make a specific thing happen while clicking a specific button. Like "if I click button 1, do this". Would like to use this script though I'm gonna add buttons over time and this is an easy way to have the functionality working.

Here's the code:

Attach Code

function hitButton(btn) {
btn.onRollOver = function() {
this.colorTo (0xC4006A);

[Code]....

View 4 Replies

ActionScript 3.0 :: Create A Frame Label On A Specific Frame?

Aug 6, 2009

if its possible, via AS3, to create a frame label in a movieclip on a specific frame.

Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?

so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115
etc

View 3 Replies

Flash :: Relationship Of Code On First Frame Of Main Time Line To Class Code And Library Objects?

Mar 27, 2011

Got to the point where the hole in my AS3 knowledge is getting large!Realising I have confusion about the relationship of:Body of code on first frame of AS3 file.(Which I have so far used to create instances of library objects using addchild and make calls to class code).Is this code called the document code? What do people call it?Numerous classes linked together by extending each other etc.Library objects (usually graphical objects)Should it be done differently? have the following problems due to lack of understanding:Addchild complicated from a class but straight forward in main body code.Cant call functions on the main body code from classes, because class code does not know the main body code exists?

View 1 Replies







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