mozilla / shumway

Shumway is a Flash VM and runtime written in JavaScript
Apache License 2.0
3.68k stars 397 forks source link

Scale shuobject.embedSWF #2422

Open askeet opened 8 years ago

askeet commented 8 years ago

Scale swf doesn't work. How way scale swf?

    // Create/embed SWF movie.
    var flashvars = {};
    var params = { scale: "exactFit",  
                   wmode: "window",
                   allowfullscreen  : true};

    var attributes = {};
    shuobject.embedSWF(PathToSwf, 'mainSWF', 1000, 1000, '9,0,10', 
        false, flashvars ,params, attributes , 
        function (e) {
            console.log('Object loaded, success=' + e.success);
            swf = document.getElementById("mainSWF");
            //alert("Heloo");
    });

shuobject.embedSWF(PathToSwf, 'mainSWF', '100%', '100%', '9,0,10')doesn't work too.