Can anyone see something wrong with this code??? The “scroll_right” image shows up, but in Debug,* _root.win_Main.scroll_right.bar *does not exist after this code is called. However, *_root.win_Main.scroll_right ***DOES **exist. Any ideas?
var win:Object = _root.win_Main;
win.createEmptyMovieClip( "scroll_right", win.getNextHighestDepth() );
loadMovie( "scroll_BG_Vertical.png", win.scroll_right );
win.scroll_right.createEmptyMovieClip( "bar", win.scroll_right.getNextHighestDepth() );
loadMovie( "scroll_Bar.png", win.scroll_right.bar );