I'm currently developing a flash game and I need to be able to test it on my local machine and also on the web.
When running locally I use some dummy test data and when online it is joined to an API.
While in development I would like to be able to detect where I'm running so I can switch between these automatically. Is there a way to detect this in Flash?