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 - 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;
}
}
}