In my application i am getting alpha value from xml and i just want to put it into a movieclip.
var alp:Number=Number(findSetting("alpha", "1.0"));// from xml
trace("bg.alpha "+alp);// getting correct value
(bg as MovieClip).graphics.beginFill(viewerBG);
(bg as MovieClip).graphics.drawRect(0,0, 400,250);
(bgCopy as MovieClip).graphics.beginFill(0xffffff);
(bgCopy as MovieClip).graphics.drawRect(0,0, 400,250);
bg.alpha=alp;
trace("bg.alpha1 "+bg.alpha);//getting correct value
but i have got no effect after 0.5(alpha value).
I m giving the alpha value from a Slider(o,.05,...).
in 0 alpha is getting 0,in 0.15 it looks like 0.5 alpha value and on 0.3 it is showing as it is alpha 1...
i cant understand the reason..
even i have tried (bg as MovieClip).graphics.beginFill(viewerBG,alp);working same...
please help me out..
Thanx& Regards
North America
Europe, Middle East and Africa
Asia Pacific