Google Swiffy: How to pass variables from javascript to HTML5 swiffyobject? -
i've read through little documentation there on google's swiffy page, , don't see way pass flashvars data html5 swiffyobject.
on old version of site there embed code (which uses swfobject) pass javascript variable flash:
var mainmovie = new swfobject("mainpage.swf", "themovie", "640", "480", "8", "#000099"); mainmovie.addparam("align", "middle"); mainmovie.addparam("wmode", "opaque"); mainmovie.addvariable("pagelayout", layoutcode); mainmovie.write("target_div");
in other words, variable pagelayout passed flash movie .js
is there way pass javascript variables swiffyobjects, either through similar swfobject's addvariable, or through standard flashvars interface?
just answering own question here because found answer.
the swiffy equivalent of flashvars is:
stage.setflashvars("variablename = value");
where "stage" swiffy html5 object.
Comments
Post a Comment