Jump to content
Search Community

Chris G

Members
  • Posts

    2
  • Joined

  • Last visited

Chris G's Achievements

0

Reputation

  1. Thanks for the speedy reply, the reference traced as expected. Turns out that the original 9-sliced MovieClip was created at 200px as it needed a large area to stay unscaled at the bottom of the panel. Therefore the scaling broke when passed a value of less than 200px. My test values were greater than 200px so there was no problem with them. My apologies for casting doubt over the mighty TweenMax - it's never let me down yet!
  2. 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
×
×
  • Create New...