CloseEvent
any thoughts on why wont work on button works fine on titlewindow close handler? no compiler errors, no flash debugger errors.
thanks!!
<s:titlewindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:popup="com.adobe.cairngorm.popup.*"
title="create new ticket" x="800" y="600" width="800" height="600" textalign="left" title.workrequest="create new work ticket" title.state1="create new support ticket" title.materialrequest="create new material ticket" close="closewindow();">
<fx:script>
<![cdata[
import mx.events.closeevent;
import mx.managers.popupmanager;
public function closewindow():void
{
var closethiswindow:closeevent = new closeevent(closeevent.close, true, false);
}
]]>
</fx:script>
<s:button label="cancel" click="closewindow();"/>
</s:titlewindow>
obviously not work close event made popup windows
the closeevent class represents event objects specific popup windows, such alert control.
and in closewindow(), have not specified close, when using titlewindow...it automatically understands close window open , supports close event button there nothing open close , more button not suppot close event not work.
hope understood mean say!!!
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment