Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Headache with a variable! Quick help please!

$
0
0

HI,

 

This is pretty basic but driving me mad.

 

I have 4 bullet text boxes titles:

bullet1

bullet2

bullet3

bullet4

 

that I want to fade in on a click, and rather than have code for each one like:

 

sym.$("bullet1").fadeIn(1000);

sym.$("bullet2").fadeIn(1000);

sym.$("bullet3").fadeIn(1000);

sym.$("bullet4").fadeIn(1000);

 

I want to put them in a variable in creation complete:

 

var bullets = ["bullet1", "bullet2", "bullet3", "bullet4"];

 

and call them from click on stage:

 

sym.$("bullets").fadeIn(1000);

 

but it won't work!!!!

 

Any ideas?

 

thanks!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>