Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2009, 05:54 AM   #1
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default gotoandplay not working?

Hey guys!!!
I can't seem to get this to work...

my button name is left_btn... its in ContainerMid which is on the 1st frame of the main time line.... I put this on frame 1 of the main timeline and it doesn't work...

Code:
_root.ContainerMid.left_btn.onRelease = function () {
	gotoAndPlay("Scene3");
}
any ideas?

Thanks as always!
tronicsmasta is offline   Reply With Quote
Old 11-04-2009, 06:06 AM   #2
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,257
Default

What's Scene3 ? A frame label? On which timeline?

Or in fact targeting a Scene 3?

Maybe better to attach your .fla.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-04-2009, 06:14 AM   #3
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default

oh sorry i forgot to mention that Scene3 is a frame label i put on frame 3 because for whatever reason, gotoAndPlay(3) wasn't working...

I cannot attach my FLA due to NDA

Thank You!!!
tronicsmasta is offline   Reply With Quote
Old 11-04-2009, 06:30 AM   #4
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,257
Default

Frame 3 of the main timeline?
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-07-2009, 08:51 PM   #5
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default

yes... Frame 3 of the main timeline is labled "Scene3"
tronicsmasta is offline   Reply With Quote
Old 11-07-2009, 08:57 PM   #6
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default

Here is where my button is...
_root > ContainerLeft (mc) > left_btn

my code on frame 1 of my main time line is :
Code:
_root.ContainerLeft.left_btn.onRelease = function () {
	gotoAndStop("Scene3"); 
       //frame 3 on main timeline labeled "Scene3"
}
tronicsmasta is offline   Reply With Quote
Old 11-07-2009, 09:06 PM   #7
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,257
Default

ActionScript Code:
_root.ContainerLeft.left_btn.onRelease = function () {     this._parent._parent.gotoAndStop("Scene3");     //frame 3 on main timeline labeled "Scene3" }
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-07-2009, 09:39 PM   #8
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default

thank you but it didn't work

the button just doesn't respond...

this code works when placed on the button but i noticed that when it moves to "Scene3" (frame 3) the button stays on top even though there aren't any graphics on that frame....
Code:
on (release) {
	_root.gotoAndPlay("Scene3");
}

any more ideas??
tronicsmasta is offline   Reply With Quote
Old 11-07-2009, 09:45 PM   #9
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,257
Default

It worked fine in my mockup .fla trying to replicate your's.

Might be better to attach your own .fla, to see what you are missing or haven't said.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-07-2009, 09:50 PM   #10
tronicsmasta
Registered User
 
Join Date: May 2008
Posts: 17
Default

i sent you a PM with a link to the FLA
tronicsmasta is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.