synefx
07-19-2007, 09:58 PM
i have a swf that holds several icons called through an xml doc. each icon has a button that unhides a div layer in an html document the swf is loaded into.
my problem is this:
my button uses a global javascript function to unhide the div layer - but i need to unhide a unique layer for each icon. changing the code for the button is not really an option - it has to stay like this:
urlBtn.onRelease = function()
{
getURL("javascript:openmylayer()");
}
what would be the best way to do this?
thanks for any help! :)
my problem is this:
my button uses a global javascript function to unhide the div layer - but i need to unhide a unique layer for each icon. changing the code for the button is not really an option - it has to stay like this:
urlBtn.onRelease = function()
{
getURL("javascript:openmylayer()");
}
what would be the best way to do this?
thanks for any help! :)