1 Reply Latest reply on Nov 29, 2009 11:24 PM by Flex harUI

    Strange Error using Flex Profiler

    SuOn696

      Hi,

       

      I am trying to use the Flex Profiler to figure out where to put my time when optimizing the code of a .swf file generated in Flash CS4. In Flex, I select "Profile External Application" for the "Profile" menu item. Then I select "Launch the application manually from Ooutside Flex Builder" and set the timeout to 60000 milliseconds. I then go over to Flash CS4 and start a debug session of the application I want to profile. This should make the profiler pick up the session and give me the stats I need. But I get a couple of weird errors in the Flex Builder.

       

      The first error is a message box the pops up and says: "Profiling can only be performed on the debug version of an application."  I am definitely running the Flash application in debug mode... The only thing that I can think may be a problem is that I am using the Flash Facebook API and linking to the external .swc file for that API. Could that cause a problem?

       

      The second error is an exception that gets thrown in Flex Builder and is displayed in the Console. The exception is this:

       

      flash.swf.SwfFormatException: unrecognized fill style type: 202
          at flash.swf.TagDecoder.decodeMorphFillStyle(TagDecoder.java:982)
          at flash.swf.TagDecoder.decodeMorphLinestyles(TagDecoder.java:914)
          at flash.swf.TagDecoder.decodeDefineMorphShape(TagDecoder.java:868)
          at flash.swf.TagDecoder.decodeDefineMorphShape2(TagDecoder.java:849)
          at flash.swf.TagDecoder.decodeTag(TagDecoder.java:310)
          at flash.swf.TagDecoder.decodeTags(TagDecoder.java:170)
          at flash.swf.TagDecoder.parse(TagDecoder.java:119)
          at com.adobe.flash.profiler.internal.PlayerSession.swf(PlayerSession.java:570)
          at com.adobe.flash.profiler.internal.ProtocolHandler.readSwf(ProtocolHandler.java:353)
          at com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:114)
          at com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383)
          at java.lang.Thread.run(Unknown Source)

       

      It looks like it has something to do with a fill style, but I am just doing standard Flash stuff... No version of Flash Player has had any problems with the .swf file, but somehow the profiler is not liking something.

       

      Does anyone have any idea about what is going on here? Apparently the profiler is a great tool to use to optimize ones code, and I would really love to use it.

       

      Thanks!!!