5 Replies Latest reply on Aug 19, 2007 9:09 PM by Nandrad

    Chart watermark won't go away in SDK

    vanhoese
      I followed the instructions from the readme_charting.htm for the
      standalone Flex SDK. I removed the generated cache file that is
      created when I call mxmlc from the java command through ANT. the new
      compiled swf still has watermarked charts. Is seems like something is
      still cached. I also as a last ditch effort flushed my browser cache in Firefox and IE.
      Has anybody had success installing the serial key afteryou had used the charting trial?

      Here's my OS and java versions:
      > uname -a
      SunOS utopia 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-V240
      > java -version
      java version "1.4.2_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
      >
        • 1. Re: Chart watermark won't go away in SDK
          Level 7
          Did you try recompiling the SWF files?

          Randy Nielsen

          "vanhoese" <webforumsuser@macromedia.com> wrote in message
          news:e8jrdp$drp$1@forums.macromedia.com...
          >I followed the instructions from the readme_charting.htm for the
          > standalone Flex SDK. I removed the generated cache file that is
          > created when I call mxmlc from the java command through ANT. the new
          > compiled swf still has watermarked charts. Is seems like something is
          > still cached. I also as a last ditch effort flushed my browser cache in
          > Firefox and IE.
          > Has anybody had success installing the serial key afteryou had used the
          > charting trial?
          >
          > Here's my OS and java versions:
          > > uname -a
          > SunOS utopia 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-V240
          > > java -version
          > java version "1.4.2_06"
          > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
          > Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
          > >
          >


          • 2. Re: Chart watermark won't go away in SDK
            vanhoese Level 1
            I did. I also confirmed that there is a new SWF by adding new functionality to the app. I see those changes but still get the watermark. Any other ideas?

            -Andy
            • 3. Re: Chart watermark won't go away in SDK
              vanhoese Level 1
              I finally figured it out on my own. For inquisitive minds:

              In order to get the charting license serial number into your app you just have to add "-licenses.license charting XXXXXXXXXXXXXXXX" to the mxml build command/jar file (where the X's is your key with no dashes). The instructions for the charting serial readme just expand the charting source to a specified directory.
              • 4. Re: Chart watermark won't go away in SDK
                OdysseusLevy
                Thank you! This solved the problem for me as well.

                Just to be clear for any others reading this. It turns out that the mxmlc compiler has an undocumented flag for specifying the license. From the command line you can see it if you go:

                mxmlc -help list

                So, if you want those bothersome watermarks to go away, when you run the mxmlc command you need to add that flag to the list. I use ant to invoke the compiler and my ant target looks like this:

                <uptodate property="dashboard.uptodate" targetfile="${site}/html/dashboard/dashboard.swf" >
                <srcfiles dir= "${origin}/mxml" includes="**/*.mxml,**/*.as"/>
                </uptodate>

                <!-- make mxml modules -->
                <target name="dashboard" unless="dashboard.uptodate">
                <java fork="true" jar="flex20/lib/mxmlc.jar" failonerror="true" >
                <arg line="-headless-server=true"/>
                <arg line="-load-config flex20/frameworks/flex-config.xml"/>
                <arg line="-licenses.license charting XXXXXXXXXXX"/>
                <arg line="-file-specs ${origin}/mxml/dashboard.mxml"/>
                </java>

                <copy file="${origin}/mxml/dashboard.swf" todir="${site}/html/dashboard"/>
                </target>
                • 5. Re: Chart watermark won't go away in SDK
                  Nandrad
                  Hi,

                  I had the same problem but I am using Maven instead of Ant to build.
                  I managed to workout that you can add the mxmlc command line argument, "-licenses.license charting XXXXXXXXXXX", to the "flex-config.xml" using the following (Note: add it outside of the <compiler> tag):
                  <licenses>
                  <license>
                  <product>charting</product>
                  <serial-number>XXXXXXXXXX</serial-number>
                  </license>
                  </licenses>

                  By doing this I could continue to build my Flex code through maven.