Hello all,
I've run into a curious issue when using TweenMax to tween the height of a panel in a current project.
Here's what I'm doing:
var panel:MovieClip = commonElementsPage.panelSwf.content.panelInstance;
var textHeight:int = transitioningPage.mainHeading.height + transitioningPage.bodyCopy.height;
TweenMax.to(panel, SiteSettings.BASIC_TIME_UNIT, {height:textHeight, onComplete:fadeInText});
...
the panel variable refers to a 9-slice scaling enabled MovieClip on the stage of a loaded swf.
If I do the following the panel scales using the 9-slice scaling as expected:
TweenMax.to(panel, SiteSettings.BASIC_TIME_UNIT, {height:400, onComplete:fadeInText});
but when I pass a reference instead of a value, the 9-slice scaling ceases working:
TweenMax.to(panel, SiteSettings.BASIC_TIME_UNIT, {height:textHeight, onComplete:fadeInText});
Has anyone come across this before?
Many Thanks