[Flashjs] Not Passing Variables
Zath
zathras333 at yahoo.com
Tue Aug 30 09:46:09 PDT 2005
One more problem and wondering if anyone here ever came across this one.
I can't seem to pass the variables over to actionscript.
I have passed vars left and right in other programs, but all the vars I am passing here are coming back undefined.
Here's the javascript...
flashProxy.call('setVar', 'testing', 3);
And the actionscript....
import com.macromedia.javascript.JavaScriptProxy;
class container extends UIComponent
{
//other vars declared here
var proxy:JavaScriptProxy;
function container()
{
//Create new proxy for Flash/JavaScript Kit
proxy = new JavaScriptProxy(_root.lcId, this);
//other events and vars set here.
}
//changed string to object - no luck
public function setVar(newVar:String, test:Number):Void {
_root.isBrowser = true; //this is being set
getURL( "javascript:alert( '" + test + "' );" ); //alert is occuring
}
}
And I did an alert in the JavaScriptFlashGateway.js file and the var is not undefined there.
Anyone? Suggestions?
Thanks all,
Zath
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/flashjs_osflash.org/attachments/20050830/0433b6ef/attachment.htm
More information about the Flashjs
mailing list