View Single Post
  #1 (permalink)  
Old December 9th, 2006, 04:42 PM
serpicolugnut serpicolugnut is offline
Registered User
 
Join Date: Dec 2006
Location: Grayson, GA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to serpicolugnut Send a message via Yahoo to serpicolugnut
Default Javascript call inside of getURL

Hello -
I'm trying to execute a javascript command inside the getURL command inside of Flash.
The javascript command looks like this in the HTML:

Code:
<a href="javascript://" onclick="swapLayers('layer'); return false">Layer</a>
When I try to convert this to the getURL property like this:
Code:
getURL("javascript:onclick=swapLayers('layer'); return false");
...
I get a Syntax error. Does anybody have an idea on how to properly format the this js inside the getURL command?

Thanks

Reply With Quote