Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411413 Posts in 69360 Topics- by 58415 Members - Latest Member: sophi_26

April 16, 2024, 03:36:34 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsAutomatic conditional debug/release execution in ActionScript 3 (Flex 3)
Pages: [1]
Print
Author Topic: Automatic conditional debug/release execution in ActionScript 3 (Flex 3)  (Read 3370 times)
Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« on: September 03, 2009, 02:00:54 PM »

Automatic conditional debug/release execution in ActionScript 3 (Flex 3)

I made this little tutorial on how to detect if the Flash file was compiled in release or debug mode.
I don't know if someone else did this before, but if not, I hope you find it useful.

http://blog.tbam.com.ar/2009/09/automatic-conditional-debugrelease.html

Regards
-Martín Beer!
« Last Edit: September 03, 2009, 03:10:35 PM by nitram_cero » Logged

Working on HeliBrawl
Triplefox
Level 9
****



View Profile WWW
« Reply #1 on: September 03, 2009, 09:56:29 PM »

Hmm, wow. haXe has conditional #if #end blocks built-in to write platform-specific code, but any arbitrary phrase(like "debug") is also allowed. So this problem doesn't exist in haXe! Instead, we get "this feature is only supported in Flex" problems! Beer!
Logged

Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #2 on: September 04, 2009, 01:00:00 AM »

But if you have to define DEBUG yourself, isn't the same deal?
I mean, it doesn't solve the fact that you must change something besides the compiler command line.
Same problem.

I think this is useful for people that forget to change stuff up between debug and release modes.

Regards
Logged

Working on HeliBrawl
Triplefox
Level 9
****



View Profile WWW
« Reply #3 on: September 05, 2009, 01:42:55 AM »

But if you have to define DEBUG yourself, isn't the same deal?
I mean, it doesn't solve the fact that you must change something besides the compiler command line.
Same problem.

No, you compile with -debug. It's a command line flag.
Logged

Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #4 on: September 05, 2009, 03:27:56 PM »

Neat, good to know.
Logged

Working on HeliBrawl
weasello
Level 1
*



View Profile WWW
« Reply #5 on: September 09, 2009, 07:37:28 AM »

I pretty much had my own debug output class rolled up but this is a tremendous lifesaver. Incorporates nicely into my already existing code. Thanks a alot!
Logged

IndieElite4Eva
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic