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




[F8] GotoAndStop Does Not Go To Correct Frame, According To Frame Label



I'm having trouble getting gotoAndStop to go to the correct frame. I've labeled frame 5 as "FIRST", frame 10 as "SECOND", and frame 15 as "THIRD".

Then I put the following code on frame 1, which I labeled "HOME", if it matters.

//var myFrame:String = "FIRST";
var myFrame:String = "SECOND";
//var myFrame:String = "THIRD";

trace(myFrame);
this.gotoAndStop(myFrame);
trace(this._currentframe);
stop();Letting myFrame = "SECOND" sends the playhead to frame 9, but it should be 10. When myFrame = "THIRD", the playhead stays at frame 1, while it should go to 15. Only "FIRST" goes to its correct frame, 5. Note that if I change the frame that is labeled "SECOND" from frame 10 to frame 9, then the playhead goes to frame 8.

I thought that this would be a really simple thing to do, but I'm getting quirky results.

Everything is on the root level and there are no movieclips or scenes involved.

Any help would be greatly appreciated. Thanks, guys.



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-05-2006, 04:54 PM


View Complete Forum Thread with Replies

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

[F8] GotoAndStop Does Not Go To Correct Frame, According To Frame Label
I'm having trouble getting gotoAndStop to go to the correct frame. I've labeled frame 5 as "FIRST", frame 10 as "SECOND", and frame 15 as "THIRD".

Then I put the following code on frame 1, which I labeled "HOME", if it matters.

//var myFrame:String = "FIRST";
var myFrame:String = "SECOND";
//var myFrame:String = "THIRD";

trace(myFrame);
this.gotoAndStop(myFrame);
trace(this._currentframe);
stop();Letting myFrame = "SECOND" sends the playhead to frame 9, but it should be 10. When myFrame = "THIRD", the playhead stays at frame 1, while it should go to 15. Only "FIRST" goes to its correct frame, 5. Note that if I change the frame that is labeled "SECOND" from frame 10 to frame 9, then the playhead goes to frame 8.

I thought that this would be a really simple thing to do, but I'm getting quirky results.

Everything is on the root level and there are no movieclips or scenes involved.

Any help would be greatly appreciated. Thanks, guys.

How To Using Frame Label From A Movie Clip To GotoAndStop To Stage Frame?
I have a 100-frame movie clip, a_mc, on the stage.
I want it automatically gotoAndStop at a certain frame, labeled as "about", on the stage (root level).
How should I do?
(AS3 version please...)

I know how to do this from a root to control a movie clip only.

GotoAndStop(frame);? ... Won't Go To Correct Frame
i have a small flash website. each page is 10 frames apart on the timeline. the menu buttons(movieclips) are on a "global" layer spanning across the entire document. when i use the following code (placed on a global layer) for each instance of the movieclip it moves to the right frame but the movieclip animation does not play (basically the button does not spin):

ABOUT.onPress = function() {
gotoAndStop(10);

}

SERVICES.onPress = function() {
gotoAndStop(20);

}

NEWS.onPress = function() {
gotoAndStop(30);

}

CONTACT.onPress = function() {
gotoAndStop(40);

}

when i try to use (onMouseDown), the movieclip animation plays but it does not move to the correct frame... it moves to frame 10 no matter which movieclip you press and then its stuck there...

here's a snapshot of my flash gui to get a better idea of my project:
[img http://www.thinkcreativ.com/myflashproject.gif]

Gotoandstop On Frame Label
This what i have....

I have one Scene in this scene are 4 movie clips. In each of these movie clips are 30-40 frames, each of which has frame labels and buttons for each frame. I want to know the actionscript for a button when i am in "movieclip4" when released I want to go to "movieclip2" on a certain frame label inside movieclip2.

Please help. Thanks in advance.

GotoAndStop Frame Label In Different Movie Clip
Hi!

I'm having a problem with this one...

On my main timeline, in frame one, I have a movie clip called "mc" (for sample sake)
Inside that movie, I have a frame "playme"

On frame two of the MAIN timeline, I have another movie clip. Inside that movie clip I have a button where I simply want the action for it to gotoAndStop to the mc to frame "playme"

I've been able to figure out much more complicated _root/_parent/_level0 scenarios before, but for some reason I cannot get that second button to go to the mc"playme" frame.

I've tried:

this.mc.gotoAndStop("playme");

this._parent.mc.gotoAndStop("playme");

and basically about 9,000 other versions, none of which work. If I put the button on the main timeline(stage) of course it works. So it's a path thing.

I'm sure this is simple but if ANYONE can help me it would be much appreciated. The swf file that I am using will be using this same scenario several times throughout.

THANKS!

Suz

Jumping To Frame Label Before Playing Desired Frame Label.
Hi, I'm new to flash as of a couple months ago. I made a project and I have a frame label that is an outro for the frame label(s) before it. I want this outro to play when the user clicks a button on my menu. Right now, when the button is pressed, it jumps directly to that frame label. Is there a way I can make a specific outro (that will change depending on the current frame label) to play before the frame label that the button calls on plays? This is probably confusing.

this is the actionscript i have so far, which is simply calling on the right frame label:
}
this.btn_home.onRelease = function(){
gotoAndPlay("home");
}

what i want to do is tell it to figure out which label its currently on, then play the outro label, then go to "home" and play that. is this possible? thanks.

Advancing From Frame Label To Frame Label Using Time Variables
I need to understand how i can advance from a frame labeled "menu" to another frame labeled "submenu", using seconds.

For example, "menu" is on frame# 1 and "submenu" is on frame# 20. I want a 15 second interval between each frame label without making it really big in frames.

I want to make my demo to be simple to edit if I have to give people a longer time to view each slide.

_root.mc.gotoandstop ("frame Label") Not Working
I have a button inside a movie clip, that is inside another movie clip. Not that it should really matter!

Anyway, I have a seperate mc on the main time line that I need to control from the said button. This code:

on (release) {
_root.mc.gotoAndstop("label");
}

doesn't work!

I've tried checking everything: frame labels, instance names, spelling, layer order, EVERYTHING!!

I have no idea why it's not responding. It should be relativiley simple, right? Can anyone help?!


telekin:

GotoAndPlay A Frame Label Where The Frame Label Is A Variable
gotoAndPlay a frame label where the frame label is a variable


I found a cool dynamic menu that works off of arrays and have been able to modify/customize the array. Once you click on the button it sets a variable name the variable is “_root.select”

I would like to the root time line to gotoAndPlay a frame label that I have that would be the variable name


Lets say in my array I have the following
Jim
Dave
Sally
Karen

And the user selects Dave the variable “_root.select” would be Dave
I would then like the root timeline to gotoAndPlay the frame label Dave
This would fall under the Function below

nc.onRelease = function() {
// Function to get submenu actions needs to go here
var my_str:String = new String(this);
_root.select = my_str.slice(18);
_root.gotoAndPlay (what goes here)

Any Help would be appreciated

Mark

Buttons Jump To Correct Frame, And Then Another Frame
I have buttons inside a movie clip. the actions assigned to these buttons affect the _root.

this is ok so far.

when i press a button, it jumps to the frame label it is supposed to. that frame label has a stop action on it.

another press of the same button, jumps to the next frame. this should not happen. i have only made one script and told it to go to one frame and one frame only.

does anyone know why a second and third presses will jump the timeline instead of keeping it where it is.

thanks

huggs

Flash Button To Take Movie Clip To The Next Frame Label Instead Of The Next Frame
I am trying to figure out how to create a button to take a movie clip to the next Frame Label instead of just to the next Frame. I have a slide show that I am working on with a fade effect from picture to picture. When I just use the nextFrame script it will literally take you from frame to frame on the fade in. Is there a script that will allow you to go to the next (or previous) Frame Label from where the movie was stopped?

Any help is greatly appreciated!

Can't Target A Frame Label Or Frame Number Within Movie Clip
Hi guys,

Can't for the life of me figure out why this is not working:

if (_currentframe==82) {
homefade_mc.gotoAndPlay("fadeup");
design_mc.gotoAndPlay("design_fade"); - this one is fine
}

- the first gotoAndPlay should be going to the homefade mc and then going to the "fadeup" frame label and play from that, but instead it does nothing. Any clues?

Chris

IfFrameloaded() Depreciated How To Get Frame Number From Frame Label
ifFrameLoaded() has been depreciated in Flash 5, leaving me with using _framesLoaded which gives me no way to verify a frame label is loaded as far as I can tell.

I thought there was a way to get a frame number from a frame label but I can't find it. How would you determine if a frame label is loaded (not the whole movie, but the just up to the frame label).

The reason I have to do this is that I have large animations that are changing a lot during production and thus the frame numbers are changing. I need to determine if a frame label is loaded (not the entire movie).

Thanks for the help!

How To Obtain Frame Number From Frame Label?
Hi Guys

Does anyone know how I can find out what the frame number is of frame which has a label at runtime using actionscript?

I don't think I can use _currentFrame as I need to find out the frame number prior to actually moving the player head to that location.

for example:
say you want to goto a frame labelled "bananas"
How can I find out what the frame number is of the bananas frame?



Cheers!

Finding Frame Number Of Frame Label With AS
is it possible to find the frame number of frame label with AS


what I am trying to do is ...

if a button is rolled over, the timeline jumps to a label - which plays a set of 3D rendered frames to 'raise' and element, once a user rolls out of the 'button' area the button is meant to 'lower' - which can be done by simply playing backwards to the previous label.

any clues?

cheers actionscript heads!



Paul

How To Obtain Frame Number From Frame Label?
Hi Guys
Does anyone know how I can find out what the frame number is of frame which has a label at runtime using actionscript?

I don't think I can use _currentFrame as I need to find out the frame number prior to actually moving the player head to that location.

for example:
say you want to goto a frame labelled "bananas"
How can I find out what the frame number is of the bananas frame?

Cheers!

Play To Frame#, Then Gotoandstop At Another Frame#
Can anyone help me with this? I need to assign a button action that on (press) tells the timeline to simply start to play, but then at a designated frame number (29), it needs to gotoandstop at frame (240).

For example:

on (press) {
play();
}
then at frame (29) gotoandstop(240)

Due to the way I've set up the main timeline, with some overlapping stairstepped buttons, I can't simply put the gotoandstop action in the actions layer. I need to embed this in each button, otherwise I'm looking at a major rebuild of the layout. For example, it will work like this:

Contact button - on press plays to 29, then when 29 is reached, it jumps to 240
About Us button - on press plays to 29, then when 29 is reached, it jumps to 230
News button - on press plays to 29, then when 29 is reached, it jumps to 220
etc. etc.

Any ideas?

Frame Label, Instead Of Frame Number
gotoAndStop (random(5)+11);

The above actionscript means to go to frame11,12,13,14,15
randomly and stop.

I want to use frame label as the starting point of the random frame because frame number11 is easily changable.


For example, after I put a frame label "ABC",
I have tried the next scripts. However, they don't work.

gotoAndStop (random(5)+"ABC");
gotoAndStop ("random(5)+ABC");

Would you help me? please.


Thanks in Advance

Property For Seeing What Frame A Frame Label Is At
is there any property that can tell me what frame a frame label is set to. In other words, I have a movieclip that wants to 'wait until the frame head hits a certain frame in a different movieclip in the timeline. I know I can do a while(instance._currentframe != 10), but I want to generalize it and replace the frame number 10 with a variable that would be set by referencing the label to get the frame #.

TIA

Get Frame Number From A Frame Label?
I thought I saw a way to get a frame number value from a frame label but now I can't find it anywhere. Could be I'm thinking of Director Lingo.

Is there a way to get the frame number for a frame label?

Thanks!

Getting Frame Number From Frame Label
Is it possible to use ActionScript to find the frame number that a certain frame label is located on?

Frame Label Vs. Frame Number
if i have a button with the following action, page01 being the frame label, my button does nothing.

on (release) {
gotoAndPlay(page01);
}

if i have this action, 24 being the frame number for page01, it works.

on (release) {
gotoAndPlay(24);
}

i'd rather not use the frame numbers. do i have the syntax wrong for the labels?

thanks!

Frame Number From Frame Label
Is it possible to use a frame label in an mc to retrieve it's equivilent frame number in MX?

Link To Frame Label Instead Of Frame #?
How do I modify the following code to link to a label instead of a frame #?


Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndStop(30);
};




Thanks!!!

[AS] Getting Frame-number From Frame-label
Hi,

Does anyone know a way to get a frame number out of the frame's label? Or maybe if it's possible to check the current frame against a frame label, like (_currentframe != "label")?

Cheerz

Pls Help Me I Cant Go To The Correct Frame ?
Hi, Y after I got my BB=1, the 1st frame cant jump automactically to the "Myinnerframe" ?

Pls help me.. thanks lot!

Gotoandstop (NEXT FRAME) ?
okay i ahve a button and a movie clip

is there a way to script the button so on each click it will then gotoAndStop on the next frame of the movie clip?

thanks

GotoAndStop Last Frame?
It is probably extremely easy an obvious but could someone educate me on this!

I have built a controller that should work in any timeline to conrol a video. One of my buttons is suppose to goto and stop at the last frame of the root timeline. Every root timeline might have a different number of frames so how do I tell it to figure that out?

Thanks in advance.

Mc.gotoAndStop(frame);
inside a if statement the mc.go.... is not working correct, is there there something that I should take care that maybe messing up its funcionality?
if the apresentacao button is clicked at the inicial point the logo should not move but it does, and if the other links are clicked it should move to the top right corner and not move until the apresentacao button is pressed again.
thanks for the help. The file is attached.
Joćo Gabriel

Mc.gotoAndStop(frame);
inside a if statement the mc.go.... is not working correct, is there there something that I should take care that maybe messing up its funcionality?
thanks for the help. The file is attached.
Joćo Gabriel

Goto Not Going To Correct Frame
My movie was working perfectly until I added a preloader to the visionaries page. Now, when you click on the green buttons on the side menu, it goes to the wrong place. Only two buttons are active, the logo development button, and the website button. The logo button goes to the website page instead of the logo page, and the website page goes to a different page depending on where you hit the button. I'm assuming something is wrong with the levels, but I used _root and tried _level0 and I'm not sure where the bug is. Please help!

http://www.graphicvisionsinc.com/GVI - site

I'm trying to upload the fla file. It's kind of a hard problem to solve without the source code. But it's kind of a big file. but when the file is done loading it will be at:

http://www.graphicvisionsinc.com/GVI/visionaries.zip

Thanks, any help would be greatly appreciated.

--Audrey

GotoAndStop(Scene, Frame);
Hi I am trying t do this here,
I have 2 scenes, you start out in this first one, I want a button to goto the first frame in the second scene, ive tried about everything and nothing works, please help.

on (release) {
gotoAndStop("Main", "Intro");
}

Main is the scene intro is the frame, please help.

GotoAndStop To Frame On Another Scene
Hello,

I am trying to put action script on a button instance
so that when the button is released
the user goes to the third frame in another scene
but it's not working -
nothing happens when the button is pushed
in the .swf file.

This is the code I have

code: on (release) {
gotoAndStop("Scenephoto, 3");

}

What am I doing wrong?
Is there a scene naming convention
I don't know about?
Does the code only affect one frame of the button instance?

Please help!

Thanks!

Frame Wont Gotoandstop
im trying to get the movie to gotoandstop at frame 7 when the first menu item has been rolled over.

for some reason its ignoring the line of AS thats telling it to stop and it keeps playing

http://uploadhut.com/view.php/401326.fla

[F8] GotoAndStop At A Frame In External Swf
Hi

I have for example 3 btns in the main movie, a container with instance name container and an external swf with an intro and 3 labels to match the 3 btns. How do I gotoAndStop to the relevant frame within the externally loaded movie?

Code I'm using is;


Code:
on (release) {
_root.container.loadMovie("portfolio_cats.swf");
gotoAndStop("_root.container.cat2");
}


Where am I going wrong? as the external movie just plays at the start??

Thanks in advance
Wayne

[F8] GotoAndStop Fails In Frame 1
If I put a gotoAndStop in frame 1 of my movie, it fails. If I put it in frame 2, it succeeds. However, by putting it in frame 2, the user gets a brief flash of frame 1. I want to conditionally skip frame 1. Here's what my code looks like:

if (_root.myFlag == "a")
gotoAndStop("a");

I've also tried it like this, but with the same result:

this.onLoad = function()
{
if (_root.myFlag == "a")
gotoAndStop("a");
}

I've even simplified it like this, with the same result:

gotoAndStop("a");

Why doesn't this work in frame 1?

GotoAndStop Goes To Wrong Frame
Hi guys,

First post. I'm a fairly new Flash developer and I'm having a problem with a project I'm working on.

I have a button that loads a movieclip on level 4 and passes a string value to it. This movieclip (let's call it web.swf) has it's own timeline and frames are labeled. In the first frame of web.swf, i have an init() function that reads the string and goes to the proper frame.

basically:

if (_level0.string == "fred flinstone")
{
_root.gotoAndStop("frameFred");
}

So everything works pretty well, except that for this certain if statement, it goes to the wrong frame!

I created a dynamic text field to populate with _currentFrame just for testing, and this particular if statement stops at frame 30 (should be 31.) I even tried gotoAndStop(31); and yet, _currentFrame returns 30..... what gives?

To make this even more confusing, frame 31 has some images on it. If I remove the images, the function does go to frame 31! if i leave the images, it always stops at frame 30. arghhhh.

Anyway, anyone experienced this problem before? I'm using Flash mx 2004. Any help/tips would be appreciated!

Thanks!

GotoAndStop At A Frame In External Swf
Hi

I have for example 3 btns in the main movie, a container with instance name container and an external swf with an intro and 3 labels to match the 3 btns. How do I gotoAndStop to the relevant frame within the externally loaded movie?

Code I'm using is;

Code:
on (release) {
_root.container.loadMovie("portfolio_cats.swf");
gotoAndStop("_root.container.cat2");
}


Where am I going wrong? as the external movie just plays at the start??

Thanks in advance
Wayne

GotoAndStop On Random Frame
I have an MC called asteroid. In the script, every 1000 whatever units its in a new asteroid is attached at the center of the stage. There are two things i cant get to work. #1 i can get the asteroid to stop at a random frame(it has 100 frames). #2 after it's made and has gotten its random frame to stop at i need it's width and height to grow. Here is what I have so far:
i=1;
setInterval(rocks, 1000);
function rocks(){
rock= _root.attachMovie("asteroid","asteroid"+i, i);
i++;
rock._x = 300;
rock._y = 300;
rock.movef = setInterval(rockmove, 10);
}
function rockmove(rok){
// I dont know what to put here; what I tried did not work
}

What would I add to my script to accomplish this task?
thanks

GotoAndStop At A Frame In External Swf
Hi

I have for example 3 btns in the main movie, a container with instance name container and an external swf with an intro and 3 labels to match the 3 btns. How do I gotoAndStop to the relevant frame within the externally loaded movie?

Code I'm using is;

Code:
on (release) {
_root.container.loadMovie("portfolio_cats.swf");
gotoAndStop("_root.container.cat2");
}


Where am I going wrong? as the external movie just plays at the start??

Thanks in advance
Wayne

GotoAndStop On The Over Frame Of A Button
Can I turn a button to its over state by telling the playhead to gotoAndStop on the Over frame? Is there another simple way to do this? Will I have to turn my buttons into MCs? I am hoping to aviod doing that.

Thanks a lot!

GotoAndStop(scene, Frame) In A Mc
how to use gotoAndStop(scene, frame) in a mc?
there's a button in a mc, when I click it, it will change the scene, like this:
on(release){
gotoAndStop("main_scene", 1)
}

but it doesn't work!

_root.gotoAndStop(frame);
i store in the database the frame on which a user ended
i retrive it from the database and store it in a variable "frame" when a user clicks "start" button
but when i pass the variable to _root.gotoAndStop(frame);
it doesn't work root doesn't go to that frame ?


on (press){


_root.pauseEnterFrame=true;
var post_get_frame:LoadVars = new LoadVars();
var post_id:LoadVars = new LoadVars();
post_id.ID = id;
post_id.sendAndLoad("http://e-jobs.pl/e-deutsch/getStartF...et_frame,"POST");
post_get_frame.onLoad = function(success:Boolean) {
if (success) {

frame = post_get_frame.start_frame;
trace(frame);
}
else {
frame = 2;
}
};
_root.gotoAndStop(frame);
}

GotoAndStop Will Not Stop On Frame
I have a movie clip, with several nested clips...

At the end of one of the clips I have a line of code that says:


Code:

gotoAndStop(main1);



main1 is the label of a frame in the _parent movie clip.

Unfortunately this doesnt work and it just starts at frame one in the same clip.

I have also tried the following code:


Code:

this._parent.gotoAndStop(main1);



which has the same result.

when I use this code.. it returns to a previous scene, but not the scene i want to work in.


Code:

this._parent.gotoAndStop(1);



Anyone have any ideas?

Cheers

Dirk

GetURL Not Opening In Correct Frame...
I give, Uncle, you da man... Get the picture here?

I am frustrated beyond all reasoning and would love to hear some advice for what I am trying to do. Basically, I made a nav bar with buttons and what not in Flash and am trying to import it in frontpage. I get it in FP inside a cell and also tried frames, but things aren't working.

How do you write it in Flash to open a page in a new frame without reseting the animation? I don't know how to explain myself correctly, but basically, if someone out there knows how to use flash and FP together I really could use some of your advice. I want my Flash animation to never be reloaded, except if it's part of my actionscripting. I don't want anything else reseting it or making it go back to ground zero. How would you do that in FP?

Please, if this makes sense to you offer your ideas, and if not, please tell me what you think I am trying to do so I can better clarify.

Thanks,
ZogDog

Correct Syntax For Frame Jump?
I want it so that when a button is pressed the target movie clips goes to frame 4, I have this but it doesnt appear to work:

e.target.frame = 4;

Thanks

Button Not Leading To Correct Frame
I am making a game, and there is a point where if you hit a spike, it directs to frame three. I made a button, then made the button a movie clip. In the movie clip, the spike moves back and forth. Then on the button, I added

on (rollOver) {
gotoAndPlay (3)
}

So the movement works fine, the spike goes back and forth. But when you hit the spike, it goes to frame three of the movie clip timeline, not the entire movie timeline. Is there any way to get around this?

Redirect A Correct _dropTarget To New Frame
Hi,

I'm trying - and failing to get a movie to advance to a new frame when one movie is correctly dragged over another movie.

The enclosed code roughly allows me to drag/drop/report drop location/ return to starting point if not dropped over an element....and thats about it.

The last thing I'd like it to do is to acknowledge the right answer by moving to a new frame. Any ideas?

Code follows....

onClipEvent (mouseDown) {
xorigin = _root._xmouse;
yorigin = _root._ymouse;
if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
_root.drop = _droptarget; // sends the address of whatevers under the box to the text box (created as a dynamic text box)
this.stopDrag();
// this code returns the dragged object to the place it started if the object listed - apple, is not the right answer
if (_root.drop == "/apple") {
if (_root._xmouse > _root._X) {
this._x = xorigin;
this._y = yorigin;
}
} else {
this._x = eval (_root.drop)._x; //coverts string stored in droptarget to an object reference
this._y = eval (_root.drop)._y; //coverts string stored in droptarget to an object reference

// the following code is where I'm looking for inspiration - when droptarget = /Lamb goto new frame(Yes) - it doesn't.

if (_root.drop == "/Lamb") {
root.lamb.gotoandstop("Yes");
}

}
}

Problem Going To The Correct Frame W/ 2 Scenes
I have two scenes, 'Preloader' and 'Scene 1'
The preloader works fine. It is when I want to go to a frame using gotoAndPlay that the problem exists. The preloader is only 2 frames long.
The frame I want to goto is frame 40 in 'Scene 1'
All the buttons will do this, but for this examples use he "Resume" button on the swf files.

if I use _root.gotoAndPlay(40) it will go to 2 frames prior to the one I want. I.e. Frame 38 in Scene 1 http://www.blackonyx.net/ex/3.swf

if I use _root.gotoAndPlay("Scene 1", 40) It does nothing as in this: http://www.blackonyx.net/ex/1.swf

if I use _root.gotoAndPlay("Scene 1", 42) it does nothing as well.
if I use gotoAndPlay(40) it does nothing
if I use gotoAndPlay(42) it does nothing

if I give the frame a label and use that label such as _root.gotoAndPlay("Resume") it will have the same behavior as _root.gotoAndPlay(40), however on the second click it will go to the correct frame. As in here: http://www.blackonyx.net/ex/2.swf Click "resume" once and it will go to the contact info, click it again it will go to the correct frame. Click it a third time and it will go back to the incorrect frame.

if I use _root.gotoAndPlay(42) it works and goes to frame 40, but if that button is clicked a second time it will go to 2 frames after the frame I want. Here http://www.blackonyx.net/ Click Resume once it goes where I want. Click it again and it goes two frames ahead and starts to play, which isn't what I want it to do.

Any ideas?

If you want to take at the fla file it is here: http://www.blackonyx.net/ex/Site.fla (save as)

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