barby
12-20-2006, 09:56 PM
Hi all!
Look at this code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" >
<mx:Button label="Show memory usage" click="mx.controls.Alert.show(String(flash.system.System. totalMemory)+' byte', 'Memory')"/>
</mx:Application>
Clicking button calls Alerts popup and Flash player memory usage is growing up. It's possible to track closing popup through closeHandler parameter of Alert.show() function:
function alertClose(obj:Object):void {delete obj;}
How I can define a name (identifier) of Alert instance?
Thanks for advise.
Look at this code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" >
<mx:Button label="Show memory usage" click="mx.controls.Alert.show(String(flash.system.System. totalMemory)+' byte', 'Memory')"/>
</mx:Application>
Clicking button calls Alerts popup and Flash player memory usage is growing up. It's possible to track closing popup through closeHandler parameter of Alert.show() function:
function alertClose(obj:Object):void {delete obj;}
How I can define a name (identifier) of Alert instance?
Thanks for advise.