# Talk to a class on a loaded swf

**URL:** https://forum.kirupa.com/t/talk-to-a-class-on-a-loaded-swf/282107
**Category:** flash
**Created:** [February 17, 2009, 6:22pm UTC](https://forum.kirupa.com/t/talk-to-a-class-on-a-loaded-swf/282107 "2009-02-17T18:22:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [February 17, 2009, 6:22pm UTC](https://forum.kirupa.com/t/talk-to-a-class-on-a-loaded-swf/282107/1 "2009-02-17T18:22:03Z")

</div>

I have my main swf that loads another swf:

```auto

		private function initPreview(e:MouseEvent):void
		{
			
			v.stop();
			
			var req:URLRequest = new URLRequest("Presenter.swf");
			var ldr:Loader = new Loader();
			
			ldr.load(req);
			
			presenterHolder.addChild(ldr);
			
		}

```

In my loaded swf (presenter.swf) I have this code:

```auto

import com.dopeditor.VideoLoader;
import com.dopeditor.PlaylistLoader;
import com.dopeditor.HorizontalSlider;

stage.showDefaultContextMenu = false;

var lowStream:String = baseURL + "ate_indicators_low.flv";
var highStream:String = baseURL + "ate_indicators_high.flv";

var vid:VideoLoader = new VideoLoader(this,highStream);
var playlist:PlaylistLoader = new PlaylistLoader(this);
var volumeObj:HorizontalSlider = new HorizontalSlider(this);
addChild(vid);
addChild(playlist);
addChild(volumeObj);

```

Where I am loading I need to talk to that playlist object. In my PlaylistLoader class I have a function called setPlaylistID(). I need to somehow pass a number to that function of the loaded swf. I cant figure this out for the life of me. Can anyone help??
