I'm trying to use a variable as a property in an Animation. I set the initial value and the ani object gets the value but when i run the animation again with a new value for my var it doesn't update. Thoughts?
Can you share your file with us? :)
I cannot because its for work, but I can show the code. I set the tabContentPanelHeight ahead of this and change the var on a click event and then also trigger this animation on the came click
Just wrap the assignment of 'tabContentPanelHeight' in a function that gets fired when tabContentPanel gets moved and/or resized:
tabContent.Panel.on "change:frame",->_____tabContentPanelHeight = foo * bar + whatev
ok i'll try it!
ok i am still working on it but i took the prob out of my project for sharing
each TAB should animate the content panel to a different height
Oh sweet - you were right - I wrapped it in a function and it worked! Thank you!