PDA

View Full Version : setMask not working with loaded images


d.JaY
05-14-2004, 02:02 AM
I am trying to use apply setMask to a movieclip which loaded external jpg's.

The set mask doesnt work and returns the following error:

*** Security Sandbox Violation ***
SecurityDomain 'domain@demoImageName.jpg'
tried to access incompatible context 'file:///C|/DOCUME%7E1/jay/LOCALS%7E1/Temp/Untitled%2D1.swf'

Anybody know what this is about?

Thanks, :)

McGiver
05-14-2004, 04:35 AM
I doubt this is a problem with the mask.
probably more a problem with what you are trying to load. (seems the swf to be loaded has some domain restrictions that prohibit its loading to your swf)

http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm

303 maddec
05-15-2004, 05:15 AM
Hi.
I had the same problem lately.

You should be aware that to apply the mask after the image is loaded in the target mc. Because if you don't do so the content of the mc is deleted (including sub mc's and mask) and replaced by the loaded one. mc is cleared and refilled.

As a work around I found this:
You have a MC named container_mc:
with a sub_mc named imageHolder_mc.

If you apply your mask to container_mc and you load your image into your sub_mc imageHolder_mc it should work without having to re-apply your mask each time you load an other image. ;)

I hope this will help you.

Best regards.




Hope this will help you.

uncleunvoid
12-11-2009, 09:13 AM
nope i had the same issue and it appears inconsistent as well, donno why