Is there an easy copyprotection, so that I can define in code the URL where flash/flex app can be executed
A:
Here is a detailed tutorial on how to achieve that:
http://active.tutsplus.com/tutorials/actionscript/quick-tip-lock-your-swf-to-a-specific-domain-name/
wildpeaks
2010-09-24 08:16:46