[Flashcoders] AS3: Sandbox violation on BitmapData.draw()

2005-12-08 Thread Shaw, Matt (MTVN)
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: Sandbox violation on BitmapData.draw()

2005-12-08 Thread JesterXL
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 flashcoders@chattyfig.figleaf.com
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders