Go Back   kirupaForum > Flash > Flash 8 (and earlier) > Flash MX

Reply
 
Thread Tools Display Modes
Old 03-22-2006, 08:10 PM   #1
fps_gamergirl
73h_1337_/\/!/\/j4
 
fps_gamergirl's Avatar
Button action script to next scene

on(release){
_root.gotoAndPlay("Game");}

I had this attached to a button and there was no result, although the button worked as a symbol, but the scripting was not working

__________________
"I'm a gamer and a girl! Got a problem with that?!"
fps_gamergirl is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 03-27-2006, 05:28 PM   #2
yem224
Registered User
hey,
this works for me:
Code:
 on (release) {
gotoAndPlay("SceneName",1);
}
Hope this helps.
yem224
yem224 is offline   Reply With Quote
Old 03-27-2006, 05:32 PM   #3
lunatic
"I feel like I'm taking crazy pills!"
 
lunatic's Avatar
Location stumptown

Posts 9,881
If you absolutely HAVE to use scenes (they suck) then use frame labels, it's much better. Select the first frame of the scene you are trying to go to (like "Game"). In the Properties panel you'll see a place to enter a frame label. Type something in DIFFERENT than the name of the scene, like "GameFrame1" or something (no quotes). Frame labels are case sensitive so make sure it's something you can remember easily.

Then on the code for your button use
ActionScript Code:
on(release){
gotoAndPlay("GameFrame1");}




*edit* you may have to use _root.gotoAndPlay("GameFrame1")

__________________
"i walk in stride with people much taller than me and partly it's the boots but mostly it's my chi and i'm becoming transfixed with nature and my part in it which i believe just signifies i'm finally waking up "

lunatic is offline   Reply With Quote
Old 03-27-2006, 05:36 PM   #4
fps_gamergirl
73h_1337_/\/!/\/j4
 
fps_gamergirl's Avatar
Quote:
Originally Posted by yem224
hey,
this works for me:
Code:
 on (release) {
gotoAndPlay("SceneName",1);
}
Hope this helps.
yem224
Yeah I have tried that too, but it doesn't seem to work, but i will try typing the code in again just to make sure if i made some error or something. Sometimes, after you type the code in, and go to check the code (aka: the little green check mark on the Actions panel), it says there is no code error or something like that,but sometimes there really is an error and Flash doesn't see it as one. It really differs with the different versions, but in this case, its not the problem. So again, i will check and see. Thanks for all the help. I can always depend on you guys!
~FP5_64/\/\3R 6!rl (yesh this is in 1337((leet)))

__________________
"I'm a gamer and a girl! Got a problem with that?!"
fps_gamergirl is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is possible open folder with action script unde WIN jankratochvil ActionScript 1.0/2.0 4 09-26-2008 03:04 PM
Help me make this With action Script Edouard Dorval Flash MX 0 03-02-2006 05:29 PM
action on button doesn't work! HELP! ndesigns ActionScript 1.0/2.0 5 01-30-2006 09:18 AM
problem with action script on buttons DKusz Flash MX 2004 3 09-12-2005 11:19 PM
Back button that takes you to the last Scene visited cobaltblue ActionScript 1.0/2.0 5 10-30-2003 04:23 AM


All times are GMT -4. The time now is 03:10 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com