lundi 28 décembre 2015

Swfloader scale content to full size

I have load swf file to my flex project.
I have used SWFLoader for that to load the swf file.

var loader:SWFLoader = new SWFLoader();
loader.width = 320;
loader.height = 280;

In which parentContainer is <s:BorderContainer. It's width 320 and height 280.

I have also tried to set like following, but didn't got succeeded:

function onComplete(event:Event):void
    loader.width = 320;
    loader.height = 280;

Problem: But when i run it swf file load to full width and height.
How can i set it's width and height to it's parent container?

Aucun commentaire:

Enregistrer un commentaire