arghh, changed a variable name at the end and forgot to change it somewhere 
else in the code.

working version ;-)

import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.GlowFilter;
import mx.utils.Delegate;

class GlowClip extends MovieClip {
 private var glowTween:Tween;
 private var glowVal:Number = 5;
 //
 function GlowClip() {
  var gf = new GlowFilter(0x356D83, 100, 5, 5, 5, 3, false, false);
  this.filters = [gf];
  this.glowTween = new Tween(this, "glowVal", Elastic.easeOut, glowVal, 
glowVal, 1, true);
  this.glowTween.onMotionChanged = Delegate.create(this, this.tweenChanged);
  this.glowTween.stop();
 }
 //
 function onRollOver() {
  this.glowTween.continueTo(30, 2);
 }
 //
 function onRollOut() {
  this.glowTween.continueTo(5, 2);
 }
 //
 private function tweenChanged(tw, newVal) {
  var gf = new GlowFilter(0x356D83, 100, newVal, newVal, 5, 3, false, false);
  filters = [gf];
 }
}

regards,
Muzak


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to