# Calling an Event That Equals to a Function Inside Another Event

**URL:** https://forum.kirupa.com/t/calling-an-event-that-equals-to-a-function-inside-another-event/330231
**Category:** flash
**Created:** [December 15, 2012, 11:43pm UTC](https://forum.kirupa.com/t/calling-an-event-that-equals-to-a-function-inside-another-event/330231 "2012-12-15T23:43:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mrhartsclube](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mrhartsclube](https://forum.kirupa.com/u/mrhartsclube)
#### Post date: [December 15, 2012, 11:43pm UTC](https://forum.kirupa.com/t/calling-an-event-that-equals-to-a-function-inside-another-event/330231/1 "2012-12-15T23:43:49Z")

</div>

[SIZE=3]Hi Dear Friends  
I Have a Little Problem. I Have:  
[FONT=courier new]Btn1.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#800080]function/COLOR{[/FONT]  
[/SIZE][INDENT][SIZE=3][COLOR=#a9a9a9][FONT=courier new]//Do Something[/FONT][/COLOR][/SIZE][/INDENT]  
[SIZE=3][FONT=courier new]}[/FONT][/SIZE][SIZE=3]  
Now I Want to Call onRelease Function of Btn1 Inside onRelease Function of Btn2. Something Like This:  
[FONT=courier new]Btn2.[COLOR=#0000FF]onRelease [/COLOR]= [COLOR=#800080]function/COLOR{[/FONT][/SIZE][INDENT][SIZE=3][FONT=courier new]Btn1.[COLOR=#0000FF]onRelease/COLOR;[/FONT][/SIZE][/INDENT]  
[SIZE=3][FONT=courier new]}[/FONT][/SIZE][SIZE=3]  
But It’s Not Working. Whats The True Syntax for This?  
Thanks For Helping :te:[/SIZE]
