# Simple AS2 coded dressup game question

**URL:** <https://forum.kirupa.com/t/simple-as2-coded-dressup-game-question/326285>\
**Category:** flash\
**Created:** [December 5, 2011, 6:27am UTC](https://forum.kirupa.com/t/simple-as2-coded-dressup-game-question/326285 "2011-12-05T06:27:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 5, 2011, 6:27am UTC](https://forum.kirupa.com/t/simple-as2-coded-dressup-game-question/326285/1 "2011-12-05T06:27:22Z")

</div>

Hello there~  
I just got Flash CS4, I’m not familiar with coding at all, and I’m trying to make a drag and drop dressup game. I’ve found tutorials for using AS2 coding to do this, but I keep getting an error.

Here is what I put in after “creating a symbol,” naming it “cap,” making it into a movie clip, switching the actions frame to AS1 & 2:

```auto
on (press) {
	startDrag ("cap");
}
on(release, releaseOutside){
	stopDrag("cap");
}

```

Anyone see anything wrong with it? I keep getting this error about line 1:

```auto
1087: Syntax error: extra characters found after end of program.

```

Help? ; n;
