Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-21-2004, 02:11 PM   #1
Join Date: Sep 2002
Location: Toronto, ON
Posts: 2,068
Exclamation Help with creating a Object Grid Prototype

Hi all,

I was wondering if anyone would be able to help create a Object grid prototype.

What it should do:
This prototype will create a grid of specified Objects and allow addtions to the grid to create a custom complex grid system.

To create a simple grid is not entirely difficult (with just duplicating an object)
But after this has completed, there should be an variable object containing all the data in that grid.
then calling the function again with the same grid name you would be adding to the grid, not creating a new one.

Does this make any sense?

Visual Example:
call something like
// new Grid(Name, Cells, Cols, Rows, Clip)
myGrid = new Grid('grid1', 5, 2, 3, function () {
   // Dynamically create a movieclip with stuff in it to act as the grid cell
That would create this: http://www.zaxisnet.com/misc/2x3_1.gif

Then you wanted to add to the same grid
// add(Cells, Cols, Rows, StartingCol, StartingRow, Clip)
myGrid.add(2, 1, 2, FirstUnusedCol, FirstUnusedRow, function () {
   // Dynamially create movieclip or reference the function
Then it should end up like this:http://www.zaxisnet.com/misc/2x3_2.gif

Would anyone be able to help me create this....I've been trying for a while now, with no success.

Greatly appreciated.

o Please do a search before you post
o Please use the [ as][ /as] tag for your code (so we can read it clearly)
Slowburn is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:06 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.