We help IT Professionals succeed at work.

Maths in Flash .....

slickRick
slickRick asked
on
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.
Comment
Watch Question

Commented:
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
flash maths at www.were-here.com

(not for the faint hearted!)

Author

Commented:
Thanks ..... big_al_bruce

Is there a helpfull link because on the as im a little lost there .......

Author

Commented:
is there a way of revserse engineering Shock Wave Files ?
no, not really, you could try using an actionscript viewer.

Bruce

Commented:
why do you need to reverse engineer?

Author

Commented:
Its for a u university Assignment and i'll have to tinker with it slightly ...........

Commented:
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

Explore More ContentExplore courses, solutions, and other research materials related to this topic.