Skip to content

aderowbotham/StageAwareSprite.as

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

StageAwareSprite.as

One from the ActionScript archive...

Here’s another handy little object. Again, it’s pretty trivial but might save you 10 minutes.

Extend StageAwareSprite instead of Sprite to get automatic handing of any stage-related activity. This simply saves you all the hassle of adding and removing the event listeners yourself.

The class has protected addedToStage, removedFromStage and stageResize methods that are triggered as you expect but which do nothing by default. They are intended to be extended so you can create your own custom behaviours.

About

Handy base AS3 class from my ActionScript archive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published