Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using variables to determine where library items will appear

Status
Not open for further replies.

phej

Technical User
Feb 8, 2005
22
US
I have a client who sent me an fla of a "Memory" game he wanted customized to fit his site. Lord knows why he didn't have the developer who created the flash for him in the first place do this, but eh... I easyily switched out the graphics and thought that was that.

Now he wants to make the entire movie bigger. I have the bigger graphics in place, but the actionscript is a bit out of my league. It's using variables to set where the grid is placed on the stage and now that the graphics are bigger the pieces are on top of each other. In the AS Code there is the line:

// sets the x distance
m = "25";
// sets the number of pixels the duplicated images will be away from each other on the x/y axis
x = m;

I have tried changing m to be a higher number or changing the value for x, but it only moves the top line of graphics, not the space in between the graphics. To see the original game click here.

Any help you can give would be awesome. Oh, and I can post the fla if that will help.

Thanks...
 
I don't know.

Like I said this code was given to me by the client who had someone else develop it. I'm just trying to get the graphics in the layout a little more spaced out.

I know my way around flash, but I am hardly a AS expert and for this task I'm beyond my level of knowledge. Do you know why they would do that?

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top