• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:33
CET 16:33
KST 00:33
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win3Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
Did they add GM to 2v2? Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win ComeBackTV's documentary on Byun's Career ! RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2003 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
CA10828 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
WardiTV 2025
13:00
Playoffs
herO vs SpiritLIVE!
Scarlett vs Gerald
Rogue vs Shameless
MaNa vs ShoWTimE
Nice vs Creator
WardiTV1441
ComeBackTV 698
TaKeTV 387
IndyStarCraft 232
Rex139
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko480
IndyStarCraft 232
Rex 135
ProTech54
BRAT_OK 43
DivinesiaTV 7
StarCraft: Brood War
Britney 35510
Sea 3928
Calm 2291
Mini 1053
Horang2 906
Larva 877
EffOrt 820
Soma 706
ZerO 503
GuemChi 407
[ Show more ]
Snow 372
firebathero 313
Stork 310
hero 248
Rush 219
Sharp 206
BeSt 137
PianO 118
Hyun 88
JYJ 56
Light 50
Pusan 47
sorry 38
Mind 38
Mong 36
Sea.KH 34
Killer 33
Movie 27
Aegong 22
soO 22
Terrorterran 22
scan(afreeca) 12
Shine 11
Dota 2
Gorgc6638
singsing4790
qojqva2589
Dendi1011
syndereN235
Counter-Strike
byalli1130
oskar137
markeloff131
Other Games
B2W.Neo1218
Beastyqt611
crisheroes359
Hui .339
mouzStarbuck168
QueenE88
Livibee74
DeMusliM57
Mew2King52
Trikslyr29
ZerO(Twitch)24
nookyyy 16
Organizations
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV588
League of Legends
• Nemesis2296
• TFBlade738
Upcoming Events
WardiTV 2025
19h 27m
ByuN vs TBD
Clem vs TBD
OSC
22h 27m
CranKy Ducklings
1d 18h
WardiTV 2025
1d 19h
SC Evo League
1d 20h
Ladder Legends
2 days
BSL 21
2 days
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
2 days
Ladder Legends
3 days
BSL 21
3 days
StRyKeR vs TBD
Bonyth vs TBD
[ Show More ]
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
4 days
WardiTV Invitational
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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 © 2025 TLnet. All Rights Reserved.