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

if function doesn´t work

$
0
0

he i´m building a litte animation with 3 pictures. i want to get the picture getting change the positin by clicking and change it back by clicking again or clicking on an other picture.

 

i put some labels and triggers in my timeline to do that and wrote an if function but it doesn´t work. if i test it, it is jumping from label to label but not the way it should jump

 

my code is:( it is the code of one picture, the other codes are similary)

 

if (sym.getPosition () == "e1","e3","e5"){

sym.play("l2")

}

if (sym.getPosition () == "e4","e6"){

sym.play("l5")

}

if (sym.getPosition () == "e2"){

sym.play("l3")

}

else sym.stop()

 

i also tried it with an else if in the function but it didn´t work. i´m totaly new to html and coding so it would be nice if some can help me.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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