Google Analytics

Pages

Saturday, April 10, 2010

trace with FlasDevelop

If you are using FlashDevelop for your Flex project, you'll probably come across the issue soon or later: how to run the application in debug mode.

Flex comes with an handy function, trace();
http://livedocs.adobe.com/flex/3/html/help.html?content=logging_08.html

In order to see the trace in your FlasDevelop output, you need to use a custom version of this function trace

FlashDevelop comes with a few packages available at :
/[Flash Develop Folder]/Library/AS3/classes/org/flashdevelop/utils

1) Add these packages to your project
import org.flashdevelop.utils.*

2) instead of writing trace (), use FlashConnect.trace() instead
e.g.: FlashConnect.trace("hello world");

That's it!

0 comments:

Share it