[FMX] Changing Flash 5 scripts to Flash MX scripts

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! :slight_smile: :slight_smile: :slight_smile: :slight_smile:

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…