This content has been marked as final. Show 8 replies
I don't know what I'm supposed to be seeing, but if the hat and the shirt should be completely blown out to white, then I see that from the .fla and from the .swf when I view the .swf from a browser window.
Try reinstalling your Flash plugin in to see if that's the problem.
i've changed it so that your meant to see the pic turned all red. It works in my flash but not my browser...
My guess is that you are loading the image from a different domain? (Even something as simple as biggysmith.com will be considered a different domain.)
I think for security reasons Flash puts some limits on how you can manipulate content loaded from other domains. I might be wrong.
i am loading from a different domain, but i put System.security.allowDomain("*"); in there, does that not sort it?
The other thing is it works in flash and when I drag it into the browser but as soon as I put it online the things stops working.
Actually you have to also put an xml file on the other server. It wouldn't be much of a security measure if you could just put some code into your Flash and have access to everything. You need to have access to the other domain to indicate that you are a person who is allowed to do this. I've never actually done this, so you should search on cross domain.
Of course it works in Flash because the domain issues don't apply when you are testing locally. If you can change the domain you are loading from to the same one that your source is and I'm sure the problem will go away.
Yes that seems to be the problem, when I match domains the filter works eg click on the pic in test.swf
the weird thing is I can load the image into the flash no problem, resize and such, but i cant apply a filter to it? Why is that? If I can load the image into my flash and alter its size and such what difference would it make in applying a filter?
Is there any way around this?
I'm not sure. But I think it is all tied in to the bitmapdata class. If you could get in and manipulate at the pixel level you could do many bad things with copyrighted material. So everything that springs from the bitmap class is "fruit of the poisonous tree" so to speak.
Is the other domain yours? Is the picture yours? If that is the case you can either put a cross domain policy file on the other domain or you can move where you store the picture. Otherwise just be happy and change your design.
Thankfully I can use my own domain, I just have to copy some stuff. Lazyiness was compelling me to do it the other way.
Anyway thanks for the help.