Jerome
unread,Feb 16, 2011, 11:11:52 AM2/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MinimalComps
Hello,
There is 2 minor bugs in ProgressBar. You can test it with this little
code :
var pb:ProgressBar = new ProgressBar(this, 20, 20);
pb.maximum = -10;
pb.value = .5;
var pb2:ProgressBar = new ProgressBar(this, 20, 40);
pb2.value = -10;
//
To resolve it you can patch this 2 methods :
file : ProgressBar.as
public function set maximum(m:Number):void
{
_max = Math.max(m, 0);
_value = Math.min(_value, _max);
update();
}
public function set value(v:Number):void
{
_value = Math.max(Math.min(v, _max), 0);
update();
}
Thanks :)
J.