View Full Version : Math.random & Math.ceil help
03-21-2009, 03:38 AM
Ok, so I bought the book Flash Game Programming for Dummies, and I was able to follow it really well until chapter 5 (for those of you with the book). Something in my die rolling game is screwing up... I can't figure out how to do the simplest program. I'll put up my prototype, and I'd much appreciate it if someone would look over it.
If anyone has some pointers for a beginner, can you please PM me with them?
Thanks so much,
03-22-2009, 04:22 PM
Also, I am using Flash MX. Can anyone tell me where I can get a free trial of Flash MX 2004?
03-23-2009, 10:06 AM
It is important to note that this book is fairly dated. Flash is has had about 4 versions since the one you are using, and you can download a trial at
www.adobe.com for Flash CS4. You'll find its much different, and I suggest that you pick up a book that focuses on Actionscript 3, not AS2.
03-24-2009, 02:55 AM
I realize that getting an updated book might help, but I'm 15... This is good enough for now. :D
Regardles of age/experience, it's generally a good idea to use the latest (or at least current) info, especially so in programming. Using outdated information can give you a lot of headaches, talking from experience here. :)
I looked at your code though, to solve the most obvious problems do the following:
- Name the button on stage: bttnRoll
- you have two functions with the same name, take all the commands from the lower function and paste them into the bottom of the top function, you can delete the empty lower function now
- not sure why the "stop()" is the on top of your code, you can probably get rid of it.
let me know if that worked.
03-24-2009, 07:24 PM
Thanks, but I actually got it working on my own. If you would like to help me with my Pong clone, please see "My Program Exploded... I can has help?" I really need help with that.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.