When you say "changed manually the width of the swf", do you mean you set the 
width of the "object" and "embed" html tags?  Doesn't seem to me like a good 
way to do what you want. 

 

If I was doing this, I would pass the desired size of the app into the swf 
using flashvars.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of João
Sent: Tuesday, January 08, 2008 9:38 AM
To: [email protected]
Subject: [flexcoders] Problems changing the width of the SWF on the HTML wrapper

 

Hello, 

we have created a form in Flex than should be used on several sites
with different widths. Our idea was to change the width manually on
the HTML wrapper file without having to recompile the SWF. So, what we
did was:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml 
<http://www.adobe.com/2006/mxml> " width="100%" 

and on the HTML wrapper, we have changed manually the width of the swf
on all "width" entries to a fixed pixel width (196).

The problem is that the area of the Flash content is properly set to
196, but the Application content seems to be expanded more than 196
and is cut on the middle. We are seeing only half of the application. 

Have we done something wrong? Is this an expected behaviour or a bug?

Thanks, 

João Saleiro

 

Reply via email to