# External .swf; not want to do actionscript

**URL:** https://forum.kirupa.com/t/external-swf-not-want-to-do-actionscript/130187
**Category:** Uncategorized
**Created:** [December 2, 2004, 8:26am UTC](https://forum.kirupa.com/t/external-swf-not-want-to-do-actionscript/130187 "2004-12-02T08:26:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Endophyte](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@Endophyte](https://forum.kirupa.com/u/Endophyte)
#### Post date: [December 2, 2004, 8:26am UTC](https://forum.kirupa.com/t/external-swf-not-want-to-do-actionscript/130187/1 "2004-12-02T08:26:21Z")

</div>

Ok, so i have my main file, have set a button (fully working radada) with the a.s of

```auto
doodler.onPress = function() {
 	_root.createEmptyMovieClip("container", 1);
 	loadMovie("doodler.swf", "container");
 	container._x = 7;
 	container._y = 72;
 };

```

Everything works perfectly, the doodler.swf is loaded fine, but the actionscripting in doodler.swf

```auto
_root.createEmptyMovieClip("myLine", 0);
 _root.onMouseDown = function() {
 	myLine.moveTo(_xmouse, _ymouse);
 	myLine.lineStyle(2, 0xff0000, 100);
 	_root.onMouseMove = function() {
 		myLine.lineTo(_xmouse, _ymouse);
 	};
 };
 _root.onMouseUp = function() {
 	_root.onMouseMove = noLine;
 };
 

```

Doesnt want to work once loaded into the main swf file. Help? (I looked at a recent post about loading external swf, but that didnt appear to help me either)
