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

Get y position for conditional action

$
0
0

Here's my site I'm working on:

http://matthewtbrown.com/mercerworld/mercerworld1.html

 

I haven't done any scripting programming in a long time (I used to do some Actionscript, but wasn't a pro).

 

Anyway, if click on the People icon, two map pointer icons drop down, which works great. I want the map pointer icons to move up when I roll off the People icon, but only if they are already down, not if they aren't.

 

So, I guess I need some sort of conditional statement and can't find any sort of explanation for doing this.

 

Here's what I'm thinking

Assign a variable to the map pointer symbol when it reaches a certain point.

Then test to see if the map pointer symbol is that certain variable.

If true, then activate the label on the timeline of the symbol, which moves the map pointer icon up.

 

Here's what kind of works. It doesn't have a conditional statement, so it moves the map pointer icon up whenever you roll off the People icon.

var mySymbolObject = sym.getSymbol("resource_group");

 

 

mySymbolObject.play("Resource_up");

 

 

var mySymbolObject = sym.getSymbol("distribution");

 

 

 

 

mySymbolObject.play("dist_up");


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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