Math Flash
Need an actionscripters help with flash math functions pow and sqrt!?
I need help with adding 2 functions in my flash calculator, raising x to the y power and finding the square root of x with actionscripting! I am not doing complicated coding just that in my frame i add :
set(x,'')
set(y,'')
set(total,'')
which means x and y are my two variables and total is the amount that comes from x and y when they are raised to the power, and in the sqare root case, it would be total = square root of x. like in the subtraction button i coded it like this:
on(press){ total=x-y }
so how do i integrate this to squaring integers and finding the square root of a number? Please dont say go to flashkit cause they have too much complicated coding and the official flash website doesn't help too much. all i know is that to raise x to the y power i use the function pow and for square root i use
sqrt....
so please can u tell me how to do it in this format?
REMEMBER: I WILL PICK BEST ANSWER IF I GET WHAT I AM LOOKING FOR!!!!
Power:
on(press){ total = Math.pow(x,y); }
Sqrt:
on(press){ total = Math.sqrt(x); }
![]() |
Digital Addition Flash Cards in Color (Ordered and Shuffled 1-9) |
|
This eBook includes 162 digital addition flash cards in color (where color is available). Each flash card is decorated with smiley faces and looks just like the flash cards depicted on the thumbnail image for the cover of this eBook... |
![]() |
Far Out Multiplication Flash Cards 1-12 (Decorated with Solar System Photos) |
|
This eBook includes 288 multiplication flash cards in color (where color is available). Each flash card is decorated with solar system images just like the flash cards depicted on the thumbnail image for the cover of this eBook... |
![]() |
Educational Insights Hot Dots Math Flash Cards - Addition Sale Price: $5.44 |
|
Hot Dots add an innovative new twist to regular flash cards to teach kids critical school skills. Students look at simple addition challenges using numbers one through nine; then simply touch the Hot Dots pen on the correct answer to get a positive response... |
![]() |
Math Flash Cards (Brighter Child Flash Cards) Sale Price: $9.53 |
|
Brighter Child® Flash Card Sets provide children with a full-range of learning practice. Each sturdy storage box contains six decks organized by tabs for quick and easy access. The decks address a range of learning levels so children can use them for review and mastery... |
![]() |
Minute Math Electronic Flash Card Sale Price: $8.90 |
|
Minute Math Electronic Flash CardBuild number fact fluency in just a minute. This familiar fact family triangle is now electronic. Practice operations like add/subtract or multiply/divide and early algebraic skills like equations and commutative property... |
![]() |
Digital Multiplication Flash Cards in Color (Ordered and Shuffled 1-9) |
|
This eBook includes 162 digital multiplication flash cards in color (where color is available). Each flash card is decorated with smiley faces and looks just like the flash cards depicted on the thumbnail image for the cover of this eBook... |
![]() |
CardDroid Math Flash Cards Sale Price: $0.99 |
![]() |
Subtraction Flash Cards: Subtraction Facts with Critters (Learning Essentials Math & Reading Flashcard Series) |
|
Robert Stanek’s Bugville Critters recommended by / featured in...+ Parenting Magazine (2008)+ The Children’s Bookshelf (Publisher’s Weekly) (2007, 2008)+ Children’s Writer (2007)+ Foreword Magazine (2007)+ The Wall Street Journal (2006)+ School Library Journal (2008, 2009)+ Library Journal (2008, 2009)Read letters to Buster from kids all over the world at http://www... |
![]() |
Cards, Flash, Fraction,Advance Set Math Sale Price: $9.30 |
|
Advanced Fractions Flash Cards - Appropriate for Grades 3-8 -- With the Advanced Fractions Flash Cards, children will be able to reinforce the concept of: -- ? numerical fractions, -- ? equivalent fractions, and -- ? ratios! -- Advanced Fraction Flash Cards provide practice in learning the concepts involved in simple fractions (dividing a whole shape into equal-sized parts), ratios (separating a set of shapes into various-sized subsets), and equivalent fractions (showing that a different number of parts from two of the same shapes can be equal in total size)... |
![]() |
Educational Insights Hot Dots Math Flash Cards -Subtraction Sale Price: $5.44 |
|
Hot Dots add an innovative new twist to regular flash cards to teach kids critical school skills. Students look at simple subtraction challenges using numbers one through 13; then simply touch the Hot Dots pen on the correct answer to get a positive response... |











Leave a Comment