all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

Javascript in xml for flash


Re: Javascript in xml for flash robW
11/12/2004 4:16:48 PM
flash (macromedia):
You need to associate your files with an AS function

Javascript in xml for flash marcophantasioso
11/12/2004 11:13:48 PM
Hello!

I'm working on a flash web page that loads data via XML. What I want to
accomplish is a dynamic list of names. If the user clicks on any of these names
a popUp window should open with the respective info for that name.

The problem is that I can't use a javascript popUp function within the XML
file, that is, I can't have a javascript value because it won't be recognized.
This is the XML I have:

<story>
<lead>Jos? Daniel Amado V.</lead>
<URL>http://www.yahoo..com/</URL>
</story>

<story>
<lead>Juan Luis Avenda?o Cisneros</lead>
<URL>http://www.yahoo..com/</URL>
</story>

<story>
<lead>Juan Luis Avenda?o Valdez</lead>
<URL>http://www.altavista.com/</URL>
</story>


I want to try the following:

<story>
<lead>Juan Luis Avenda?o Valdez</lead>
<URL>javascript:popup('popup.html?codigo=01', 'miembros', 640, 410 )</URL>
</story>

so that when I load the URL value in flash I can use it to launch a popUp
window. But this does not work.

Does anybody have an idea of how to make this work?

Thank you

MMC
AddThis Social Bookmark Button