I am wondering if there is a way for SWF to check at runtime whether it works as an online SWF or an AIR application? I need to use the same SWF to run both online and locally, however when launched as an AIR application, external resources are in a different directory. I would like to check if the SWF is local or online, so I can change the source path for external assets accordingly.
Thanks Sandro
Edit: I just realized this might be a dumb question. :) I can just use flashvars to tell SWF that it is running in an AIR application.
flash actionscript-3 air
Sandro
source share