RE: [Flashcoders] movieclip._y = textField._height

2006-09-29 Thread Lieven Cardoen
Francis, thx. This was what I was looking for.



And to all you guys who had problems with my profanity, excuse me and
get a live.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Turmel
Sent: donderdag 28 september 2006 20:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

I wrote my solution to this a couple weeks ago (never got any answers if
it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
ml

It seems that the first use of a text height in actionscript can be
unreliable
but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would
print
out
the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:

 Haha, I would seriously take that bet.  You have to listen to what he
is
 saying, xray will trip you out; not only can you control anything in
your
 swf at runtime but you can also view all of its properties.  I am new
to it
 so i don't know all it can do but I KNOW it can help you with _height.

 V
 - Original Message -
 From: John Grden [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 28, 2006 9:17 AM
 Subject: Re: [Flashcoders] movieclip._y = textField._height


  sure it does (xray) - it has a logger too and it includes a
timestamp
 (which
  trace does not) - so, I would say it's actually a bit stronger of a
tool
 for
  timing issues ;)
 
  I got $20 that says he figures out the problem in under 10 minutes
with
  xray.
 
  :)
 
  On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
 
  A trap I often fall into when debugging flash is missing the
  obvious.  Take
  for example,
 
   If I put movieclip._y = 60 , it works fine
   If I put movieclip._y = textField._height , it doesn't work
fine
 
  and then
 
   trace(textField._height) prints 60, yes.
 
  then my question would be - did you trace at the same point in time
 that
  set
  _y? i.e. does your code look like
 
  trace(textField._height);
  movieclip._y = textField._height;
 
  if that prints 60, and the movieclip ends up at 0, then what that
 means,
  most likely, is that you set it 60, but then set it to 0 somewhere
 else.
  I've often lost an hour trying to debug similar issues.  It traces
out
 to
  something and I set it to that, but it doesn't work.  Well, maybe
it
 did,
  and then some other point of the code changes the _y value.  Or you
had
 a
  typo, etc.
 
  Maybe the textField's height is 60 once it has text in it, but
you're
  setting the y position before you put in the text. And so on.
 
  Xray is a great tool for inspecting the program's run-time state,
but
 it
  doesn't help as much with debugging timing dependencies.
 
  --Brian
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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




-- 
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
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] movieclip._y = textField._height

2006-09-29 Thread Lieven Cardoen
Life!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lieven
Cardoen
Sent: vrijdag 29 september 2006 9:59
To: Flashcoders mailing list
Subject: RE: [Flashcoders] movieclip._y = textField._height

Francis, thx. This was what I was looking for.



And to all you guys who had problems with my profanity, excuse me and
get a live.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Turmel
Sent: donderdag 28 september 2006 20:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

I wrote my solution to this a couple weeks ago (never got any answers if
it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
ml

It seems that the first use of a text height in actionscript can be
unreliable
but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would
print
out
the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:

 Haha, I would seriously take that bet.  You have to listen to what he
is
 saying, xray will trip you out; not only can you control anything in
your
 swf at runtime but you can also view all of its properties.  I am new
to it
 so i don't know all it can do but I KNOW it can help you with _height.

 V
 - Original Message -
 From: John Grden [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 28, 2006 9:17 AM
 Subject: Re: [Flashcoders] movieclip._y = textField._height


  sure it does (xray) - it has a logger too and it includes a
timestamp
 (which
  trace does not) - so, I would say it's actually a bit stronger of a
tool
 for
  timing issues ;)
 
  I got $20 that says he figures out the problem in under 10 minutes
with
  xray.
 
  :)
 
  On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
 
  A trap I often fall into when debugging flash is missing the
  obvious.  Take
  for example,
 
   If I put movieclip._y = 60 , it works fine
   If I put movieclip._y = textField._height , it doesn't work
fine
 
  and then
 
   trace(textField._height) prints 60, yes.
 
  then my question would be - did you trace at the same point in time
 that
  set
  _y? i.e. does your code look like
 
  trace(textField._height);
  movieclip._y = textField._height;
 
  if that prints 60, and the movieclip ends up at 0, then what that
 means,
  most likely, is that you set it 60, but then set it to 0 somewhere
 else.
  I've often lost an hour trying to debug similar issues.  It traces
out
 to
  something and I set it to that, but it doesn't work.  Well, maybe
it
 did,
  and then some other point of the code changes the _y value.  Or you
had
 a
  typo, etc.
 
  Maybe the textField's height is 60 once it has text in it, but
you're
  setting the y position before you put in the text. And so on.
 
  Xray is a great tool for inspecting the program's run-time state,
but
 it
  doesn't help as much with debugging timing dependencies.
 
  --Brian
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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




-- 
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
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

RE: [Flashcoders] movieclip._y = textField._height

2006-09-29 Thread Nick Weekes
Get a Life you mean.

And dude, if you swear in your emails they will likely be blocked by
corporate email servers, so nobody will be able to help.

So right back atcha... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lieven
Cardoen
Sent: 29 September 2006 08:59
To: Flashcoders mailing list
Subject: RE: [Flashcoders] movieclip._y = textField._height

Francis, thx. This was what I was looking for.



And to all you guys who had problems with my profanity, excuse me and get a
live.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Turmel
Sent: donderdag 28 september 2006 20:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

I wrote my solution to this a couple weeks ago (never got any answers if it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
ml

It seems that the first use of a text height in actionscript can be
unreliable but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would print
out the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:

 Haha, I would seriously take that bet.  You have to listen to what he
is
 saying, xray will trip you out; not only can you control anything in
your
 swf at runtime but you can also view all of its properties.  I am new
to it
 so i don't know all it can do but I KNOW it can help you with _height.

 V
 - Original Message -
 From: John Grden [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 28, 2006 9:17 AM
 Subject: Re: [Flashcoders] movieclip._y = textField._height


  sure it does (xray) - it has a logger too and it includes a
timestamp
 (which
  trace does not) - so, I would say it's actually a bit stronger of a
tool
 for
  timing issues ;)
 
  I got $20 that says he figures out the problem in under 10 minutes
with
  xray.
 
  :)
 
  On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
 
  A trap I often fall into when debugging flash is missing the 
  obvious.  Take for example,
 
   If I put movieclip._y = 60 , it works fine If I put movieclip._y 
   = textField._height , it doesn't work
fine
 
  and then
 
   trace(textField._height) prints 60, yes.
 
  then my question would be - did you trace at the same point in time
 that
  set
  _y? i.e. does your code look like
 
  trace(textField._height);
  movieclip._y = textField._height;
 
  if that prints 60, and the movieclip ends up at 0, then what that
 means,
  most likely, is that you set it 60, but then set it to 0 somewhere
 else.
  I've often lost an hour trying to debug similar issues.  It traces
out
 to
  something and I set it to that, but it doesn't work.  Well, maybe
it
 did,
  and then some other point of the code changes the _y value.  Or you
had
 a
  typo, etc.
 
  Maybe the textField's height is 60 once it has text in it, but
you're
  setting the y position before you put in the text. And so on.
 
  Xray is a great tool for inspecting the program's run-time state,
but
 it
  doesn't help as much with debugging timing dependencies.
 
  --Brian
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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




-- 
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
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

RE: [Flashcoders] movieclip._y = textField._height

2006-09-29 Thread Danny Kodicek

 And to all you guys who had problems with my profanity, excuse me and
 get a live.

I personally don't care one way or the other, but this is a professional
list and swearing is inappropriate. Respect others' wishes and please keep
it for more informal forums, thanks.

Danny

___
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] movieclip._y = textField._height

2006-09-29 Thread Lieven Cardoen
It looks more like you have to wait a frame to get the correct height.

Strange thing is that most of the times, getting the height works fine,
but once in a while it fails.

Lieven

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Turmel
Sent: donderdag 28 september 2006 20:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

I wrote my solution to this a couple weeks ago (never got any answers if
it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
ml

It seems that the first use of a text height in actionscript can be
unreliable
but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would
print
out
the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:

 Haha, I would seriously take that bet.  You have to listen to what he
is
 saying, xray will trip you out; not only can you control anything in
your
 swf at runtime but you can also view all of its properties.  I am new
to it
 so i don't know all it can do but I KNOW it can help you with _height.

 V
 - Original Message -
 From: John Grden [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 28, 2006 9:17 AM
 Subject: Re: [Flashcoders] movieclip._y = textField._height


  sure it does (xray) - it has a logger too and it includes a
timestamp
 (which
  trace does not) - so, I would say it's actually a bit stronger of a
tool
 for
  timing issues ;)
 
  I got $20 that says he figures out the problem in under 10 minutes
with
  xray.
 
  :)
 
  On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
 
  A trap I often fall into when debugging flash is missing the
  obvious.  Take
  for example,
 
   If I put movieclip._y = 60 , it works fine
   If I put movieclip._y = textField._height , it doesn't work
fine
 
  and then
 
   trace(textField._height) prints 60, yes.
 
  then my question would be - did you trace at the same point in time
 that
  set
  _y? i.e. does your code look like
 
  trace(textField._height);
  movieclip._y = textField._height;
 
  if that prints 60, and the movieclip ends up at 0, then what that
 means,
  most likely, is that you set it 60, but then set it to 0 somewhere
 else.
  I've often lost an hour trying to debug similar issues.  It traces
out
 to
  something and I set it to that, but it doesn't work.  Well, maybe
it
 did,
  and then some other point of the code changes the _y value.  Or you
had
 a
  typo, etc.
 
  Maybe the textField's height is 60 once it has text in it, but
you're
  setting the y position before you put in the text. And so on.
 
  Xray is a great tool for inspecting the program's run-time state,
but
 it
  doesn't help as much with debugging timing dependencies.
 
  --Brian
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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




-- 
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
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] movieclip._y = textField._height

2006-09-29 Thread Merrill, Jason
And to all you guys who had problems with my profanity, excuse me and
get a live.

Yesterday, you apologize for the profanity, Ps : sorry for the
profanity., and today you post that. I'm thoroughly confused. Can you
explain, but off-list?  Feel free to send it (profanities and all) to my
personal account, [EMAIL PROTECTED] It's already filled with
spam, so profanity is OK with me there.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
___
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] movieclip._y = textField._height

2006-09-29 Thread John Grden

Keith Peters just told me about an old issue that _width is the actual last
property set on a movieclip.  So, when width was ready, then it was fully
initialized.  I assume that's why waiting until frame2 works.

if you were using MovieClipLoader, you could do your calcs when onLoadInit()
fires and safely set your coordinates.

I know I'm late to the discussion on a solution ;)

PS cussing doesn't bother me - it's the reason WHY I cuss that bothers me
;)  Developers cuss.  That's a fact.  They just do it off list ;)

On 9/29/06, Lieven Cardoen [EMAIL PROTECTED] wrote:


It looks more like you have to wait a frame to get the correct height.

Strange thing is that most of the times, getting the height works fine,
but once in a while it fails.

Lieven

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Turmel
Sent: donderdag 28 september 2006 20:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

I wrote my solution to this a couple weeks ago (never got any answers if
it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
ml

It seems that the first use of a text height in actionscript can be
unreliable
but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would
print
out
the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:

 Haha, I would seriously take that bet.  You have to listen to what he
is
 saying, xray will trip you out; not only can you control anything in
your
 swf at runtime but you can also view all of its properties.  I am new
to it
 so i don't know all it can do but I KNOW it can help you with _height.

 V
 - Original Message -
 From: John Grden [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 28, 2006 9:17 AM
 Subject: Re: [Flashcoders] movieclip._y = textField._height


  sure it does (xray) - it has a logger too and it includes a
timestamp
 (which
  trace does not) - so, I would say it's actually a bit stronger of a
tool
 for
  timing issues ;)
 
  I got $20 that says he figures out the problem in under 10 minutes
with
  xray.
 
  :)
 
  On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
 
  A trap I often fall into when debugging flash is missing the
  obvious.  Take
  for example,
 
   If I put movieclip._y = 60 , it works fine
   If I put movieclip._y = textField._height , it doesn't work
fine
 
  and then
 
   trace(textField._height) prints 60, yes.
 
  then my question would be - did you trace at the same point in time
 that
  set
  _y? i.e. does your code look like
 
  trace(textField._height);
  movieclip._y = textField._height;
 
  if that prints 60, and the movieclip ends up at 0, then what that
 means,
  most likely, is that you set it 60, but then set it to 0 somewhere
 else.
  I've often lost an hour trying to debug similar issues.  It traces
out
 to
  something and I set it to that, but it doesn't work.  Well, maybe
it
 did,
  and then some other point of the code changes the _y value.  Or you
had
 a
  typo, etc.
 
  Maybe the textField's height is 60 once it has text in it, but
you're
  setting the y position before you put in the text. And so on.
 
  Xray is a great tool for inspecting the program's run-time state,
but
 it
  doesn't help as much with debugging timing dependencies.
 
  --Brian
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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




--
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http

Re: [Flashcoders] movieclip._y = textField._height

2006-09-29 Thread Francis Turmel

Interesting.
In my experience though I didn't have to wait a frame for the fix to work.
Two consecutive references to the textHeight would make the second one
give the proper value, but I'd love to get to the bottom of this and
understand
why this is happening. If I can find a minute I'll dig up some old files and
do
some testing.

- Francis


On 9/29/06, John Grden [EMAIL PROTECTED] wrote:


Keith Peters just told me about an old issue that _width is the actual
last
property set on a movieclip.  So, when width was ready, then it was fully
initialized.  I assume that's why waiting until frame2 works.

if you were using MovieClipLoader, you could do your calcs when
onLoadInit()
fires and safely set your coordinates.

I know I'm late to the discussion on a solution ;)

PS cussing doesn't bother me - it's the reason WHY I cuss that bothers me
;)  Developers cuss.  That's a fact.  They just do it off list ;)

On 9/29/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

 It looks more like you have to wait a frame to get the correct height.

 Strange thing is that most of the times, getting the height works fine,
 but once in a while it fails.

 Lieven

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Francis
 Turmel
 Sent: donderdag 28 september 2006 20:09
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] movieclip._y = textField._height

 I wrote my solution to this a couple weeks ago (never got any answers if
 it
 worked for the person who asked though).

 take a look here:
 http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.ht
 ml

 It seems that the first use of a text height in actionscript can be
 unreliable
 but from the second time you reference it it looks fine.

 So if my theory holds its ground, your first use (the trace()) would
 print
 out
 the wrong value, but your assignment afterwards will be ok.
 Remove the trace and it shouldn't work.

 I'd love to have some feedback on this, its an intriguing one.

 hope this helps,

 - Francis



 On 9/28/06, vic [EMAIL PROTECTED] wrote:
 
  Haha, I would seriously take that bet.  You have to listen to what he
 is
  saying, xray will trip you out; not only can you control anything in
 your
  swf at runtime but you can also view all of its properties.  I am new
 to it
  so i don't know all it can do but I KNOW it can help you with _height.
 
  V
  - Original Message -
  From: John Grden [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Thursday, September 28, 2006 9:17 AM
  Subject: Re: [Flashcoders] movieclip._y = textField._height
 
 
   sure it does (xray) - it has a logger too and it includes a
 timestamp
  (which
   trace does not) - so, I would say it's actually a bit stronger of a
 tool
  for
   timing issues ;)
  
   I got $20 that says he figures out the problem in under 10 minutes
 with
   xray.
  
   :)
  
   On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:
  
   A trap I often fall into when debugging flash is missing the
   obvious.  Take
   for example,
  
If I put movieclip._y = 60 , it works fine
If I put movieclip._y = textField._height , it doesn't work
 fine
  
   and then
  
trace(textField._height) prints 60, yes.
  
   then my question would be - did you trace at the same point in time
  that
   set
   _y? i.e. does your code look like
  
   trace(textField._height);
   movieclip._y = textField._height;
  
   if that prints 60, and the movieclip ends up at 0, then what that
  means,
   most likely, is that you set it 60, but then set it to 0 somewhere
  else.
   I've often lost an hour trying to debug similar issues.  It traces
 out
  to
   something and I set it to that, but it doesn't work.  Well, maybe
 it
  did,
   and then some other point of the code changes the _y value.  Or you
 had
  a
   typo, etc.
  
   Maybe the textField's height is 60 once it has text in it, but
 you're
   setting the y position before you put in the text. And so on.
  
   Xray is a great tool for inspecting the program's run-time state,
 but
  it
   doesn't help as much with debugging timing dependencies.
  
   --Brian
   ___
   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
  
  
  
  
   --
   [  JPG  ]
   ___
   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

RE: [Flashcoders] movieclip._y = textField._height

2006-09-28 Thread Alain Rousseau
Instead of using textField._height, you should use textField.textHeight.
This is more reliable than the _height property

A

-Original Message-
From: André Goliath [mailto:[EMAIL PROTECTED] 
Sent: 28 septembre 2006 09:33
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] movieclip._y = textField._height

How about this?

var test:Number = Math.round(parseFloat(textField._height));
movieClip._y = test;

;)


strange, works for me obviously,...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lieven
Cardoen
Sent: Thursday, September 28, 2006 3:24 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] movieclip._y = textField._height

Instead of going to y-coordinate 60, it goes to ZERO.

Even if I like do this : 

Var test:Number = textField._height;
movieClip._y = test;

Still the same shit. Incredible.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Grden
Sent: donderdag 28 september 2006 15:13
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

well, what DOES it do?

On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

 Really strange bug :



 If I put movieclip._y = 60 , it works fine



 If I put movieclip._y = textField._height , it doesn't work fine



 Lieven

 ___
 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




-- 
[  JPG  ]
___
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

___
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] movieclip._y = textField._height

2006-09-28 Thread André Goliath
Your fla works for me as long as you publish it to FP8/AS2 or remove the
strict typing and publish it for AS1.

tested the Flash 8 (without dot) version 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 3:38 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] movieclip._y = textField._height

I put up this test fla...see if this helps.
http://www.thespikeranch.com/test/testYpos.zip

I'll leave that up today.

Gerry


 How about this?

 var test:Number = Math.round(parseFloat(textField._height));
 movieClip._y = test;

 ;)


 strange, works for me obviously,...


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lieven
 Cardoen
 Sent: Thursday, September 28, 2006 3:24 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 Instead of going to y-coordinate 60, it goes to ZERO.

 Even if I like do this :

 Var test:Number = textField._height;
 movieClip._y = test;

 Still the same shit. Incredible.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of John
 Grden
 Sent: donderdag 28 september 2006 15:13
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] movieclip._y = textField._height

 well, what DOES it do?

 On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

 Really strange bug :



 If I put movieclip._y = 60 , it works fine



 If I put movieclip._y = textField._height , it doesn't work fine



 Lieven

 ___
 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




 --
 [  JPG  ]
 ___
 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

 ___
 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

___
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] movieclip._y = textField._height

2006-09-28 Thread Lieven Cardoen
Yep.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Mountain
Sent: donderdag 28 september 2006 15:12
To: Flashcoders mailing list
Subject: RE: [Flashcoders] movieclip._y = textField._height

 I assume that trace(textField._height) yields 60?

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Lieven Cardoen
 Sent: 28 September 2006 14:06
 To: Flashcoders mailing list
 Subject: [Flashcoders] movieclip._y = textField._height
 
 Really strange bug : 
 
  
 
 If I put movieclip._y = 60 , it works fine
 
  
 
 If I put movieclip._y = textField._height , it doesn't work fine
 
  
 
 Lieven
 
 ___
 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
___
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] movieclip._y = textField._height

2006-09-28 Thread gerry
Well we tried to help but I think we need more info. Give us more
details...like the vers of player you are targeting, etc.
I set the fla (the one I made available) to publish to FP6  FP6 AS1 and
adjusted the code so it wasn't stronly typed and it still works.
Maybe you are over looking something simple.
Is the textField you are trying to get the height prop from created
dynamically?

G

 Look, I'm aware that normally it works, but in this case it doesn't work.

 I do things like this all the time, but apparently in this case Flash
 won't do it, it just won't do it.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of André
 Goliath
 Sent: donderdag 28 september 2006 15:44
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 Your fla works for me as long as you publish it to FP8/AS2 or remove the
 strict typing and publish it for AS1.

 tested the Flash 8 (without dot) version

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: Thursday, September 28, 2006 3:38 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 I put up this test fla...see if this helps.
 http://www.thespikeranch.com/test/testYpos.zip

 I'll leave that up today.

 Gerry


 How about this?

 var test:Number = Math.round(parseFloat(textField._height));
 movieClip._y = test;

 ;)


 strange, works for me obviously,...


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lieven
 Cardoen
 Sent: Thursday, September 28, 2006 3:24 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 Instead of going to y-coordinate 60, it goes to ZERO.

 Even if I like do this :

 Var test:Number = textField._height;
 movieClip._y = test;

 Still the same shit. Incredible.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of John
 Grden
 Sent: donderdag 28 september 2006 15:13
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] movieclip._y = textField._height

 well, what DOES it do?

 On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

 Really strange bug :



 If I put movieclip._y = 60 , it works fine



 If I put movieclip._y = textField._height , it doesn't work fine



 Lieven

 ___
 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




 --
 [  JPG  ]
 ___
 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

 ___
 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

 ___
 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




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http

Re: [Flashcoders] movieclip._y = textField._height

2006-09-28 Thread julien castelain

if textField.autoSize property is set, it wont work :)

On 9/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Well we tried to help but I think we need more info. Give us more
details...like the vers of player you are targeting, etc.
I set the fla (the one I made available) to publish to FP6  FP6 AS1 and
adjusted the code so it wasn't stronly typed and it still works.
Maybe you are over looking something simple.
Is the textField you are trying to get the height prop from created
dynamically?

G

 Look, I'm aware that normally it works, but in this case it doesn't work.

 I do things like this all the time, but apparently in this case Flash
 won't do it, it just won't do it.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of André
 Goliath
 Sent: donderdag 28 september 2006 15:44
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 Your fla works for me as long as you publish it to FP8/AS2 or remove the
 strict typing and publish it for AS1.

 tested the Flash 8 (without dot) version

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: Thursday, September 28, 2006 3:38 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 I put up this test fla...see if this helps.
 http://www.thespikeranch.com/test/testYpos.zip

 I'll leave that up today.

 Gerry


 How about this?

 var test:Number = Math.round(parseFloat(textField._height));
 movieClip._y = test;

 ;)


 strange, works for me obviously,...


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lieven
 Cardoen
 Sent: Thursday, September 28, 2006 3:24 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] movieclip._y = textField._height

 Instead of going to y-coordinate 60, it goes to ZERO.

 Even if I like do this :

 Var test:Number = textField._height;
 movieClip._y = test;

 Still the same shit. Incredible.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of John
 Grden
 Sent: donderdag 28 september 2006 15:13
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] movieclip._y = textField._height

 well, what DOES it do?

 On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

 Really strange bug :



 If I put movieclip._y = 60 , it works fine



 If I put movieclip._y = textField._height , it doesn't work fine



 Lieven

 ___
 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




 --
 [  JPG  ]
 ___
 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

 ___
 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

 ___
 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] movieclip._y = textField._height

2006-09-28 Thread julien castelain

sorry for saying nonsense, it works

var txt:TextField = createTextField(txt, getNetxHighestDepth(), 0, 0, 0, 0);
txt.autoSize = true;
txt.text = FLASH is cool...;

trace(txt._height);// displays 19
txt._y = txt._height; // does work


On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:

Why?


Ps : sorry for the profanity.
(hope the word 'why?' is permitted)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of julien castelain
Sent: donderdag 28 september 2006 16:25
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip._y = textField._height

if textField.autoSize property is set, it wont work :)

On 9/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Well we tried to help but I think we need more info. Give us more
 details...like the vers of player you are targeting, etc.
 I set the fla (the one I made available) to publish to FP6  FP6 AS1 and
 adjusted the code so it wasn't stronly typed and it still works.
 Maybe you are over looking something simple.
 Is the textField you are trying to get the height prop from created
 dynamically?

 G

  Look, I'm aware that normally it works, but in this case it doesn't work.
 
  I do things like this all the time, but apparently in this case Flash
  won't do it, it just won't do it.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of André
  Goliath
  Sent: donderdag 28 september 2006 15:44
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] movieclip._y = textField._height
 
  Your fla works for me as long as you publish it to FP8/AS2 or remove the
  strict typing and publish it for AS1.
 
  tested the Flash 8 (without dot) version
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  [EMAIL PROTECTED]
  Sent: Thursday, September 28, 2006 3:38 PM
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] movieclip._y = textField._height
 
  I put up this test fla...see if this helps.
  http://www.thespikeranch.com/test/testYpos.zip
 
  I'll leave that up today.
 
  Gerry
 
 
  How about this?
 
  var test:Number = Math.round(parseFloat(textField._height));
  movieClip._y = test;
 
  ;)
 
 
  strange, works for me obviously,...
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Lieven
  Cardoen
  Sent: Thursday, September 28, 2006 3:24 PM
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] movieclip._y = textField._height
 
  Instead of going to y-coordinate 60, it goes to ZERO.
 
  Even if I like do this :
 
  Var test:Number = textField._height;
  movieClip._y = test;
 
  Still the same shit. Incredible.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of John
  Grden
  Sent: donderdag 28 september 2006 15:13
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] movieclip._y = textField._height
 
  well, what DOES it do?
 
  On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote:
 
  Really strange bug :
 
 
 
  If I put movieclip._y = 60 , it works fine
 
 
 
  If I put movieclip._y = textField._height , it doesn't work fine
 
 
 
  Lieven
 
  ___
  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
 
 
 
 
  --
  [  JPG  ]
  ___
  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
 
  ___
  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

Re: [Flashcoders] movieclip._y = textField._height

2006-09-28 Thread Brian Williams

A trap I often fall into when debugging flash is missing the obvious.  Take
for example,


If I put movieclip._y = 60 , it works fine
If I put movieclip._y = textField._height , it doesn't work fine


and then


trace(textField._height) prints 60, yes.


then my question would be - did you trace at the same point in time that set
_y? i.e. does your code look like

trace(textField._height);
movieclip._y = textField._height;

if that prints 60, and the movieclip ends up at 0, then what that means,
most likely, is that you set it 60, but then set it to 0 somewhere else.
I've often lost an hour trying to debug similar issues.  It traces out to
something and I set it to that, but it doesn't work.  Well, maybe it did,
and then some other point of the code changes the _y value.  Or you had a
typo, etc.

Maybe the textField's height is 60 once it has text in it, but you're
setting the y position before you put in the text. And so on.

Xray is a great tool for inspecting the program's run-time state, but it
doesn't help as much with debugging timing dependencies.

--Brian
___
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] movieclip._y = textField._height

2006-09-28 Thread John Grden

sure it does (xray) - it has a logger too and it includes a timestamp (which
trace does not) - so, I would say it's actually a bit stronger of a tool for
timing issues ;)

I got $20 that says he figures out the problem in under 10 minutes with
xray.

:)

On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:


A trap I often fall into when debugging flash is missing the
obvious.  Take
for example,

 If I put movieclip._y = 60 , it works fine
 If I put movieclip._y = textField._height , it doesn't work fine

and then

 trace(textField._height) prints 60, yes.

then my question would be - did you trace at the same point in time that
set
_y? i.e. does your code look like

trace(textField._height);
movieclip._y = textField._height;

if that prints 60, and the movieclip ends up at 0, then what that means,
most likely, is that you set it 60, but then set it to 0 somewhere else.
I've often lost an hour trying to debug similar issues.  It traces out to
something and I set it to that, but it doesn't work.  Well, maybe it did,
and then some other point of the code changes the _y value.  Or you had a
typo, etc.

Maybe the textField's height is 60 once it has text in it, but you're
setting the y position before you put in the text. And so on.

Xray is a great tool for inspecting the program's run-time state, but it
doesn't help as much with debugging timing dependencies.

--Brian
___
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





--
[  JPG  ]
___
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] movieclip._y = textField._height

2006-09-28 Thread Francis Turmel

I wrote my solution to this a couple weeks ago (never got any answers if it
worked for the person who asked though).

take a look here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/170985.html

It seems that the first use of a text height in actionscript can be
unreliable
but from the second time you reference it it looks fine.

So if my theory holds its ground, your first use (the trace()) would print
out
the wrong value, but your assignment afterwards will be ok.
Remove the trace and it shouldn't work.

I'd love to have some feedback on this, its an intriguing one.

hope this helps,

- Francis



On 9/28/06, vic [EMAIL PROTECTED] wrote:


Haha, I would seriously take that bet.  You have to listen to what he is
saying, xray will trip you out; not only can you control anything in your
swf at runtime but you can also view all of its properties.  I am new to it
so i don't know all it can do but I KNOW it can help you with _height.

V
- Original Message -
From: John Grden [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 28, 2006 9:17 AM
Subject: Re: [Flashcoders] movieclip._y = textField._height


 sure it does (xray) - it has a logger too and it includes a timestamp
(which
 trace does not) - so, I would say it's actually a bit stronger of a tool
for
 timing issues ;)

 I got $20 that says he figures out the problem in under 10 minutes with
 xray.

 :)

 On 9/28/06, Brian Williams [EMAIL PROTECTED] wrote:

 A trap I often fall into when debugging flash is missing the
 obvious.  Take
 for example,

  If I put movieclip._y = 60 , it works fine
  If I put movieclip._y = textField._height , it doesn't work fine

 and then

  trace(textField._height) prints 60, yes.

 then my question would be - did you trace at the same point in time
that
 set
 _y? i.e. does your code look like

 trace(textField._height);
 movieclip._y = textField._height;

 if that prints 60, and the movieclip ends up at 0, then what that
means,
 most likely, is that you set it 60, but then set it to 0 somewhere
else.
 I've often lost an hour trying to debug similar issues.  It traces out
to
 something and I set it to that, but it doesn't work.  Well, maybe it
did,
 and then some other point of the code changes the _y value.  Or you had
a
 typo, etc.

 Maybe the textField's height is 60 once it has text in it, but you're
 setting the y position before you put in the text. And so on.

 Xray is a great tool for inspecting the program's run-time state, but
it
 doesn't help as much with debugging timing dependencies.

 --Brian
 ___
 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




 --
 [  JPG  ]
 ___
 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





--
Francis Turmel
Personal: [EMAIL PROTECTED]
Business: [EMAIL PROTECTED]
___
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