All,

> Oh, that's good - Flash's array functions will be nice to 
> have available.

And the Math object too... :)

gMath = newObject("Math")

-- use the math object's floor method
gMath.floor(3.6)
-- 3.0000

-- use the math object's arc cosine method
put gMath.aCos(-1)
-- 3.1416

And so on... Basically any Flash object that supports the 'new' creator method, or the 
Math, Camera and Microphone objects (those three are implicitly global and present, no 
need to create them) can be created and referenced via Lingo. For other objects that 
are created inside a SWF itself you can grab references using the modified 
getVariable() command:

gFoo = spriteRef.getVariable("gVarName",false)

The false tells it to get a proper reference instead of a string representation, thus 
you can make Lingo references to objects spawned within your SWF. Sweeeeet.

Cheers,
Tom Higgins
Product Specialist - Director Team
Macromedia

.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to