Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Goto Action



I want to make a play button after the movie is done loading. Do I need to make a stop action and put a gotoandplay(#) in order to go to the next frame? I just got out of bed because I can't get some sleep and I have school tommorow. Well, I better try getting some sleep now.



FlashKit > Flash Help > Flash MX
Posted on: 12-16-2002, 02:11 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Action GoTo
wich action should I use to say
GoToAndPlay Frame 20 Timeline of another mc named layout


thx plp

Help With A GoTo Action
hey everybody...

as a relative new on this... i have to ask things that for me actually are stupids but can't figured out...

i have this document and a button on 1st frame that goto and stop a movieclip on frame 15

that movie clip is 150 frames long.... the thing is i want that the movie goto the original frame 1 when it gets to the frame 150 in the movie clip

i thought that this would do it:

gotoAndPlay('Scene 1', 1);

but doesn't work

can anybody help me please

Goto Action With OnClipEvent
Why can't i perform goto action with onClipEvent (Enter frame). Everything else is OK except goto action. Why?

Timer Goto Action
ok, i've been trying to put this together for a long time now but i still didnt. can someone post a code for a timer that counts down for 2min and goes to another scene. it may sound simple but to me its not.

ComboBox - Goto Action
Know how to use URL inside the ComboBox but not how to navigate inside my movie to different scenes and frames.

When someone choose "Start" on the list it should jump to the label with the same name.
Easy? Not for me.

Thanks!
[Edited by Sthlm Grand Prix on 04-16-2002 at 10:30 AM]

Goto When Action Completed
Hi,

how can I make a movie go to a next frame when an action has been completed?
I would like to make an actionscript tween like below, and when the tween has been completed, I want the movie to go to a next frame


Quote:




stop();
textTween = new mx.transitions.Tween(tekstMC, "_y", mx.transitions.easing.Regular.easeOut, 136.9, 600,1, true)
something like:"when action above has been carried out, gotoAndPlay(5);";




thank you,
Jerryj

Goto When Action Has Been Carried Out
Hi,

how can I make a movie go to a next frame when an action has been completed?
I would like to make an actionscript tween like below, and when the tween has been completed, I want the movie to go to a next frame

Quote:




stop();
textTween = new mx.transitions.Tween(tekstMC, "_y", mx.transitions.easing.Regular.easeOut, 136.9, 600,1, true)
something like:"when action above has been carried out, gotoAndPlay(5);";




thank you,
Jerryj

Use Variable In Goto Action.
i have a variable declared in the root timeline.

var showlarge:String = "large_mc";

and Im trying to throw that variable into a gotoAndPlay action like this...

on(release){
_root.inner.showlarge.gotoAndPlay(1);
}

for some reason this does not work and I am not sure why. Any help would be greatly appreciated.

Goto When Action Has Been Carried Out
Hi,

how can I make a movie go to a next frame when an action has been completed?
I would like to make an actionscript tween like below, and when the tween has been completed, I want the movie to go to a next frame

Quote:




stop();
textTween = new mx.transitions.Tween(tekstMC, "_y", mx.transitions.easing.Regular.easeOut, 136.9, 600,1, true)
something like:"when action above has been carried out, gotoAndPlay(5);";




thank you,
Jerryj

Goto Action In Custom Function
hi,
i have created a custom function which i put in the first frame of the main timeline:
function compare () {
if (this.country == this.name()) {
this.gotoAndStop (3);
}
}

my problem is that the goto action is executed in the main timeline instead of in the local movie clip timeline from where i call the function. i want it to go and stop to frame3 in the local mc timeline (i have many mcs).... that's why i use "this".

except fo the goto action, everything else works fine!

does anybody have an idea?
thank u

[Edited by marinacb on 02-27-2002 at 07:06 PM]

Scene Name From Variable In Goto- Action?
is it possible to set a goto- action with a scene name from a variable?

like this (doesn't work this way, i tried...):

jump="mySceneName";

gotoAndPlay (jump,1);

i need to do this to distingiush the scene jump depending
on some user input.

A 'goto' Action When 'score' Reaches 100%
I have a little game that has a hit action sort of thing and a dynamic text field called 'score'.
How does one make a 'goto' action when 'score' (the dynamic text field) reaches 100%???
Any help would be greatly appreciated.

Dynamic Goto Action, Value From Smartclip
OK. i've got a smartclip which has within it button with a variable text field. I am wanting to put another variable so that onRelease, it will jump to a frame label within the current movie clip. so how do i write a variable for goto frame?
I'm there is an easier way for me to do this, via loops or somethings...please bring it to my attention.

A “Goto” Action From Inside A MC To The Main T.L
You’ll probably think I’m ignorant…



What if I had a little movie clip, and inside

It I wanted to call an action (onrollover) – and then for it to “goto”

(on press) to a certain frame on the main timeline (let’s say “frame 15”)

How do I define the root? Meaning – how do I do it? code?


Cause I tried to attach an action to the MC on the main timeline
And it didn’t function



Many thanks



Ed

A “Goto” Action From Inside A MC To The Main T.L
You’ll probably think I’m ignorant…



What if I had a little movie clip, and inside

It I wanted to call an action (onrollover) – and then for it to “goto”

(on press) to a certain frame on the main timeline (let’s say “frame 15”)

How do I define the root? Meaning – how do I do it? code?


Cause I tried to attach an action to the MC on the main timeline
And it didn’t function



Many thanks



Ed

Action To Stop & Goto Another Frame & Play
Hello,
I'm using Flash MX 2004, I want to play the first 140 frames then I want to stop as at this point the "enter" graphic appears then once the enter graphic is clicked continue playing the next frames.

Regards
blanchard

Goto A Frame, And Ignore The Action Script There, But How?
Hi, I'm failry new at using flash, but I've encountered a problem.

I'm using FlashMXPro, version 7.0.

The problem is as follows:
When I click on a sign in my flash movie, a small animated figure goes to the sign, and it jumps up with text parsed in from an xml file.

Now, I want to click a small button in the corner (x style, like everyone knows to close the sign)

But when I send it back to the frame I came from, that has an action script that opens the sign in the first place, so by closing it, I just return to the sign again.

Is there a way for me to go to the frame, and ignore it's action script?

I could add an extra frame for each sign, but that would mean a huge amount of work updating all fram references to any frame later in the movie.

I'm looking for something like a gotoAndStopButIgnoreActionscript ()function, if you know what I mean. Or some other way to solve my problem. I'm sure exit buttons like this is quite common, and I can't be the first person who didn't think closely enough on how I wanted it done. :-)

Any help would be most appretiated.

Can Anyone Help? Want Input Text To Control Goto Action
I am going to provide an input field which I want to control where the playhead goes.

The input field will ask for a specific date in a specific format. i.e...dd/mm

and when the user enters 05/23 (or May 23rd) and presses a button,

I want the playhead to gotoAndPlay("05/23");

Can anyone help me please? i know it has something to do with setting and getting properties, but I can't figure it out.

Thanks !!!

-Travie_B

Action Script For Movie Clip Goto New Frame
Hello!

I'm making a webpage completely in flash and i'm kinda stuck.

The thing is i made those buttons that come with flash in the component tab. I made buttons like HOME and stuff like that.Now i would like to know what kind of action script i could use that when u press on that button( MOVIE CLIP ) it would go to next frame, eg. from frame 3 to frame 5.

Thank you for your answers, please help me i'm a noob

Button Action: Goto Frame Then Jumpto Scene
I am new to this so I hope this request isn't irritatingly straight forward to answer.

I would like to give a button an action to continue playing the current scene and then when it reaches a specified frame to jump to another scene.

i.e. if scene1 is stoped on frame 10, clicking button1 will move the playhead on to frame 20 and then jump to scene 2...

button2 to scene 3, button3 to scene 4 etc.

Thanks in advance

Button Action: Goto Frame Then Jumpto Scene
I am new to this so I hope this request isn't irritatingly straight forward to answer.

I would like to give a button an action to continue playing the current scene and then when it reaches a specified frame to jump to another scene.

i.e. if scene1 is stoped on frame 10, clicking button1 will move the playhead on to frame 20 and then jump to scene 2...

button2 to scene 3, button3 to scene 4 etc.

Thanks in advance

Button Action: Goto Frame Then Jumpto Scene
I am new to this so I hope this request isn't irritatingly straight forward to answer.

I would like to give a button an action to continue playing the current scene and then when it reaches a specified frame to jump to another scene.

i.e. if scene1 is stoped on frame 10, clicking button1 will move the playhead on to frame 20 and then jump to scene 2...

button2 to scene 3, button3 to scene 4 etc.

Thanks in advance,


qwertybloke

Action Script That Does Two Things At Once-play A Movieclip And A Goto Command
Hi all.
Ok im a newbie when it comes to Flash, but im learning and thats the main thing! Anyway im trying to build a site and would like some help with a transition im trying to make. What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X"

As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)

Im pretty rubbish at scripting so far, so if this is easy and im just being silly then i apologise!

Thanks if you do relpy

Goto Movie(goto Scene)
hi, i made a scene (at the end of it (frame 560) i made a menu of buttons), when i click one of the buttons, a movieclip should appear (on(release){gotoandplay(561)}). At the end of the movie clip i put a script(gotoAndPlay ("scene#2", 1) that it should go to second scene. but it doesn't work. the movie plays but it repeats itself. do i have to add something else in the script!? please help, thanx!

If Lalala = True Goto Sing, Else If NE True, Goto Humm
ok, I asked this question about a month ago, I cant find the post though, and I want to go into a little more detail anyways. Using something like if(...) = True to verify a web page, or directory, or even a file. How do you specify that? What is the exact AS for 1. an offline file, and two, a Online Web Page. Like if http://www.dick.net/vagina.htm = True goto sex, else if ne True, goto disney.

Thanxz

(P.S. This is in no way related to my example, i was bored!)
AKA If File Exist

Goto Wont Goto...please Help
hello... this is my first post and i think my problem is fairly easy. i have been learning from the flash bible and i am using flash 5. i will try to lay this out as easyily as i can. basically i have a goto command in a movie clip that wont goto... here is the situation

i have a navigation system as a movie clip.
1. in the movie clip i have 5 buttons
2. each of these buttons have actions to goto and play a coresponding animations elsewhere on the screen within the movie clip. so on the rollover command and rollout command, the goto jumps forward and causes interactivity.
3. all of this works fine after alot of tinkering (though i still have a few questions about that whole process).

4. now the problem is attaching a goto comand on the release of each button telling it to goto and play a certain frame in scene 1.

5. i have at this point put three seperate actions on the buttions within the navigation movie clip. on rollover (this works), on rollout (this works), and on release (this does not work).

i do not know why it does not work! gotos are simple concepts... the timeline jumps to a specific frame and plays. the only thing i thought could be the problem is that there are conflicting goto commands on the buttons particular frame. i essentially tell it to goto and play an animation on rollover within the movie clip, and i tell it to goto a specific frame in the main time line on release... though this still sounds fishy to me.

i know this should be easy to fix... any ideas

thanks.

matt

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders

I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Replaycer, Action Script Viewer V.3,08 And URL Action Editor V.3
My friends! I urgently need the programs: Action script replaycer and URL action editor v.3 (or upgrade v.2 up to v.3).
In an exchange I can give you the programs: Action script viewer v.3,08, URL action editor v.2, SWF decompiler MX, SWF scanner v.2,63, SWF extractor, Action script obfuscator , Fla****! (deprotector), Vid2flash7t ( converter to format SWF), Fireworks (MX), Dreamweaver (MX), FreeHand (MX), Director (MX).
I shall be glad to send you any (or several) program in exchange for one or both programs which I need. And if you don't need its, send me please simply so.

My E-Mail: Flash_567@mail.ru
Flash_567@mail.ru

Image Keep Flying By The Site In Circular Action In Action Script
hi
all right are goes to try to talk in ingles:
how to do to create an effect in which for image keep flying by the site in circular action in action script
would you know the step-by-step?

Jeov@n

Frame Action To Call Tell Target (rather Than Button Action)?
I really need a frame to Tell Target a movie clip. For some reason, I can't get a Frame Action to work with Tell Target.

I have no problem applying the same Tell Target to a button, however. Am I missing something? Is Tell Target not meant for Frame Actions?

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Assign Cursor Action To MovieClip Using OnRollOver Action?
Hi all

I have a cool component from FlashLoaded which lets me create brilliant 3d layouts with out much hassle. The componet uses the cursors to zoom in zoom out and pan left and right.

I dont want to have to put an explanation on the site, I would like to put some invisible mc's or buttons on the stage that when the user rolls over them with the mouse it triggers that action.

Is there a simple piece of code i can place on the buttons to make this happen?

Many thanks in advance

Greg

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Adding Action To Button Stops Other Action.
Flash MX.....

I have two frames, there resides on the stage a button with the instance name "blabla".

First frame actionscript is.....

blabla._y = blabla._y + 1;

Second frame actionscript is........

gotoAndPlay(1);

The button slides down the screen when published, that is the desired effect.

Problem..... as soon as I add any actionscript to the button, even just two comment slashes "//", the movement stops.

I have a feeling that there is some really basic concept that is flying over my head at the moment.

Action Script Doubt For Changing The Action
i had used two this code to stop the movie and to play the movie


on (press) {
kk.onPress = function() {
this.count++;
if (this.count%2) {
stop();
} else {
play();
}
};
}


kk = button instance name.


it is working but the only thing is that on the very first click there is no action taking place
and on the next click onwards it is working properly

help me out to over come this.

from
aristotle

Button Triigers Action Only If Other Action Has Been Performed.
I need to make a button call an action only if another specific action has already been performed.

Here's the scenario:

I've got four MC's, each set up as a button, placed on my main stage and given an instance name.

Each MC has a stop action in the first frame. When the button is clicked the MC will begin to play simply by using this code:

on (release) {play();

Once it's off the screen (or no longer behind a mask I should say), the MC stops at a frame labeled "down" with a simple stop action. A few frames later, I have a frame labeled "up" that when triggered, will cause the mc to start again and the button/graphic that is off the screen will come back on the stage.

This works fine using the code below:

on (release) {play();
_root.associates.gotoAndPlay("up");
_root.services.gotoAndPlay("up");
_root.portfolio.gotoAndPlay("up");
}

However, I dont want the button to trigger any of the gotoAndPlay actions UNLESS the specific button has already been clicked and is off the stage.

I guess the code I am looking for would be something like this:

if_root.associates =("down") then _root.associates.gotoAndPlay("up");

any ideas?

Thanks

Goto
I have a button that plays an animation in the main scene. I want for this animation when it reaches the end of playing to go to another scene. In the last frame of this animation I put gotoAndPlay ("portfolio", 1);
But it doesn't work, it just goes back to the beginning of the main scene. What am I doing wrong? Thanks in advance for any advice.

Flashjr

GOTO
I need help with this situation:
*I have a scene with 2 stopped frames, the first one with a symbol and the second one empty.
* the Symbol has 3 stopped frames.
*each time u press <space> the symbol goes to its next frame -symbol.nextFrame()-
*when the tird frame is played the scene should goto frame 2
...I've tried several things but I cant meke the last point work, is it possible? what should I do?
Thanx

GOTO 2
*I have a scene with stopped frames, the first one with a symbol and the second one empty.
* the Symbol has 3 stopped frames.
*each time u press <space> the symbol goes to its next frame -symbol.nextFrame()-
*when the tird frame is played the scene should goto frame 2
*I used -_root.play("scene 1", 2)but it doesnt go to the frame I specified.

is it possible? what should I do?
Thanx

If...goto...else...help...me...please
Hi all hope someone can help.

on a navigation menu i have 4 buttons. when you click on a button a movie clip with sub headings for the choosen subject appear from the left. and when you click the same button again the sub menu disappears to the right.

what i want to do is say btn 1 is pressed and the sub menu has appeared then when you press btn 3 the sub menu of btn 1 disappears to the right and the sub menu for btn 3 appears and so on.

the action on each main btn is
on press
tell target movieclip
play

and each movie clip with the sub heading moves from left to right with 3 stop commands on at the first frame, middle frame, and last frame says goto and stop a frame 1.

so when the tell target command is activated it plays next frame.

problem: when you press btn 1 and the sub menu appears if you press btn 2 afterwards it plays that mc over btn1 mc.

is there a command which goes like
if btn1movieclip is at frame 15 then play btn1movieclip frame 16 then play btn2 mc


does this make sense to anybody...i dont understand it. help.help.help

Help With Goto Url
hi. i'm making a website that is a flash movie with iframes over it. i've been able to get the buttons to redirect the iframes from a "blank.html" to another html file. i'm having a huge problem though with getting one of the iframes to automatically redirect when the last frame of my flash movie is shown. can someone please tell me exactly how to do it? thanks

GoTo
I created a splash page as an intro to the site. When the movie is done playing I want it to go to the main page of the site rather than have the viewer manually click to get there.
Do I tell it to getUrl and direct it to the entire url of the homepage, for example- http://www.thesitehomepage.com

Also, I created a preloader with the word "Loading..." fading in and out. I want the animation to goTo the first frame when it is done playing. I gave it a goTo Frame 1 action but it does not work. It runs through the animation and stops at the last frame.

Any help is appreciated and thanks for all of your previous help.
Georgiana

Thanks (+ 10 Goto's In 1?)
Hi - im finally coming to terms with functions! - thanks to you all who've helped me out with my favious questions. Im going to have a perus through the site check forum soon to write a few comments on the subject im more knowledgable on - design.

Anyway - to make my function complete I still have a few goto commands that I wouldnt mind getting rid of

currently I have about a dozen _root.one.gotoAndStop(1); but each one has the name of a different movieclip - from one to twelve. Is there anyway I can cut the code down to 1 or 2 lines?

thanks again for all your help

Goto On MC
I'm using this Mac menu kinda thing, and I'm having a problem. The MC has a button on frame 1. I'm trying to get it to goto scene 2 fame 1 and stop on release. It's not goin.

The MC is placed on the frame 1 of scene 1. Here is it's script:

onClipEvent (enterFrame)
{
//script made by donny @ http://www.flashcircle.com
mouse = _xmouse;
if (mouse<0)
{
mouse = -1*mouse;
}
scale = 200-mouse;
if (scale<100)
{
scale = 100;
}
if (scale>200)
{
scale = 200;
}
setProperty ("", _xscale, scale);
setProperty ("", _yscale, scale);
}

On the button that makes up this MC I put:
on(release) {
gotoAndStop ("Scene 2", 1);
}

Help, I'm confused.

Thanks,

Lemorris

Goto
I have a couple of buttons in a movie clip. Each slides into position and then awaits the user to rollover. This mc is placed in the main timeline of the same file. When the user clicks on one of the buttons, I want it to jump to frame 50 on the main timeline (not the time line of the mc that the button is in) and then load an external swf.

I can get it to load the external swf but how do I tell the playhead to jump from its current position (on the main timeline) to frame 50, from within a movie clip?

Goto Top#
I am building a site for a restaurant and in the menu page I have
a buton that takes the user to the top of the page, it is a flash buton and I can't get it to work.
you can view it here

The page is unfinished so don't be critical,
I work with dreamweaver mx and there is a set of ready made flash butons to which I can write the link "top#" but I wan't to make my own buton.

Thanks for the help

Copyright © 2005-08 www.BigResource.com, All rights reserved