There is a function I have handy that you could use to solve this. Instead
of using setTransform on your entire movie, you could do it to all
movieclips except ones that contain the images. You could do this by giving
image clips a special flag that your function will ignore.
function getClips(target:MovieClip):Array {
var r = [], i, child, childChildren;
for(i in target){
child = target[i];
if(child instanceof MovieClip){
if(!child.__hasImage){
r.push(child);
childChildren = getClips(child);
if(childChildren.length>0)
r = r.concat(childChildren);
}
}
}
return r;
}
Where __hasImage would be set to true for movieclips that contain images,
this function will return all movieclips that do not contain images.
Hope this helps,
M.
On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am trying to do a setTransform on my whole movieclip to invert the
> colours to
> give a high-resolution scheme for people with seeing difficulties. The
> problem
> is, there are a few graphics (photos) in the app which I do not want to be
> inverted. i tried changing their indiviudal transformations back to normal
> but
> they are still inverted. How can I not apply the transform to those
> objects??
>
> This is all done on the fly, in code, by the way.
>
> Thanks
>
> Kev
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com