7 Replies Latest reply on May 25, 2009 3:22 PM by Francisc

    Deserate for an Answer Trace()

    Schlamazel

      Why in the world am I not able to pass the variable daStuff to the trace() function? When I do that and use the debug button I get an error. I have properly set up the mm.cfg and located it in the proper folder. daStuff does properly display the passed variable content of "Best" in the Label.

       

      The only time i get the trace() to pass anything without an error is if I directly enter a string expression not passed by a variable containing a string.

       

      If I start with an Action Script project file then trace woorks just fine but it does not work in a Flex 3 project swf file!

       

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

       

      <mx:Script>
          <![CDATA[
          [Bindable]
          private var daStuff:String = "Best";

       

          ]]>
      </mx:Script>

       

      //the following does not pass string "Best" passed to it above.

       

      trace(daStuff);

       

      <mx:Label id="DestinationLabel" text="{daStuff}"/>

       


      </mx:Application>