Loader Component & MC Button

Hi There,

I am currently setting up a simple photo gallery using the Loader component with Flash 8, it works fine if I run the code from a button but if I try to use the code on a MovieClip nothing happens. I was hoping there was a really easy solution to this that I must be overlooking. If someone could look at my code and give me any pointers that would be awesome.

Here it goes:

[COLOR=navy]on (rollOver) {
this.gotoAndPlay(“mouse_over”);
}[/COLOR]

[COLOR=navy] on (rollOut) {
this.gotoAndPlay(“mouse_out”);
}[/COLOR]

[COLOR=navy]on (release) {
myLoader.contentPath = “Images/lrg/TTC-Hillcrest02.jpg”;
}[/COLOR]

Thanks again for any help
Red

Boy do I feel stupid - I knew it was something simple - I needed to point to the root timeline where myLoader is:

[COLOR=navy]on (release) {
[COLOR=red]_root.[/COLOR]myLoader.contentPath = “Images/lrg/TTC-Hillcrest02.jpg”;
}[/COLOR]