RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread thomas horner
Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields As I described on my forum post, you have to first put your items in an array. var items:Array = [all, of, your, items]; var len:int= items.length; var i:int; Then, you do the following measurements: // the right of the last

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread thomas horner
tListener(MouseEvent.MOUSE_OVER, mouseOverHandler); >> >> navbut.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler); >> navbut.addEventListener(MouseEvent.CLICK, >> mouseClickHandler); >> >> >>

Re: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread Sidney de Koning
...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de Koning - Funky Monkey Studios Sent: 25 August 2009 16:44 To: Flash Coders List Subject: RE: [Flashcoders] spacing horizontal dynamic xml menu textfields He Thomas, This stuff can be a bit difficult

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread thomas horner
:53 To: Flash Coders List Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields As I described on my forum post, you have to first put your items in an array. var items:Array = [all, of, your, items]; var len:int= items.length; var i:int; Then, you do the following measur

Re: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread Steven Sacks
As I described on my forum post, you have to first put your items in an array. var items:Array = [all, of, your, items]; var len:int= items.length; var i:int; Then, you do the following measurements: // the right of the last item minus the left of the first item var availableWidth:Number = ite

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread thomas horner
16:44 To: Flash Coders List Subject: RE: [Flashcoders] spacing horizontal dynamic xml menu textfields He Thomas, This stuff can be a bit difficult when making the transition. Textfield has a really cool property called textWidth and textHeight, that retruns only the width and height of the actual

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread thomas horner
August 2009 16:44 To: Flash Coders List Subject: RE: [Flashcoders] spacing horizontal dynamic xml menu textfields He Thomas, This stuff can be a bit difficult when making the transition. Textfield has a really cool property called textWidth and textHeight, that retruns only the width and height of the

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread Sidney de Koning - Funky Monkey Studios
s] spacing horizontal dynamic xml menu textfields > > No problem :) > This is using AS3. Where do you have problem with? > > Sid > > >> is this using as2 as im trying to do it in as3 so am a bit confused >> >> -Original Message- >> From: flashcoders-boun...@chat

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread thomas horner
fig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de > Koning > Sent: 25 August 2009 15:22 > To: Flash Coders List > Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields > > Yup that is correct. X and width, Y and heig

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread Sidney de Koning - Funky Monkey Studios
lf Of Sidney de > Koning > Sent: 25 August 2009 15:22 > To: Flash Coders List > Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields > > Yup that is correct. X and width, Y and height. > > Good luck! > > Sid > > On Aug 25, 2009, at 3:36 PM, th

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread thomas horner
: [Flashcoders] spacing horizontal dynamic xml menu textfields Yup that is correct. X and width, Y and height. Good luck! Sid On Aug 25, 2009, at 3:36 PM, thomas horner wrote: > Hi thanks, so this is for a vertical menu or positioning vertical > textFields, > > i will try and adjust this fo

Re: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread Sidney de Koning
then? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de Koning Sent: 25 August 2009 14:22 To: Flash Coders List Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields Hi

RE: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread thomas horner
...@chattyfig.figleaf.com] On Behalf Of Sidney de Koning Sent: 25 August 2009 14:22 To: Flash Coders List Subject: Re: [Flashcoders] spacing horizontal dynamic xml menu textfields Hi Thomas, Try to do something like this and adjust it to your own needs; // When you are in a for loop, create new items and and

Re: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-25 Thread Sidney de Koning
Hi Thomas, Try to do something like this and adjust it to your own needs; // When you are in a for loop, create new items and and try to measure the height of an item. // And position items vertically.You need to remember the previous item, the fastest way to do this is to have a runningY va