I don't want my text to fade

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 865

Post 3+ Months Ago

Hello all, I'm using a sample slideshow from a tutorial and trying to modify it a bit. Unfortunately I don't know any actionscript and am basically guessing my way through it.

I set the background on my text field to true and assigned it a color. When the following code is applied to it, it fades on rollover.

Code: [ Select ]
navContainer.nav_txt.background = true;
navContainer.nav_txt.backgroundColor = 0x990000;
navContainer.onRollOver = function(){
    TweenLite.to(this, .5, {_alpha:50});
  1. navContainer.nav_txt.background = true;
  2. navContainer.nav_txt.backgroundColor = 0x990000;
  3. navContainer.onRollOver = function(){
  4.     TweenLite.to(this, .5, {_alpha:50});
  5. };

The problem I'm having is I want the background to fade but not the text itself.
Will I need to restructure the code? The code callind navContainer is effecting everything inside it(e.g. the text field). Any ideas?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.