i just upgraded to flash cs5 as3 and i didnt realise how diferent it was to as2. how do i create a button that when clicked loads another symbol.
It should look something like this:<BUTTON INSTANCE NAME HERE>.addEventListener( MouseEvent.CLICK,loadSymbol )function loadSymbol( evt:MouseEvent ){addChild( <SYMBOL CLASS NAME HERE> )}In AS3, "Event Listeners" are used instead of the on() statement.
thank you
You must be logged in to post a reply!