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);
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..
There are a couple of unknowns in your code. If I replace them with knowns, then it all seems to work fine. I would look into whatever viewerBG is and see what it is contributing in the way of an alpha value.
Viewerbg is an instance of uint ...
alpha value is a Number..But its not working in a right way...
problem is "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..."
Europe, Middle East and Africa