This content has been marked as final. Show 3 replies
are you getting some error like "Class or interface could not be loaded"?
Thanks & Regards
Project Leader(Flash and Flex)
let your thoughts fly to others... you will become rich.
No, I get no error. But the class does not get called I think. I put a trace inside the BgColor() function and it does not get triggered, so I am pretty sure the class simply does not even get instantiated.
Thanks a lot for the help!
If your import statement would be com.brianf.BgColor, then you'll need
to use that package in your class declaration, like this:
public var color01:Number;
public var color02:Number;
... but not in the constructor function, which only needs the class name:
public function BgColor()
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod,
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."