replace powered by ESRI

8078
70
07-22-2010 02:01 AM
NatashaManzuiga
Regular Contributor
Hi all I perfectly replaced ESRI logo with this script:
http://forums.esri.com/thread.asp?t=287497&f=2421&c=158#912795
Now how can I replace link to esri.com/flex?

Naty
Tags (2)
0 Kudos
70 Replies
deleted-user-rQoEFM5qzbHE
Deactivated User
I tried the code mentioned above along with the Embed line mentioned in the link. Unfortunately, I get an error in the Embed line. It states that 'Access of undefined property source. Any thoughts? Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeremy,

   Did you change the source to an image that you have in your file structure?

example is if you are using the FleViewer2.0 there is no such directory as com/esri/solutions/flexviewer/assets/images it would be assets/images instead.

[Embed(source="com/esri/solutions/flexviewer/assets/images/powered_by_ME.png")]
   private var myLogo:Class;
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
Yeah, I changed it to the assets/images structure found in Version 2.0. These are the two lines:

[Embed(source="assets/images/NEW_ITRE_LOGO1.png")]
   private var myLogo:Class;
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeremy,

   OK, do you have the
[Embed(source="assets/images/NEW_ITRE_LOGO1.png")]
private var myLogo:Class; 


near the top of the MapManager.mxml where the Private Var's are located or did you just paste that inside a function (which you can not do)?
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
I placed the two lines immediately below the last 'private var ...' line.
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
An update to my problem. When I refresh the map service, I am getting an ActionScript error. The first line in the error points to the following line of code in the MapManager.mxml

if(component.className == "StaticLayer")

I still have not resolved the error the comes up when compiling on the "Embed" line. Any thoughts?

Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeremy,

  You need these 2 imports

import mx.core.UIComponent;
   import mx.controls.Image;
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
Unfortunately, I already had those two import statements in the code. So, it must be something else.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeremy,

   Post your whole MapManager.mxml there is a simple explanation to this; somewhere...
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
Since I am new to this, it would be very easy for me to something obvious. Apparently the code is too long to enter into this comment section. I have attached it instead.

Thanks.
0 Kudos