I’m trying to create buttons dynamically… i found a thread dealing with how to do this, how to draw lines, add text, etc. but what I really want to do is add a small section of a larger image contained in my library to each button.
To clarify I want to create four buttons dynamically and have each button contain a unique quarter of the the graphic in my library.
post your script that you’re using to create the buttons and i can help
if you’re using a ‘for’ loop then you can just assign the box to contain an image matching its number. i.e. if you have 4 images and 4 boxes then you can tell the for loop to put image 1 in box 1 and so on.
Thanks guys but I must not be conveying my problem accurately. I don’t have a script to post b/c I don’t know if it can be written. I am familiar with and have used the attachMovie method, ‘for’ loops… etc.
my problem is that i’m lazy. I’m creating a puzzle game and each piece is a section of a larger image. the last thing i want to do is divide my image into 25 movie clips manually. what i want to do is us AS to do it for me, that way I won’t go mad and I can create many puzzles with little extra effort.
I’ve since been looking around a bit and no luck… Thanks again for any info.