But when I am trying to get it to work in a color transformation, it isn't working.
Code:
var my:Number = this.firstChild.childNodes[0].childNodes[3].firstChild; //getting a "number" (e.g. 99) from an xml file, I skipped the xml file loading process var trans:Transform = new Transform (_root.bookmarks_btn.bookmarks_btn_bkg); var bookmarks_btn_bkg:ColorTransform = new ColorTransform (my, my, my, 100, 0, 0, 0, 0); trans.colorTransform = bookmarks_btn_bkg; trace (bookmarks_btn_bkg); //(redMultiplier=NaN, greenMultiplier=NaN, blueMultiplier=NaN, alphaMultiplier=100, redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
redMultiplier=NaN, greenMultiplier=NaN, blueMultiplier=NaN
Where could be the problem?
Edited by ribo6, 28 January 2006 - 03:26 PM.
