View Full Version : creating a grid > attachMovie
ceze
August 8th, 2003, 09:40 AM
hello
I'm trying to create a grid of instances of (74x56) clips, and each one of the created instances must be named and numbered in an order so that it goes from left to right, top to bottom. I have been trying this with attachMovie and duplicateMovie, but unable to figure all out. can someone give me a hint?
thanks
senocular
August 8th, 2003, 09:57 AM
thats a pretty massive grid :-\ 4100+ is a lot of clips to be attaching
spacing = 5;
for (x = 0; x < 74; x++){
for (y = 0; y < 56; y++){
clip = this.attachMovie("id", "gridClip"+this.depth, this.depth++, {_x: x*spacing, _y: y*spacing});
clip.gridposition = {x: x, y: y};
}
}
BTW, the time you spent posting this on the various forums, you could have probably found your answer in a search ;)
ceze
August 8th, 2003, 10:00 AM
thanks. i will try that now. Thanks again.
Voetsjoeba
August 8th, 2003, 10:32 AM
http://www.kirupa.com/developer/actionscript/grid.htm
thoriphes
August 8th, 2003, 10:41 AM
Originally posted by senocular
BTW, the time you spent posting this on the various forums ;)
senocular
August 8th, 2003, 10:55 AM
Yes, thoriphes knows all about the OTHER FORUMS!!!! :a:
pom
August 8th, 2003, 11:03 AM
Haha!! :P I'm so naοve... http://www.actionscript.org/forums/showthread.php3?s=&threadid=32523
thoriphes
August 8th, 2003, 11:03 AM
and how would our beloved sen go about knowing that?
:whistle:
senocular
August 8th, 2003, 11:11 AM
pom told me =)
ceze
August 8th, 2003, 11:16 AM
Since I'm new to actionscript and to programing, I also need to look to a forum full of people (like you all), wiling to answer and help a guy like me. So i might add that this is one of the best. He he!
ok maybee THE BEST OFF ALL.
By the way, i had previously to my post tried the tuturial you mentioned, and it works in a certain sense, but i was unable to convert the ideas mentioned to attachMovie, having each instance organized as i mentioned. It gets a bit messed up in that part. I noticed this wen I requested the list of objects in the preview. So i had to try something else.
Thank you all again
senocular
August 8th, 2003, 11:18 AM
I guess that means its fixed?
YAY kirupa.com are the winners! :P
ceze
August 8th, 2003, 11:25 AM
BTW if you are so curious, i posted also in:
http://www.were-here.com/forum/tm.asp?m=1271006&p=1&tmode=1&smode=1
and
http://webforums.macromedia.com/flash/messageview.cfm?catid=288&threadid=669242
and
http://www.ultrashock.com/
:trout:
ceze
August 8th, 2003, 11:26 AM
copy paste for fun and profit!!
thoriphes
August 8th, 2003, 11:27 AM
ooh, webforums and ultrashock...
must check those out...
senocular
August 8th, 2003, 11:29 AM
you didnt hook up over at ultrashock thor?? :!: They aint so hot overthere anyway. Seems to like 90% bombshock or site checks or copycats
pom
August 8th, 2003, 11:47 AM
Did you take a look at the thread at WH? I love those guys :P
thoriphes
August 8th, 2003, 06:12 PM
lol, he got like 5 different answers.
ceze
August 9th, 2003, 07:28 AM
i didn't try all 5 of them, but i guess that there are many ways of doing things in actionscript. I had tried a couple of them before, none worked. By the way, a very big thanks to senocular. Your sugestion worked perfect!!;)
senocular
August 9th, 2003, 08:41 AM
And for the record, I don't like WH anymore ;)
glad its working for ya ceze :)
pom
August 9th, 2003, 09:06 AM
What's up with WH anyway? A lot of old regulars say they don't like it anymore :-\
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.