         {
             errorStringChanged = false;
             setBorderColorForErrorString();
+        }
+        if (blendModeChanged)
+        {
+            blendModeChanged = false; 
+            
+            if (!blendShaderChanged)
+            {
+                $blendMode = _blendMode; 
+            }
+            else
+            {
+                // The graphic element's blendMode was set to a non-Flash 
+                // blendMode. We mimic the look by instantiating the 
+                // appropriate shader class and setting the blendShader
+                // property on the displayObject. 
+                blendShaderChanged = false; 
+                
+                $blendMode = BlendMode.NORMAL; 
+                
+                switch(_blendMode)
+                {
+                    case "color": 
+                    {
+                        $blendShader = new ColorShader();
+                        break; 
+                    }
+                    case "colordodge":
+                    {
+                        $blendShader = new ColorDodgeShader();
+                        break; 
+                    }
+                    case "colorburn":
+                    {
+                        $blendShader = new ColorBurnShader();
+                        break; 
+                    }
+                    case "exclusion":
+                    {
+                        $blendShader = new ExclusionShader();
+                        break; 
+                    }
+                    case "hue":
+                    {
+                        $blendShader = new HueShader();
+                        break; 
+                    }
+                    case "luminosity":
+                    {
+                        $blendShader = new LuminosityShader();
+                        break; 
+                    }
+                    case "saturation": 
+                    {
+                        $blendShader = new SaturationShader();
+                        break; 
+                    }
+                    case "softlight":
+                    {
+                        $blendShader = new SoftLightShader();
+                        break; 
+                    }
+                }        
+            }
         }
     }
 

    mx_internal final function set $alpha(value:Number):void
    {
        super.alpha = value;
    }
    
    //----------------------------------

import mx.geom.RoundedRectangle;
import mx.geom.Transform;
import mx.geom.TransformOffsets;
import mx.graphics.shaderClasses.ColorBurnShader;
import mx.graphics.shaderClasses.ColorDodgeShader;
import mx.graphics.shaderClasses.ColorShader;
import mx.graphics.shaderClasses.ExclusionShader;
import mx.graphics.shaderClasses.HueShader;
import mx.graphics.shaderClasses.LuminosityShader;
import mx.graphics.shaderClasses.SaturationShader;
import mx.graphics.shaderClasses.SoftLightShader;
import mx.managers.CursorManager;
import mx.managers.ICursorManager;
import mx.managers.IFocusManager;
