> I really can't figure out how to center the panel and 'stretch' the canvas ...

<mx:Canvas width="100%" height="100%">

    <mx:Panel width="300" height="300" horizontalCenter="0" and verticalCenter="0"/>

</mx:Canvas>

 

- Gordon

 


From: [email protected] [mailto:[email protected]] On Behalf Of Jeroen Beckers
Sent: Tuesday, September 26, 2006 7:19 AM
To: flexcoders
Subject: [flexcoders] Viewstack with canvas + centered panel

 

Hi,

I'm fairly new to Flex, but I have been developing in Flash for some
years now. The reason why I mailed you guys is that I'm having trouble
with the viewstack component...

This is what I want:

-viewstack
-Canvas
-Panel

The Canvas has to cover the entire stage and the Panel has to be
centered on the stage (both vertically as horizontally).

Could anyone give me a push in the right direction? Maybe a little mxml
or something ? Or is it just not possible ?

I can get a canvas + panel into a viewstack, but I really can't figure
out how to center the panel and 'stretch' the canvas ...

Greets,
Jeroen Beckers
[EMAIL PROTECTED]be
http://www.dauntless.be

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to