The Image Loader

Wed, Mar 10, 2010

ActionScript



This is part 4 of a Flash picture gallery tutorial

Now that we have our XML loaded, let’s browse the nodes, and place thumbnails on stage using an Image Loader and the AddChild method.

HERE IS THE SOURCE CODE!

//The ActionScript 3.0 Image Loader for Picture Gallery
// Avraham Saltoun
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList

var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest (“data/XMLData.xml”));

xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);

function xmlLoaded (event:Event) {

xml =XML(event.target.data);
xmlList =xml.children();

for (var i:int =0; i < xmlList.length(); i++) {

imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
imageLoader.x =25;
imageLoader.y = i * 150 +25;
addChild(imageLoader);

}}

Related Articles:

, , , , , , , , ,

1,768 Responses to “The Image Loader”

  1. wkohxwpn Says:

    xanax lortab adipex adipex with no prescription for cheap http://www.wnet.co.il/forum/showthread.php?t=304087 adipex glaucoma adipex no prescription mastercard

  2. kdcurbku Says:

    ativan daily maximum dose ativan and 5htp http://www.wnet.co.il/forum/showthread.php?t=384590 ativan vs lorazepam sleep dosage of ativan for sleep

  3. azhcudll Says:

    90 xanax can xanax kill http://phpdirector.co.uk/community/showthread.php?tid=10905 xanax 0.5 retard doctor wont prescribe xanax

  4. cmltiqel Says:

    how much does levitra cost venta levitra http://www.wnet.co.il/forum/showthread.php?t=304134 levitra sales order discount levitra compare

  5. szvcyirj Says:

    zolpidem tartrate online pharmacy zolpidem 79 e pill http://www.wnet.co.il/forum/showthread.php?t=441496 intermezzo zolpidem tartrate sublingual tablets zolpidem recommended

  6. qapltyub Says:

    co zopiclone used zopiclone 2 years http://www.wnet.co.il/forum/showthread.php?t=441498 zopiclone 5mg tablets buy zopiclone in uk

  7. zumlsled Says:

    can i order xanax online xanax vs buspar http://www.wnet.co.il/forum/showthread.php?t=32593 make xanax stronger xanax levels

  8. fqogwtbo Says:

    is xanax good for panic attacks how much is xanax without insurance http://www.akillibebek.com/ustunzekalilarveyetenekliler/index.php?topic=43994.0 xanax for weight loss xanax serotonina

  9. vzirtobr Says:

    cialis or viagra cialis 5mg daily dose http://www.wnet.co.il/forum/showthread.php?t=304114 tadalafil cialis from india cialis tadalafil 10mg

  10. wbxyekqd Says:

    buy zolpidem tartrate india zolpidem tartrate dose http://phpdirector.co.uk/community/showthread.php?tid=11274 zolpidem recreational zolpidem tartrate 5 mg pill

  11. igfoidbz Says:

    ambien thyroid taking ambien and ativan http://phpdirector.co.uk/community/showthread.php?tid=11258 compare lunesta and ambien ambien and vertigo

  12. uimpsygg Says:

    ativan compatible adderall and ativan taken together http://www.wnet.co.il/forum/showthread.php?t=348623 ativan vs valium ativan recreational doses

  13. wzttkwxe Says:

    zolpidem tartrate teva 20 mg zolpidem doses http://www.wnet.co.il/forum/showthread.php?t=331707 zolpidem mz2 zolpidem jet lag

  14. btxofrmi Says:

    meridia medication over the counter meridia http://www.wnet.co.il/forum/showthread.php?t=31218 fda meridia meridia tabletki

  15. uhggaeju Says:

    modalert thailand modalert weight http://www.wnet.co.il/forum/showthread.php?t=390640 united pharmacies modalert review modalert for sale philippines

  16. byncvmnx Says:

    cialis brand online tadalafil cialis from india http://www.wnet.co.il/forum/showthread.php?t=24867 cialis dose cialis 5 mg generico

  17. artiwbhk Says:

    buy xenical online cheap xenical diet pill side effects http://www.wnet.co.il/forum/showthread.php?t=267480 xenical meridia medicament xenical 120 mg

  18. udtwhzra Says:

    modalert sun modalert in uk http://www.wnet.co.il/forum/showthread.php?t=393809 modalert vomiting modalert amphetamine

  19. dwhdfinl Says:

    precio xenical espana xenical 120 mg precio http://phpdirector.co.uk/community/showthread.php?tid=6795 effets secondaires xenical order xenical online

  20. yszrvafa Says:

    reductil side effects reductil 5mg http://www.wnet.co.il/forum/showthread.php?t=238979 comprar reductil 15mg reductil

  21. yeoccgqi Says:

    zopiclone medication zopiclone quantitation http://www.wnet.co.il/forum/showthread.php?t=325458 buying zopiclone tablets zopiclone vs lunesta

  22. iwpaccah Says:

    modafinil australia buy modafinil secundarios http://www.wnet.co.il/forum/showthread.php?t=78238 provigil generic name modafinil modafinil rezeptfrei bestellen

  23. dkcciyyf Says:

    lorazepam farmacocinetica lorazepam relajante muscular http://www.wnet.co.il/forum/showthread.php?t=64513 ativan sublingual 0.5mg lorazepam lorazepam test

  24. hlvqubnv Says:

    xanax cause constipation bar of xanax http://phpdirector.co.uk/community/showthread.php?tid=11272 xanax tablet xanax bars high

  25. irpnidpy Says:

    ambien zolpidem 10 mg tablet zolpidem liver disease http://www.wnet.co.il/forum/showthread.php?t=25600 buy zolpidem now zolpidem tar

  26. fdaprrtd Says:

    modafinil 100 mg daily modafinil generic modalert http://www.wnet.co.il/forum/showthread.php?t=197073 modafinil multiple sclerosis treatment modafinil chronic pain

  27. iccnufxi Says:

    valium diazepam 10 mg valium c’est quoi http://phpdirector.co.uk/community/showthread.php?tid=11271 oral valium dosage dosage valium

  28. wxhhwlpc Says:

    diazepam y alprazolam diazepam generic http://support.roylaurie.com/index.php/topic,86389.0.html is diazepam a pain killer el diazepam puede matar

  29. samsung 1080p hdtv Says:

    Your article has brought forward some very original and unique thoughts. I like how you expressed your points in an easy to read format. Thank you for writing such clear and concise material. Good reading. http://www.samsung1080phdtv.net/

  30. uoavvpee Says:

    vardenafilo levitra levitra 10 http://www.wnet.co.il/forum/showthread.php?t=32570 levitra b.c canada buy levitra online

  31. rnjwvsti Says:

    reductil sibutramine sibutramin reductil http://www.wnet.co.il/forum/showthread.php?t=31227 compro reductil reductil 15 mg acheter

  32. sguofyrc Says:

    ambien kids sleep without ambien http://www.wnet.co.il/forum/showthread.php?t=32557 ambien piss test ambien and lunesta

  33. bfcbfzik Says:

    ultracet 37.5 mg 325mg ultracet dosage instructions http://phpdirector.co.uk/community/showthread.php?tid=6367 ultracet oral tablet ultracet pain relief

  34. rgssoadc Says:

    buy rivotril rivotril vs alprazolam http://www.wnet.co.il/forum/showthread.php?t=25589 rivotril depression buy rivotril online

  35. ebkhliye Says:

    provigil vyvanse provigil comparison http://www.charrly.net/forum/index.php/topic,100738.0.html provigil users forum provigil skin reactions

  36. izgacima Says:

    xanax s 900 pink xanax bars http://www.wnet.co.il/forum/showthread.php?t=378959 xanax for anger management can’t sleep without xanax

  37. ufrmomqx Says:

    modafinil online review 400 mg modafinil http://www.wnet.co.il/forum/showthread.php?t=287578 modafinil handelsnamen modafinil and drug class

  38. rnosdxln Says:

    aparelhos de som musica de racha de som http://www.wnet.co.il/forum/showthread.php?t=150071 dispositivo de som dispositivos de som

  39. avhfnnnn Says:

    diazepam 10 mg iv diazepam nhs http://www.wnet.co.il/forum/showthread.php?t=39301 diazepam cheap diazepam diastat

  40. yrbwmojk Says:

    tylenol 3 and tramadol together soma and tramadol http://www.wnet.co.il/forum/showthread.php?t=89934 tramadol ultram erectile dysfunction tramadol hcl online pharmacy

  41. kgdjhhie Says:

    alprazolam orange pill alprazolam 106 s yellow http://www.wnet.co.il/forum/showthread.php?t=357109 alprazolam poisoning case reports alprazolam 25 mg round white

  42. Sohbet Odalari Says:

    very very nice good

  43. cocktail masterclass Kent Says:

    I do agree with all of the ideas you have introduced on your post. They are very convincing and will certainly work. Nonetheless, the posts are too short for novices. Could you please prolong them a little from next time? Thanks for the post.


Trackbacks/Pingbacks

  1. Martial arts says:

    Sources…

    [...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……

  2. Informative and precise…

    Its difficult to find informative and accurate info but here I noted…

  3. Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  4. Social Media says:

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  5. Websites we think you should visit…

    [...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]……

  6. [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  7. Bored at work…

    I like to surf around the online world, regularly I will just go to Digg and read and check stuff out…

  8. [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  9. yoga schools says:

    Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  10. Related……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  11. Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  12. News info…

    I was reading the news and I saw this really cool info…

  13. head injury says:

    [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  14. Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  15. [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  16. Links…

    [...]Sites of interest we have a link to[...]……

  17. iasbet says:

    Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  18. Visitor recommendations…

    [...]one of our visitors recently recommended the following website[...]……

  19. Hemp Protein says:

    Related……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  20. HGH says:

    Sources…

    [...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……

  21. [...]The information mentioned in the article are some of the best available [...]……

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  22. draw anime says:

    Yahoo results…

    While browsing Yahoo I discovered this page in the results and I didn’t think it fit…

Leave a Reply

Security Code:

Free PageRank Checker

$7.49 .Com! Score Savings Cartoon Smart Tutorials

oDesk Certified Action Script Programmer oDesk Certified Adobe Flash CS3 Designer oDesk Certified Adobe Photoshop 6.0 Designer

3,024
Unique Visitors
Previous 30 Days
Powered By Google Analytics