Re: [Flashcoders] Coordinates and Stage align in Flexible UIs
Ahhh, of course. That makes sense to me now. Thanks very much. - Kevin On 22/05/07, Muzak [EMAIL PROTECTED] wrote: - Original Message - No, you calculate those using the original document width and height and the Stage.width and Stage.height. So you'll have to store the original width and height in variables. var origWidth:Number = 760; var origHeight:Number = 450; var offsetX:Number = (Stage.width - origWidth)/2; var offsetY:Number = (Stage.height - origHeight)/2; regards, Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Coordinates and Stage align in Flexible UIs
Maybe this will help: http://muzakdeezign.com/flashcoders/stage_align.html regards, Muzak - Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 12:43 PM Subject: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi there, Is there a good explanation about how co-ordinates work with Stage Align? I'm building a Flexible UI and all works fine is I use Stage.align to the top left, and set teh scalemode to noscale, but if I want to align it to the center things start going a little hay-wire. I'm trying to leave as much of the design on the timeline as possible, and will be loading in SWF dynamically, so I'm aiming to have the main content centered, and have the UI change around that, rather than positioning it with code, but I've not managed to do that yet. Anyone know of any resources that might help me? - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Coordinates and Stage align in Flexible UIs
Hi, That looks very useful. I've one question though. How is the 'border to stage position' information worked out? Is the some kind of absolute top/left co-ordinates you can find? - Kevin On 22/05/07, Muzak [EMAIL PROTECTED] wrote: Maybe this will help: http://muzakdeezign.com/flashcoders/stage_align.html regards, Muzak - Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 12:43 PM Subject: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi there, Is there a good explanation about how co-ordinates work with Stage Align? I'm building a Flexible UI and all works fine is I use Stage.align to the top left, and set teh scalemode to noscale, but if I want to align it to the center things start going a little hay-wire. I'm trying to leave as much of the design on the timeline as possible, and will be loading in SWF dynamically, so I'm aiming to have the main content centered, and have the UI change around that, rather than positioning it with code, but I've not managed to do that yet. Anyone know of any resources that might help me? - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Coordinates and Stage align in Flexible UIs
- Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 3:11 PM Subject: Re: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi, That looks very useful. I've one question though. How is the 'border to stage position' information worked out? Is the some kind of absolute top/left co-ordinates you can find? - Kevin No, you calculate those using the original document width and height and the Stage.width and Stage.height. So you'll have to store the original width and height in variables. var origWidth:Number = 760; var origHeight:Number = 450; var offsetX:Number = (Stage.width - origWidth)/2; var offsetY:Number = (Stage.height - origHeight)/2; regards, Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com