PDA

View Full Version : References and levels



blueshift
September 10th, 2003, 02:18 PM
I have one main movie which I load other submovies into. One of those submovies is a photo gallery that dynamically loads .jpg's. The buttons to load each picture are in a movie clip. The function to load the pictures (loadFile()) is on the _root level of the photo gallery movie.

_root.loadFile("pic_name"); obviously works in the stand alone gallery, but obviousy not inside the main movie. So I made the reference this.loadFile(""); that call doesnt work in either situation, I also tried just calling loadFile with no specifier and I get nothing. If a file would be helpful please let me know and I will provide one. Otherwise I'm just wondering how to call loadFile so that it properly works.

Thanks.

blueshift
September 10th, 2003, 02:20 PM
I apologize, just as I posted I remembered the _parent reference, that seems to work.

doh