# Applying transitition to function

**URL:** <https://forum.kirupa.com/t/applying-transitition-to-function/148772>\
**Category:** Uncategorized\
**Created:** [May 23, 2005, 2:55pm UTC](https://forum.kirupa.com/t/applying-transitition-to-function/148772 "2005-05-23T14:55:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcwilde1](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jcwilde1](https://forum.kirupa.com/u/jcwilde1)\
**Post date:** [May 23, 2005, 2:55pm UTC](https://forum.kirupa.com/t/applying-transitition-to-function/148772/1 "2005-05-23T14:55:47Z")

</div>

I have a transition that works fine when I put it on a frame with my movie clip but I am trying to make it into a function. my movie clip instances are called mc1 thru mc5. The code is

function (BounceEffect){  
mx.transitions.TransitionManager.start(this[“mc” + q], {type:mx.transitions.Wipe, direction:0, duration:1, easing:mx.transitions.easing.Bounce.easeOut, param1:empty, param2:empty});

but when I write  
BounceEffect();  
q = 1;

in the frame with the movie clip it doesn’t work, also the value q stays undefined.

Any ideas??
