trace() is not working in flashbuilder 4?
Asked Answered
S

3

7

i'm trying to use actionscript 3.0 and using trace(), it never outputs content of trace of variable either in flash player or in output area? how to coorect or should i enable something? whats the problem?

Saboteur answered 18/12, 2009 at 15:37 Comment(1)
how do i install debug version of flash player? i'm running on windows xp.........Saboteur
S
6

As others have pointed out, trace only works when in debug.
If you want information to get dumped out when running "release", you'll need to use the logging api that flex provides.

Sinasinai answered 18/12, 2009 at 17:37 Comment(0)
A
3

When you test your movie, are you using "Run Application" or "Debug Application"? I'm not sure if this has changed in 4, but if you just run it, trace actions are omitted by default.

Anstus answered 18/12, 2009 at 15:52 Comment(2)
yes i used run application,should i use debug application? what about flash player? some tell to use debug version? i don't understand?Saboteur
Yes, you should have the debug version of the flash player installed and use "debug application". It then displays traces in the output window of FB.Anstus
A
0

Note that you can also view the output from the debug version of the flash player from the command line. Then you don't have to run the application in the Flash Builder debuger. You need to create a mm.cfg file They have changed where this file has to be located a number of times so there is a lot of misinformation about where the file goes. The instructions here look like the most upto date - http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html

Actinolite answered 23/12, 2009 at 5:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.