I am trying to dynamically set the color and apply a glow to a movie clip as 
follows however one seems to overwrite the other. Anyone know why this is not 
working and how to fix it? My code is as follows:


function setGameBackgroundColourAndGlow(passedHexColour:Number):Void {
        
        var objTileColor = new Color(gameBgMC);
        objTileColor.setRGB(passedHexColour);
        
        var myGlowFilter:GlowFilter = new GlowFilter ();
        
        myGlowFilter.color = 0x003366;  
        myGlowFilter.blurX = 10;
        myGlowFilter.blurY = 10;        
        myGlowFilter.strength = 0.6;    
        myGlowFilter.quality = 3;       
        myGlowFilter.inner = true;      
        myGlowFilter.knockout = false;  

        gameBgMC.filters = [myGlowFilter];              
        
}


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to