# Flash CS3 - Alternate for onClipEvent?

**URL:** <https://forum.kirupa.com/t/flash-cs3-alternate-for-onclipevent/285604>\
**Category:** flash\
**Created:** [April 2, 2009, 8:36pm UTC](https://forum.kirupa.com/t/flash-cs3-alternate-for-onclipevent/285604 "2009-04-02T20:36:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shorescores](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@shorescores](https://forum.kirupa.com/u/shorescores)\
**Post date:** [April 2, 2009, 8:36pm UTC](https://forum.kirupa.com/t/flash-cs3-alternate-for-onclipevent/285604/1 "2009-04-02T20:36:17Z")

</div>

Hello - I have 5 image segments on a single PNG file. I am trying to get each of the 5 segments to “fly in” left and right and be revealed inside of a mask. It works, BUT only if I refer to a very old tutorial using onClipEvent, where the ActionScript is placed on the image’s MC instance name (messy!). For some reason, I can only get this to work if I publish in Flash 6. Using ActionScript 2.0, I am trying to publish this as a version 8 SWF. Not sure what is deprecated, but onClipEvent seems suspect.

I have tried (and failed) using onEnterFrame. The buttons no longer get that PNG to move left and right.

It might be easier to see it, than explain what I have going on…

Attached is a zipped file with 2 FLAs:  
tar\_Flash6.fla (old AS code)  
tar\_Flash8.fla (new attempt at AS = not working)

Any help at all is certainly appreciated!

- shorescores
