# rollOut and dragOut question

**URL:** <https://forum.kirupa.com/t/rollout-and-dragout-question/203675>\
**Category:** flash\
**Created:** [October 13, 2006, 1:19am UTC](https://forum.kirupa.com/t/rollout-and-dragout-question/203675 "2006-10-13T01:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poco](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Poco](https://forum.kirupa.com/u/Poco)\
**Post date:** [October 13, 2006, 1:19am UTC](https://forum.kirupa.com/t/rollout-and-dragout-question/203675/1 "2006-10-13T01:19:48Z")

</div>

Hi everybody,

I guess this is going to be easy. It is possible to make  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR][COLOR=#000000]([/COLOR]rollOut, dragOut[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR][COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

Is it also possible to write these two actions at once in this syntax?:  
ActionScript Code:  
[FONT=Courier New][LEFT]instance.[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]…[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

I guess it is not, so I have to copy the very same code for instance.onRollOut and instance.onDragOut. Is it so? Thanks in advance!

Poco
