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




Button In MC... GotoAndPlay Help



I have a MC with the instance name "box" on my stage. Inside this movie clip I have a button with the instance name "button".

This is the code I have on the button:


PHP Code:


on (release) {
    _parent.box.gotoAndPlay("blah");




On the main timeline, my MC (box) ends on frame 135. On frame 135, on an Actions Layer, I have a stop command. On frame 136, I have named it "blah" (minus quotes). When I click On the button, I just want it to go back to the main timeline and play frame 136 (named "blah"). I have looked on the searches, and applied almost every combination. I have looked in the manual and still cant find anything that works!

Please help!!! Thanks.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-23-2002, 07:09 PM


View Complete Forum Thread with Replies

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

Button: Level1 Button Tells Level2 Movie To GotoAndPlay
on (release) {
_root._level2.gotoAndPlay ("interact", "startscreen");
}
___________________________________________

What's wrong with that?

I have a button within a level 1 movie, and I want it to tell the movie on level2 to go to the 'startscreen' label within the "interact" scene.

I've tried a few variations, but nothing seems to make it work. Any ideas?

(the _root. thing was added, cause I saw everyone else using it. still doesn't work)

Thank you all for being so helpful in advance!

Tone.

GotoAndPlay : Scene From A Button Inside A Button
Hi,

Two scenes : "scene1" and "scene2"
One button on the main scene... : instance = button
one button INSIDE this button : button2

from button 2, I need to swtich to another scene, for example scene2
How do I execute that?

I have tried putting button2 inside a mc on the main scene, but I can't because I need to put a startDrag on it...hence why I have a button inside a button.

thanks for helping?

Make Button GotoAndPlay When Another Button Is Clicked
ok. next dilemma.

once the button is pressed it stops on frame 16. there will be several other buttons. what i'd like to happen is that when another button is pressed the previous button that was pressed (which would currently be on 16) will gotoAndPlay frame 17 which animates it and makes it known to the user that they have already clicked it.

here is the code i have right now which all it currently does is make the frame stop on 16 when it is clicked. i'm not sure what the best way to go with the code on making it jump to frame 17 when another button is clicked. i've included the fla file for reference.

if i used something like:
if (button1._currentframe==16)
gotoAndPlay(17)
then i would have to create this code for every instanced button...which could be time consuming if there are around 30 buttons or so.....


stop();
this.onRollOver = function() {
this.gotoAndPlay(2);
}
this.onRollOut = function() {
this.gotoAndPlay(3);
}
this.onPress = function() {
delete this.onRollOver;
delete this.onRollOut;
this.gotoAndStop(16);
}

Button GotoAndPlay/get URL
I have a flash file that when I apply (to an instance of a button) the on (press) action and then put in getURL it works great, but when I apply the gotoAndPlay and point to another scene in the movie, it does not work, it just go back to the start of the movie. What am I doing wrong?

GotoAndPlay On A Button?
Could I place this function on a movieclip button---not an actual button symbol but a movieclip made into a button

on (release) {
gotoAndPlay(219);
stop();
}


I would have it go to any frame I need it to go to of course. If this seems alittle behind times----I am a beginner to flash just so you know.

Button GotoAndPlay Problems....
ok.....this must be sooo simple, please humor me!

I have a movie clip which contains a menu. And on that menu I have a button. When the user clicks that button I want the playhead to go to frame 50 of scene two (called "main'). The menu mc is in this scene.

So I thought this would be a simple case of :
on (release){
gotoAndPlay( "main", 50);
}
which I placed inside the object actions of the button which is in the menu mc which is on scene "main". Got it?

I also have a stop() on frame 49. When I remove 49's stop the playhead goes right though and displays 50's content. But when I put it in, I can't get it to go past 49 by clicking the menu button ( the menu is on frame 49).

I'm so embarrased that I actually have to ask this, but I don't have enough experience yet to figure this one out on my own... Any help is greatly appreciated -FSU

GotoandPlay Scene From Button Within MC
I have a dropdown menu with two buttons in the submenu (dropdown) area. From one of the submenu buttons, I am trying to link to a new scene. Like this:

on (release) {
gotoAndPlay ("demo3", 1);
}

I can't get that to work, but I can load an external .swf from the button (which won't work for my problem because the flash will be embedded in a Powerpoint). Is there a problem linking to another scene from a button within a movie clip? If that is the problem, is there a fix?

Thank you!
[Edited by mbk on 03-22-2002 at 01:48 PM]

Button GotoAndPlay Not Working...
Hi. The code below is in a pretty big flash file, but I don't see any reason why this would not work.

I have multiple scenes and all the scene names are different; some labels/markers within different scenes are the same, but I don't see how they have any bearing as long as I reference the scene name to differentiate the label/markers from each other.

It's Actionscript on a button; the YKK-HQ in quotations is a scene within the .fla file. I have other buttons with the same code referencing different scenes (some with the following format: ("YKK-HQ","begin") for example... and none of them work.

Any suggestions?
- - - - - - - - - - - - - - - - - - - - - -
on(rollOver) {
_alpha = 100;
play();
}

on(release){
gotoAndPlay ("YKK-HQ");
}

Tell Mc From Button Gotoandplay Frame2
Hi there,

Someone can tell me how to code this.

I've got a button that's placed inside an mc.(this mc is placed on stage(root)).
When I hit the button It should tell an mc placed on stage(root) to go and play frame2.

Big thx in advance!

Grtz,

GotoAndPlay And Button Press
i have a MC which i press on and has the code
on(press){
gotoAndPlay("Scene2"); / go to another scene
}

but it isnt working!!!
why?
thanks in advance
peleg

Button GotoAndPlay Going Somewhere Else On 2nd Click
I have 4 scenes and 4 buttons. each button has action sripting to send it to a specific scene and frame. the first time each button is clicked it goes to the specified location, but while in that specific scene if the button is clicked again it goes to one of the other scenes. if the button is clicked a third time it goes back to the specificed frame. what am i missing?

GotoandPlay On Button Releases
Ok so. I need my timeline to go to a frame and play after a bunch of buttons have been pressed. It is an egg hunt game for my high school. So obviously, they won't be clicked in a certain order. I was told to set up an array, so I did. My only problem is, I don't know how to make it read into a number and then go down everytime one of the eggs is clicked. heres my array:


PHP Code:



var a:Array(begg_blue,begg_org,begg_pink,begg_white,begg_red,begg_yellow,begg_green,begg_dgreen,begg_checker,begg_navy);




Ya. So if i could get some help that would be awesome. Keep in mind I'm kind of a noob. Sorry bout that. Need it done in the next couple days. Thanks for any help you can offer.

Making A Button Gotoandplay
Okay, I know this is one of the most common question-types asked around here, though this is my first real flash project and I just don't understand this stuff yet. The file is attached, I have a stop(); on 1, 38 and 39. I want it to sit the way it is at start, when you hit stage I would like it to go to frame 2 and play through to frame 38. (thats the part im on right now). Once I learn more about this button stuff I would like it so that when you hit launch, if you are on any frame besides 38, it shoots you to 39, if you're on 38 it will display a reaction time (that will be another story). The reaction time will be how long it took you to hit launch after the animation hits frame 38. (some sort of timer start on 38 and stop at button hit). Anyhow, I'm looking for some assistant on either getting my stage button to go to frame 2 or some help on all of this. Thanks for your time and help in advance.

BTW: My stops were working until I tried to add my button code, now it just starts playing through every frame and ignores the stops, without any click at all.


File is about 600kb and too big for attachment, it can be dl'd here:
http://www.megaupload.com/?d=KGUZK8HY
Put the code at the top in and click download

[CS3] Movieclip As Button GotoAndPlay...
Hi Guys

I have a movieclip which is a button and I can't seem to make it link to a certain frame label on the upper timeline (root?).

I am using AS2, and know that this may be quite an easy fix. I would really appreciate your help.

Thank-you

How Do I Gotoandplay Using A Button Or Movieclip In AS3?
Hi, thanks for taking the time to help me.

Here's what I've got.

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.

Can you help me?

thanks.

Can't Get Button AS GotoandPlay To Work
I have this simple ass fla and can't get the buttons (peoples names) to work. when the name is clicked it should go to a frame and play the MC. Simple.
Why isn't the @!#$@#$$% working help

Gotoandplay Command Within A Button
I have an object (button) that has actionscript inside of it. When the button is released, i want it to go back to the main timeline and play the timeline. However, when i say gotoAndPlay(5), it plays frame 5 within the button, not in the main timeline. How do you specify to play in the main timeline, not within the button? (the button has rollover tweening, that's why the AS is inside of it) Because I am terrible at explaining my problem, i have enclosed the fla

Button Inside An MC GotoAndPlay HELP
Hi guys! I'm having some trouble with my fla here. For example if i have 3 scenes; one,two,three. In scene two i have a movie clip. and in that movie clip i have a button. Can i add an

on(release){
gotoAndPlay("three", 1)
}

on the button in the movie clip?

How would i get to scene three when i clip on that button?

Thanks!

GotoAndPlay Button Problem
Hello, I have a movie clip and inside I have some menu buttons, I want to link them to a timeline in another movie clip but I have not been able so far.

Example:

The buttons inside movie clip 4 should affect the timeline within movie clip 1.

Movie Clip 0 (root) > Movie Clip 1 (timeline) > Movie Clip 2 > Movie Clip 3 > Movie Clip 4 (buttons)

First I tried using:

on(release)
{
gotoAndPlay(5);
}

Then I modified the code adding the name of the movie clip I wanted the buttons to affect:

on(release)
{
movieclip1.gotoAndPlay(5);
}

It did not work as well. What can i do?

Thanks a lot

Using Two GotoAndPlay Options In One Button
Hello,

I'm trying to make it so that when a button is clicked, a menu movie clip goes away, and also a gallery loads. However, the timeline for making the menu disappear is in "photographers.allphotographers", and the gallery load is frame 4 in the root level.

Here's where it gets tricky:
A) I'm using PHP arrays to load the menu dynamicaly, so the menu is in it's own movie clip.
B) Ive naming the frame on "photographers" that fades out "allphotographers" as 'endit', and i made the dynamic buttons have an action that calls up _root.photographers.gotoAndPlay("endit"); but it doesnt work. For some reason, I can only reach the _root level from the dynamic links, and i cant get it to gotoAndPlay _root.photographers.

I can post the FLA if you like, but it's kind of hairy to follow. If anyone would be willing to speak with me on AIM i'd really appreciate it. Aim is Noel4DMB. Thanks!

GotoAndPlay In A Button In A MC Doesn't Work
I have a simple MC on the scene which contains only a button, this button has the following code :

on (press) {
gotoAndStop("_root","page2");
}

I have included the button in a MC because i need to hide it sometimes.
When i click on the MC, the gotoAndStop doesn't work, when i put the button directly on the scene it works.

though, the label "page2" exists.

thanks for your help.

Simple GotoAndPlay Button Not Working
Hi Everbody,

I've got a problem that has me stumped, and I know it'd be a piece of cake for you guys so here goes.

I have a simple goto and play button, taking the user to frame 25 of a particular scene. I have made it an absolute path, as it's a fairly complex site (for me anyway) but that hasn't helped. At first it would work when I rolled over the button next to it (which went to the same frame # of the main page) after pressing it. That stopped of course when I changed that one to an absolute path too. I've tried deleting and re-writing the AS. Also deleting and bring a new instance of the button onto the stage.

Has anyone got any other ideas? Thanks in advance, everyone in here has been a great help so far. This site is invaluable.

Matt.

Gotoandplay Button W/ In A Movie Clip
qbutton.onRelease = function() {
gotoAndPlay("36");
};

I have a movie that when you click on the link, it brings up a movie clip. I setup a button(qbutton) to active frame 36 to alpha it to 0.

But this statement doesnt work, any ideas?

Disable Button With GotoAndPlay Function?
Hello all. I've got a quick question about disabling buttons.
My scenario:
I have button one (instance name btn1) that when clicked will gotoAndPlay the FrameLabel "begin" in the movieclip called "MC". Now, I need the same button that was just clicked to gotoAndPlay "begin" to instead gotoAndPlay the FrameLabel in the same movieclip, "off".
I realize this is very confusing, i was honestly getting lost while i was typing it for you all. So let me just breakdown bluntly what i'm trying to achieve.

I need a main button that, when first clicked, opens an animated menu that the user can then select other buttons within the menu to navigate the site, then once the main button is clicked once more with the menu visible, the menu then animates away.

I give you my utmost apologies if my entire post is too vague. I've been hacking away at this problem with every solution i deem possible, but i'm sure there is an easier way. ANY help, and or ideas, is excellent. Take care.
Victor.

GotoAndPlay Button WON'T WORK Flash MX
I am having a problem with a button within a movie clip that is targeting another frame within the same movie clip named "1 forward".

on (release) {
gotoAndPlay('1 forward');
}

I have done this before, but for some reason this will not work. When I export the movie, nothing happens when I click the button. The button WILL work in Flash when I enable simple buttons. However, it does not work in the .swf file when i publish.

Also interesting, in the .swf file the "over" image for the button (the text is a different color when you roll over the button) does NOT appear when you roll over the button. However, there is a hand cursor, indicating that you are over the button.

I have tried to take all the frames in the movie clip and put them on the main timeline, but the button still does not work. I don't think there is a problem with the movie clip, but possibly with the button???

I am extremely frustrated! Any help would be greatly appreciated. My file is too large to upload, but i can send it via email if anyone would be willing to take a look.

Thanks, Sara.

Button + Text + GotoAndPlay = Not Working
Just when I think i have flash sussed I get sucker punched in the chops.

I have on stage a button which is made up of some text. I converted it into a button and stressed the various button states and gave it a variable name "film_btn" without quotes.

I attached the following script to the main timeline so that once pressed it should play "cv1".

code: film_btn.onRelease = function() {
trace ("button pressed");
root_.gotoAndPlay("cv1");
};

For some reason the button is not registering the onrelease state other wise "button pressed" would be displayed.

I've checked and double checked the instance names but I am stumped. Anyone else know where I might be going wrong?

GetURL And GotoAndPlay Performed With One Button?
hi I'm trying to use one button to perform both a getURL and a gotoAndPlay

currently set up as:

on(release){
getURL("www.blah.com",_blank);
gotoAndPlay(2);
}

flash won't recognize or perform the gotoAndPlay. what am i doing wrong?

[F8] How To Use Two GotoAndPlay Actions With One Button Press?
Hi,

Does anyone know how to use two gotoAndPlay actions when a button is pressed?

E.g. when the user presses a button, I want it to play the roll-over animation (Frames 1 - 51) THEN play the down animation (Frames 52-70)! Heres what Ive got so far, though at the moment it just skips straight to the "_down" part!


Code:

btnHitPhysics_mc.onRelease= function(){

Physics_mc.gotoAndPlay("_over");

Physics_mc.gotoAndPlay("_down");

}

btnHitPhysics_mc.enabled=false;

}


This is the code of my rollover and rollout actions on the same button, which might be interferring:


Code:
btnHitPhysics_mc.onRollOver = function(){

if(Physics_mc. _currentframe > 51){

Physics_mc.gotoAndPlay(102 - Physics_mc. _currentframe);

}

else{

Physics_mc.gotoAndPlay("_over");

}

}

btnHitPhysics_mc.onRollOut = function(){

if(Physics_mc. _currentframe < 51){

Physics_mc.gotoAndPlay(102 - Physics_mc. _currentframe);

}

else{

Physics_mc.gotoAndPlay("_out");

}

}

Simply repeating the over animation in the down section is not really possible due to large file size.


Many Thanks, Ben.

[F8] The Same Button Path - Gotoandplay Issue
OK, i've seen this posted a few times, but still can't figure out why it isn't working.

I have a clip embedded 2 levels down. Inside that, I have a "closeX" button, which I want to send the movie back to the usamap, frame 1 spot. It's not working

-The actions are on the frame
-the X button's instance name is caliclosex (that's CLOSE-x, not sex)


Any ideas?

GotoAndPlay Next Stage With Enter Button
Can anyone please explain to me how I would use the "Enter" or "Return" button on my keyboard to advance to the next Stage or next Frame within a flash presentation?

I would like to do away with any buttons on the stage. Thank you very much in advance.

Glenn

[F8] GotoAndPlay Next Stage With Enter Button
Can anyone please explain to me how I would use the "Enter" or "Return" button on my keyboard to advance to the next Stage or next Frame within a flash presentation?

I would like to do away with any buttons on the stage. Thank you very much in advance.

Glenn

Make The Button GotoAndPlay Scene 2
I have just worked through a great Tutorial Here

I basically wanted to make Buttons that appear to Fade up and Down, On Mouse over and Out.

I've worked through the tutorial and got my modified button working fine (from the download CondtionSettingGoBetween.fla) Blue button half way through.

Can someone tell me how do I make the button gotoAndPlay scene 2?


.fla HERE Version 8 action script 2.0

Apologies if this sounds like basic stuff, but I am pretty new to interaction/scripts and this is not your normal kind of button.

Cheers
Rich

Button GotoAndPlay Parent MC Frame
I think this is an easy one, but I'm just a little uncertain as to how it's done.
Any help would be appreciated:

Making a flash website.

I have a parent MC with all my content called GUI_MC, and on my timeline I have a Frame labelled "PAGE"

Within the GUI_MC I have a another MC for my navigation (NAV_MC)

In NAV_MC I have a button which I would like to gotoAndPlay the frame "Page" on the GUI_MC

Heres my button code:

on (release){
gotoAndPlay("PAGE");}

What do I need to add to make it goto the parent MC?.

Button On Root Timeline GotoAndPlay An MC Into Another MC
First of all is it possible !!! the button got to play a label frame into the second MC

first movieclip instance is lineart_mc and it got to play the lineartoff label into the ball_mc wich is inside the lineart_mc.......... the button is on the root timeline ...

Thx guy's

On(press){gotoAndPlay(Scene);}... From Button Within A MC?
Hiya...

Is it possible to get a button inside a cM to link to a new scene?

I have a mC containint three buttons. Each of these buttons I want to open up a different scene. So I have the following script:
Code:
on(press){
gotoAndPlay (scene2);
}


But it doesnt seem to be working. Am I doing something wrong ? (wouldn't be surprised)

Please if you could help me that would be great.

Ta

Commanding A MC In Root To GotoandPlay From A Button In Another MC
Okay, 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.. ?

On(press){gotoAndPlay(Scene);}... From Button Within A MC?
Hiya...

Is it possible to get a button inside a cM to link to a new scene?

I have a mC containint three buttons. Each of these buttons I want to open up a different scene. So I have the following script:
Code:
on(press){
gotoAndPlay (scene2);
}


But it doesnt seem to be working. Am I doing something wrong ? (wouldn't be surprised)

Please if you could help me that would be great.

Ta

AS2 - Button GotoAndPlay Parent Frame
I think this is an easy one, but I'm just a little uncertain as to how it's done.
Any help would be appreciated:

Making a flash website.

I have a parent MC with all my content called GUI_MC, and on my timeline I have a Frame labelled "PAGE"

Within the GUI_MC I have a another MC for my navigation (NAV_MC)

In NAV_MC I have a button which I would like to gotoAndPlay the frame "Page" on the GUI_MC

Heres my button code:

on (release){
gotoAndPlay("PAGE");}

What do I need to add to make it goto the parent MC?.

GoToAndPlay From _root -> Button -> Movie
I have a movie inside a button.

I put that button on scene1

when I rollOver the button on scene 1 i want it to play a certain frame in the movie.

here is what ive tried so far

wall = instance name i gave it on scene 1
btn_wallunits = name of button
mov_wallunits = name of movie


Code:


_level0.wall.mov_wallunits.gotoAndPlay(2);




Code:


_root.btn_wallunits.mov_wallunits.gotoAndPlay(2);




Code:


_root.wall.btn_wallunits.mov_wallunits.gotoAndPlay(2);

One Button With GoToandPlay (to Frame) And Loadmovie Commands At Once
Hi guys,

I wander if there is a way to write a code to do the following:

Make the movie go from one frame to another and, once it´s there, load an external JPG with a loadmovie command.

Let me try to be more specific.

I have a button in frame A. I want this button to make the movie go to frame B and load an external JPG in a movie clip that is located in frame B.

Can anyone give me some help?

Thanks in advance!

Click Button Wait 2 Seconds Gotoandplay
Hi, I know this should be easy but its driving me mad, I have looked through the forum but I cant figure it out.

When i click a button i want it to wait 2 seconds and then gotoandplay a frame.

I would do it on the timeline but it needs to go forwards and backwards on the timeline and doing it on the timeline would just be overcomplicated

any help would be great,

(flash mx 2004)

Very Simple Question. On Button Click Gotoandplay
Hi there
how can i do this?:

mybutton.onRelease = function() {
gotoandplay frame 1 of movielcip called "linkmovie"
also set a variable called "page" to = 4


and also

gotoandplay frame (value of "page" variable) of the first scene

Nested Button Doesn't GotoAndPlay Properly
Hi there,


I have a button thats nested within a hierarchy of movieclips. the hierchy is as follows:

Main Stage
movie clip #1 (battle_node)
movie clip #2 (battle_menu)
movie clip #3 (battle_menu_1_node)
movie clip #4 (battle_menu_1) which contains
Button (attack_btn).

within this button I have:

on (release) {

battle_menu_1.gotoAndPlay("reset_timer");
_root.gotoAndPlay("attack");
this.removeMovieClip();

}


now, the button correctly goes to the "attack" frame in the main timeline. however, it does not seem to go to the "reset_timer" frame in 'battle_menu_1' movieclip.

im not sure if this extra info will help:
the battle_menu movie clip attaches to the battle_menu_node upon entering the first frame of the main timeline. The battle_menu_1 movieclip attaches to the battle_menu_1_node when a timer variable reaches a count of 100.




Any ideas?

Gotoandplay From Button In Movieclip To Main Timeline
Hey,

Perhaps a simple question, but I just can't find the answer on the internet.

I have movieclip, that contains several movieclips and one of those movieclips, contains UIloaders. Now when the picture is loaded I want to be able to click on that picture followed by a gotoandplay back to a frame on the main timeline.

What code is need, since the simple gotoanplay(2) won't work. This will redirect you to frame 2 within the movieclip.

Making The Slide Menu A Gotoandplay Button?
well for you who know the code i went into the scroller and put this code which isnt working

this is from the SLIDE MENU tutorial posted on kirupa .. ive done everything right now i want the button that makes the drag also to goto a frame number! how can i go on doing so?

//sets the destination
on (press) {
_root.xnew = _root.mask2._x+(4-1)*1117/2;
}
on (release) {
gotoAndPlay(54);
}


am i doing it the right way or what?? heeelp!

GotoAndPlay - One Button/code To Go To Previous Labelled Frame, Whatever It May Be?
Is it possible to do something similar to what you can do in Lingo, to go back to the previous frame label (or "marker" in Lingo) without specifying the actual label name?

Basically I'm trying to create a button that will send the movie back to different labels relevant to where the movie is.

Cheers
Dave

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

Movie Clip Button GotoAndPlay Doesn't Work
Hi there,

Been struggling with something easy, trying to make a button using a MC. It's a simple square that goes to full alpha when rolled over, and should navigate to another scene when pressed. The rollover part works fine, but the switch to the scene does not.

The main issue is the onRelease - "ratingsStart" is the frame label name of the first frame in my new scene. When I press the button, it is getting the event - I can see a test message sent via Trace(). But for some reason, it does not load the new scene. I tried the scene name as well, that does not work. I do have a stop(); in frame one of the new scene so it should go there and stop.

Is there a better way or have I made a mistake in my code?







Attach Code

stop();

this.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

this.onRollOver = function(){
rewind = false;
play(); // play this movie clip
}

this.onRollOut = function(){
rewind = true; //set or rewind switch to true so it will play backwards...
}

this.onRelease = function(){
gotoAndStop("ratingsStart", 1); // name of label in my second scene
}

AS 2 Single Button GotoAndPlay MovieClip Twice In Two Diff. Frames
Somewhat familiar with basic actionscripting, but ran into a road block.
have multiple buttons within one movie clip. Want each button to talk to the corresponding movie clip.
The goal is to onRelease of a button gotoAndPlay a frame in a named movie clip.
Then use onRelease again to gotoAndPlay a different frame of the same movie clip.

Basically, on each movie clip is a single layer with one timeline to, a stop of frame 1, a stop on frame 5 and a stop on frame 9.
From frame 2-5 fades the image in to visiblity, and from frames 6-9 fades the image out.

Looking to have the onRelease used twice on each button, each time playing a different frame.

Right now I have it so when you mouseOver it fades in and when you onRelease of the same button it fades out.

Any help or suggestions would be greatly appreciated. Thanx!

Link to file is at: http://www.noelsynoel.com/standinghe...s/animals.html

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