| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: May 2008
Posts: 17
|
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");
}
![]() Thanks as always! |
|
|
|
|
|
#2 |
|
Flash Nerd
Join Date: Apr 2009
Posts: 1,257
|
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 |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2008
Posts: 17
|
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!!! |
|
|
|
|
|
#4 |
|
Flash Nerd
Join Date: Apr 2009
Posts: 1,257
|
Frame 3 of the main timeline?
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde |
|
|
|
|
|
#5 |
|
Registered User
Join Date: May 2008
Posts: 17
|
yes... Frame 3 of the main timeline is labled "Scene3"
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: May 2008
Posts: 17
|
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"
}
|
|
|
|
|
|
#7 |
|
Flash Nerd
Join Date: Apr 2009
Posts: 1,257
|
ActionScript Code:
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde |
|
|
|
|
|
#8 |
|
Registered User
Join Date: May 2008
Posts: 17
|
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?? |
|
|
|
|
|
#9 |
|
Flash Nerd
Join Date: Apr 2009
Posts: 1,257
|
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 |
|
|
|
|
|
#10 |
|
Registered User
Join Date: May 2008
Posts: 17
|
i sent you a PM with a link to the FLA
![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|