A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Please Help!

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    1

    Please Help!

    I've just started a Flash 8 class in school and I'm in desperate need of some guidance. It's a very simple idea but I just started using the program this week.

    The code for the button symbol called 'left_button' is supposed to read:

    on (release) {
    _root.left_button._x += 5;
    }


    The code for the button symbol called 'right_button' is supposed to read:

    on (release) {
    _root.right_button._x -= 5;
    }

    When I test movie, and click-release the buttons, they are supposed to move left and right but It's not working correctly and I'm not sure why.

    I've attached the file so you can see firsthand the lesson.

    Thank you!
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    dante's inferno
    Posts
    904
    You need to give your clips instance names.

    In the properties inspector right under the object type is a field. <instance Name> you need to put the name of the object in there. ie: for the left button, select the left button on the stage, and in the instance field type: left_button, do the same for the right.

    IMS

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