Select to view content in your preferred language

Code error-between 2.4 and 2.5 viewer

593
2
12-07-2011 05:06 AM
EricVenden
Frequent Contributor
I have tweaked the Identify widget a bit a couple versions ago (2.3) and have upgraded these changes along the way (2.3.1 & 2.4)  With 2.5, I'm getting 2 errors and I'm hoping someone may possibly be able to assist me.  This code works fine in 2.4, but in 2.5 I get 2 errors in FB:  1) Expecting identifier before rightparen  2) expecting rightbrace before if

Looks like all the braces and parens are in the proper spot.

Here's the code:

//Start Code
      if (lyrList.links != undefined) {
       var linksList:XMLList = configXML..links.link;
       for (var x:Number = 0; x < linksList.length(); x++)
       {
        lyrLinks.push(
         {
          title: String(linksList.@title),
          icon: String(linksList.@icon),
          url: String(linksList)
         }
        );
       }
      }
//End added code

Thanks
Eric
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

  The error is not in this code so you must have introduced the error in this code blocks parent.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Care to share the rest of the code for multiple links?
0 Kudos