Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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 Attached Files
    Last edited by Cmptr_Prgrmr2B; 03-22-2009 at 07:08 AM.

  • #2
    New Coder
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #3
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #4
    New Coder
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I realize that getting an updated book might help, but I'm 15... This is good enough for now.

  • #5
    Regular Coder
    Join Date
    Jan 2006
    Posts
    243
    Thanks
    14
    Thanked 2 Times in 2 Posts
    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.

  • #6
    New Coder
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •