A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Need help making map build clickable

  1. #1
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392

    Need help making map build clickable

    I am feeling very very stupid today. I don't know why I am having such a problem with this. I know the issue is simple and why I can't find help in the search (too easy to post about, I guess)

    Anyway, I am using CS3, with simple AS2 code to build a map of tiles. Using the build array method that is so common.

    So I have my map, I build the map on the screen and it places the correct frame of the tile MC in the map as it should.

    Now that I have the grid full of tiles I want to make them clickable. Thats it. Being able to click the tiles once they are placed.

    Why can I not get the right code?

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  2. #2
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    when you're adding a tile, just use

    [whatever the tile].onRelease=function(){
    //stuff to do on click
    }

  3. #3
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392
    Thanks for the assist. I was trying exactly that. For some reason it wouldn't work on external engine .as file, when I moved it into the map build code it works fine.

    Thanks again.

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

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