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
tListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
>>
>> navbut.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
>> navbut.addEventListener(MouseEvent.CLICK,
>> mouseClickHandler);
>>
>>
>>
...@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
: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
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
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
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
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
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
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
: [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
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
...@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
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
14 matches
Mail list logo