Jump to content
Search Community

Access Properties

usuarioImginario test
Moderator Tag

Recommended Posts

Hi everyone!

 

I need some help. I'm playing with the alpha property in the GlowFilter class. I'm trying to access that property directly from the code, if i trace (mc.alpha); it trace methe alpha of the movie clip not the alpha of the glowing area. How can I access that property?

 

It would help me tons!

 

thanx

Link to comment
Share on other sites

You'd need to loop through the filters and find the one that's a GlowFilter and get that object's alpha. Kinda like:

 

var filters:Array = mc.filters;
var i:int = filters.length;
while (i--) {
   if (filters[i] is GlowFilter) {
       trace("alpha is " + filters[i].alpha);
       break;
   }
}

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...