PDA

View Full Version : gradient fill to mc's from as


corsibu
09-02-2008, 12:15 AM
can anyone tell me how can i fill some mc that will become buttons with gradient color from actionscript ? , thanks in advance

lucio

wvxvw
09-02-2008, 07:10 AM
Read about methods available on Graphics class here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Graphics.html
DisplayObject descendands such as Sprite have instance of this class accessable through their .graphics property. So you would do something like this:
mySprite.graphics.beginGradientFill(....)