-
1. Re: Make symbols have different actions based on timeline
resdesign May 4, 2015 11:05 AM (in response to benf66502)Try to use animate for the sliding effects and use conditionals with a variable for the actions.
example for animate - change 400 to what you need negative or positive - change to your symbol name
sym.$('symbolName').animate({'left':400},1000);
-
2. Re: Make symbols have different actions based on timeline
benf66502 May 4, 2015 12:11 PM (in response to resdesign)Pardon my ignorance as I am fairly new at all this but how would that solve the issue? I really don't mean that rudely I just don't understand. Thanks for the reply!
-
3. Re: Make symbols have different actions based on timeline
resdesign May 4, 2015 12:39 PM (in response to benf66502)Hard to know when I do not have all the elements in front of me. If you use animate() instead of the timeline then it is easier to manipulate the symbols. Since you seem to use the timeline then it is less flexible because it passes through points that you might not want to see, it that makes sense.
-
4. Re: Make symbols have different actions based on timeline
benf66502 May 4, 2015 12:45 PM (in response to resdesign)Gotcha. So this is my method at the moment. I choose the contact symbol open actions and choose click, I then type in:
sym.$('Rectangle').animate({'right':650},6500);
When I preview it and I click on the contact symbol, the rectangle does nothing. Shouldn't it move to the right 650 pixels once I click the contact symbol?
Thanks for all your replies, they're really helping!
-
5. Re: Make symbols have different actions based on timeline
resdesign May 4, 2015 1:30 PM (in response to benf66502)If it is at 650 to stat then you need it a 0 to slide in place. right is not allowed. this is css. so left is the position.
for example if your symbol is originally at -650 on the left of the stage then you want it to slide until it is at 0. so use:
sym.$('Rectangle').animate({'left':0},6500);
6500 is the speed.