Alpha Fade with Actionscript

Hi,

I’m using Flash 8, and I have an FLV Playback Component in a movieclip called logo_mc. The Playback Component is loading a movie from an external source. I want this movieclip to fade out when I click a movie clip called green_mc.

I closest I have been to getting the right code is…



green_mc.onRelease = function(){
     speed=4;
     targetAlpha=0;
     logo_mc.onEnterFrame = function(){
          alphaDifference=Math.abs(logo_mc._alpha-targetAlpha);
          if(logo_mc._alpha>targetAlpha){
               logo_mc._alpha-= alphaDifference/speed;
          } else if (logo_mc._alpha<targetAlpha){
               logo_mc._alpha+=alphaDifference/speed;
          } else if (logo_mc._alpha == targetAlpha){
               delete logo_mc.onEnterFrame
          }
     }
}

Is the problem that I’m trying to fade a movie clip with a component inside?