开发者

Have a link that is imported in xml, clickable to execute a function

开发者 https://www.devze.com 2022-12-28 22:52 出处:网络
Ok, here\'s the question, I have an xml doc that is being import into an AS3 file and then with .htmlText, appending it to a movie clip.An example of what this looks like is:

Ok, here's the question, I have an xml doc that is being import into an AS3 file and then with .htmlText, appending it to a movie clip. An example of what this looks like is:

<abstract><![CDATA[<p><strong>AEO Times Square</strong> Store Wins Prestigious SEGD Merit Award for Dynamic Environments <a href='event:OpenArticle1'>View Article</a></p>]]>&l开发者_运维问答t;/abstract>

What I'd like to have happen is when I click that view article link that I can call a function passing in "OpenArticle1".

Thanks in advance.


You'll want to have a look at flash.events.TextEvent.LINK. There is an example in there too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号