Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-21-2009, 03:38 AM   PM User | #1
Cmptr_Prgrmr2B
New Coder

 
Join Date: Jan 2009
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Cmptr_Prgrmr2B is an unknown quantity at this point
Question Math.random & Math.ceil help

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,
Cmptr_Prgrmr2B
Attached Files
File Type: zip Die_Prototype.zip (2.3 KB, 82 views)

Last edited by Cmptr_Prgrmr2B; 03-22-2009 at 06:08 AM..
Cmptr_Prgrmr2B is offline   Reply With Quote
Old 03-22-2009, 04:22 PM   PM User | #2
Cmptr_Prgrmr2B
New Coder

 
Join Date: Jan 2009
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Cmptr_Prgrmr2B is an unknown quantity at this point
Also...

Also, I am using Flash MX. Can anyone tell me where I can get a free trial of Flash MX 2004?

Thanks,
Cmptr_Prgrmr2B
Cmptr_Prgrmr2B is offline   Reply With Quote
Old 03-23-2009, 10:06 AM   PM User | #3
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
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.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 03-24-2009, 02:55 AM   PM User | #4
Cmptr_Prgrmr2B
New Coder

 
Join Date: Jan 2009
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Cmptr_Prgrmr2B is an unknown quantity at this point
I realize that getting an updated book might help, but I'm 15... This is good enough for now.
Cmptr_Prgrmr2B is offline   Reply With Quote
Old 03-24-2009, 02:37 PM   PM User | #5
Kirl
Regular Coder

 
Join Date: Jan 2006
Posts: 243
Thanks: 14
Thanked 2 Times in 2 Posts
Kirl is on a distinguished road
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.
Kirl is offline   Reply With Quote
Old 03-24-2009, 07:24 PM   PM User | #6
Cmptr_Prgrmr2B
New Coder

 
Join Date: Jan 2009
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Cmptr_Prgrmr2B is an unknown quantity at this point
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.
Cmptr_Prgrmr2B is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 10:04 AM.


Advertisement
Log in to turn off these ads.