you are taking about stage graphics of the movie you loaded ? you can hide
them from flash using mask
Yes, but I don't want to use masks because of the background... Is it any attribute to add to my SWFLoader mxml tag ?...
can you send a screenshot with the problem mentioned there . so i can better
You'll see in an attached file the problem with any comments.
I would not like to display the elements which are out the stage in the panel container but also see the background of the master component.
The test.swf 's stage appears out of the panel container.
I would like to show only the stage. I don't know how to proceed.
Thanks for help
Extracts test.mxml :
<mx:Canvas initialize="jeux.send();" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="904" xmlns:display="flash.display.*">
<mx:Panel id ="panelJeu" x="136.5" y="173" width="640" height="480" layout="absolute" title="Jeu">
<mx:SWFLoader id="jeu" source="test.swf" width="100%" height="100%" scaleContent="true"
pb swfloader.jpg 228.1 K
I see: you can't change loaded swf. Then first of all remove width="100%" height="100%" properties from loader description in your mxml. Then use some container like a Box that can crop your loaded file. Set to this container exact width and height as in your swf visible area and clipContent=true
Also you sould set horizontalScrollPolicy and verticalScrollPolicy off for container to avoid scrolling.
Thank you, it works correctly.
But now I've an another question : is it possible to make that AND resize the SWF for example in 640x480 ?