# Can't get mc inside mc to alpha 0 for fade in

**URL:** <https://forum.kirupa.com/t/cant-get-mc-inside-mc-to-alpha-0-for-fade-in/207213>\
**Category:** flash\
**Created:** [November 15, 2006, 4:55pm UTC](https://forum.kirupa.com/t/cant-get-mc-inside-mc-to-alpha-0-for-fade-in/207213 "2006-11-15T16:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles\_i](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/charles_i/32/2986_2.png) [@charles\_i](https://forum.kirupa.com/u/charles_i)\
**Post date:** [November 15, 2006, 4:55pm UTC](https://forum.kirupa.com/t/cant-get-mc-inside-mc-to-alpha-0-for-fade-in/207213/1 "2006-11-15T16:55:42Z")

</div>

I’m trying to place this scrollPane inside a movie so I can fade the text in.

Can anyone tell me why this doesn’t work?

Thanks!

//create text field - WORKS PERFECTLY  
this.createTextField(“content\_initial”,getNextHighestDepth(),280,140,217,350);  
content\_initial.XML = true;  
content\_initial.multiline = true;  
content\_initial.wordWrap = true;

//put scrollbar on stage - WORKS PERFECTLY  
this.createClassObject(mx.controls.UIScrollBar, “news\_sb1”, 3);  
//x width position - y position for top arrow  
news\_sb1.move(content\_initial.\_x+content\_initial.\_width+15, content\_initial.\_y+37);  
news\_sb1.setScrollTarget(content\_initial);  
//size of arrow - y position of bottom arrow  
news\_sb1.setSize(4, content\_onStageHeight-55);

//load [css](http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_22056242.html#) - WORKS PERFECTLY  
myStyle = new TextField.StyleSheet();  
myStyle.load(“resumeCSS.css”);  
content\_initial.styleSheet = myStyle;

//load in XML - WORKS PERFECTLY  
content\_xml = new XML();  
content\_xml.ignoreWhite = true;  
content\_xml.load(textForInitialContent);  
content\_xml.onLoad = function(success)  
{  
if(success)  
{  
// PUT CONTENT INTO TEXT FIELD  
// WORKS PERFECTLY  
content\_initial.text = content\_xml;

```
                    //TRIED ATTACHMOVIE HERE BUT NO LUCK
                   //NEW MOVIE MUST CONTAIN 
                    //TEXT AND SCROLLPANE     
                    //HOW DO I ADD 2 MOVIES TO ONE NEW ONE
                    //AND SET ITS ALPHA TO 0??  
                   attachMovie("content_initial",
                   "content_initial_library_mc",
                    this.getNextHighestDepth())

                  //TRIED ATTACHING CONTENT TO NEW
                 //MC HERE INSTEAD BUT DOESN'T WORK EITHER
                   content_initial_library_mc.text = content_xml;          
              
                 //SET ALPHA TO 0 TO FADE IN IN NEXT FRAME
                  //DOESN'T WORK NO MATTER WHERE THIS IS
                content_initial._alpha = 0;
                 //OR LIKE THIS ON NEW MC
                 content_initial_library_mc._alpha = 0;
      }
 }

```

}
