# \[FMX\] Loaded Movie and .onRelease

**URL:** <https://forum.kirupa.com/t/fmx-loaded-movie-and-onrelease/45633>\
**Category:** flash\
**Created:** [March 16, 2004, 5:15pm UTC](https://forum.kirupa.com/t/fmx-loaded-movie-and-onrelease/45633 "2004-03-16T17:15:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![w1cked5mile](https://avatars.discourse-cdn.com/v4/letter/w/b2d939/32.png) [@w1cked5mile](https://forum.kirupa.com/u/w1cked5mile)\
**Post date:** [March 16, 2004, 5:15pm UTC](https://forum.kirupa.com/t/fmx-loaded-movie-and-onrelease/45633/1 "2004-03-16T17:15:49Z")

</div>

After reviewing the code for the photo gallery post I have problems with the onRelease functions. I broke this problem out of the original post because I feel it doesn’t pertain to the original as much as being able to stand on it’s on.

I am able to load and resize an image in a created MC but I cannot assign any onRelease function to it. Here’s the code I’m trying to get to work.

this.createEmptyMovieClip(“clip1\_mc”, 1);  
this.clip1\_mc.loadMovie(“pics/pic1.jpg”);  
this.clip1\_mc.\_xscale = 15;  
this.clip1\_mc.\_yscale = 15;  
this.clip1\_mc.onRelease = function() {  
this.clip1\_mc.\_xscale = 30;  
this.clip1\_mc.\_yscale = 30;  
};

Thanks for any ideas!

w1cked5mile
