Jump to content
  • Advertisement
Sign in to follow this  
toye

Flash help, please!

This topic is 5126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey i Have been trying to firgure out when your making a flash game and u click the Play button from the main menu how to get the flash to go to the next scene and start playing that game like in The CLassroom 2 (http://www.newgrounds.com/portal/view/201306) I have searched all of my tutorials and google but nothing gives a good answer. Can someone help me out? [Edited by - superpig on November 27, 2004 10:52:16 AM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Kazgoroth
Quote:
Original post by benryves
Which animation package are you using?


He's using Flash...?


I've done stuff in Flash but never heard of/used an animation package called Flash. I tried the official thing (Director?) but that was a nightmare, so switched to Corel R.A.V.E. or 3D Flash Animator.

Share this post


Link to post
Share on other sites
If you're talking about a simple button taking you to a scene, the following actionscript is all that's needed:


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



Where "game" is the name of the scene, followed by the frame number.

Share this post


Link to post
Share on other sites
ok thanks for the action script but now when I double click on the button and get those 4 frames (up,over,down,hit) it wont let me put the action script into the button? Any idea why this doesnt work?

Share this post


Link to post
Share on other sites
Quote:
Original post by toye
ok thanks for the action script but now when I double click on the button and get those 4 frames (up,over,down,hit) it wont let me put the action script into the button? Any idea why this doesnt work?

You add the actionscript to the frame itself, not the button object. Simply add the button to the scene, select it and add the script.

Share this post


Link to post
Share on other sites
Quote:
Original post by benryves
Quote:
Original post by Kazgoroth
Quote:
Original post by benryves
Which animation package are you using?


He's using Flash...?


I've done stuff in Flash but never heard of/used an animation package called Flash. I tried the official thing (Director?) but that was a nightmare, so switched to Corel R.A.V.E. or 3D Flash Animator.

I've done some stuff in Flash at school, and it is an official product. It was a nightmare. I would recommend trying to find some other solution. If you do end up using it, read the manual. It amkes things a lot easier. However, I am a fan of coding it myself.

Share this post


Link to post
Share on other sites
alright well after doing that and testing it, it gives me the following error:
**Error** Scene=Menu, layer=Instructions, frame=1:Line 2: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1


what did U do wrong now lol? man im a newbie sorry for troubleing all you for this but you guys are my last resort :)

Share this post


Link to post
Share on other sites
Quote:
Original post by toye
alright well after doing that and testing it, it gives me the following error:
**Error** Scene=Menu, layer=Instructions, frame=1:Line 2: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1


what did U do wrong now lol? man im a newbie sorry for troubleing all you for this but you guys are my last resort :)

Sounds like your adding the actionscript to a graphic or movie clip object instead of a button.



Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!