# Talkning functions on differnent levels FMX

**URL:** <https://forum.kirupa.com/t/talkning-functions-on-differnent-levels-fmx/39354>\
**Category:** Uncategorized\
**Created:** [January 6, 2004, 3:48pm UTC](https://forum.kirupa.com/t/talkning-functions-on-differnent-levels-fmx/39354 "2004-01-06T15:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimmyJimmy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@JimmyJimmy](https://forum.kirupa.com/u/JimmyJimmy)\
**Post date:** [January 6, 2004, 3:48pm UTC](https://forum.kirupa.com/t/talkning-functions-on-differnent-levels-fmx/39354/1 "2004-01-06T15:48:41Z")

</div>

Hi All,  
Well, I THOUGHT that I had a grasp on this, but I ran into a wall.  
I am using the Drawing Board AS from this website. I have it (the AS) on level 2.

[AS]  
//Drawing Tool Actions  
\_root.onMouseDown = function() {  
line.moveTo(\_xmouse, \_ymouse);  
line.lineStyle(2, 0x000000, 50);  
this.onMouseMove = function() {  
line.lineTo(\_xmouse, \_ymouse);  
updateAfterEvent();  
}  
}  
\_root.onMouseUp = function() {  
this.onMouseMove = null;  
}  
[/AS]

Everything works great.  
I have the cleanup Button (that works) on level 3:

[AS]  
on (release, releaseOutside, dragOut) {  
\_root.line.clear();  
}  
[/AS]

However, I have dragable menus on several other layers. I can’t figure out for the life of me how to tell the button (that I use to drag the menus) to talk to the function on level2 to tell it that onMouseDown = Null; - or something like that.

here is a link so you can see…

[Link](http://www.pyroblue.com/test/marcomm/stage.html)

Sorry for the long message. Thank you for your time and help!
