Trying... and failing to make a map


i trying create series of highlights show on mouse over, on image, or failing that, sort of effect show image interactive , not static.

 

i've been trying working snippets, getting that. error "cannot property 'alpha' of undefined." ideally, i'd able object under mouse , pass function fadeup(object), i'm not sure how either.

 

my current, non-working code below. ideas on i'm doing wrong?

 

 

this.stop();   var frequency = 3; stage.enablemouseover(frequency); this.faceplate.addeventlistener("mouseover", platefadein); this.faceplate.addeventlistener("mouseout", platefadeout);     function platefadein() {   this.faceplate.alpha += 0.01;   if(this.faceplate.alpha >= 1)   {   this.removeeventlistener('tick', platefadein.bind(this));   } }   function platefadeout() {   this.faceplate.alpha -= 0.01;   if(this.faceplate.alpha <= 0)   {   this.removeeventlistener('tick', platefadeout.bind(this));   } } 

in createjs things alpha of 0 won't trigger mouse events. set minimum alpha 0.01 instead of 0.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop