Sign in to follow this  

[web] shouldn't these calls work

Recommended Posts

Alright I'm getting very frustrated with actionscript. Mostly due to the lack of good debugging. Anyway, I now have two function calls that are cutting short my development. From all I've read, I think they should work, and cannot understand why they don't have the desired effect. The first is for a dynamic drop shadow. I understand that referencing the filter directly (_mc.filters[0]) results in a copy of the filter, and yet...
//incrementNum increases for each element
var DS:DropShadowFilter = my_mc["obj" + incrementNum].filters[0];
DS.distance = 2.0*incrementNum;
my_mc["obj" + incrementNum].filters = [DS];		
when called (within a loop in a function that I call when the mouse moves) does nothing to the distance of the drop shadow! It seems like it should. The second call is to set a mask. I create (in code) a viewport_mc with two movie clips attached (with attachMovie), an image and a green rectangle (in that order). In code, I call
and all that happens is the greenrect_mc is on top of the image_mc from when it was masking occurs. both of these seem like they should work as expected... yet they don't?! WTF?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this