SimpleButton with up, over and down sprite
|
package{ import flash.display.*; public class Main extends Sprite{ public function Main(){ var overSprite:Sprite = new Sprite(); overSprite.graphics.beginFill(0xff0000, 1); overSprite.graphics.drawRect(0, 0, 100, 100); overSprite.graphics.endFill(); var upSprite:Sprite = new Sprite(); upSprite.graphics.beginFill(0x00ff00, 1); upSprite.graphics.drawRect(0, 0, 100, 100); upSprite.graphics.endFill(); var downSprite:Sprite = new Sprite(); downSprite.graphics.beginFill(0xffffff, 1); downSprite.graphics.drawRect(0, 0, 100, 100); downSprite.graphics.endFill(); var btnOne:SimpleButton = new SimpleButton(upSprite, overSprite, downSprite, overSprite);
} } }
|
|
|
|
|
Related Scripts with Example Source Code in same category :
-
-
|
|