Select to view content in your preferred language

Flexviewer2.0/Flashbuilder4 how to insert code from Samples section

756
5
08-26-2010 06:39 AM
ShawnKraft
Occasional Contributor
I am trying to use the "Add LODs for extra zooming" in the Samples section of the ArcGIS API for Flex of the ArcGIS Resource Center.  I click the Source Code tab to view the code but I am not sure where to insert it into my MapManager.mxml.  Not sure if I can copy n paste the whole piece of code or if I only need a portion of it.
Tags (2)
0 Kudos
5 Replies
MLowry
by
Frequent Contributor
I am trying to use the "Add LODs for extra zooming" in the Samples section of the ArcGIS API for Flex of the ArcGIS Resource Center.  I click the Source Code tab to view the code but I am not sure where to insert it into my MapManager.mxml.  Not sure if I can copy n paste the whole piece of code or if I only need a portion of it.


Trying to add API samples to the SFV is much more difficult than it looks. Is this what you are trying to do?
0 Kudos
ShawnKraft
Occasional Contributor
I downloaded the source code for the new viewer and imported the .zip file into Flashbuilder 4 as a Flashbuilder 4 project.  Not using the SFV.  So I am starting from scratch here lol.
0 Kudos
ShawnKraft
Occasional Contributor
What are the sample codes for?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   The samples are for users to learn how to doing things in code from scratch and are for instructional purposes. You should study the code and see what it is actually doing and then you can determine what portions of the code are necessary for inclusion in the FlexViewer.
0 Kudos
ShawnKraft
Occasional Contributor
Yup.  Figured that out pretty much.  Too bad I can't delete this post after I figure something out.  lol.  Thanks Robert
0 Kudos