PDA

View Full Version : SecurityErrorEvent while loading Youtube video


iBarmatz
08-26-2009, 01:53 PM
I am creating an application that loads Youtube videos and manipulates the image.
For that I'm using a Loader object for loading and a BitmapData object to deform.

On my local pc it works fine.
I do get a few security domain errors but that doesn't interfere with the application.
When I load it to the web the video plays but I get this error with the BitmapData Object:
SecurityError: Error #2121: Security sandbox violation: BitmapData.draw.

Any ideas?

For the record, the BitmapData is trying to draw the Loader.


b.

senocular
08-26-2009, 03:24 PM
Does Youtube have a permissive cross-domain policy file granting your domain access to theirs? If not, then you'll need to proxy the video through your domain using a server-side script and load the video into Flash from there (i.e. your domain)

iBarmatz
08-27-2009, 12:22 PM
what could be making this work locally but fail online?