Rick Root wrote:
> Is it possible for rendered HTML text to contain HREF's that call 
> actionscript instead of http or javascript?

Found my own answer =)  The answer is yes.

The Flash 9 player can dispatch EVENTS when a link in HTML text is clicked.

In my case, the htmlText contains something like this:

<a href="event:0000098604">John Doe</a>

And then in my actionscript I'm doing this..

var linkEvent = function(event:TextEvent):void {
        mx.core.Application.application.launchDetailsWindow(event.text);
}
txtRelationships.addEventListener(TextEvent.LINK, linkEvent)

flash Player 8 had a "actionscript:" protocol which allowed you to call 
a method, apparently... but they did away with that in AS3 and switched 
to the event model.

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3278
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to