• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:09
CET 18:09
KST 02:09
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Team Liquid Map Contest #22 - Presented by Monster Energy5ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13
Community News
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool30Weekly Cups (March 9-15): herO, Clem, ByuN win32026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains18
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Team Liquid Map Contest #22 - Presented by Monster Energy Serral: 24’ EWC form was hurt by military service Weekly Cups (March 9-15): herO, Clem, ByuN win Weekly Cups (August 25-31): Clem's Last Straw?
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament WardiTV Team League Season 10 KSL Week 87 [GSL CK] #2: Team Classic vs. Team Solar
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion Gypsy to Korea JaeDong's form before ASL BGH Auto Balance -> http://bghmmr.eu/ BSL Season 22
Tourneys
[BSL22] Open Qualifiers & Ladder Tours [Megathread] Daily Proleagues Small VOD Thread 2.0 IPSL Spring 2026 is here!
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Path of Exile Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Canadian Politics Mega-thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Mexico's Drug War
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations Cricket [SPORT]
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2130 users

ActionScript 3 help!! :[

Blogs > Day[9]
Post a Reply
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
Last Edited: 2008-10-26 08:23:49
October 26 2008 08:20 GMT
#1
The overarching idea is that a user inputs a number and my program generates an abstract image based upon this number. Artistically, I'm set. I know what I want the images to look like etc. Now comes my technical difficulties.

I figured the best way to go about doing this was to create a series of small tiles (32x32 pixels) that would arrange themselves to form the image. So, my basic pseudocode idea is to do the following

1) get input number
2) take the input number to generate a 1 dimensional array. each item in the array represents a tile (all tiles are pregenerated)
3) we iterate along the array. in each iteration we:
----a) create an empty movie clip
----b) import the appropriate tile image into the movie clip
----c) place this movie clip on the stage
----d) scoot over 32 pixels so we can create the next movieClip
4) the entire image should be completed at this point

Sadly, i'm having a HUGE amount of trouble with #3

I basically have something like
--------------------------------------------------
var clipOne:MovieClip = new MovieClip();
clipOne.x = 0;
clipOne.y = 0;

stage.addChild(clipOne);

var loader:Loader = new Loader();
clipOne.addChild(loader);
loader.load(new URLRequest("Tile1.swf");
--------------------------------------------------
When i do that, the first tile loads totally fine. However, I have no idea how to get the 2nd tile to load without creating an entirely new loader. can i use the same loader??? that would help a fuckton.

blagh i'm so lost :[. this is due on tuesday, so hopefully someone can help me before then T.t.t.t.T

-Sean

***
Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
Guss
Profile Blog Joined November 2007
Sweden712 Posts
October 26 2008 08:43 GMT
#2
call obama
Bisu[Shield] FIGHTING!
LosingID8
Profile Blog Joined December 2006
CA10829 Posts
October 26 2008 08:50 GMT
#3
T_T gl
ModeratorResident K-POP Elitist
Elvin_vn
Profile Blog Joined March 2004
Vietnam2038 Posts
Last Edited: 2008-10-26 11:24:33
October 26 2008 11:23 GMT
#4
dude post ur question in other related web-sites
u'll get help more quickly than in TL
do not agrue with idiots, they will pull you down to their level and beat you with their experiences
Ethenielle
Profile Blog Joined December 2005
Norway1006 Posts
October 26 2008 13:47 GMT
#5
do your tiles have to be in separate .swf files? I don't have much experience with the loader class so I can't help you there, but it'd be easy to make the code if the tiles were available in the library instead.
Theres a fine line between fishing and just standing on the shore like an idiot.
overpool
Profile Joined April 2008
United States191 Posts
Last Edited: 2008-10-26 17:42:30
October 26 2008 17:25 GMT
#6
It's been a long time since I've used ActionScript but I'm a little confused... Unless you're very concerned about creating extra objects (I think ActionScript has auto garbage collection...), why can't you just use a loop? ie:

(code)
y=0;
x=0;
NUM_CLIPS=10; // or whatever

for (i=0;i<NUM_CLIPS;i++, x+=32){
    var currClip:MovieClip = new MovieClip();
    currClip.x=x;
    currClip.y=y;
    stage.addChild(currClip);

    var loader:Loader = new Loader();
    currClip.addChild(loader);
    loader.load(new URLRequest("Tile" + i + ".swf");
}



edit: magic to keep formatting
yay i love tl events
Please log in or register to reply.
Live Events Refresh
LAN Event
16:30
StarCraft Madness
Liquipedia
PSISTORM Gaming Misc
15:55
FSL semifinals: PTB vs ASH
Freeedom28
Liquipedia
uThermal 2v2 Circuit
15:00
Bonus Cup #6
uThermal399
SteadfastSC234
IndyStarCraft 155
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
uThermal 399
SteadfastSC 234
Liquid`TLO 208
IndyStarCraft 155
JuggernautJason55
StarCraft: Brood War
Calm 6538
Horang2 817
EffOrt 704
Free 277
ggaemo 200
hero 123
Pusan 98
Mind 91
Rock 23
Hm[arnc] 19
[ Show more ]
IntoTheRainbow 19
LancerX 17
SilentControl 9
ivOry 7
eros_byul 1
Dota 2
monkeys_forever1
League of Legends
JimRising 451
Counter-Strike
fl0m4215
Heroes of the Storm
Khaldor559
Liquid`Hasu410
Trikslyr78
MindelVK14
Other Games
singsing2372
FrodaN1456
Grubby1320
B2W.Neo855
byalli295
Lowko207
Hui .149
KnowMe62
Organizations
Other Games
gamesdonequick319
Dota 2
PGL Dota 2 - Main Stream164
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• Airneanach90
• poizon28 46
• Adnapsc2 20
• printf 5
• OhrlRock 1
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Michael_bg 5
• Pr0nogo 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV1067
League of Legends
• Jankos2128
• Shiphtur220
Other Games
• imaqtpie126
Upcoming Events
BSL
2h 51m
RSL Revival
16h 51m
herO vs MaxPax
Rogue vs TriGGeR
BSL
1d 2h
Replay Cast
1d 6h
Replay Cast
1d 15h
Afreeca Starleague
1d 16h
Sharp vs Scan
Rain vs Mong
Wardi Open
1d 18h
Monday Night Weeklies
1d 23h
Sparkling Tuna Cup
2 days
Afreeca Starleague
2 days
Soulkey vs Ample
JyJ vs sSak
[ Show More ]
Replay Cast
3 days
Afreeca Starleague
3 days
hero vs YSC
Larva vs Shine
Kung Fu Cup
3 days
Replay Cast
4 days
KCM Race Survival
4 days
The PondCast
4 days
WardiTV Team League
4 days
Replay Cast
5 days
WardiTV Team League
5 days
RSL Revival
6 days
Cure vs Zoun
WardiTV Team League
6 days
Liquipedia Results

Completed

Proleague 2026-03-20
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
CSL Elite League 2026
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
CSL 2026 SPRING (S20)
CSL Season 20: Qualifier 1
Acropolis #4
IPSL Spring 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.