• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:54
CEST 08:54
KST 15:54
  • 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] Finals Preview: Sweet Victory!9[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
Evil Geniuses - shutting down13ISSL (IntoTheTV x SOOP SC2 League): Premier5Weekly Cups (October 12-18): 5.0.17 era begins1[$1250] International ShieldBattery League55Weekly Cups (October 5-11): Farewell to 5.0.167
StarCraft 2
General
REPORT: StarCraft 2: Remastered In Development Evil Geniuses - shutting down How do you feel about the mass reverts in the 5.0.17 PTR? No more SC2 streamers on team liquid? Daily SC2 Player Grid - feedback wanted
Tourneys
ScienceCraft (October 24-25) - Live Event RSL goes to London! 2026 Offline Finals Nov 21-22 ISSL (IntoTheTV x SOOP SC2 League): Premier Sparkling Tuna Cup - Weekly Open Tournament WORTEX Challenger Series — Open SC2 LAN in Budapes
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps [A] Nemrods 1/4 players [M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
Mutation # 548 Shining Bright The PondCast: SC2 News & Results Mutation # 547 Temple Of Terror Mutation # 546 Catch the Train
Brood War
General
Starcraft player cRuZa Passed away. Young Players Tournament Announced by SOOP Rollback Netcode in Brood War SCHNAIL now supports Remastered BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 2v2v2v2 Tournament [ASL22] Grand Finals [Megathread] Daily Proleagues
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) 50,000-Word Terran Builds Memo 2026-10-22 Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Armies of Exigo - YesYes? General RTS Discussion Thread Dawn of War IV
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Artificial Intelligence Thread US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion!
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
Recent Gifted Posts
Blogs
How Much Genes Contribute to…
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 8432 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
Next event in 2h 6m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Leta 1460
Larva 307
Dota 2
NeuroSwarm245
Other Games
summit1g9948
C9.Mang0287
Livibee158
Sick99
Organizations
Counter-Strike
PGL2585
Other Games
gamesdonequick831
[ Show 9 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2201
Upcoming Events
FEL
2h 6m
Patches Events
6h 6m
AI Arena Tournament
10h 6m
FEL
1d 3h
Sparkling Tuna Cup
1d 3h
Replay Cast
1d 16h
WardiTV Weekly
2 days
IntoTheTV X SOOP
3 days
ByuN vs Lambo
MaxPax vs Bunny
PiGosaur Cup
3 days
The PondCast
4 days
[ Show More ]
Kung Fu Cup
4 days
IntoTheTV X SOOP
5 days
SHIN vs GuMiho
Clem vs Classic
WardiTV Invitational
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Acropolis #5 - GSC
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
BSL Season 23
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
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

IPSL Winter 2026-27
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
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.