Select to view content in your preferred language

Access map in base widget from widget state

529
0
05-20-2011 08:24 AM
AnthonyKeogh1
Deactivated User
Hi,

I am working on a query widget that has multiple states. 1 of these states has a combo box that is populated by an array collection sent from another widget.
The data sending is going through the addSharedData function and triggering an event in the state of the query widget.
The array collection is populated with graphic objects.

The problem I am having is accessing "map" or any attributes from the Actual widget. For example if I type "map." as in to use "map.addLayer(myGraphicLayer) to be able to add the graphics stored in the array collection, the intellitype does not display the available functions as it normally would so it is like "map" does not exist.

I have tried to create a new map variable as follows var map:Map = SiteContainer.getInstance().container.map but this doesn't work.

I am using Flash builder 4 and Flex 2.3.1.

Thanks for any help.
Tags (2)
0 Kudos
0 Replies