I'm facing a strange bug. I'm building a SimpleButton from
FlashCS3, with upState and overState created dynamically from
library assets. In AIR app, when I mouse over, it crashes the app.
Why this code works fine when I export in Flash9, but crashes
when I export in AIR.
Here is the simple code : (put 2 assets in your library with
linkage name "btnAssetOut" and "btnAssetOver"
var ButtonState:Class = getDefinitionByName("btnAssetOut") as
var _btnState:MovieClip = new ButtonState();
var ButtonOverState:Class =
getDefinitionByName("btnAssetOver") as Class;
var _btnOverState:MovieClip = new ButtonOverState();