A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: how do you square (math) in flash?

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Posts
    225

    how do you square (math) in flash?

    how would i be able to so something like this using actionscript: 4^2=16
    without just multiplying the number by the number? is it possible?

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Code:
    trace(Math.pow(4,2));
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    Aug 2005
    Posts
    225
    thanks

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center