# Positioning External SWF after button release

**URL:** https://forum.kirupa.com/t/positioning-external-swf-after-button-release/250239
**Category:** flash
**Created:** [January 27, 2008, 2:45pm UTC](https://forum.kirupa.com/t/positioning-external-swf-after-button-release/250239 "2008-01-27T14:45:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kdowling](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@kdowling](https://forum.kirupa.com/u/kdowling)
#### Post date: [January 27, 2008, 2:45pm UTC](https://forum.kirupa.com/t/positioning-external-swf-after-button-release/250239/1 "2008-01-27T14:45:03Z")

</div>

Hi All,

Im trying to load an external swf and place it at certain co-ordinates on the screen when i press a button.

It works fine for me when i load it in without any button press ie,

```auto

stop();
loadMovieNum("viewer.swf",1);
this.onEnterFrame = function() {
  _level1._x = 90;
  _level1._y = 25;
 
  _level1._xscale=100;
  _level1._yscale=100;
}

```

no problems here, but when i try it on a button release it doesnt work. here is my code:

```auto

on (release) {
 loadMovieNum("viewer.swf",1);
 this.onEnterFrame = function() {
  _level1._x = -90;
  _level1._y = -25;
 
  _level1._xscale=100;
  _level1._yscale=100;
}
}

```

can anyone dig me out of this hole???
