Hi Kristian,

Have you tried this:

root = sprite(x).getVariable("_root",false)
root.getStringFromDMX("myString")

root.myArray[11] = "this is a test";

Since root is an actual REFERENCE to the root timeline, you can access
most of the stuff on the timeline just like you would in Actionscript.
Keep in mind that arrays in lingo begin with index 1, while actionscript
arrays' indexes start with 0.

HTH,
~Mathew



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kristian
Sent: Thursday, August 14, 2003 4:07 AM
To: [EMAIL PROTECTED]
Subject: RE: <lingo-l> Trigger FlashMX function from DMX.


Thanks a lot Mathew, works amazingly well!

While writing I might as well see if anyone has got an answer to this:

put sprite(1).getVariable("mainHeader",false)[11]

sprite(1) contains a flash object, the flash object contains an array
called
mainHeader...

using the above code works fine for referencing the 12th object in that
array from DMX...

The Question: Is there a way as simple as the above to use the
setVariable
on an Array directly from lingo? (thanks to Mathew that can be resolved
with
a new flash function... but WHY doesn't it work??)

/Kristian again...



[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