PDA

View Full Version : Hyperlinks in XML opening in new windows


Scuba_Steve
10-24-2007, 08:58 PM
Can't for the life of me sort this one out...

I'm loading text data from an external XML file. Within a given bit of text is a hyperlink. This is loaded dynamically into a dynamic text field within Flash (html enabled). When I click the link, it opens as normal. Unfortunately, I can't get the link to open in a NEW WINDOW. It keeps loading as a new tab in any existing IE window.

How do I force it to open in a new window? Reason I need to do this is the window has to be resized via JS...

:confused:

creatify
10-24-2007, 11:05 PM
are you setting a target in the call? Or are you needing to call a js function from a hyperlink?

For example, if this is in your xml, then it will open in a new window:

< a href='yourpathtopage.html' target='_blank'>link</a>

or, if you need to call a js function from a link in the xml - I usually use asfunction to call a function on _root or wherever, pass it an arg and then let the function call getURL("javascript:funcname();") etc etc.

If thats the case, google flash 8 livedocs asfunction - you should find some examples.