# Error 1120: Access of undefined property event. i need help

**URL:** <https://forum.kirupa.com/t/error-1120-access-of-undefined-property-event-i-need-help/324538>\
**Category:** flash\
**Created:** [August 25, 2011, 10:57pm UTC](https://forum.kirupa.com/t/error-1120-access-of-undefined-property-event-i-need-help/324538 "2011-08-25T22:57:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)\
**Post date:** [August 25, 2011, 10:57pm UTC](https://forum.kirupa.com/t/error-1120-access-of-undefined-property-event-i-need-help/324538/1 "2011-08-25T22:57:24Z")

</div>

Hello everyone. So i need some quick help, my eyes are tired and i dont know, maybe im overlooking something.  
Long story short, im trying to make a button do several things to achieve a smooth transition between external swfs.

one, check if an ext.swf is loaded, and if it is (which by default, there always will be) then play the “outro” frame label. and then when done, if the frame locations is “end” frame label, then play the new swf.

now the problem im having is targetting the loaded swf because im bringing it in like this.

```auto
var newSwfRequest:URLRequest = new URLRequest( event.target.name + ".swf");

```

so there isnt a direct swf name to target.

as for my buttons, im doing them like this:

```auto

var loaded:Object;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoaded);

function handleLoaded(e:Event):void {
  loaded = event.target.content;
}

load2.addEventListener(MouseEvent.CLICK, handleClick);

function handleClick(e:MouseEvent):void {
	
  if (loaded) {
    loaded.gotoAndPlay("outro");
  }

  //load new swf
}

```

i get this error:

```auto
1120: Access of undefined property event.

```

on this line of code:

```auto
 loaded = event.target.content;

```

The overall problem im having is targetting the loaded content so i can play certain content within them.

can anyone please help.

any ideas/hints/code etc will be GREATLY appreciated.

thanks in advanced.
