does anyone know how I can rewrite this script
Code:
var script:XML =
<script>
<![CDATA[
function()
{
myLightWindow.activateWindow({href: 'wall.swf',
title: 'lightwindow',
author: 'anon',
height: 300,
width: 450});
}
]]>
</script>;
function p_click(me:MouseEvent)
{
ExternalInterface.call(script);
}
to recognise and load the url defined by my xml doc.
this onclick command loads up the url in a new window
Code:
function p_click(me:MouseEvent)
{
var sp:Sprite = me.target as Sprite;
var s_no:Number = parseInt(sp.name.slice(8,10));
navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);
}
but i don't know how to add it to the href??? anyone know how it should look?
the current href - wall.swf is an absolute route to a swf that loads into the lightwindow - but i need the url from the xml doc to be loaded???
how do i do that?