I'm using CustomActions, i.e. :
if ( CustomActions ){
// we're in the Flash IDE
} else {
// we're either in a browser or in the standalone player
}
HTH,
stefan.
On 1/26/07, Josh Santangelo [EMAIL PROTECTED] wrote:
Is there a way for a SWF to know if it's running in the test movie
I've occasionally used the trick of checking whether this._url begins
with file: Doesn't exactly tell you if you're running in the IDE, but
does tell you whether it's running locally on your machine or in a
browser, from a web server.
CHUCK HOFFMAN
PROGRAMMER
T8DESIGN.COM | P
You can also set up your code along these lines:
var inTestMovie:Boolean = false;
trace( inTestMovie = true );
if (inTestMovie)
{
// do wacky test movie stuff
}
else
{
// do normal stuff
}
Then you can just turn off trace statements when you want to see the 'normal'
behavior, and leave
Hello :)
With VEGAS my openSource framework you can use my vegas.logging package :
Page project : http://vegas.riaforge.org/
Example : in the souces in the AS2/trunk/bin/test/vegas/logging package
1 - use a log library to create channels to debug you application with muli
external targets
Is there a way for a SWF to know if it's running in the test movie
environment vs the browser or standalone players? I often have a need
to compile in different settings in test-movie than I do for
deployment, and have to manually remember to take them out before
shipping a build. Or is
check the help docs. for as2, look for System.capabilities.playerType. for
as3 check flash.system.Capabilities.playerType.
On 1/25/07, Josh Santangelo [EMAIL PROTECTED] wrote:
Is there a way for a SWF to know if it's running in the test movie
environment vs the browser or standalone players?
6 matches
Mail list logo