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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders