Re: [Flashcoders] alpha -= 10 = wtf

2005-12-16 Thread Cedric Muller

some bad media for the masses ;)


Thanks, Macromedia!


What is a Macromedia?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com







NOTICE:
This message is for the designated recipient only and may contain 
privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. 
Any other use of this e-mail by you is prohibited.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Cedric Muller
as a side note, this is the exact same thing happening with Gradients 
... a gradient's ratios can range from 0 to 255, hence giving this *not 
so precise and clean gradient* impression ...

just as a side note 
cedric



Has this been discussed?
Flash player 8
trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);
Output:
100
89.84375


Not that I can readily recognize, although from the fragments above it 
looks vaguely like the normal how come floats aren't exact topic.


jd





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Cedric Muller
Floats are exact outside a computer, in the computer world, for 
performance purposes, Float will never be exact 

Cedric


how come floats arent exact? jk

will floats be exact in AS3? or will future versions of flash support 
big ints?


judah

John Dowdell wrote:


Jason Rayles wrote:


Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375



Not that I can readily recognize, although from the fragments above 
it looks vaguely like the normal how come floats aren't exact 
topic.


jd







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Cedric Muller
yep but then if you try to assign this newly found 90 value to 
this._alpha, you won't find back your 90 if you trace it again ;)



trace(this._alpha);
trace(this._alpha-10);
Output:
100
90



On 12/15/05, Judah Frangipane [EMAIL PROTECTED] wrote:


how come floats arent exact? jk

will floats be exact in AS3? or will future versions of flash support
big ints?

judah

John Dowdell wrote:


Jason Rayles wrote:


Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375



Not that I can readily recognize, although from the fragments above 
it

looks vaguely like the normal how come floats aren't exact topic.

jd







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
e路信峰  字
欢迎光临 - e路信峰技术情报站(中国・珠海)
http://www.cnflash.org/guohaifeng/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Merrill, Jason
Thanks, Macromedia!

What is a Macromedia?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com







NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Daniel Cascais
 Thanks, Macromedia!

 What is a Macromedia?

http://en.wikipedia.org/wiki/Macromedia
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Merrill, Jason
 Thanks, Macromedia!

 What is a Macromedia?

http://en.wikipedia.org/wiki/Macromedia

Dude, seriously?  I was joking. LOL. 

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com







NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Richard
Thanks DanielOT but very interesting

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Cascais
Sent: Thursday, 15 December 2005 9:30 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] alpha -= 10 = wtf


 Thanks, Macromedia!

 What is a Macromedia?

http://en.wikipedia.org/wiki/Macromedia
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-15 Thread Daniel Cascais
Me to :|
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-14 Thread Morten Barklund Shockwaved

Jason Rayles wrote:

Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375


Yup, alpha is stored internally as values dividable by 100/256. Thus the 
value upon setting will be rounded to the nearest legal value. Use 
another variable in between:


init:
this.alpha = this._alpha;

update:
this._alpha = this.alpha -= 10;

alpha will then always be correct (with the value you want it to be), 
and _alpha will keep up as good as it can.


:)

--
Morten Barklund - Information Architect - Shockwaved
Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-14 Thread John Dowdell

Jason Rayles wrote:

Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375


Not that I can readily recognize, although from the fragments above it 
looks vaguely like the normal how come floats aren't exact topic.


jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-14 Thread Judah Frangipane

how come floats arent exact? jk

will floats be exact in AS3? or will future versions of flash support 
big ints?


judah

John Dowdell wrote:


Jason Rayles wrote:


Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375



Not that I can readily recognize, although from the fragments above it 
looks vaguely like the normal how come floats aren't exact topic.


jd







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-14 Thread guo haifeng
trace(this._alpha);
trace(this._alpha-10);
Output:
100
90



On 12/15/05, Judah Frangipane [EMAIL PROTECTED] wrote:

 how come floats arent exact? jk

 will floats be exact in AS3? or will future versions of flash support
 big ints?

 judah

 John Dowdell wrote:

  Jason Rayles wrote:
 
  Has this been discussed?
  Flash player 8
 
  trace(this._alpha);
  this._alpha -= 10;
  trace(this._alpha);
 
  Output:
  100
  89.84375
 
 
  Not that I can readily recognize, although from the fragments above it
  looks vaguely like the normal how come floats aren't exact topic.
 
  jd
 
 
 
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
e路信峰  字
欢迎光临 - e路信峰技术情报站(中国・珠海)
http://www.cnflash.org/guohaifeng/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders