Re: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread Stefan Thurnherr
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

RE: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread Chuck Hoffman
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

Re: RE: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread John Mark Hawley
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

Re: RE: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread eka
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

[Flashcoders] how to tell if you're running in the ide

2007-01-25 Thread Josh Santangelo
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

Re: [Flashcoders] how to tell if you're running in the ide

2007-01-25 Thread John VanHorn
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?