0 Replies Latest reply on Dec 4, 2009 2:54 PM by mike_morearty

    [svn:fx-trunk] 12548: Fix FB-16879: FDB print # no longer works.

    mike_morearty Level 1

      Revision: 12548

      Revision: 12548

      Author:   mmoreart@adobe.com

      Date:     2009-12-04 12:36:58 -0800 (Fri, 04 Dec 2009)

      Log Message:


      Fix FB-16879: FDB print # no longer works.  You're welcome Alex


      It's tricky to handle "print #1234" now, because we now use asc's parser to parse the expression ("#1234"), and that is not a legal ActionScript expression.  To hack around this, we now detect "#" followed by one or more digits, but only at the very beginning of the expression.  If we see that, we replace it with "$obj(1234)".  $obj() is a new pseudofunction handled by the FDB, which evaluates to the object with id 1234.


      This means you can do any of these:


         print #1234

         print #1234.

         print #1234.toString()

         print $obj(1234)

         print someFunction($obj(1234))


      but you can't use the "#" syntax anywhere except at the very beginning of an expression -- this won't work:


         print someFunction(#1234)


      Ticket Links:




      Modified Paths: