Search code examples
flashactionscript-3actionscriptadobeflash-cs4

Trouble with ActionScript 3, not working, and i have no idea why, flash CS4


I'm very new to ActionScript 3, and I've followed this toturial on adobe TV. But I don't get it to work. The thing is that I want the box to move left/right when I click the buttons, but nothing happens.

You can download the .fla file here:

http://www.habitats.no/files/AC3.zip

Thanks.


Solution

  • You need to name your instances. Click on one of the movie clips on the stage and bring up the properties window, you should see an input for instance name. The way you've coded it the instance name should be the same as the clips name i.e. mc_box.