Cheng
06-11-2009, 05:46 AM
Hi.
I have this ActionScript which has an entry for an image preloader of which I would like to change the color.
function onLoadProgress (target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
var arc = -Math.round(100-percent)*3.6;
//draw arc
var percent = (bytesLoaded/bytesTotal)*100;
mImgLoadStatus_mc.clear();
var arc = percent*3.6;
var arc = -Math.round(100-percent)*3.6;
mImgLoadStatus_mc.beginFill(mXMLManager.frameColor,100);
DrawUtil.wedge(mImgLoadStatus_mc,mWidth/2, mHeight/2,90,-arc, 40);
mImgLoadStatus_mc.endFill();
}
I understand that this is the code which specifies the preloader color but I'm not sure:
frameColor,100);
How do I get a color scale to change the value for yellow for example?
I guess that 100 is black but that's just a guess.
Any help is greatly appreciated.
I have this ActionScript which has an entry for an image preloader of which I would like to change the color.
function onLoadProgress (target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
var arc = -Math.round(100-percent)*3.6;
//draw arc
var percent = (bytesLoaded/bytesTotal)*100;
mImgLoadStatus_mc.clear();
var arc = percent*3.6;
var arc = -Math.round(100-percent)*3.6;
mImgLoadStatus_mc.beginFill(mXMLManager.frameColor,100);
DrawUtil.wedge(mImgLoadStatus_mc,mWidth/2, mHeight/2,90,-arc, 40);
mImgLoadStatus_mc.endFill();
}
I understand that this is the code which specifies the preloader color but I'm not sure:
frameColor,100);
How do I get a color scale to change the value for yellow for example?
I guess that 100 is black but that's just a guess.
Any help is greatly appreciated.