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...

--
Subject: RE: <lingo-l> Trigger FlashMX function from DMX.

Behold... FLASH OBJECTS!

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

False allows getVariable() to return a reference to the root timeline.
Then you can call functions on it.

HTH,
~Mathew



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kristian
Sent: Wednesday, August 13, 2003 5:45 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> Trigger FlashMX function from DMX.


Hi all,

just wondering if anyone has worked with triggering/calling flash
functions,
using lingo, from DMX? The flash function I'm trying to reach is inside
a
sprite that is a Flash object. What I want to do is (in pseudo)
something
like:

sprite(x).callFlashFunction("getStringFromDMX()", "myString")

It has to be functions and not just setting and getting variables.

Great list and thanks in advance.

/Kristian



[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!]


[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