topical media & game development

talk show tell print

explorer-effects-GlowEffectExample.mx

explorer-effects-GlowEffectExample.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <!-- Simple example to demonstrate the Glow effect. -->
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
      <mx:Glow id="glowImage" duration="1000" 
          alphaFrom="1.0" alphaTo="0.3" 
          blurXFrom="0.0" blurXTo="50.0" 
          blurYFrom="0.0" blurYTo="50.0" 
          color="0x00FF00"/>
      <mx:Glow id="unglowImage" duration="1000" 
          alphaFrom="0.3" alphaTo="1.0" 
          blurXFrom="50.0" blurXTo="0.0" 
          blurYFrom="50.0" blurYTo="0.0" 
          color="0x0000FF"/>
  
      <mx:Panel title="Glow Effect Example" width="75%" height="75%" 
          paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
  
          <mx:Text width="100%" color="blue"
              text="Click and hold the mouse on the image to see glowImage effect. Release the mouse to see unglowImage effect."/>
              
          <mx:Image source="@Embed(source='explorer-effects-assets-Nokia_6630.png')" 
              mouseDownEffect="{glowImage}" 
              mouseUpEffect="{unglowImage}"/>
          
      </mx:Panel>
  </mx:Application>
  


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.