If you're using Flash MX (I'm not sure if this works in earlier versions),
you can use "asfunction".  So if your function is named "myFunction" then
you would put the following into the link field:
asfunction:myFunction

You can also pass arguments, if you'd like:
asfunction:myFunction, arg1, arg2

So you could set up a function that always passes arg1 out as Lingo through
the getURL command, for example.

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194

----- Original Message ----- 
From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 02, 2003 11:46 AM
Subject: <lingo-l> Flash text box link not triggering Director behavior


> Hi list...
>
> I have a Flash asset with a text box that has a link in it.  In the
> Flash property inspector there's a link field, and I figured you could
> type actionscript there to be executed, just like the link field in the
> text inspector in Director where you can type a lingo handler.  Maybe
> I'm doing something wrong, but none of the below work when filled into
> that field in the Flash property inspector.  I want the link in the
> flash text box in that Flash asset to trigger a Director handler.  It's
> easy enough with getURL in Flash on a button, but apparently, this is
> not intuitively the case for text boxes!?!?
>
> Any tips are appreciated, as always.
> - Michael M.
>
> _______________________________________________________________________
>
> event: linkFromFlash(www.eqsafetysys.com) -- error comma expected
> event: linkFromFlash(me, www.eqsafetysys.com)
> event: linkFromFlash(me, \"www.eqsafetysys.com\")
> event: linkFromFlash("www.eqsafetysys.com")
> event: linkFromFlash("www.eqsafetysys.com");
> getURL(linkFromFlash(www.eqsafetysys.com)) -- does nothing, with or
> without the semicolon
>
>
>
> [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