Hi Ely,

Thanks for the tip.  Mind if I ask one more question here?

I did as you demonstrated (using a SWC), and timeline code now works.
 I am also able to access methods of classes defined in the linkage
base class of the symbol, which is also nice.  However - I am not able
to execute methods on base classes of symbols CONTAINED therein.  Let
me show you some example code.

My Person contains MovieClips, some of which contain or are themselves
an extension of "ColorableMovie".  Basically I just want to specify a
particular instance as being the colorable part of the movie, leaving
other components alone.  For instance, for the hair, I might have
transparent highlights and shadows, and I only want to color the
"colorable" part.  

So, the person contains various things that can be colored.  

Now, when I import the person into flex, I can see it as a subclass of
Person.  However, when I call the "shirt" setter, though it executes
the code therein, the "color" setters are never called (though they
are if you load the swf dynamically at runtime).

Any advice on this one?  Or is the response just "don't DO that!"

;-)



package com
{
        import flash.display.MovieClip;
        import flash.geom.ColorTransform;

        public class ColorableMovie extends MovieClip
        {
                public function set color(color:uint):void{
                        var colorTransform:ColorTransform = new 
ColorTransform();
                        colorTransform.color = color;
                        this["_colorItem"].transform.colorTransform = 
colorTransform;
                }
        }
}

package com
{
        import flash.display.MovieClip;

        public class Person extends MovieClip
        {
                public function set shirt(color:uint){
                        this["_leftArm"]._shirt.color = color;
                        this["_rightArm"]._shirt.color = color;
                        this["_body"]._shirt.color = color;
                }
        }
}


Reply via email to