Action Script Question: GotoAndPlay
Ok, I took about a year off of flash and actionscript to get my business going, and now I am ready to delve into it again. However, already I'm getting stuck on things that should be easy and straight-forward.
All I want to do is tell a movie clip to play from a certain frame. It's going to that frame, but not playing... just stopping. Here is the code I'm using:
Quote:
_root.ball_animation.gotoAndPlay(2);
I've attached the little test .fla I'm working with.
Any help would be greatly appreciated. I'm sure it's a simple thing.
Mike
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-27-2006, 05:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Gotoandplay Then Action
How do you play a series of frames then when the head reaches the last frame an action is performed depending on which button has been clicked?
For example: I have a series of buttons and when clicked move up or down at the same time. When the buttons have finished animating I need to put an action on the last frame to tell the movie where to go, but this depends on which button has been clicked.
Hope that makes sense.
GotoAndPlay(...) Action
Hey, I'm new to flash, my question is:
If I got 2 tags, for this sample, they'll be "_over" and "_out" which are used for a button that has a motion of color tint.
Now, lets say I start with gotoAndPlay("_over"), then the button turns from one color to another, then I trigger the gotoAndPlay("_out") and the button changes back to it's original color.
My problem is when I trigger the gotoAndPlay("_out") while gotoAndPlay("_over") was playing, so I was wondering if you can somehow get the frame being played by the "_over" tagged frame and relate it to the gotoAndPlay(...) function.
Variables In GotoAndPlay Action
I'm looking for a way to insert a variable name that can be changed instead of the movieclip name.
For example:
Var x=home
_root.x.gotoAndPlay(3);
I am really stuck with it - so please help me if you can.
GotoAndPlay() Action Not Working ...
Hi guys I have a movieclip on the stage called screen1_mc
Basically screen1_mc itself consists of a tweened animation which starts on frame 2 and ends at frame 20.
Frame 1 of this tweened layer is blank.
In this movie clip on the first frame of actions layer i have a stop() action. Then on frame 2 i have a blank keyfame and then on the last keyframe i.e 20 of the actions layer i also have a stop().
Now the problem is in the main movie(which consists only of one frame) when i put the following script in the actions layer:
Code:
screen1_mc.gotoAndPlay(2);
It does not work..instead its just like i used the gotoAndStop(2) action. As it just STOPS at frame 2 of the moveiclip..instead of playing the mc animation.
However if i use the following code instead it DOES work:
Code:
button_mc.onRelease = function():Void{
screen1_mc.gotoAndPlay(2);
}
Any ideas why this is happening? Thanks in adavnce
Variables/gotoAndPlay Action
hi everyone,
i am creating a menu; upon clicking one of the buttons, the main swf goes into a transition, then needs to play part of an mc with the same name as the variable (menu), e.g., mcAbout, mcContact, etc.
i cannot, however, make it work. i have tried the following.
"mc"+menu.gotoAndPlay("show");
please help. thank you in advance.
Action Script - Gotoandplay
Hi, like i said in my other post im making a presentation for school;
i want to repeat something (letters turning blue ) and i wanted to link it that it would go to frame 382 all the time.
it works, i typed gotoAndPlay(381); and it does go to 381
now, ALL the layers get send back to frame 381; in layer 15 i putted something and thats now repeating all the time (because it takes place at frame 381 )
how can i make it work, that only layer 11 gets send back to 381, and the other dont?
cheers, chocomel
Action Script, Gotoandplay
I've generated this script
Code:
on (release) {
this.gotoAndPlay("18");
}
So that when my object entitled "plain_but" is clicked it will skip to frame 18.
When i test the movie a little "link hand" shows over the button image but when i click it does not advance to frame 18
any ideas?
Delaying An GotoAndPlay Action
hello everybody.. thanks for edvices posted.
this is what i need to learn today:
i have this movie clip that i want to keep playing from time to time
but because it is shot keeps flashing.
how can one delay the loop.
greetings from Portugal..Ahaab
GotoAndPlay With Action Script
Flash MX 6
I have a main swf file which creates an empty movie clip and loads a sub movie. In the sub movie there is a pushbutton component which when pushed I want to the movie to go to frame 2 of the main movie.
I set the handler for the pushbutton to sendinfo.
Then created a function called sendinfo and put it in the main movies first frame where most of my actionscript is.
The pushbutton trace doesn't show it finding the function.
If I put the sendinfo into the sub movie it finds the function. But the gotoAndPlay doesn't find the main scene and frame 2.
How do I tie a sub movie action to do somethng in the main movie?
Thanks
Tricia
yorkeylady@earthlink.net
Strange: GotoAndPlay Action On Duplicated Mc
Hmmm,
I'm a little puzzled by this, I really can't see whats wrong with this code (although i'm wary about claiming it to be a bug in flash, because everytime I think that could be it i'm proved wrong )
Here's the code
depth = 1;
duplicateMovieClip(_root.myClip,"clip" + depth, depth);
_root["clip" + depth]._x = Math.floor(Math.random() * 400);
_root["clip" + depth]._y = Math.floor(Math.random() * 300);
_root["clip" + depth].gotoAndPlay(2);
depth++;
The clip get duplicated fine and the position is set on the screen, the clip also goes to frame 2, however it doesn't play.
I also tried using
thisClip = eval("clip" + depth);
thisClip.gotoAndPlay(2);
and still nothing. Can anyone think of a reason why this wouldn't work?
At the moment I have a slightly dodgy fix by putting a play(); action in frame 2 of the clip to be duplicated, but the fact I can't get gotoAndPlay to work is bugging me
Possible Reasons Why A 'gotoandplay' Action Fails?
I have a movie set up with multiple scenes.
In a scene toward the end of the movie there is a goto action to loop just that one scene. This goto action specifies a frame (by label) for the playhead to return to.
But instead of returning to the specified frame, the playhead returns the beginning of the scene.
I have also tried referring to the frame by frame number (as opposed to label) but to no avail.
I can't seem to see the problem...
If anyone can help with this seemingly easy problem it would be most appreciated.
I suppose that I'm also asking if anyone knows any tricks or traps for young players to do with this kind of thing, feel free to throw it in.
thnx in advance...
Action Script HELP - TellTarget And GotoAndPlay
What file will these commands open? Do they specify a specific name - i.e.: 2_root, 31_root, 2.png, or 31.png?
code: switch (page) {
case 1 :
tellTarget ("_root.pages") {
gotoAndPlay(2);
}
break;
case 2 :
tellTarget ("_root.pages") {
gotoAndPlay(31);
}
break;
case 3 :
tellTarget ("_root.pages") {
gotoAndPlay(61);
}
break;
case 4 :
tellTarget ("_root.pages") {
gotoAndPlay(91);
}
break;
case 5 :
tellTarget ("_root.pages") {
gotoAndPlay(121);
}
break;
case 6 :
tellTarget ("_root.pages") {
gotoAndPlay(151);
}
break;
}
GoToAndPlay Action Within Movie Clip
I hope that someone can help me out with this problem
I have a movie that contains 10 scenes
Within scene 7 I have a button within a movieClip on frame 1 through 5. When the user clicks the button I need the main timeline to move to frame 10. When I run the movie it moves the playhead to frame 10 of scene 1.
Any help would be appreciated.
This is the code with the movie clip.
on (press) {
_root.total = Number(_root.VarDropA)+Number(_root.VarDropB)+Number(_root.VarDropC)+Number(_root.VarDropD);
if (_root.total == 4) {
_root.gotoAndPlay (10);
} else {
if (total<>4) {
_root.gotoAndPlay(30);
}
}
}
GotoAndPlay Action On Movie Loaded Into _level0
Hey,
This is probably staring me right in the face but...
I have a movie in _level3 and when a bttn is pressed the movie "home.swf" loads in _level0.
How do I tweak this script so that the "home.swf" movie goes to frame 2 when the bttn (in movie _level3) is pressed? I don't want to load into a movieclip (if possible).
on (press) {
loadMovieNum("home.swf", 0, "GET");
unloadMovieNum(3);
}
Any help is mucho appreciated.
Tim
The Actions On These Buttons Are Links(var Li, How To Put A GotoAndPlay Action To It?
the actions on these buttons are link (var link = new Array(7), how to put a gotoAndPlay action to each button? please help me, this one I don't know! Thanks
var names = new Array(7)
names[1] = "home"
names[2] = "portofolio"
names[3] = "download"
names[4] = "graphic"
names[5] = "contact"
names[6] = "hosting"
var link = new Array(7)
url1="http://www............";
url2="http://www............";
url3="http://www............";
url4="http://www............";
url5="http://www............";
url6="http://www............";
for(i=1;i<=6;i++){
clip.duplicateMovieClip("clip"+(i+0), +i)
height = _root.clip._height + 2
_root["clip"+(i+0)]._y = _root.clip._y +height * i
_root["clip"+(i+0)]._alpha = 75
_root["clip"+(i+0)].names = names[i];
_root["clip"+i].link = _root["url"+i];
_root["clip"+i].onPress = function() {
getURL(this.link);
};
}
_root["clip"+(i+1)]._alpha = 75
_root["clip"+(i+1)].name = names[i];
_root.clip._visible = false
stop()
Simple GotoAndPlay Action Between MCs Not Working Need Urgent Help
Hi all,
started running into a problem on this site Im making.
please somebody have a look.
http://www.pixeladdict.dk/IDHair.fla
Go to: Layer "menu" --> menu symbol --> last frames --> doubleclick "Mud Wax" symbol and check out the AS.
ActionScript Code:
on (press) {</p>
<p>_parent.forside.gotoAndPlay ("out");</p>
<p>}</p>
<p>
What the **** is wrong here?
thanks so much.
pxa
EDIT: File apparently gets made into a *.doc, so just rename to fla after download. Thanks
Storing Variables In A Button And Using It In A GotoAndPlay Action In A Later Frame?
I'm getting really frustrated with this. I can't figure it out. I have 6 buttons on a navigation bar. What I want each button to do is take me to a different scene. That's easy enough. But here's the catch. I want some of the existing content (basically everything but the nav bar) to fade out before I switch scenes. I could do this the long way and make one fade out for each possible link. But that's going to take too long. So what I'm trying to do is when the user presses the button it declairs a variable, and stores a keyword in itA(eg. var link; link="scene2";). Then the movie plays a sequence of frames that fade out the content of the scene. On the last frame of the scene I have placed a few if statements to determine what scene the movie needs to switch to.
Eg.
if (link="scene1"); {
gotoAndPlay("Scene1", 1)
}
if (link="scene2"); {
gotoAndPlay("Scene 2", 1)
}
if (link="scene3"); {
gotoAndPlay("Scene 3", 1)
}
But this doesn't work. What happens is, say I'm on Scene 1, and I have buttons for "Scene 1", "Scene 2" and "Scene 3". I click on Scene 3 and the content fades out and then I end up on Scene 2, or whatever scene is next in the movie. So for some reason it's either not using or working with the variable's properly. That or I'm using them wrong.
Here's a sample movie of what I'm trying to do. It has the code I'm trying to use in it. [click here] Can anyone help me? Please?
Thanks,
-MAD
GoToAndPlay Action Doesn't Work From Inside A Movieclip?
I have a button that is 2 levels under the main timeline inside of a movieclip and it will not accept a simple "onrelease gotoandplay" action. do i need to add something in the code to tell it to play on the root timeline?
Right now it just says:
on (release) {
gotoAndPlay("testimonials", 11);
}
and it's two levels under the root timeline.
MY1stPOST...Action Scripting Question:How To Play 52 Frames THEN GotoAndPlay An Item
I just signed up today and look forward to helping others and receiving help in this forum.
My question is pretty basic, I just need to get the action scripting code for it.
I need to know how to add an action script that tells a link button when it is clicked to play forward 50 frames AND then go to a different frame marker.
Currently the action scripting I have on a button is...
on (release) {
gotoAndPlay("D Header");
}
This link is correct and it is what I want to happen, but before it goes to "D Header" and plays it, I want it to play 50 frames forward from where it is, and then go to "D Header" and play until it hits my "stop" marker.
So, basically I need scripting that says...
on (release) {
<play forward 50 frames and then>
gotoAndPlay("D Header");
}
Any help would be greatly appreciated. I'll be checking back all day, and so on, until I get a response.
THANK YOU!!!
jed
URGENT How To Add The "gotoAndPlay" Action Onto A Movie Clip Button
Hello Everyone!
I've just created a movie clip button, I added a roll-over effect on it, so when a cursor moves over the button, the movie clip would play.
I'm really happy with the visual result of my movie-clip button, however I don't know how to make it be connected with an animation which I've created on the same time-line of the movie clip button.
Here is the action script for the movie clip button:
b1.onRollOver = over;
function over() {
this.gotoAndPlay(7);
above script works fine! b1 is the movie clip button, and the movie clip starts at frame 7.
However, when I try to add an "On Release" action to the button, in order to make it to play an animation(which should starts at frame 36) when people click on it, the script doesn't work, here is the script:
b1.onRelease = onRelease;
function onRelease() {
this.gotoAndPlay(36);
}
Can anyone help????
Thank you in advance!!!
GotoAndPlay This...then...gotoAndPlay That? (transition Animations For Menus)
Hi all,
Quick question. How do I make my nav buttons trigger an animation that removes the main menu graphics(in an animated way) then loads up the graphics for the relevent section thats been selected?
All I can do is have the buttons click straight to the frame label with the relevent pages on them. I need to have an 'ending animation' for the main page to see first before continuing on.
Thanks for any help.
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.
GotoAndPlay Works, But Now This.gotoAndPlay?
I want to but my navigation in the library. Then when a certain button gets clicked, I want to go to a certain scene.
So I have the action
on (Release)
{
_root.gotoAndPlay ("Scene 3", 1);
}
for the button in the library. This does not work. If I put this in Scene 1 on the first frame, it also doesn't work. Putting
gotoAndPlay ("Scene 3", 1);
there works.
So my question is: How do I change between scenes from a library button?
[MX04] GotoAndPlay Then GotoAndPlay
Newbie here... how would you do this...
if (_currentframe=="concept_stop" or _currentframe=="develop_stop" or _currentframe=="gallery_stop") {
gotoAndPlay(_currentframe + 1) THEN gotoAndPlay("develop_start");
} else {
gotoAndPlay("develop_start");
Basically, I want it to play the frame after the current frame until it stops, then play the develop start frame... how would you do that?
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
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
Passing Variables From Action To Action
Hi all Flashers!
In my Flash project I have 2 functions that has to use the same variable, they has infuence of eachother, but I understand stand variables in functions expires when the function ends. My question is: how do you pass a variable from action to action, or should I use global variables. If yes, how can I declare them properly.
For people interested to view my code. Here are some links:
http://www.eyecatchers-online.com/test/code001_temp.txt
Thanks in advance!
Question / MC Action (different Action By Clicking)
Hi. I am a beginner of ActionScript, and I need some help to do the Movie Clip action something like this:
(1) When you click a movie clip (say, square) itself, it moves to particular direction and stops.
(2) Then when you click it again, this time it moves to the other direction and stops at the position where it has used to be.
I would like to make this thing with all ActionScript.
I am appreciated if some of you could help me out. Thanks.
Have a nice day.
P.S.
I use Flash MX.
Karatechop
Where Action Fits Into Button That Has Already Some Action?
i've got this code in one of the buttons, but i want the button to be link to the 2nd frame or scene, but do't know where should fit that peiece of code
onClipEvent (enterFrame) // this action already is in main timelin
{
_y = _root.menu4._y
}
something like go(release... should it be after, b4 or within the brackets?
thanks
Delayed Action In CS3 Action Script 3.0
Hello everyone...
I've been working on a problem for three days now and have tried various forums attempting to get the answer. So..... I'm here to give the KIRUPA group a shot.
Here is my problem:
Using Flash CS3 and Action Script 3 I created a flash site with lots of pretty cool animation. On one page I have a few buttons which are linked to various urls. With my limited knowledge, the Flash CS3 Bible and the Action Script Bible I am able to get this far.
On this page, I would like to enter script for each of the buttons that will cause a delay of 5 seconds before the requested url action is taken and the user is taken to the next page. This is so the animation that is running can finish before the user is redirected to the requested url.
I hope that I've made myself clear on this issue. I've had a lot of practice attempting to explain this over the past few days.
Thank you VERY much in advance to the person who can help me with this problem.
Alasandro
To Run Action Script From Action Panel First
i am new in writting flash action script programming,besides being new on thi area , i have written a flash action script after pressing F9(windows-action) from flash 8 starting screen ,the action panel comes in semivissible format ,
then i select new action scriptfile from file menu ,then the action panel came out. there i have written the following:
var numM:number = 10 ;
trace("my number is" + numM);
then at the time of execution i couldn't find testmovie option on the control
menu.. so tell me how should i run the script..
Help With If() And GotoandPlay()
Ok. I've been a programmer for many years and in many languages, but I seem to be SUCH A NEWBE when it comes to Action script.
What I am trying to do is set up a flash file that is made up of multiple scenes, and each time the flash file runs I want it to go to one of a set of random scenes in this file.
So, I started to come up with a what I thought was a solution. WOW... It doesn't work...
Here is the code. I'm using F5. The scenes are named "0", "1", "2", and "3". I threw in the "trace" (that didn't seem to help me while debugging this (that's another question I'll ask later) and the "unknown" scene was thrown in to also help with debugging.
The system always runs down and stops on the "unknown" scene.
Any help would be Greatly Appreciated.
Thanks,
William Howard
// Code start here ----
newscene = int(random(3));
trace ("newscene");
if (newscene == 0) {
gotoAndPlay ("0", 2);
}
if (newscene == 1) {
gotoAndPlay ("1", 2);
}
if (newscene == 2) {
gotoAndPlay ("2", 1);
}
if (newscene == 3) {
gotoAndPlay ("3", 1);
}
gotoAndPlay ("unknown", 1);
// Code ends here ----
Gotoandplay ?
i have 2 scenes and I am trying to go back to scene 1 from 2 and vice versa. I have this code on a button in scene 2, but it will not go back to scene 1, why? Do I need to use _root somewhere?
on (press) {
gotoAndPlay ("Scene 1", 1);
}
Gotoandplay )o:
i swear to god im going to kill someone if i dont figure this out soon.
gotoandplay does not work in my movies! i'm probably missing one little thing but it's pissing me off!
i want to assign gotoandplay on release of a button to a different scene, but i've tried everything and it does not work! is it just my version of flash?
excuse my newbieness here.
what is the proper way to do this?
is this right?
on (release) {
gotoAndPlay ("name of scene", 1);
}
where "1" is the frame of the scene i wish to play at
Gotoandplay
in a movie clip inside my main swf, i have a button that i want to go to and play at the frame labeled "main" in frame 1, in the button i put this
Code:
on (release) {
gotoAndPlay ("Scene 1", "main");
}
and it just reloads from frame 1, i also tried using 82 instead of "main" and it still did the same thing, am i doing something wrong?
GotoAndPlay
I'm having trouble with a button and gotoAndPlay
I have a button that is on a movie clip. I have placed that movie clip on the main timeline. What I'd like to do is when this button is hit for the main timeline to jump to a certain frame. I can't seem to get this to work, despite how easy it should be. I've tried using frame labels and just using the frame number. I've had the button do other things, such as changing the alpha on other movie clips that are also on the main timeline (just at least seeing if I can do something with the button).
I went into the normal mode for the actionScript in Flash 5 and have tried with putting the scene in there (despite that it's a one scene movie, just that the button is inside of a movie clip rather than directly on the main timeline). I also tried putting this.gotoAndPlay, but no luck. Any ideas?
Thanks
GotoAndPlay()
G'Day,
I am currently loading a menu onto a movie. That menu controls the bottom movie. The bottom movie has many scenes. When I press on one of the menu buttons to go to a particular scene and a particular frame on that scene, the whole thing craps itself and gets me VERY angry.
I'm using:
on (release)
{
tellTarget(_level0)
{
gotoAndPlay("products", 1);
}
}
What's all that about? Any help would be greatly appreciated!
GotoAndPlay Help.
I have a movie clip that I want to place on the stage three times. I want to control each one separately with three buttons. I've put a stop action in the first frame of each clip. How do I call them separately? By Instance name?
Please Help.
Thanks.
GotoAndPlay
I have a question. Is it possible to have a button, where by pressing it, you go to a certain frame, and after it passes a few frames, for it to skip to another frame somewhere else. I know this is possible, but can you do it all in the actionscript of the button. so, for example, it goes to frame 30 up to 40, and then skips to 60 and continues on. I hope i can get help, it would really do me a lot to know. Thanks
-Paul
|