Select to view content in your preferred language

Looking for Progress Bar for SFV 2.0.

1320
11
09-13-2010 10:37 AM
SreeS
by
Emerging Contributor
The progress bar has changed in Flex 4.0.

Does anyone have a working one for the SFV 2.0?
Tags (2)
0 Kudos
11 Replies
WallaceBezerra
Emerging Contributor
Bringing up this thread!

I used the ProgressBar component to be visible when the map object fires the event ExtentEvent.EXTENT_CHANGE. That works fine, but i dont know which event i need to listen to disable the ProgressBar component.

Someone from ESRI can help us?

I'm using Flex 4 and the FlexViewer 2.0 Beta 2
0 Kudos
WallaceBezerra
Emerging Contributor
Well, i did a simple component for Flex that can be used as a Progress Bar:

http://www.arcgis.com/home/item.html?id=acc90fd144904f2eb3bca757967b1f83
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
I implemented your progress bar and it works great except for one issue I'm having, if I switch the  backround layer from streetmap to an aerial and change the extents, the bar stays up and wont go away after the map finishes loading. If I switch back to the original background and change extents, then it goes away after it finishes loading.

Would you tell me where to modify it to fix that.

Thanks for the contribution.
0 Kudos
WallaceBezerra
Emerging Contributor
Actually the progress bar component is listening the first basemap. I'll change the code to listen de active map layer and post here.
0 Kudos
SreeS
by
Emerging Contributor
I have two maps too. BaseMap and Aerial. But when I modified the .as to this it is working fine.

public function registerHandlers(oMap:Map):void{
   oMap.addEventListener(ExtentEvent.EXTENT_CHANGE,registerShowCondition);
   var _layer:Layer = Layer(oMap.layers[0]);
   var _layer2:Layer = Layer(oMap.layers[1]);
   _layer.addEventListener(LayerEvent.UPDATE_END,registerHideCondition);
   _layer2.addEventListener(LayerEvent.UPDATE_END,registerHideCondition);
  }
0 Kudos
ChenJuequan
Deactivated User
I created a Progressbar widget before and it works fine for me.
See the link below and wish it can hellp.
http://forums.arcgis.com/threads/9585-MapProgressBar-widget-for-SFV-2.0
0 Kudos
CindyLu
Deactivated User
When I tried to included your MapProgressBarWidget.mxml to my Flex Source project(I think mine SFV is version 1) , I got the error message -

Unable to locate specified base class 'com.esri.viewer.BaseWidget' for component class 'CustomWidgets.MapProgressBarWidget.MapProgressBarWidget'.

Any idea what happened here?

Thank you!

Cindy
0 Kudos
CindyLu
Deactivated User
Hello,

When I tried to include your mxml file to my Flex viewer project, I got error message -
Unable to locate specified base class 'com.esri.viewer.BaseWidget' for component class 'CustomWidgets.MapProgressBarWidget.MapProgressBarWidget'.

I am using Flex 3 and I believe my Flexviewer is 1.0.

(My baseWidget comes from com.esri.solutions.flexviewer. But when I changed 'com.esri.viewer.*'  to 'com.esri.solutions.flexviewer.*', it still does not work. Error message -
Could not resolve <mx:ProgressBar> to a component implementation.)

Thank you very much for your help!

Cindy
0 Kudos
SreeS
by
Emerging Contributor
if you are looking for a progress bar for flex viewer 1.3 use this one.
0 Kudos