Help! accessing mc from another mc

Hi!
pretty new to Flash, real new to AS, so please forgive the ignorance.
Setup: stage holds 2 MC’s one named main_mc, one named window_mc.
main_mc holds a single MC named button_mc.
All AS is in timeline.
Frame 1 of window_mc has:

var myLoader:Loader = new Loader();
addChild(myLoader);

in button_mc actions:

button_mc.addEventLister((MouseEvent.CLICK, buttonClick);

function buttonClick (event:MouseEvent):void
{
button_mc.enabled = true;
event.target.enabled = true;
MovieClip(???).myloader.load (new URLRequest(event.target.name + “.swf”));

question marks indicate problem area

every way I try to access window_mc through is failing miserably with:

1119: Access of possibly undefined property some through a reference with static type flash.display:DisplayObjectContainer

or a null object error.

HELP!!!

pulling my hair out.

thanx in advance!

http://kind-armadillo.pochta.ru/fla/osc.swf

http://kind-armadillo.pochta.ru/FlaAC3/RotateSWF.swf
http://kind-armadillo.pochta.ru/FlaAC3/RotateSWF.rar

http://kind-armadillo.pochta.ru/FlaAC3/curve.swf

http://kind-armadillo.pochta.ru/FlaAC3/loadSWF.swf
http://kind-armadillo.pochta.ru/FlaAC3/loadSWF.rar

You’re ok so far…

function buttonClick (event:MouseEvent):void
{
button_mc.enabled = true;
event.target.enabled = true;

These two lines are both setting button_mc enabled to true, you only need one of them, assuming ‘enabled’ does something special.

MovieClip(???).myloader.load (new URLRequest(event.target.name + “.swf”));
question marks indicate problem area

Remove the MovieClip() from the beginning (also it was declared as ‘myLoader’, not ‘myloader’), the reason you are getting the error is there is no method or property called myLoader in the MovieClip class. Just refer to your declared myLoader directly.

every way I try to access window_mc through is failing miserably with:

After myLoader has finished loading, to access what is inside it you need to point to myLoader.content

thanx guys, got it working now!