[EMAIL PROTECTED] escreveu:
Hi
I'm having a problem using getURL to pass a variable argument to a javascript 
function


this works(notice 'arg' is a string)

getURL("javascript:testfunc('arg')");


this DOESN'T work:

var arg='myvar'
getURL("javascript:testfunc(arg)");


Any suggestions???
use ExternalInterface

var arg = 'myvar';
import flash.external.*;
ExternalInterface.call("testefunc", arg);

see ya!

Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR - Brazil




[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to