title: crossdomain problems: swf frame script not calling when swf loading from sub-domain
body: <p>I have character.swf (published with flash CS6) that contains character animations with some simple frame scripts in child movieClips(gotoAndPlay(), stop() etc) and game.swf - main programm that loads character.swf for using it in game.</p>
  
  <p>If game and character are in the same domain (<a href="http://client.mygame.com" rel="nofollow">http://client.mygame.com</a>) then frame scripts in character.swf are working fine. But if I put character to different domain (<a href="http://resources.mygame.com" rel="nofollow">http://resources.mygame.com</a>) then frame scripts are not working. Possible not envoked at all.</p>
  
  <p>crossdomain.xml is correct and all swf-s contain allow domain code such as :</p>
  
  <pre><code>Security.allowDomain("*");
  Security.allowInsecureDomain("*");
  </code></pre>
  
  <p>Is there any ideas why it happens?</p>
  
  <p>[upd]  I found some pattern in the behavior of scripts working. It seems they are not working only if I create an instance of character by ApplicationDomain.getDefinition(className). If I use loaded content directly, scripts are working</p>