Image gallery not removing previous image

Hi,
I have an image gallery but I can't seem to get the previous image removed. I have two functions:
[AS]function clearLoader():void {
try {
  var li:LoaderInfo = slideLoader.contentLoaderInfo;
  if(li.childAllowsParent && li.content is Bitmap){
   (li.content as Bitmap).bitmapData.dispose();
} catch(e:*) {}
}[/AS]
And
[AS]while(currentContainer.numChildren)
var obj:DisplayObject =  currentContainer.getChildAt(0) as DisplayObject;
if (obj is Bitmap) {
  Bitmap(obj).bitmapData.dispose();
  currentContainer.removeChild(obj);
} else if (obj  is MovieClip) {
  currentContainer.removeChild(obj);
}[/AS]
But in some way not the previous image is removed, but the one before that. Annoying, because if image 1 is larger than image 2, image 1 stays on the background. It is only when loading image 3 the first image is removed from the stage. Any advice?
Thanks!
Dirk

Hi,
1. With the switchSlide() function:
function switchSlide(intSlide:int):void {
 if(!Tweener.isTweening(currentContainer)) {
  if(slideTimer.running)
   slideTimer.stop();
  intCurrentSlide = intSlide;
  if(currentContainer == sprContainer2)
   currentContainer = sprContainer1;
  else
   currentContainer = sprContainer2;
  currentContainer.alpha = 0;
  mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
  clearLoader();
  slideLoader = new Loader();
  slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
  slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
  var  unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
  slideLoader.load(new URLRequest(unesc_xmlSlideshow..image[intCurrentSlide].@src));
  mcInfo.lbl_description.text = unesc_xmlSlideshow..image[intCurrentSlide].@title;
  mcInfo.lbl_artist.text = unesc_xmlSlideshow..image[intCurrentSlide].@artist;
  strLink           = unesc_xmlSlideshow..image[intCurrentSlide].@link;
  strTarget          = unesc_xmlSlideshow..image[intCurrentSlide].@target;
  mcInfo.mcDescription.lbl_description.htmlText = unesc_xmlSlideshow..image[intCurrentSlide].@desc;
  mcInfo.lbl_count.text = " Slide " + (intCurrentSlide + 1) + " / " + intSlideCount2;
/AS
2. No images from other domains... just the ones on my webserver.

Similar Messages

  • Why was "Gallery" not removed?

    I'm curious as to why "Gallery" was not removed when we upgraded to iOS 6?  I mean Gallery is now completely useless and they removed YouTube, so?

    By all means then please continue to think that.  You sound to me as though you will anyway. 
    On the other hand, if you don't mind being confused by facts.  Here is a link to a screen shot.  https://www.google.com/search?q=ipad+gallery+app+mobileme&hl=en&client=safari&tb o=d&source=lnms&tbm=isch&sa=X&ei=9f6GUPr6GKbI2AWsoYH4CA&ved=0CAkQ_AUoAQ&biw=1024 &bih=672#biv=i|7;d|V-FB7qsW8hhOAM:  The image of the boat in the linked image, was what the app icon looked like.
    Additionally, I contacted Apple support about the failed login attempts.  Had it not been an iPad 2 app, I'm sure they would have pointed that out, rather than telling me it had been discontinued.  As deggie also pointed out in the post just above your last one here.
    nozero

  • Reboot does not remove previous version - how rmove uninstalled version completely

    reboot does not remove prior firefox, which was uninstalled - cannot run new install due to vestiges of earlier version detected - reboot required to remove, yet removal never complete, so never able to run new install. please provide diagnostic detect & remove for any firefox items left on system

    You can try using this tool to remove all traces of previous version(s) of Reader:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    It may be better to remove all versions of Reader, and then download the offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

  • My Mac G-4 OS X will not image an icon of the zip disk with I inserted into my computer's built-in Zip Drive, therefore I can not remove the zip disk from my computer.  What can I do?

    My Mac G-4 OS X will not image an icon of the zip disk with I inserted into my computer's built-in Zip Drive, therefore I can not remove the zip disk from my computer.  What can I do?

    Thanks Old Comm Guy, BD Aquam and Texas Mac Man for youradvice and reply to my question
    and problem with my Zip Drive.  However:
        1.  Depressing mouse buttonon start up did not eject the zip disk.
        2.  To examine front of zipdrive, I had to remove many screws and several plastic case
             coverings.  Upon doing thatI discovered that, unfortunately, there is no whole in front
              of mybuilt-in zip hardware drive for me to insert a paper clip to manually eject zipdisk.
          3.  I went to the Utilities folder in myMac OS X Application folder, but I could not find
               theiomega zip drive in there.
    Also, I did go into my "9" System folder and thento the Extensions folder within it and did find an icon of an
    Iomega Driver. When double clicking on it a window came upstating I was opening the application
    "ColorSync Extension" for thefirst time, and asking if I was sure I wanted to open this application.
    Uponclicking open nothing happened - nothing opened.
    I also went into the "System X" folder>Libraryfolder>Extension folder>IomegaSAM.ket icon and double
    clicked on it and asmall window opened stating "Compiling file List", however nothingopened it just
    continued to compile, so I closed it.
    Within my Mac OS X HD>  Applications>Iomega folder>Iomega Tools.app a smallwindow opened up
    with several options (Erase, Protect, Disk Info and DriveInfo). Clicking on the Drive Info a message says:
    "No Iomega Drives or noIomega Driver found.  Therefore, Ihave gone to Mac, Iomega and other websites
    trying to find a Driver for thebuilt-in Zip Drive in my Mac G-4 OS X 10.4.11, but have not really found anythat work.
    CAN ANYONE TELL ME IF THERE IS A WEBSITE WHERE I CANDOWNLOAD A NEW DRIVER FOR MY ZIP DRIVE?
    Thanks,     Peterfromcrystallake

  • Lightroom 5 is not showing previous sucessfuly imported images and images are not identified as missing, there are no images shown in the library, how do  I reconnect missing images?

    lightroom 5 is not showing previous successfully imported images and images are not identified as missing, there are no images shown in the library, how do  I reconnect missing images?

    If the images are not identified as missing ... then you can't reconnect them
    But I'm not really sure what is happening, as I don't understand your description of the problem, could you show us a screen capture? Or describe what appears on your screen in much more detail...

  • I am trying to update to iTunes 10 to us my new iPad, but I can not remove a corrupted "apple software update" program... I can get everything else off, but due to "previous version" of software update it will not continue.

    I am trying to update to iTunes 10 to us my new iPad, but I can not remove a corrupted? "apple software update" program... I can get everything else off, but due to "previous version" of software update it will not continue.
    I stopped in to see one of the genius at the local store who referred me to "Windows Installer 4.5 Redistributable" (I am trying to install it on a Windows XP System)
    The last version on iTunes on my PC was iTunes 7.
    Thanks for your help,
    Julia from Woodridge

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • I purchased an iPhone 4S second-hand, and the previous owner did not remove the iPhone fron their iCloud account. They do not know their Apple ID.

    I bought an iPhone 4S secnd-hand. The previous owner did not remove the iPhone from their iCloud account. I've tried contacting the previous owner, but they also do not know.  What should I do now?

    If they were the one who set the lock, send them this link.
    If not, you need to contact the person who did or the device's original owner.
    (117626)

  • HT1386 Since 8th May , I am not able to synchronize my iPhone with iTunes. Have tried removing previous back up data , removed all photos and videos on iPhone , switched  on and of and  reset iPhone  a million times , restarted my Mac a thousand times :(

    Since 8th May , after updating the iphone software to 5.1.1  I am not able to synchronize my iPhone with iTunes. Have tried removing previous back up datas , removed all photos and videos on iPhone , switched  on and of and  reset iPhone  a million times , restarted my Mac a thousand times Please Help !!!

    I have tried both options .. back up on this computer and also back up on icloud.
    The backingup is fine .. there is no problem .. even synchronizing songs , applications , calender , mail accounts is fine .. only the contacs are not synchronizing. The itune goes on and on .. showing synchronizing contacs .. but nothing happens. When i uncheck contacts synchronisation .. everything works fine . I have also reorganized my address book . but it does not help

  • HT1222 When i double click, May I know how to remove those use app below? Not like previous version I can clear it to stop those app keep on running

    When i double click, May I know how to remove those use app below? Not like previous version I can clear it to stop those app keep on running

    Swipe up on the thumbnail of the app and it will disappear.

  • Plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m,

    plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m

    Read this: http://support.apple.com/kb/PH13695
    If it is locked with your ID, then re-set the password at https://iforgot.apple.com

  • I just bought my iphone5c on ebay, but the previous owner will not remove from their account, what do i do?

    I just bought my iphone5c on ebay, but the previous owner will not remove from their account, what do i do?

    You won’t be able to use it. Ask eBay for a refund.
    (120398)

  • TS2755 How do you remove previous recipients from a message list? When I begin to type a number, I have numbers appear that are no longer in use, or are incorrect. They are not in my contacts list either.

    How do you remove previous recipients from a message list? When I begin to type a number, I have numbers appear that are no longer in use, or are incorrect. They are not in my contacts list either.

    I apologize. I didn't see that you hadn't updated to iOS 7. That's an iOS 7 option. With iOS 6, you'd need to restore the device as new. Note that that will result in your phone being updated to iOS 7.
    Best of luck.

  • Removing previous versions of Adobe Photoshop Elements

    I have Elements 10 and would like to remve versions 8 and 9 from my computer without losing any pictures.  Do I uncheck the "
    Remove downloaded content" box? 

    ok, I can use the uninstaller program.  I just wanted to make certain I would not lose any of the pictures.  I have WIN 7 home 62 bit.
    Date: Sat, 3 Nov 2012 15:05:38 -0600
    From: [email protected]
    To: [email protected]
    Subject: Removing previous versions of Adobe Photoshop Elements
    Re: Removing previous versions of Adobe Photoshop Elements created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    No you will want to uninstall the software using the uninstallers installed on your computer?  If you need more specific directions on how to remove the software can you please respond with the operating system you are using?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4821201#4821201
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4821201#4821201
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4821201#4821201. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Machines not removed from AD when reimaged - Not Installing client- how to resolve client not installing

    Hello, i have across a machine that does not have the sccm agent installed, but states on the server that it is installed. Now I am assuming that someone in the team reimaged but did not remove from AD. If this is the case, how do i resolve this? I have
    2,000 clients so need to know how widespread this is.
    i checked the client logs but there are no ccm/sccm entries. I know i could probably remove from SCCM then run a Discovery Method, but if there are more out there, i need to find a fix potentially. The client is not installed on the image. Boundarys all
    set ok.
    SCCM 2012 R2
    Cheers

    You could create a new collection with a query to find out when a clients last heartbeat was or maybe hardware inventory data age? This isn't going to completely solve the problem, but it will narrow down which clients your after. The queries I have below
    have an age value of greater than or equal to 30 days. Just increase this obviously to query for clients that haven't reported back in longer amounts of time.
    Heartbeat Query
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where AgentName in ("Heartbeat Discovery") and DATEDIFF(day,AgentTime,GetDate())>=30
    Hardware Inventory Scan Date Query
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where ResourceId in (select SMS_R_System.ResourceID from SMS_R_System
    inner join SMS_G_System_WORKSTATION_STATUS on SMS_G_System_WORKSTATION_STATUS.ResourceID = SMS_R_System.ResourceId where DATEDIFF(dd,SMS_G_System_WORKSTATION_STATUS.LastHardwareScan,GetDate()) > 30)
    Its also likely that clients in this situation will be marked by Config Manager as inactive. So you could also just sort by your inactive clients but this again will have a % of error as your inactive clients may be a result of workstations being off your
    network for a prolonged period of time or simply turned off.
    If you can ping a client that has a hardware inventory age of greater than 30 days but you have a client policy to run it say daily, then you could argue they fall into the category your after.
    You could also look at this outside of the Console all together. A possible option could be to use a startup / login script to check for the presence of the Config Manager client and then install it if its not (there are quite a few about). If you're not
    comfortable with this, then you could use a startup / login script to check for the presence of the client and write say a hostname or something similar to a text file.
    Cheers
    Damon

  • Offline servicing wont work - Failed to remove previously existing staging folder C:\ConfigMgr_OfflineImageServicing\....., GLE = 1168

    Deleting \\?\C:\ConfigMgr_OfflineImageServicing\HAM000E9\ImageMountDir\Program Files\WindowsApps, FAILED, Win32 Error = 5 SMS_OFFLINE_SERVICING_MANAGER 6/11/2014 3:37:31 p.m. 3280 (0x0CD0)
    Failed to remove previously existing staging folder C:\ConfigMgr_OfflineImageServicing\HAM000E9, GLE = 5 SMS_OFFLINE_SERVICING_MANAGER 6/11/2014 3:37:31 p.m. 3280 (0x0CD0)
    Initialization of schedule processing failed SMS_OFFLINE_SERVICING_MANAGER 6/11/2014 3:37:31 p.m. 3280 (0x0CD0)
    Deleting file \\?\C:\ConfigMgr_OfflineImageServicing\HAM00012\ImageMountDir\Windows\winsxs\amd64_microsoft-windows-b..base-serverstandard_31bf3856ad364e35_6.1.7600.16385_none_090a8bf130602695\basebrd.dll, FAILED, Win32 Error = 5 SMS_OFFLINE_SERVICING_MANAGER 6/11/2014 3:37:31 p.m. 3280 (0x0CD0)
    Failed to remove the staging folder C:\ConfigMgr_OfflineImageServicing, GLE = 5 SMS_OFFLINE_SERVICING_MANAGER 6/11/2014 3:37:31 p.m. 3280 (0x0CD0)
    Cant get offline servicing to work
    Have tried rebooting as recommended in other posts and then running DISM /Cleanup-wim , however it still prompts with the above in the offline servivingmgr.log
    Also cant manually delete the folders, need to update my windows 8.1 and server 2012 images. Could this be because my site server that the offline servicing is running 2008 R2?
    Really dont want to have to rebuild and recapture images just so they can have the latter updates....

    "Win32 Error = 5" is "Access Denied"
    A lot of things are possible here, but ultimately it comes down to the account being used and the permissions on the folder. It's possible the permissions have been corrupted. Have you tried resetting them?
    Jason | http://blog.configmgrftw.com | @jasonsandys

Maybe you are looking for

  • Power Query/Data Management Gateway data refresh not working

    Pretty new to o365/Power BI, but here's what I've got going on (hopefully someone can help me out): I created a data management gateway and data source.  The data source says it's online in the PowerBI admin center, and it seems to be working correct

  • HT204053 I have one ID for my phone and different ID for my iPod

    But on one of the devices I cannot make purchases it just says contact iTunes support

  • Duplicate Photos and iPhoto Library Sharing

    My first question is about sharing my iPhoto library.  I would like to buy a Time Capsule to back up all of my computers.  I've been told not to use that to store all of my pictures, only to use it for backups. I wish there were an easy way to share

  • Is anyone having the problem i'm having!

    I used to be able to download an ipod capatable video from a video making site(onetruemedia.com)the videos used to go straight to my itunes so i could sync it to my ipod. but now all my videos are going to my quicktime.even when it gives the option t

  • Non-Serializable objects in webservice

    Hi everyone, I'm writing a webservice that connects and performs update on a third-party data repository (document management system) through the vendor provided framework. Some of the objects used in the framework are not serialized, and WebLogic Wo