I think if you just add

width="100%" height="100%" to the Application tag and replace it in the
swflaoder tag. You'll probably need to set a parameter that will allow the
swf loader image to change it's aspect ratio as well

On Dec 17, 2007 4:07 AM, nylarch <[EMAIL PROTECTED]> wrote:

>   Howdy -
>
> Working on a "design-y" site that would probably more naturally be done in
> the Flash
> Authoring tool but I want to understand more about Flex so I'm going that
> route. A
> designer I'm working with on the project delivered an Illustrator file
> that is the background
> for the main page of the site. I want it to be resizable when the browser
> changes. I'm
> going to use <mx:Text> at the top for the logo and navigation, which I
> don't want to
> resize when the browser changes - I want it to maintain its position. The
> overall effect
> should be similar to when you resize this site:
>
> http://www.veroniquebranquinho.com/
>
> I've exported her .ai file to SWF (so it stays as vector art) which is one
> of the neat features
> of Illustrator CS3 and I was using a SWFLoader to bring it into the Flex
> app and then doing
> some embedded fonts to render the navigation. All is well except that the
> SWF stays a
> static size when I resize, even when I set scaleContent = true. Any advice
> on making the
> swf resize? The code (minus the embedded font stuff) is below. Or is there
> just a better
> approach in general?
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> backgroundColor="#0d0d0d" layout="absolute">
>
> <mx:SWFLoader source="the_winner_with_logo.swf" width="1159" height="909"
> scaleContent="true"/>
>
> </mx:Application>
>
> thanks!!
>
>  
>



-- 
Giles Roadnight
http://giles.roadnight.name

Reply via email to