Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Bradford, UK
    Thanked 68 Times in 67 Posts

    Adding and removing borders at runtime

    I have a bunch of little coloured rectangles with 1px grey borders. The rectangles are movie clips inside a movie clip and they're created with actionscript so they don't have instance names but they do have their own class (which extends movie clip). Drawing them with a 1px border is fine but when they are clicked on I need them to have a 2px border (to highlight which has been selected) and all the others should just have a 1px border.
    I thought the best way to do this would be to create a 2px border of the same size and then move it around to the position of the movie clip but when I trace this.x and this.y from within the onclick of the squares they return 0,0 ?

    Any ideas?
    Last edited by NancyJ; 11-26-2012 at 03:35 PM.


Posting Permissions

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