• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:26
CEST 14:26
KST 21:26
  • 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
[ASL22] Ro16 Preview: Rough Waters8[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244
Community News
Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism0Official StarCraft website teases new content ahead of BlizzCon?111Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3New 3v3 BGH Ladder (and more) on ShieldBattery!46
StarCraft 2
General
Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game Balance hotfix patch 5.0.16b (July 16) SC4ALL: II Winner Will Earn a Spot at HSC 30! Weekly Cups (August 24-30): Patches' balance mod takes over
Tourneys
Sea Duckling Open (Global, Bronze-Diamond) 2026 GSTL Announcement Sparkling Tuna Cup - Weekly Open Tournament Stellar Fest TWO the Moon (Dec 16-20) IntoTheTV X SOOP SC2 League : Weekly & Monthly
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 542 The Ascended Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This
Brood War
General
Pros React To: Calm's Big Brain Play Vs Mini Official StarCraft website teases new content ahead of BlizzCon? New 3v3 BGH Ladder (and more) on ShieldBattery! ASL22 General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL22] Ro16 Group B [ASL22] Ro16 Group A [ASL22] Ro24 Group F [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Replay Review Process - What do you do? Game Theory for Starcraft
Other Games
General Games
EVE Corporation Nintendo Switch Thread Diablo IV [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine UK Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
F* the Children and Get Off …
TrAiDoS
Dreaming of BW patches (mod…
c3rberUs
Regacy Esports: The Bh…
regacyesports
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 7862 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
CA10835 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
GSL
11:00
2026 GSTL: Main Stage Day 5
IntoTheiNu 835
CranKy Ducklings SOOP159
Rex39
LiquipediaDiscussion
Afreeca Starleague
10:00
Ro16, Group B
Leta vs ggaemo
Jaedong vs Queen
Afreeca ASL 14941
StarCastTV_EN349
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SHIN 79
ByuN (SOOP) 76
Rex 39
Zoun (SOOP) 6
Trap 6
StarCraft: Brood War
Britney 53452
Calm 16926
Bisu 6717
BeSt 1483
EffOrt 1464
Hyun 702
Light 385
Zeus 268
hero 218
Stork 194
[ Show more ]
Rush 172
Mind 122
Barracks 90
ToSsGirL 77
Larva 71
soO 49
HiyA 43
Terrorterran 38
Hm[arnc] 28
Sharp 25
Shine 24
Icarus 19
sSak 17
SilentControl 15
Noble 12
JulyZerg 11
Dota 2
qojqva1637
Dendi1624
420jenkins312
Counter-Strike
dupreeh391
markeloff79
edward61
Other Games
B2W.Neo969
Lowko508
crisheroes337
XaKoH 276
hiko187
Hui .153
Liquid`LucifroN142
KnowMe109
Organizations
StarCraft: Brood War
UltimateBattle 292
Other Games
BasetradeTV12
Algost 5
[ Show 10 non-featured ]
StarCraft 2
• StrangeGG 45
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1767
Upcoming Events
PiGosaur Cup
11h 34m
Kung Fu Cup
22h 34m
Replay Cast
1d 11h
The PondCast
1d 21h
KCM Race Survival
1d 21h
Escore
2 days
IntoTheTV X SOOP
2 days
CranKy Ducklings
3 days
Sparkling Tuna Cup
4 days
Shopify Rebellion Sundays
5 days
Spirit vs Mixu
Clem vs TBD
[ Show More ]
RSL Revival
5 days
Replay Cast
5 days
Afreeca Starleague
5 days
WardiTV Weekly
5 days
Afreeca Starleague
6 days
GSL
6 days
Liquipedia Results

Completed

Proleague 2026-09-02
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
Acropolis #5 - TRS
RSL Revival: Season 6
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Escore Tournament S3: King of Kings
Acropolis #5 - GSA
Blizzard Classic Cup 2026
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
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.