Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Math functions? |
From: | Oliver Emberton |
Date: | Fri, 12 Nov 1999 09:14:05 GMT |
There are no maths functions in Flash (except Int and Random) - you'll have to code them yourself.
For ABS ( x ) , try:
if x < 0 then x = - x
(This should be a fraction faster than x = x*-1)
SQRT can be done iteratively, but this is v.slow & quite complex in Flash. If you really need that function, try interacting with JavaScript
>>> "glenn" <g [dot] mitchelleclipsegroup [dot] com [dot] au> 11/12/99 12:38am >>>
Am I right in assuming there is no abs function?
I guess I can use:
if x < 0 then x = x*-1
what about sqrt???
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]