View Single Post
02-25-2008, 02:04 PM
#3
zeke_chan is offline zeke_chan
Status: I'm new around here
Join date: Feb 2008
Location: Malaysia
Expertise:
Software:
 
Posts: 4
iTrader: 0 / 0%
 

zeke_chan is on a distinguished road

Send a message via MSN to zeke_chan Send a message via Yahoo to zeke_chan

  Old

Heres how you do it:

1) Create your own function. Add this script in your timeline:

var myOwnFunction:Function = function ( value:String ) {
trace ( value ); // sends "value" to the output window
}

2) Ensure you have enabled html for the text field you're using. Here's the script for the html text:

myTextField.htmlText = "<a href=\"asfunction:myOwnFunction, myValueHere\">Click this html asfunction link</a>";

When you test your movie, you should see the text field with the text "Click this html asfunction link". When you click on it, the output window will show "myValueHere" as a string.

Try it out.