You are here: Flex API > Widgets > Using widgets in Flex

Using widgets in Flex

You can easily use the built-in widgets in your own applications with the WidgetPopupManager. Currently there are three built-in widgets: "Find", "Pan & Zoom", and "Base Maps". The sample below illustrates how to use the DockWidgetContainer to add widgets for "Find", "Pan & Zoom", and "Base Maps". See the using a widget sample for details.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:awx="http://www.arcwebservices.com/2007/awx"
    xmlns:widget="com.esri.aws.awx.widget.*"
    layout="absolute">

    <awx:Framework apiKey="[Your ArcWeb Explorer API Key]"/>
    <awx:Map/>
    <awx:DockWidgetContainer>
        <awx:BaseMapWidget/>
        <awx:FindWidget/>
        <awx:PanZoomWidget/>        
    </awx:DockWidgetContainer>
</mx:Application>

You can also use the lazy loaded version of these widgets. See the reference documentation on BaseMapWidgetLoader, FindWidgetLoader, and PanZoomWidgetLoader for more information.

text

See also


Visit the Feedback page to give comments or suggestions about the ArcWeb Explorer Developer's Guide.

ArcWeb site | ArcWeb support | support.esri.com

Copyright © ESRI