[Laszlo-dev] Debug warning for getMCRef() in SWF10

Raju Bitter rajubitter at googlemail.com
Wed Jan 27 06:51:41 PST 2010


Thanks, Henry. One correction, in DHTML everything works fine, it's the AS3 mode where you see the problem.

On Jan 27, 2010, at 1:48 PM, Henry Minsky wrote:

> I'll take a look at what options we're passing to the flex compiler in debug mode. 
> 
> 
> On Wed, Jan 27, 2010 at 4:14 AM, Raju Bitter <rajubitter at googlemail.com> wrote:
> Max,
> 
> what is the reason that the warning to use getDisplayObject() instead of getMCRef() is not displayed correctly in DHTML? In SWF10 runtime I get the warning
> 
> INFO #helloView.Function is deprecated. Use the #helloView.Function instead
> 
> In SWF8 and DHTML output is correct:
> INFO %cssview.lzx#32: #helloView.getMCRef is deprecated. Use #helloView.getDisplayObject instead
> 
> Looking into the code http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs I see that you just dump the function reference in the warning. I guess that's because there's no API to retrieve a function's name in AS3. There is a workaround, though, described here:
> http://blogs.adobe.com/aharui/2007/10/debugging_tricks.html
> 
> For this to work, you need to turn on the -verbose-stacktraces=true compiler option - which I'm not sure is done for OpenLaszlo.
> 
> - Raju
> 
> 
> 
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100127/27d18168/attachment.html


More information about the Laszlo-dev mailing list