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.