How to add an event listener to another air Native window
hi
does know if possible add , event listener button created in class.
basically create save window yes/no choices , answer must returned window called on class create window.
note have 1 save yes/no window needs accessible other windows created in it's own class's.
thanks in advance.
this works fine, such simple solution....
| import as_files.confclass; | |||||||
| var conf:confclass = new confclass(); | |||||||
| conf.win('save test') | |||||||
| conf._btn2.addeventlistener(mouseevent.click, nofunc); | |||||||
| function nofunc(event:event):void | |||||||
| { | |||||||
| trace ('no') | |||||||
| } | |||||||
| conf._btn3.addeventlistener(mouseevent.click, yesfunc); | |||||||
| function yesfunc(event:event):void | |||||||
| { | |||||||
| trace ('yes') | |||||||
| } |
More discussions in ActionScript 3
adobe
Comments
Post a Comment