I've had no problems converting a loaded PNG, using the docs example code no 
less.  When the loader's done, you just cast it to a bitmap:

var myBitmap:Bitmap = Bitmap(loader.content);
addChild(myBitmap)

----- Original Message ----- 
From: "Shaw, Matt (MTVN)" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Thursday, December 08, 2005 5:08 PM
Subject: [Flashcoders] AS3: Sandbox violation on BitmapData.draw()


In Flash < 8.5 I don't recall getting any sandbox violations when
running a local swf. However, I'm in AS3 and I can load a jpg that is in
the same directory as my swf but get a Sandbox Violation when I attempt
to pass that loaded jpg to BitmapData.draw()

*** Security Sandbox Violation ***
SecurityDomain 'file:///c:/..../bin/Image3d-debug.swf' tried to access
incompatible context file:///c:/..../bin/mona.jpg'

Any ideas?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to