Select to view content in your preferred language

Something I'm still a little confused about...

6615
33
02-22-2011 11:17 AM
JustinRiggs
Emerging Contributor
Hi everyone,

Well, with the help of the samples and this forum, my humble little application is coming along fairly well. The boss is happy, which makes me happy, and I'm actually pretty pleased with what I've been able to develop so far... I do have one little problem, however, and I just can't get clear on whether or not what I want to do is possible.

My problem is that I showed my boss the sample Viewer before I began developing my own application. Obviously, what the guys at ESRI did is really impressive, so he got the idea that I could develop something that would give him the same look and feel. I've talked him down from that ideal by pointing out that our users wouldn't know what to do with such a nice interface, but there is one thing he won't budge on: he wants something that is just like the Navigation widget from the Sample Viewer.

Now, in my limited knowledge, it seems like I should somehow be able to "transplant" the code from the Sample Viewers source to my project. Is that just crazy talk? Is it just too involved for a beginner like me to do?

I could really use someone's help on this. If I can't produce this, I've got to know exactly why so that I can explain it to The Man.

Thanks for all your help (everyone), and happy coding!

Justin
Tags (2)
0 Kudos
33 Replies
JustinRiggs
Emerging Contributor
That did the trick. Thanks again!
0 Kudos
AngeloLelekis
Emerging Contributor
Thank you Robert!!  It works!  Once again you have saved the day.  The amazing amount of assistance you have provided on this message board has single-handedly made the ESRI Flex API usable for so many organizations.

Angelo
0 Kudos
Ray_DominicMaldonado
Emerging Contributor
Robert,

I have a similar question about the zoom/pan controls:  Is there a way to adjust opacity to =100% instead of fade in/out on mouse hover?

Thanks,
Ray
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ray,

   Sure in the NavigationWidget.mxml change this code:

Old:
    <Navigation:Navigation id="navtool"
                           alpha="{getStyle('contentBackgroundAlpha') / 2}"
                           map="{_map}"
                           rollOut="fadeOut.play([navtool])"
                           rollOver="fadeOver.play([navtool])"/>


New:
    <Navigation:Navigation id="navtool"
                           alpha="{getStyle('contentBackgroundAlpha')}"
                           map="{_map}"/>
0 Kudos
Ray_DominicMaldonado
Emerging Contributor
Thanks Robert!
0 Kudos
KenBuja
MVP Esteemed Contributor
Hi Robert,

I've been using your Navigation tool in one of my projects, where the code has been put into a separate directory and linked to the project by Source Path. It's a great tool that I really appreciate your work on and it's been working just as expected.

However, I've started another project (FB 4.5.1 and API 2.4) and have set it up the same way, but here I'm getting the error

The skin part type 'mx.controls:VSlider' must be assignable to 'spark.components.supportClasses:SliderBase'.

in the line

[HostComponent("com.esri.ags.components.Navigation")]

Why would this work in one project but not the other?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ken,

   In the 2.4 version of the API they sparked the navigation component.

Here is an updated src code for 2.4 API.
0 Kudos
KenBuja
MVP Esteemed Contributor
Thanks, Robert.

This is another great example of your invaluable help to this forum.
0 Kudos
Mohammed_YassineAYACHE
Occasional Contributor
Many thanks for this great help. I was also searching to do the same thing !

one last thing that I'm trying to add to this widget, is to give it the same look (skin) as it is in the viewer.

could you please help me to do that ? I will be very thankful
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohammed,

   To do that all you need to do is point to some CSS in your project. If you need more specifics than post a new thread and I will point you in the right direction.
0 Kudos