javaFla
09-30-2004, 01:24 AM
I am trying to call a .html file with an embedded .swf, from a hyperlink, then pass arguments/values to it that tell it what resources to load.
My approach so far ;
//build a new html doc in JavaScript, embed swf
myHTML='<HTML>\n'; etc.
myHTML+='<EMBED src="myfile.swf"....></EMBED>\n';
//open new window with the html
mywindow=window.open();
myDocument=mywindow.document;
myDocument.write(myHTML);
//finally my attempt to pass the values...
myDocument.setVariable("myVar",'strng2')
Please help if you see whats wrong or know a better way ...thanks
My approach so far ;
//build a new html doc in JavaScript, embed swf
myHTML='<HTML>\n'; etc.
myHTML+='<EMBED src="myfile.swf"....></EMBED>\n';
//open new window with the html
mywindow=window.open();
myDocument=mywindow.document;
myDocument.write(myHTML);
//finally my attempt to pass the values...
myDocument.setVariable("myVar",'strng2')
Please help if you see whats wrong or know a better way ...thanks