Loading Thumbnails

Hi. I'm creating a photo gallery, with thumbnails and a
holder. I have several sections with different photos, and i want
the thumbnails to be loaded in the moment a section is selected.
Can anyone help me, please?

You can do it with the MovieClipLoader class, so check that
out in the help files and give a couple of the examples a try. You
can listen for the completion of one load and then start the next
'loadClip' cycle. For something a little more sophisticated for
bulk loading...you might want to read David Stiller's articles on
using a 'MultiLoader' class:
http://www.quip.net/blog/2007/flash/actionscript-20/tracking-multiple-files-part1
http://www.quip.net/blog/2007/flash/actionscript-20/tracking-multiple-files-part2

Similar Messages

  • Dynamically Load Thumbnails To Horizontal Movieclip?

    I'd like to dynamically load thumbnails into a horizontal movieclip at the bottom of an image gallery to then allow me to load an image by clicking the thumbnails. I found a tutorial to help me load the thumbnails to the stage but I am not sure how to load them into the thumbs movieclip. Here is the code I am using:
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xml/murals.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event):void
        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 = i * 175 + 25;     // <----- Also, I don't seem to understand how to space the thumbnails using this code.
            imageLoader.y = 5;
            addChild(imageLoader);
    Thanks in advance!
    -Dan

    I wasn't sure if I should make a new discussion for this or not so I'm just going to post it here.
    Alright. I finally found a tutorial that works for what I am trying to do. The thumbs load on a grid and when I click on the thumb they load in the loader. Now I am having trouble removing them. The tutorial has the remove function on the loaded large image so when you click that it removes itself. I would like so that when you click on the a thumb the current image will unload and the thumb that is clicked on will load but can't figure out how to get it to do that. I figured I'd just add a CLICK listener for the "removeFull" function to the "callFull" function but I think it cancels itself out.
    Here is the code I am using: (the code to load and unload is toward the bottom)
    stop();
    var columns:Number = 2;
    var my_x:Number = 25;
    var my_y:Number = 75;
    var my_thumb_width:Number = 65;
    var my_thumb_height:Number = 65;
    var my_images:XMLList;
    var my_total:Number;
    var container_mc:MovieClip;
    var x_counter:Number = 0;
    var y_counter:Number = 0;
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("xml/gallery.xml"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML (e:Event):void{
        var myXML:XML = new XML(e.target.data);
        my_images = myXML.IMAGE;
        my_total = my_images.length();
        createContainer();
        callThumbs();
    function createContainer():void{
        container_mc = new MovieClip();
        container_mc.x = my_x;
        container_mc.y = my_y;
        addChild(container_mc);
    //The large image loads when the thumb is clicked on.
        container_mc.addEventListener(MouseEvent.CLICK, callFull);
        container_mc.buttonMode = true;
    function callThumbs():void{
        for (var i:Number = 0; i < my_total; i++){
            var thumb_url = my_images[i].@THUMB;;
            var thumb_loader = new Loader();
            thumb_loader.load(new URLRequest(thumb_url));
            thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
            thumb_loader.name = i;
            thumb_loader.x = (my_thumb_width+25)*x_counter;
            thumb_loader.y = (my_thumb_height+25)*y_counter;
            if (x_counter+1 < columns){
                x_counter++;
            } else {
                x_counter = 0;
                y_counter++;
    function thumbLoaded(e:Event):void{
        var my_thumb:Loader = Loader(e.target.loader);
        container_mc.addChild(my_thumb);
    //This function loads the large image.
    function callFull(e:MouseEvent):void{
        var full_loader:Loader = new Loader();
        var full_url = my_images[e.target.name].@FULL;
        full_loader.load(new URLRequest(full_url));
        full_loader.contentLoaderInfo.addEventListener(Event.INIT, fullLoaded);
    //This function centers the large image in the gallery loader.
    function fullLoaded(e:Event):void{
        var my_loader:Loader = Loader(e.target.loader);
        MovieClip(parent.parent).gallery.addChild(my_loader);
        my_loader.x = (MovieClip(parent.parent).gallery.width - my_loader.width)/2;
        my_loader.y = (MovieClip(parent.parent).gallery.height - my_loader.height)/2;
    //The large image unloads when it is clicked on.
        my_loader.addEventListener(MouseEvent.CLICK,removeFull);
    //This function removes the loaded image from the gallery loader.
    function removeFull(e:MouseEvent):void{
        var my_loader:Loader = Loader (e.currentTarget);
        my_loader.unload();
        removeChild(my_loader);

  • My PSE elements 7.0 on Vista shuts down before loading thumbnails.

    I get the Windows error sign that then shuts the organizer down. The thumbnail spinner having stopped working.
    I have repaired the catalog, optimized it and reindexed and repaired again.
    I have deleted PSA and status.dat
    I have deleted thumbnail cache
    I have uninstalled and reinstalled PSE.
    I have created anew catalogue
    I have imported pictures to the new catalogue successfully.
    The thumbnails were created. I worked on this catalogue for about one hour. Exited. When I reloaded PSE the same fault occurred immediately.
    Windows picture viewer and Photo Gallery work fine with all my catalogue.
    The fault module name is EZdH264DecTFilter.dll
    What should I try next??

    Thanks for the advice. I do suspect the problem is something to do with 
    video files. But turning of the Active File Monitor sadly has not  fixed the
    problem.
    In a message dated 21/09/2013 16:17:43 GMT Daylight Time, 
    [email protected] writes:
    Re:  My PSE elements 7.0 on Vista shuts down before loading thumbnails. 
    created by 99jon (http://forums.adobe.com/people/99jon)  in Photoshop 
    Elements - View the full  discussion
    (http://forums.adobe.com/message/5701702#5701702)

  • Browsers not loading thumbnails in Facebook

    Hi everyone,
    I'm going nuts right now trying to figure out what's gone wrong!
    Since last week Facebook wont load properly and thumbnails don't show up. My main browser is Safari but this also happens when I tried Chrome and Firefox.
    My Disable Images is unchecked, I emptied my cache, disabled my add-ons but nothing seems to work!
    When I right click the thumbnail and press inspect element, this comes up
    My sister's Facebook works fine on her own computer. This doesn't happen with any other website either!
    Please help!!

    Might be a cookie issue.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab then click Details.
    Type Facebook in the search field top right side of that window then Remove all results.
    Quit and relaunch Safari to  test.
    If that didn't help, Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Bridge Fails to Load Thumbnails

    Bridge can not load a folder with 200 images in CR2 and jpg format. Getting answers from Adobe is worse than trying to penetrate the NSA. Anyone out there have any suggestions. I've purged cache, set the to the middle of the slider, clicked compact cache and Bridge still doesn't load the images. Color me frustrated.

    Had the same problem recently when moving Bridge CS3 (and Photoshop CS3) from the old to the new notebook PC (Windows XP). The freshly installed Bridge refused to load and to digest the thumbnails of all the image files in a folder; instead it would create thumbnails only for those images currently visible in the Content pane---and slowly so. When scrolling the pane, it would start caching a few more thumbnails but still not all of them. When scrolling back to where I was before, it would start caching the previously cached thumbnails
    i again!
    I tried resetting the preferences, purging the cache, exiting and re-launching Bridge, all to no avail. Eventually, the culprit turned out to be the .workspace file I created after installing Bridge 2.0 but before updating to Bridge 2.1.1. Deleting the .workspace file and re-adjusting the GUI's layout to my likings from scratch did the trick for me.
    -- Olaf

  • IPhoto library won't load thumbnails or pics

    A couple of months back, I noticed that some thumbnails in my iPhoto library were not being loaded (maybe 10% of folders), and a number of photo's inside the folder were blank, and would also not load.  The folder thumbnails would flicker on and off when scrolling down the folders, and the folders themselves show the 'reflection' of the folder pic in front of it, but not on the actual, folder.
    I then noticed that some folders had totally disappeared, so I restored from my Time Machine from a couple of months previous.  Missing folders re-appeared, but I still had blank thumbnails, and pics unable to open.  I tried the 4 iPhoto repair options, but it made no difference.
    I then restored from an even older Time Machine backup, but now, most of my thumbnail pics are missing (about 90%), and I can't open most of my photos.  I don't understand how this is happening, as when the backup was made, the iPhoto library was fine.
    I'm now beginning to think that my hard drive on my Mac may be corrupt, and I'm restoring to a faulty drive.  Can anyone help? 
    I'm on OSX 10.6 (I think), and it may be worth noting that I tried updating the OS 2 months ago, but it crashed my Mac, and I had to restore.
    Thanks
    Lee

    Apologies for the delayed response. 
    I'm running iPhoto V9.5.1 (902.17) on OSX 10.9.3.
    Thanks

  • Can't load thumbnail photo from file 'BBThumbs.dat'

    Hi everybody,
    I'm developing an application on BB to take and view photo. My problem is can't load the thumbnail photos from file 'BBThumbs.dat'. I'm using code as below:
    public byte[] getThumb(String fileName) {
    String DB = fileName.substring(0, fileName.lastIndexOf('/'))
    + "/BBThumbs.dat";
    fileName = fileName.substring(fileName.lastIndexOf('/') + 1, fileName
    .length());
    if (thumbsMap == null) {
    thumbsMap = new Hashtable();
    byte b[] = null;
    FileConnection fc = null;
    InputStream in = null;
    try {
    fc = (FileConnection) Connector.open(DB, Connector.READ);
    if (!fc.exists()) {
    return null;
    byte[] temp=new byte[(int)fc.fileSize()];
    in = fc.openInputStream();
    DataInputStream is=new DataInputStream(in);
    // b = getThumbNail(first, thumbsMap, fileName, in);
    is.readFully(temp);
    b=readThumbs(temp, fileName);
    } catch (Exception e) {
    } finally {
    if (fc != null) {
    try {
    fc.close();
    } catch (Exception e) {
    if (in != null) {
    try {
    in.close();
    } catch (Exception e) {
    return b;
    please give my any idea or suggestions. Thanks 

    Try:
    !Section=Dimensions
    'Name;DimensionClass;DimensionAlias;CustomDimensionID
    SKU;Generic;;
    !Members=SKU
    'Name;DataType
    Brand1;Unspecified
    Brand2;Unspecified
    !Hierarchies=SKU
    'Parent;Child;DataStorage
    #root;Brand1;StoreData
    #root;Brand2;StoreData
    Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
    example:
    !Hierarchies=SKU
    'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
    #root;Brand1;StoreData;Y;Y;Y;+;+;+;
    #root;Brand2;StoreData;Y;Y;Y;+;+;+;
    Even more as an idea use pipes, maybe.
    But you will need to say something about Aliases as well if this is a planning application.

  • Firefox will not load thumbnails on the youtube website

    I've cleared my caches and everything, but whenever I'm on youtube the thumbnails won't load. the actual videos run ok, but you only see white where the thumbnail should be.

    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    Check the image exceptions: Tools > Options > Content: Load Images: Exceptions
    See [[Options window - Content panel]]
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Open the <i>Media</i> tab of the "Page Info" window.
    *Select the first image and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Adobe Premiere Pro cs6 is not loading thumbnails plz help

    hey there hoping some 1 can help me I've got an extremely large project going on, project file is just over 400 mb and there is alot of content, alot ,alot , scatted over a few external drives and the internal and most of the are usb 2 connected to windows 8 pro 64bit intel core i7 3820cpu 16 gigs of ram and ssd drive and we are running premiere pro cs6 , and recently its taking for ever to open up and then way to long to load all the thumbnails, i really dont know what to do , and im really new to this forum
    thanks
    Bryce

    Hey there, hoping some 1 can help me. I've got an extremely large project going on, project file is just over 400 mb and there is alot of content, alot ,alot , scatted over a few external drives and the internal one.  Most of the drives are usb 2 connected to windows 8 pro 64bit intel core i7 3820cpu, with 16 gigs of ram and ssd drive, and we are running premiere pro cs6. Recently it's taking for ever to open up and then way to long to load all the thumbnails, i really dont know what to do , and im really new to this forum
    thanks. (By the way, are you a grammar teacher who's taken to moonlighting for Adobe? Just answer the freakin' question. This was written by Bryce's boss, Paul.)
    Bryce

  • FCP keeps crashing when loading thumbnails from bin

    Hey folks,
    I am having constant issues where FCP keeps crashing when I load a bin with thumbnails. This doesn't happen every time I open a bin, but after I open say 6 or 7 bins. After the research I have done I have come to a couple of possible solutions 1= this previous post
    http://discussions.apple.com/message.jspa?messageID=9545404#9545404
    The only thing that is stopping me from trying this procedure is I don't have another Mac with the VADriver, so I have to extract it from the OS DVD, which is fine thanks to the Pacifist program which makes it easier, but I don't know how to get the specific file extracted.
    I also noticed that the guy who solved the same issue with this procedure has an older OS to mine, so surely with the new OS the problem would have been resolved??
    2= the other solution seems to be to put the footage onto a hard drive with a faster connection other than firewire 800. But this doesn't seem right to me because the project worked perfectly fine on the old PowerPC Mac using the same external FW800 drives I am using on this computer.
    I would appreciate any advice. at this point I am probably wasting around 1-2 hours a day with FCP crashing and having to reopen the project to work on it again.
    Anyone having similar issues?

    Here's what the fabulous Crash Analyzer says about it:
    *MPEG Media*
    This crash appears to have been caused by MPEG media (or MPEG-derived media such as XDCAM, HDV or H.264) in the timeline. MPEG-based media is not recommended for editing in Final Cut Pro.
    *Suggested Actions*
    Set the codec of your sequence to ProRes in Sequence Settings.
    Alternatively, and for best results, transcode any HDV, MPEG-2, XDCAM, AVCHD, H.264 or other long-GOP media into an editing-friendly format such as ProRes or Apple Intermediate Codec (AIC).
    *Relevant Line*
    0 QuickTimeH264.scalar 0x0f7114d7 JVTCompEncodeFrame + 2769062
    Report generated by Crash Analyzer in FCS Maintenance Pack
    You can download a fully working demo of Crash Analyzer from Digital Rebellions website ... and then you should buy it! Its worth every penny.

  • Adobe Bridge is extremely slow to load thumbnails in the content window when opening a folder.

    Has anyone else had any issues with Bridge taking a long time (45 seconds per window) to load the content window? I have my files nested in folders and when I browse them using Bridge it takes me forever to get to the files I need. I'm asking here to see if there's some setting I need to adjust or something. We just recently started using CC and I had no problems at all until our IS department swapped out my tower with a new one. I don't know why that would make a difference but it's the only thing that's changed.

    our IS department swapped out my tower with a new one. I don't know why that would make a difference but it's the only thing that's changed.
    You might want to provide more details about this configuration (OS, what files are you viewing, are you on stand alone or via server) but in general a new computer (I think that is what you are talking about?) means all the difference.
    The specs regarding free disk space, RAM, VRAM and processor speed is vital for application like PS and Bridge that are very processor demanding when busy.
    And you need to recache the lot first once to save the data for thumbs and HQ previews to the cache for future use. Once a file is cached it should show instantly. Best way to recache is to select the main folder and use the menu view / show items for subfolders and then let Bridge do its work. This can take a long time depending the amount and file size of your content.

  • CS6 E Bridge Slow to load thumbnails, 'building criteria'

    When Bridge opens on the folder it was last opened/closed in, it takes a long time to load, constantly 'building criteria' as if all the images are newly imported. I've searched the forums, have tried all the tweaks and settings, but it's still iceberg slow.  Bridge CS5 is noticeably quicker, as if the cache info is being read immediately. CS6 is behaving as if the cache file has been deleted. It hasn't. I have tried the "flush the cache" to see if maybe it's corrupted. No joy. I have boosted cache size. No joy. I've compacted, automatically exported cache to folders, everything... Nothing seems to fix the snail slowness.
    All Adobe updates have been applied.
    i7-2600s @2.80GHz
    8 gb DDRw ram
    Nvidia GeForce GT420 1gb DDR3
    6+ tbs hd space.

    I could understand the glacial slowness if the beta version had also been so slow. Or if CS5 Bridge was also as slow.
    Did not read this whole (long) thread but in general when a previous version of Bridge did work faster then the following this almost certainly is related to your system itself.
    While building criteria in filter panel has a mind of its own and especially when opening a second window to fast (when first window is just finished caching or building filter panel) it may take ages. closing this window and open a new one usually succeeds.
    However when this always takes a long time the problem seems related to the cache (most Bridge problems are...)
    Purging cache using preferences or menu commands is not always the correct solution. Using Bridge CS5 and PS CS6 is also not the perfect solution.
    If you can spare the time you should consider a proper back up of custom settings, actions tools, keywords, templates etc. and a complete reinstall.
    I don't have the correct info for Windows and searching on Adobe.com isn't easy anymore. Here are some old Knowledge base articles (it's about CS4 but changes are locations are still the same)
    http://helpx.adobe.com/photoshop/kb/move-actions-presets-workspaces-photoshop.html
    http://helpx.adobe.com/photoshop/kb/preference-file-functions-names-locations-1.html
    and also read about the Adobe Cleaner Tool and decide if this is an option for you.
    http://www.adobe.com/support/contact/cscleanertool.html
    If you decide to reinstall:
    Deactivate the software and use the official uninstaller that comes with the application itself and then use the clean tool for Adobe:
    Double check if your Cache folder has been deleted (I'm on Mac, don't know the location for Windows but on Mac it is in the user library caches folder)
    Install CS6 again. Obvious you have to set your custom preferences again and also need to recache your files but if you have a main folder with many subfolders containing the files just select the main folder and in the menu View select 'show items for subfolders' and let it do it's caching overnight.
    In my experience every new version of CS has been faster and more stable (well, except the disaster CS3 version for Bridge...) then its predecessor.

  • Aperture 2 not loading thumbnails...

    ...and moving very slow.
    Recently I was using Aperture 2 (haven't upgraded since I just bought A2 in January) on my Macbook (3 year-old black one running Leopard) and Aperture was running fine, albeit slow since I was trying to edit around 400+ shots from a recent trip. Because of speed and memory issues, I decided it was time for an upgrade.
    I purchased a new iMac with a 3.06 GHz processor and 4GB of RAM hoping that it would speed up the process.
    All of my photos were stored on an external hard drive.
    I've been trying to import the photos from the hard drive, but when I do I get no thumbnails and when clicked on, most of the photos are showing up blank. There's meta data on the photos, just no picture.
    I tried importing the photos directly from my camera, but I'm having the same issue.
    I removed and reinstalled A2 and am having the same problem.
    Apparently A2 functions better on my MacBook!
    Someone help...
    Thanks.

    Reposting...hoping someone can help out or send me in the right direction.

  • Firefox not loading thumbnails on some websites

    On many websites, like imageboards, or even sites with icons and other small images, Firefox doesn't load these images.
    All I see is a blank box, and in the top left corner it shows an image icon (this would be a ripped image icon if the image could not be found).
    The links all work fine, and the full-size image always loads fine, but this is very annoying as its defeating the whole purpose of these galleries.
    Often the website loads fine, but as I go further into more pages, the images stop loading; sometimes ones that have been previously loaded too.
    I've tried clearing caches, DNS caches, etc. no luck. None of these websites are blocking images (right click -> block images from site), and I have no adblocking plugins or software.
    Sites like:
    Deviant Art
    Imageboards
    Facebook (galleries)

    Did you check the images properties?<br />
    It is possible that the images are from another domain.
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Open the <i>Media</i> tab of the "Page Info" window.
    *Select the first image and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    Also make sure that you allow background images:<br />
    Firefox > Preferences > Content : Fonts & Colors: Colors > [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    * http://kb.mozillazine.org/Websites_look_wrong
    * http://kb.mozillazine.org/Website_colors_are_wrong

  • Photo page won't load thumbnails, but slideshow works (PC:IE)

    hi everyone,
    problem with the thumbnail on the photo page, it shows 3-5 out of 20s thumbnails(only show photo's names) on other browser except Safair.
    on mac, safari works, thumbnail, slideshow work.
    on mac, Firefox 1.5, thumbnail won't works, but slideshow works.
    on PC, IE, thumbnail won't works, but slideshow.
    Anyone have this experiences? thanks!
    gy

    On Mac, all my browsers work, Camino, Firefox, Safari.
    On Windows the best solution is Firefox.
    IE is really less than average with handling some graphic files.
    G4 450 dual, PBG4 1.5/ATI 128/1gig ram   Mac OS X (10.4.6)   http://homepage.mac.com/uhanna

Maybe you are looking for

  • Wires/Amp kit for my bass system

    I need to know what kind of amp kit and speaker wire to get for my 2 12" kenwood W3012 subwoofers (400 watt continuous power and 1200 peak) and kenwood 9104D 1800 watt amp. I have an aftermarket stereo and it has subwoofer crossover (as in the aux po

  • Rollover image problem

    Hello, got a problem with my site carolynalexander.co.uk that is driving me crazy. On a few of my pages I've inserted roll over buttons with dreamweaver. When you roll over them the image changes just like I wanted but an extra block of colour appear

  • Front Row - Did the 10.6.3 update break keyboard control?!

    So, I came across an odd problem today when helping a friend get her data moved from an old iBook G4 onto a new MacBook Pro 2.66GHz. I walked her through setting up the Migration Assistant while on the phone and drove over to help her install some ne

  • Slow down continues unabated and unresolved...

    this started a few days ago - I received some responses but nothing seems to work.   Now that I've tried eveything I can think of (even switching the hard drive...) I thought I'd start fresh here... I had been out of town for a few days, left my Mac

  • Java Won't run on AOL browser

    AOL has told me that they pull from the internet explorer, however I am unable to run the Java Runtime on AOL, therefore I have to use the internent explorer, which I do not like. I am unable to play games on AOL, it's not letting the Applets load. D