I’m working on a program written in flash that will only run through projector. However, most of the text is in html, and I need to use the <a> tags to load other articles into the flash. However, <a> seems to automatically load new web pages. Any ideas how I can catch when someone presses a hyperlink? Thanks.
You say you want to load articles into flash. You can’t load an HTML page into flash. <a> is equivilant to the getURL() in Flash, so yes it will open a new browser. Have you looked at this tutorial? http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
Hmmm… maybe I didn’t make my question clear. Basically I want a way to be notified (via an eventhandler or something) when someone clicks a hyperlink in my text. All my text is xml that is being loaded in from xml files. I understand dynamic text, my problem is that if I have, for example…
This is some <a href=“3.xml”>text</a>
I want my actionscript to be able to catch when the user clicks on that link so that my flash program can load “3.xml” into my dynamic textbox. I understand how to load it in, I just don’t know how to catch when the user clicks a hyperlink.