# Two events in a single line

**URL:** <https://forum.kirupa.com/t/two-events-in-a-single-line/145708>\
**Category:** Uncategorized\
**Created:** [April 25, 2005, 4:48am UTC](https://forum.kirupa.com/t/two-events-in-a-single-line/145708 "2005-04-25T04:48:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookaburra](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kookaburra](https://forum.kirupa.com/u/kookaburra)\
**Post date:** [April 25, 2005, 4:48am UTC](https://forum.kirupa.com/t/two-events-in-a-single-line/145708/1 "2005-04-25T04:48:51Z")

</div>

We can write  
[color=darkred]on (release, releaseOutside) {  
[color=silver]// statements…  
[/color]}[/color]  
[color=black]on a button or a movieclip. [/color]

But can we write the same on a frame specifying the same action?  
e.g. Something like  
[color=darkred]my\_btn.onRelease,releaseOutSide=function(){  
// statements…  
}[/color]  
[color=black]Now the above code doesn’t run unless we write two different lines for “release” and “releaseOutSide” respectively. Can anybody suggest an alternative?[/color]
