![MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX... Use Manual Download Page 68](http://html1.mh-extra.com/html/macromedia/coldfusion-mx-7-0-2-using-coldfusion-mx-with-flex/coldfusion-mx-7-0-2-using-coldfusion-mx-with-flex_use-manual_3298315068.webp)
68
Using the Flex Data Service Assembler
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
private static var dialog:IFlexDisplayObject;
public static function show(parent:DisplayObject):void
{
dialog = PopUpManager.createPopUp(parent, Hourglass, true);
PopUpManager.centerPopUp(dialog);
}
public static function remove():void
{
PopUpManager.removePopUp(dialog);
}
]]>
</mx:Script>
<mx:Image source="@Embed('wait.png')"/>
</mx:VBox>
mini.mxml
The mini.mxml file contains the following:
<?xml version="1.0" encoding="utf-8"?>
<!--
///////////////////////////////////////////////////////////////////////////
/////
//
// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
// All Rights Reserved.
// The following is Sample Code and is subject to all restrictions on such
code
// as contained in the End User License Agreement accompanying this product.
// If you have received this file from a source other than Adobe,
// then your use, modification, or distribution of it requires
// the prior written permission of Adobe.
//
///////////////////////////////////////////////////////////////////////////
/////
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
creationComplete="dataService.fill(contacts)">
<mx:ArrayCollection id="contacts"/>