Select to view content in your preferred language

Widgets in a non-Viewer app

1855
7
04-19-2011 08:57 AM
GlenReid
Deactivated User
I'm interested in using a widget or two (e.g. navigation) in a standalone Flex mapping application -- one that doesn't utilize the ArcGIS Viewer for Flex.  Any suggestions on how to move forward?

Thanks,
Glen
Tags (2)
0 Kudos
7 Replies
francescodi_vito
Deactivated User
Hi Glen,
if i can give you an advice, to develop the same widget of FV in a custom app it's a bit difficult. But took as example the searcgwidget for not FV by Robert S. that you can download on code gallery. you ought to develop a new AS class in flex that extend the TitleWindow class "spark.components.TitleWindow" Flex, and after you ought to develop the mxml skin of this component.
I worked in this way and the result of work it's good.
All people with more experience and all developers of ESRI can tall me if i made wrong
Bye
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Glen,

    Francisco is right on the money with his comment. The only reason I created the Non-FV SearchWidget was to show developers how to migrate a FV widget to a non-FV app.

Also I have already move the navigation widget over to non-FV, look here at post # 8:

http://forums.arcgis.com/threads/24250-Something-I-m-still-a-little-confused-about...
0 Kudos
francescodi_vito
Deactivated User
Sorry Robert, my english is not good and so i don't understand what this sentence "is right on the money" means.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Francesco,

   That is an English term for you are correct.
0 Kudos
francescodi_vito
Deactivated User
thanks Robert.
My english it's not good....sorry 🙂
0 Kudos
GlenReid
Deactivated User
Thanks to both of you.  I'll check out the above links.

regards,
Glen
0 Kudos
GlenReid
Deactivated User
Robert,

Your example was exactly what I was looking for, thanks!

Previously (Flex 3.5), we have changed the background color of our navigation bar between white and black based on the selected background image (makes it easier to see):

color == 0 ? navToolsColor = 0x000000 : navToolsColor = 0xFFFFFF;
StyleManager.getStyleDeclaration("Navigation").setStyle("backgroundColor",navToolsColor);
StyleManager.getStyleDeclaration("Navigation").setStyle("backgroundAlpha",0.65);
StyleManager.getStyleDeclaration("Navigation").setStyle("verticalGap",3);


I'm looking to do this with the widget -- do you have any suggestions?

Thanks,
Glen
0 Kudos