In order to debug a ActionScript 3 program in Flash CS4, when you are working with your .swf inside a webpage rather than inside Flash CS4 you need to output trace and errors messsages to a logfile. This is not included in Flash CS4 meaning that if you are trying to make anything more complex or more integrated into a webpage you are programming in the dark.
At the time – I couldn’t find any Vista and Flash 10 specific documentation/blogs posts on this, hence the write up.
1. Create mm.cfg file with the following inside the file:
“ErrorReportingEnable=1 TraceOutputFileEnable=1 TraceOutputFileName=JudeGomila-PC:Users:Jude Gomila:Desktop:flashLog.txt MaxWarnings=50”
2. Replace “JudeGomila-PC” with your “Computer name”. Replace ‘Jude Gomila” with your Vista “Username”
Don’t include the quotes.
3. Save the file into c:\users\YOURUSERNAMEHERE
4. Right click on Computer (what used to be ‘my computer) in explorer.
5. Goto to properties, then “Advanced System Settings”
6. Click on “environmental variables”
7. Add a new variable to your user variables. Variable = HOMEDRIVE, value = c:
8. Add another new variable to your user variable Variable = HOMEPATH, value = %USERPROFILE%
9. For step 8 – remember to leave in the “%” symbols.
10. Click ‘ok’, the click ‘ok’
11. Run your .swf file from Adobe flash CS4 or whatever your using
12. Now if you have the latest flash version 10. Goto the directory C:\Users\YOURUSERNAME\AppData\Roaming\Macromedia\Flash Player\Logs
13. You should now find the log file in this directory called flashlog.txt
14. Restart you firefox.
15. Now output this flashlog.txt to a tracing program. Your ready to go.
For Mac users, Windows XP, Linux see the following links:
http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php
http://broadcast.artificialcolors.com/index.php?m=20040401
http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000794.htm
At the time – I couldn’t find any Vista and Flash 10 specific documentation/blogs posts on this, hence the write up.
1. Create mm.cfg file with the following inside the file:
“ErrorReportingEnable=1 TraceOutputFileEnable=1 TraceOutputFileName=JudeGomila-PC:Users:Jude Gomila:Desktop:flashLog.txt MaxWarnings=50”
2. Replace “JudeGomila-PC” with your “Computer name”. Replace ‘Jude Gomila” with your Vista “Username”
Don’t include the quotes.
3. Save the file into c:\users\YOURUSERNAMEHERE
4. Right click on Computer (what used to be ‘my computer) in explorer.
5. Goto to properties, then “Advanced System Settings”
6. Click on “environmental variables”
7. Add a new variable to your user variables. Variable = HOMEDRIVE, value = c:
8. Add another new variable to your user variable Variable = HOMEPATH, value = %USERPROFILE%
9. For step 8 – remember to leave in the “%” symbols.
10. Click ‘ok’, the click ‘ok’
11. Run your .swf file from Adobe flash CS4 or whatever your using
12. Now if you have the latest flash version 10. Goto the directory C:\Users\YOURUSERNAME\AppData\Roaming\Macromedia\Flash Player\Logs
13. You should now find the log file in this directory called flashlog.txt
14. Restart you firefox.
15. Now output this flashlog.txt to a tracing program. Your ready to go.
For Mac users, Windows XP, Linux see the following links:
http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php
http://broadcast.artificialcolors.com/index.php?m=20040401
http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000794.htm

0 comments:
Post a Comment