Delete the current Image

I have a fairly simple gallery that loads images into a loader click on the thumbnails. I realized that the images are really loading on top of the other and because my images are not all the same size, you can see the one behind it. I guess I could use a variable currentImage to then tween out but I do not know what currentImage would equal...

Thank you.

var imageLoader:Loader;
var xml;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load (new URLRequest("data/images.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 = 25;
imageLoader.y = i * 150 + 25;
imageLoader.name = xmlList [i] .attribute ("source");
addChild (imageLoader);
imageLoader.addEventListener (MouseEvent.CLICK, showPicture);
}

}

function showPicture(event:MouseEvent):void
{
imageLoader = new Loader();
imageLoader.load (new URLRequest (event.target.name));
imageLoader.x = 200;
imageLoader.y = 25;
addChild (imageLoader);
}

Create a loader and use it to load all your images.

Tags: Adobe Animate

Similar Questions

  • How can I delete the old images payne so I can start a new project?

    When I open the program WMM old files may appear in the payne.  I don't know how to delete the old images, so I can start the project.
    Can you give me some advice?

    Hello

    Follow these steps to delete old projects in Windows Movie Maker:

    a. open Windows Movie Maker.

    b. click on open.

    c. now, select the project.

    d. right-click on the project and click on delete.

    A confirmation prompt will appear on the screen, click Yes.

  • Cannot delete the current row in the table in advance (the line above are deleted)

    Hi all

    I have an advanced table that contains say 5 records. Every row has sown delete icon. I suppose that if I click on the button Delete the current will be to remove. Now I have a problem if I remove the line 5, line 4 will remove. If I remove the line 3, line 2 is deleted. The line above the line to delete is removed by clicking on the button Delete.

    I had this procedure must manage the deletion (nothing wrong with that)

    public Boolean DeleteAuthorizedBudget() throws SQLException
    {
    Boolean rowFound = false;
    System.out.println ("DeleteAuthorizedBudget > >");
    try {}
    JcpaProjMtnReqBudgetVOImpl vo = getJcpaProjMtnReqBudgetVO1();
    vo.getCurrentRow () .remove ();
    Returns true;
    } catch (Exception e) {}
    e.printStackTrace ();
    } {Finally
    System.out.println ("DeleteAuthorizedBudget > >");
    }
    return (rowFound? Boolean.TRUE: Boolean.FALSE);

    }

    Concerning

    Laurent

    Cool. Then close the thread by checking the useful and accurate answers.

  • My editing in Adobe animate CC don't show me the current image, frame rate, or give me playback options.  How can I enable that?

    Hello

    My editing in Adobe animate CC don't show me the current image, frame rate, or give me playback options.  How can I enable that?

    Thanks for any help you can offer. I'm off to work, but you come back tonight.

    Julie

    screenshot.jpg

    Hello

    Can you please scale your system to 100% in the Panel text and see if that helps?

    Thank you!

    Mohan

  • I am trying to remove a price in pdf format, and a message appears "all or part of the selection has no available police." Cannot add or delete the current font using". I downloaded this font in my Adobe fonts, but still no luck.

    I am trying to remove a price in pdf format, and a message appears "all or part of the selection has no available police." Cannot add or delete the current font using". I downloaded this font in my Adobe fonts, but still no luck.

    How to update or download all the fonts in my Adobe Adobe Acrobat X Pro?

    Get the police does not always help, but to use a font you don't add it to Acrobat. Add you on Mac or Windows.

  • trigger events based on the current image of the flash animation

    I have a Director with video qt project where are trigger actions based on specific times in the video (movietime and/or duration). I update this project in order to use flash instead of quicktime video.

    To facilitate the development and coding changes minimal if all goes well, I would like to keep this similar functionality, but I can't figure out how to capture the current image of the flash movie sprite.

    Can anyone help? or provide a workaround solution?

    I can't figure out how to capture the current image of the flash movie sprite.

    You were near. Try one of these:

    put sprite("flash").currentFrame
    -- or
    put sprite("flash").frame
    
  • Stop the flv playback when you exit the current image

    I searched countless forums (here and other sites) and have yet to find the solution I'm looking for (if all goes well, if it exists).

    I have an flv file is loaded by the flv playback component.  Everything works except that the video (and audio) continue to play even after you leave the frame on which is the instance of the component.

    I found a solution that stops the audio using: SoundMixer.stopAll ();

    But the video is still streaming and affect the performance of the site.

    I want to stop the audio and video, which means using the: playbackInstance.stop ();

    However, all of the solutions I've met basically say to add the stop function to all buttons that potentially could borrow the framework with the instance of reading.

    This seems completely tedious and bulky, especially because I have visible navigation buttons from my 'main' swf and MULTIPLE instances of reading I have are found within a swf loaded with its own navigation as well.  By the nature of the design, instances of reading will not always be on the scene calling references will probably trigger errors.  Of course, there are ways to do this with conditional statements, etc.  But it just seems like a waste of time.

    Is there a simple way to call playbackInstance.stop () to navigate away from the current image?  An event to listen to?  I forget one obvious answer?

    I really want to think that there is a more elegant solution than adding so much in bulk to each eventHandler for button on my site.

    Add an event listener for the removedfromstage event.

  • Dynamic text box to show the current image not workng

    Please could someone help me. I wish that my area of dynamic text to display the current image of roots. I triedthis with no luck

    frameNumberText_txt.text = currentFrame;

    I'm pretty sure that the problem is because the field requires a string value. I'm not sure how to do that heh

    Try...

    frameNumberText_txt.text = String (this.currentFrame);

    This assumes that the textfield object lives on the root timeline.  If that's not solve it, and you get an error message, include the error message in your ad.

  • Cannot delete the JPEG image

    I'm unable to remove a JPEG image and its relevant files/folders.  The image shows 0 bytes.  The error message is "plug-in files damaged or invalid.

    I'm unable to remove a JPEG image and its relevant files/folders.  The image shows 0 bytes.  The error message is "plug-in files damaged or invalid.

    ================================
    Maybe you can delete the file after a reboot or
    Maybe in Safe Mode.

    In addition, the following freeware can be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Unlocker
    http://www.filehippo.com/download_unlocker/

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • I accidentally deleted the current Web page from the lower left search box. How can I get that back?

    It's the box where I can enter a keyword and it is on the current Web page.

    You can use a

    • CTRL + f
    • Press the Alt key > Edit menu > search
  • Get the width/height of the current image / information of KING of user input

    Hello

    I have two problems:

    First of all:

    Y at - it an option to get the width and height of the image to use for calculations or set a return on investment for the right settings?

    Second (more complicated):

    I have used Labview 8.5 custom interface (see the interface.jpg attachment).

    I am trying to get the return on investment of the Interface and use it in my app Builder of Vision, but I don't see the return on investment or its size or position or something...

    Is it possible to get this information from the Interface?

    Information:

    I use Vision Builder 2009 SP1, LabVIEW 8.5

    Thanks for your replies!

    Hello

    I missed that when I tested it... the display image control must have been larger than the size of the image and the property node returned the value that I expected.

    A restriction of the VI to Interface custom that you create in LabVIEW, is that it cannot have any dependencies (call any subgroup screws), other than the methods and the nodes property of the objects you put on. Therefore, I can't just call IMAQ GetImageSize her. So it does not seem possible at this point for the VI of custom Interface return the size of the image.

    The solution, at this stage, to get the size of the image of the Interior Vision Builder AI, is to use a step in LabVIEW Run, calling a simple VI that takes an image as input, called IMAQ GetImageSize and return res X and Y.

    Note that for purposes of distribution, when you call a VI using a LabVIEW execution step, you must save it as a source distribution in a Bachelor's degree in LAW and you must redistribute this llb with your inspection. See using setup step run LabVIEW for more details.

    Sorry there is no better way to do this now.

    Best regards

    Christophe

  • Set an out point of the clip on the current image in the timeline?

    So here's a scenario: I'm in the timeline and I get to the image I want to be the out point of the clip. Is there a single shortcut keyboard/etc who will succeed?

    I realize I can do this: move one image to the front and then use the cursor to GUI the end point to the thread... but quite frankly, it's boring, but also slow.


    I am a user of FCP7 who is accustomed to the setting of the read head on the desired image to an exit point, then double click on the clip, it opens in the Viewer window clip on THE SAME CHASSIS OF THE TIMELINE, and then I press the shortcut key to point. If a double-click + a unique key. I'd do this hundreds of times a day. Is there a way to first open a clip in the source window (by double clicking on since the timeline) on the same frame as the head of reading the script? This will be possible that the first time that you open the clip in the source of the timeline window, but it will be "remember" the framework that you left on ypu reboot first... even closing tab of the element in the source window will not change. I realize that there are "gangs and the program source" but which must be addressed by individual video sequence.

    A bit it boggles my mind that it was placed on the default mode, the source window works.

    Or y at - it a keyboard shortcut to make playback of the source head jumps to the corresponding timeline playhead frame?

    double clicking and opening on the same frame are CS2 and earlier versions and CC14 only.

    Try to hit W (ripple trim next edition to the read head) the opisit is Q.

  • If I Upgrade to windows 10 will be my background stay screen with the current image and the current files?

    I have Windows 7 Home Premium now and don't want to not lose my word as AbiWord documents and don't want to lose my photos that I've currently saved on my computer and also do want to not lose the image background current I and also use ITunes 9 for my music and don't want any version of ITunes later than Version 9. If the upgrade to Windows 10 I will all the same stay without disappearing?

    Hey SalBlandino,

    The upgrade to Windows 7 or later will preserve my personal files, applications, and settings?

    Yes, the upgrade to Windows 7 or a later version will preserve your personal files (documents, music, pictures, videos, downloads, Favorites, contacts, etc., applications (IE.) Microsoft Office, Adobe applications etc), games and settings (ie. passwords, dictionary, the application settings).

    No software should be removed from your computer when you upgrade to Windows 10.

    However, it is advisable to back up your data before upgrading.

    Do not answer to any question. Kindly mark as an answer if I solve any query

  • Copy the current image of the screen to file

    Someone at - it a code that will copy what is on the screen of an application and write it in an image file?  This way the user can save what is currently on the screen of the app for later.

    It took some digging so I amo put my final code of work here for someone else:

    void mainapp::write_bitmap_header(int nbytes, QByteArray& ba, const int size[])
    {
        char header[54];
    
        /* Set standard bitmap header */
        header[0] = 'B';
        header[1] = 'M';
        header[2] = nbytes & 0xff;
        header[3] = (nbytes >> 8) & 0xff;
        header[4] = (nbytes >> 16) & 0xff;
        header[5] = (nbytes >> 24) & 0xff;
        header[6] = 0;
        header[7] = 0;
        header[8] = 0;
        header[9] = 0;
        header[10] = 54;
        header[11] = 0;
        header[12] = 0;
        header[13] = 0;
        header[14] = 40;
        header[15] = 0;
        header[16] = 0;
        header[17] = 0;
        header[18] = size[0] & 0xff;
        header[19] = (size[0] >> 8) & 0xff;
        header[20] = (size[0] >> 16) & 0xff;
        header[21] = (size[0] >> 24) & 0xff;
        header[22] = -size[1] & 0xff;
        header[23] = (-size[1] >> 8) & 0xff;
        header[24] = (-size[1] >> 16) & 0xff;
        header[25] = (-size[1] >> 24) & 0xff;
        header[26] = 1;
        header[27] = 0;
        header[28] = 32;
        header[29] = 0;
        header[30] = 0;
        header[31] = 0;
        header[32] = 0;
        header[33] = 0;
        header[34] = 0; /* image size*/
        header[35] = 0;
        header[36] = 0;
        header[37] = 0;
        header[38] = 0x9;
        header[39] = 0x88;
        header[40] = 0;
        header[41] = 0;
        header[42] = 0x9l;
        header[43] = 0x88;
        header[44] = 0;
        header[45] = 0;
        header[46] = 0;
        header[47] = 0;
        header[48] = 0;
        header[49] = 0;
        header[50] = 0;
        header[51] = 0;
        header[52] = 0;
        header[53] = 0;
    
        ba.append(header, sizeof(header));
    }
    
    void mainapp::capture()
    {
            screen_pixmap_t screen_pix;
        screen_buffer_t screenshot_buf;
        char *screenshot_ptr = NULL;
        int screenshot_stride = 0;
        screen_context_t context;
        screen_create_context(&context, 0);
        int usage, format;
        int size[2];
    
        screen_create_pixmap(&screen_pix, context);
    
        usage = SCREEN_USAGE_READ | SCREEN_USAGE_NATIVE;
        screen_set_pixmap_property_iv(screen_pix, SCREEN_PROPERTY_USAGE, &usage);
    
        format = SCREEN_FORMAT_RGBA8888;
        screen_set_pixmap_property_iv(screen_pix, SCREEN_PROPERTY_FORMAT, &format);
    
        int width = 720 ;
        int height = 1280;
        size[0] = width;
        size[1] = height;
        screen_set_pixmap_property_iv(screen_pix, SCREEN_PROPERTY_BUFFER_SIZE, size);
    
        screen_create_pixmap_buffer(screen_pix);
        screen_get_pixmap_property_pv(screen_pix, SCREEN_PROPERTY_RENDER_BUFFERS,
                                      (void**)&screenshot_buf);
        screen_get_buffer_property_pv(screenshot_buf, SCREEN_PROPERTY_POINTER,
                                      (void**)&screenshot_ptr);
        screen_get_buffer_property_iv(screenshot_buf, SCREEN_PROPERTY_STRIDE,
                                      &screenshot_stride);
    
        screen_read_window(Application::instance()->mainWindow()->handle(), screenshot_buf, 0, NULL ,0);
    
        QByteArray array;
    
        int nbytes = size[0] * size[1] * 4;
        write_bitmap_header(nbytes, array, size);
    
        for (int i = 0; i < size[1]; i++)
        {
            array.append(screenshot_ptr + i * screenshot_stride, size[0] * 4);
        }
    
        QImage image = QImage::fromData(array, "BMP");
        QFile outFile("shared/photos/temp1.jpeg");
        outFile.open(QIODevice::WriteOnly);
        image.save(&outFile, "JPEG");
    
        screen_destroy_pixmap(screen_pix);
    }
    
  • Automatically discovers the current image on the second monitor

    Hello

    Is there a way to get the behavior obtained with on photoshop lightroom, when you always want to preview full size on a second monitor?

    I like to do my work on the cintiq, but it is obviously not as good as my color monitor calibrated. Currently, I am having to perform a 'new window' for each thing, that I'm working and manually moving the calibrated monitor. Is there something out there that automates this process?

    Lightroom has it and it works fine.

    Photoshop a bit with his camera overview - but that sends the image to an iPad.

    Any other ideas other than my manual way?

    Thank you!

    Andres

    Use the Navigator (set to nearly full height) Panel on your second monitor. The browser panel is part of the workspace and remains in place.

Maybe you are looking for

  • Satellite L50 - B has slow WiFi speed

    Hello I got this laptop last month but I'm really disappointed because it was a bloody slow wifi connection. I've already updated my wireless drivers, but nothing happens. The funny thing is I have an another old laptop, but it has a speed great wifi

  • Card Pnovatel WLan PCMCIA U530 suddenly stopped working

    Suddenly, my pcmcia card from novatel wireless u530 doesn't work. My laptop began to recognize it as a map of MTD-0002 (?). I uninstalled and reinstalled several times, he pilots looking for latest drivers. The card is a Wireless Merlin U530 Novatel.

  • my computer will not be updated to the new updates

    The update starts then error message can not be updated

  • Type of custom log MultiNumericLimit step

    Hi, I have developed a library using certain types of custom step. I created the type of step from the numerical limit Test Multiple standarda. In run mode the step sequence context GET and using the API of Teststand crash parameters such as: Step.Re

  • System it is connected to the internet, but my browser does not display a web page.

    XP has forgotten how to connect to the internet. XP is always connected to the net fine, but today he forgot.  When I try to set up the net through the Control Panel, it says I am already connected, butGoogle does, and I can't ping the server in the