Hi!
I’m making something that requires me to draw() the youtubeplayer
Giving me this pretty error:
SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://*********.com/zzz/Main.swf cannot access http://s.ytimg.com/yt/swfbin/watch_as3-vflOxxoI4.swf.
I already have taken these precautions :
What can possibly be wrong now?
I appreciate any help i can get
this.$loader.load(new URLRequest(this.$url), new LoaderContext(true))
Security.allowDomain("*");
Security.allowInsecureDomain("*");
Security.loadPolicyFile("crossdomain.xml");
// crossdomain.xml
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-access-from domain="*.youtube.com" />
<allow-access-from domain="s.ytimg.com" />
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>