;

PDA

Click to See Complete Forum and Search --> : actionscript, so far I hate it!


puke
05-22-2007, 03:10 PM
Can anyone tell me why this isn't working? I'm learning actionscript and my first lesson isn't working. I made a movie clip with the instant name 'mcQuit'.

mcQuit.onPress = function():Void {
trace("Why isn't this working?")
};

In this case the lessons from Lynda.com are created from MX and I'm using 8, is there an actionscript conflict here?

I have a single frame movie with the movie clip instant one the one and only frame.

rdoyle720
05-22-2007, 06:06 PM
Works just fine for me here. Make sure you have your Publish Settings set to Actionscript 2 and you're doing Control>Test Movie to test the movie.

Schfifty Five
05-22-2007, 06:21 PM
Can you upload the fla?

silentweed
05-22-2007, 07:10 PM
make sure the code is not attached to the movieclip itself... give your movieclip an instance name of mcQuit. The code should be in a frame on the same timeline as the movieclip (but not attached to the movieclip itself)