# How to make on.Press from \_level2 for a button thats on \_level3 (AS2 - Flash 8 Pro)

**URL:** <https://forum.kirupa.com/t/how-to-make-on-press-from--level2-for-a-button-thats-on--level3-as2-flash-8-pro/331501>\
**Category:** flash\
**Created:** [August 13, 2013, 1:02pm UTC](https://forum.kirupa.com/t/how-to-make-on-press-from--level2-for-a-button-thats-on--level3-as2-flash-8-pro/331501 "2013-08-13T13:02:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plainman007](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@plainman007](https://forum.kirupa.com/u/plainman007)\
**Post date:** [August 13, 2013, 1:02pm UTC](https://forum.kirupa.com/t/how-to-make-on-press-from--level2-for-a-button-thats-on--level3-as2-flash-8-pro/331501/1 "2013-08-13T13:02:27Z")

</div>

Hi, \*\*(AS2 - Flash 8 Pro)  
\*\*  
My script on _ **\_level2** _ loads a swf webpage into _ **\_level3** _.  
I also have a script on _ **\_level2** _ main timeline as follows…

**\_level3.returnBtn.onPress=function(){  
loadMovieNum(“NoFile”,3);  
};  
\*\*  
Ive created a button with the correct instance name returnBtn in the swf  
that loads into **\* \_level3\*\*\*. Now after the swf loads correctly into _** \_level3**_ and  
it shows the \*\*\*returnBtn \*\*\*clip. Clicking on it does nothing. But the mouse over  
is being sensed over it which proves the \*\*\*onPress \*\*\*is acting from the lower layer.

When i click this button i just wanted the swf which has loaded into _ **\_level3** _ to be flushed out with nothing. So i gave a non existant file name _ **NoFile.swf** _.

But it does nothing.
