Link to home
Start Free TrialLog in
Avatar of slickRick
slickRick

asked on

Maths in Flash .....

Im new to using Flash and was looking to build a website using flash with a Maths theme.  The maths would be used in either a frontpage or within site graphics.  It only has to be simple, if anyone could forward or direct me to some code, it would be most appreciated.
Avatar of stef4s
stef4s

Flash has a math object and can do trig etc.


Method summary for the Math object Method Description
abs
 Computes an absolute value.
 
acos
 Computes an arc cosine.
 
asin
 Computes an arc sine.
 
atan
 Computes an arc tangent.
 
atan2
 Computes an angle from the x-axis to the point.
 
ceil
 Rounds a number up to the nearest integer.
 
cos
 Computes a cosine.
 
exp
 Computes an exponential value.
 
floor
 Rounds a number down to the nearest integer.
 
log
 Computes a natural logarithm.
 
max
 Returns the larger of the two integers.
 
min
 Returns the smaller of the two integers.
 
pow
 Computes x raised to the power of the y.
 
random
 Returns a pseudo-random number between 0.0 and 1.0.
 
round
 Rounds to the nearest integer.
 
sin
 Computes a sine.
 
sqrt
 Computes a square root.
 
tan
 Computes a tangent.
 




 
Property summary for the Math object

All of the properties for the Math object are constants. Property Description
E
 Euler's constant and the base of natural logarithms (approximately 2.718).
 
LN2
 The natural logarithm of 2 (approximately 0.693).
 
LOG2E
 The base 2 logarithm of e (approximately 1.442).
 
LN10
 The natural logarithm of 10 (approximately 2.302).
 
LOG10E
 The base 10 logarithm of e (approximately 0.434).
 
PI
 The ratio of the circumference of a circle to its diameter (approximately 3.14159).
 
SQRT1_2
 The reciprocal of the square root of 1/2 (approximately 0.707).
 
SQRT2
 The square root of 2 (approximately 1.414).
 


stefan
ASKER CERTIFIED SOLUTION
Avatar of big_al_bruce
big_al_bruce

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slickRick

ASKER

Thanks ..... big_al_bruce

Is there a helpfull link because on the as im a little lost there .......
is there a way of revserse engineering Shock Wave Files ?
no, not really, you could try using an actionscript viewer.

Bruce
why do you need to reverse engineer?
Its for a u university Assignment and i'll have to tinker with it slightly ...........
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-Accept big_al_bruce's comment as answer.



Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
elhy
EE Cleanup Volunteer