In C, you can use compiler preprocessors to do conditional compilations (#if, #ifdef) to help exclude certain things from being compiled into your final executable.
Since preprocessor is not available in Flash, if you want to dynamically include something for local testing and exclude it during web deployment, you can use the player type check to achieve similar results.
e.g.
if (System.capabilities.playerType != "External")
{
// show fps meter
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home