# \[FMX\] Changing Flash 5 scripts to Flash MX scripts

**URL:** <https://forum.kirupa.com/t/fmx-changing-flash-5-scripts-to-flash-mx-scripts/119088>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 11:13am UTC](https://forum.kirupa.com/t/fmx-changing-flash-5-scripts-to-flash-mx-scripts/119088 "2004-08-11T11:13:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![head\_amp\_shoulders](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@head\_amp\_shoulders](https://forum.kirupa.com/u/head_amp_shoulders)\
**Post date:** [August 11, 2004, 11:13am UTC](https://forum.kirupa.com/t/fmx-changing-flash-5-scripts-to-flash-mx-scripts/119088/1 "2004-08-11T11:13:25Z")

</div>

Hi guys!  
Need help here. I’ve extracted part of this code from a Flash 5 guide book. but when i type it into Flash MX it just won’t work. Here’s the code extract

> ```
> On (Press)
> 
> ```

```
                      Duplicate Movie Clip ("/RippleAnimInstance","RippleAnimInstance" & i, i)
                      Set Property ("/RippleAnimInstance" & i, X Position) = _x
                      Set Property ("/RippleAnimInstance" & i, Y Position) = _y
                      Begin Tell Target ("/RippleAnimInstance" & i)
                      Go to and Play (1)
                      End Tell Target
                      Set Variable: "i" = i + 1
                    End On

```

Any tips and guide on how to change it? Thanks in advance! 🙂 🙂 🙂 🙂

---

<div class="post-metadata">

**Author:** ![Mediamonkey](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@Mediamonkey](https://forum.kirupa.com/u/Mediamonkey)\
**Post date:** [August 11, 2004, 6:03pm UTC](https://forum.kirupa.com/t/fmx-changing-flash-5-scripts-to-flash-mx-scripts/119088/2 "2004-08-11T18:03:38Z")

</div>

```auto
on (press) {
	duplicateMovieClip(_parent.RippleAnimInstance, "RippleAnimInstance"+i, i);
	_parent["RippleAnimInstance"+i]._x = this._x;
	_parent["RippleAnimInstance"+i]._y = this._y;
	_parent["RippleAnimInstance"+i].gotoAndPlay(1);
	i++;
}

```

“\_parent” is a path below your mc that carries this script.  
“this” refers to the mc itself, just so you’re clear on that…
