Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : How do I find out what browser/host I'm being run from?


h
2/22/2004 10:39:26 PM
Is there a way I can test to see whether it's the Flash authoring
environment or a Director / shockwave movie that my flash movie is running
within?

I develop flash movies to use within Director projects; things like active
menus that reconfigure themselves depending on where a user is in a
presentation and so on, and I usually set various parameters from Director,
after I have compiled and imported my Flash movie.

When developing the Flash movies though I need to set those variables in the
code so I can preview the effect in Flash, but I'm constantly having to
comment out and de-comment those lines. If Flash could tell me where it's
running from I could do this automatically...

h

Jim Esteban
2/23/2004 3:15:42 AM
urami_
2/23/2004 10:10:09 AM

[quoted text, click to view]

flash can tell you , if on internet , under what domain or location on server
but on drive it can only return localHost , for all computers so if you want
ti differ in computers, won't be of any use .



Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

AddThis Social Bookmark Button