A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: actionscript, so far I hate it!

  1. #1
    Senior Member
    Join Date
    Apr 2003
    Posts
    126

    actionscript, so far I hate it!

    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.

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    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.

  3. #3
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    Posts
    698
    Can you upload the fla?
    Last edited by Schfifty Five; 05-22-2007 at 06:26 PM.

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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)
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center