Images display in negative colours

all images, colours and apps appear in negative which makes viewing/navigating nearly impossible, specific problems w/ facebook and scrabble on facebook.

Try to disable hardware acceleration.
*Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

Similar Messages

  • PSD images display in Bridge as negatives

    I'm working on a textbook that's a mix of new images and pickups from the previous edition. I've noticed that many of the new images I've created with transparent backgrounds and saved as PSD files in CMYK mode display as negatives in Bridge.
    I just now made some edits to a legacy file that was displaying properly in Bridge. I added some layers, deleted other layers, and saved the file with no color profile, and as soon as it refreshed in Bridge, it was a color negative.
    Any ideas what's going on here? I'm using Photoshop and Bridge CS5.1 on a Mac running  OS 10.8.4.

    I have macOS 10.8.4 Photoshop CS6 and CS7 (CC) on my Macbook in use with Bridge CC
    No thumbnail problems so I'll share my settings.
    Ok. I use North America General Purpose  2 as my preset for Color management. I do not have a hardware monitor calibrator,but I use Apple's built-in Colorsync to profile my screen.
    Next in Photoshop's Preferences > File handling I use these settings especially "Always Maximize PSD and PSB compatibility. Check the screenshot and see if it gives you any ideas.
    And finally to make sure, just load one of your problem PSDs in Photoshop, toggle visibility off and on, which will allow you to resave the PSD with the new settings.
    Last resort: You can reset Bridge Prefs just like Photoshop Prefs: Press and hold Cmd-Opt-Shift whille double-clicking the Bridge icon.
    If none of this helps, I'll have to defer to more experienced minds.
    Gene

  • 16 Bit Tiff Images Display Bug?

    Question 1:
    Is there a problem with Aperture 2.0 displaying 100 + mb 16 bit tiff images generated by a film scanner (nikon coolscan 4000 ed)? I am having trouble with my library that I migrated from Aperture 1.5. All of my images were working fine in Aperture 1.5 (and previously in iPhoto as far back as 2003). In Aperture 2.0 I am getting scrambled images and some images that read unsupported file format. The problem is sporadic. It effects some images and not others. Sometime images display correctly and sometime they become scrambled and unsupported, and then back again.
    There is no trouble with the images themselves. I export them to CS3 with no distortion or trouble. The problem seems to be in Aperture 2.0.
    I have re-built the library, tried migrating images, changed the color profile.... I think I have exhausted every trick I can manage from a user vantage point. The images work fine when converted to 8 bit files. This is not the solution for me - I need to keep these images 16 bit.
    Question: Is this this just my version (I purchased downloaded upgrade), that is having trouble, or is this a wider problem that Apple aware of and is looking into?
    Please advise. I have 1000's of scanned pictures that I have been working with for years that were fine and now are not. I purchased a new Mac Pro 2.8 so as to work more productively with these large images - and now it seems that the very software I rely on has failed me.
    I have not been able to find any comments from Apple regarding this issue.

    I've had this problem with images saved as 8-bit scans.
    Are you using any compression in the TIFs? I scanned using Nikon Scan 4, cleaned up a bit in Photoshop 7, reduced the bit depth to 8-bit, and saved at TIFs with embedded colour profile using ZIP compression, Macintosh byte order.
    This used to work with Aperture 1.5.6, but with Aperture 2.0 I see a kind of offset pattern, so a vertical line looks like this:
    If export the master TIF, open it in Photoshop (where it looks normal) and save it with no compression Aperture displays it properly.
    (I'm still using Tiger, so I don't think this is an OS issue.)

  • PS CS5 Image Display Differs From Used ICC Profile In Win 7

    Hi,
    on my Windows 7 Ultimate x64 machine, I just calibrated my Dell SP2309W monitor using an i1DisplayPro and basICColor 5, creating a ICC v2 profile (I am aware of the problems under Windows with ICC v4 profiles).
    It created the ICC profile and applied it to be used by Windows. I double checked under COLOR MANAGEMENT that the new ICC profile is being used. Although I can see that the new ICC is being used (desktop appearance changes), there are a few issues I am experiencing:
    (1.) Windows Photo Viewer
    The thumbnails in Windpows Explorer look fine (they DO use the new ICC profile), when I double click a jpeg and open the image it DOES NOT use the new ICC profile. When I click the PLAY SLIDESHOW button (starting the slideshow) in the opened image in Windows Photo Viewer, the images DO use the new ICC profile.
    (2.) Internet Browsers
    All current internet browser (Firefox, IE, Safari and Chrome) DO use the new ICC profile and display the image correctly.
    (3.) Photoshop CS 5
    When I open the same image - that Windows Photo Viewer does not correctly displays (according to the new ICC profile) - in Photoshop CS5, I get the same image display that Windows Photo Viewer gives me (when not thumbnail or not in slideshow mode) - it appears to be the sRGB display.
    My color settings in PS CS5 are: North America General Purpose 2 > sRGB IEC 61966-2.1.
    When I go to View > Proof Setup > Monitor RGB I get the image display using the new ICC profile.
    Why does the image look different in PS than my calibrated monitor should output ?
    I was under the impression (please correct me if I am wrong), that the sole purpose for calibrating my monitor was to get a uniform display across (ICC aware) applications. Even when one applies different color spaces to a document in PS, I thought the output on my calibrated screen done by the graphic card should always be according to my calibration and the settings in the ICC profile being used.
    What Am I doing wrong or what am I misunderstanding ?
    Any help or input is appreciated !
    Thanks.
    - M

    Hello,
    A note on monitor calibration: calibrating your monitor will not guarentee that every application will display color correctly, it's more of a step along the pipeline, and for the preview part of a color workflow it's the last step.  Here's how color translation follows for an ICC workflow when previewing to a monitor:
    Image Color Numbers > Document Tag or Workspace Profile > Monitor Profile
    For non-color managed applications, if the original document is or isn't tagged with a color profile it will be translated directly to the monitor profile anyway.  This is the equivalent in Photoshop of selecting "Monitor" in soft proofing.  Selecting monitor in softproofing will bypass the tagged or workspace profile to translate colors directly through the monitor profile.
    For most automatic color managed applications (like Firefox), the image will be translated through the tagged profile and then sent through the monitor profile.  If the image is untagged or the profile is unrecognized, the colors get sent directly to the monitor profile.
    For Photoshop, a tagged document will have its profile respected and then sent to the monitor.  An untagged document will be assigned the workspace profile, which acts like a temporary document profile, and then gets sent to the monitor.  This is often why users will notice Photoshop behaves differently from other applications.  It's usually a case of the workspace coming into play.  By default the workspace profile is set to sRGB.  You can change this in Edit > Color Settings.
    The purpose of the workspace is originally for printing workflows, as a way of keeping consistant color translations when dealing with both tagged and untagged documents.  For web output workflows it can be useful for viewing everything through sRGB, which is typical of the average monitor output (not so with newer wide-gamut monitors, another source of confusion...) combined with the fact that originally most web browsers were not color managed.  Hence viewing everything through sRGB is pretty close to what most monitors see and what untagged/unmanaged docs will look like.
    Monitor calibration is useful only because it brings your monitor output to a "known state".  In traditional workflows the monitor was always a middle-man, a preview device which was useful for getting an idea of what the printed output would look like before you print it.  Since print colorspaces are often smaller than display spaces, it's feasible and useful to narrow down the monitor/display space and calibrate it to a known state, so that even if it doesn't totally match the print, you'll get used to its differences/limitations and they'll be consistent so long as the calibration is maintained.
    For web output, your final output is often another user's computer monitor, which can have any form of behavior (most standard monitors are pretty close to sRGB, or use sRGB as an operating system workspace (default monitor profile).  Wide gamuts behave differently, but I'm not sure if there's a particular ICC space that they closely match, or if different wide-gamuts are even that close to each other in their display color spaces.
    Hope this helps!

  • Image display control scrolling does not work properly when zoomed in

    I am using a ROI on an image in the image display control. When zooming into the image to fine-adjust the positioning of the ROI, the image scrolling does not work properly. As far as I understand, the image should scroll automatically when the ROI is leaving the visible area. However, the scrolling behaviour seems to depend on the origin of the Labview panel, not the origin of the image display control, which might require to move the ROI way out of the visible area before the scrolling takes place. In other words: the coordinate system of the image display control is shifted with respect to the true visible image area, depending on where you place it on the front panel. As a consequence, when clicking on a ROI which is in the visible area, but is outside of what Labview thinks is the visible area, it might immediately jump to the left border of the image, making the positioning of the ROI really difficult.
    Has anyone noticed this behaviour, and what would be a reliable solution to avoid this? 
    Dirk

    Hello,
    no, I am not talking about the tools palette. Just place an image control with some image in it on a new VI front panel. Then, use the rectangle from the tools and select a ROI in the image. If you zoom in (using the magnification glass), and then grab the ROI and move it around, the image scroll with the ROI. So far, so good. If you now place the image control elsewhere on the panel, or add new control above it, resize the panel, etc. , this scrolling when moving the ROI will not work correctly if the origin (0,0) of the panel is far away from the image control.
    I have attached a VI for simplicity (although there is hardly any code in it).
    If you make a ROI and try to move it down, you will notice that scrolling starts if you move the mouse out to about 10cms below the image (depens on your screen, of course). After that, if you click on the ROI, the scroll bars and ROI might jump up to the upper end of the image. Imagine how annoying this is if you try to finely adjust the ROI position. 
    I think it is a bug in the implementation of the image display control.
    Thanks,
    Dirk
    Attachments:
    scrolling.vi ‏818 KB

  • Problem to display a negative number in XML Publisher output in excel

    Hi All,
    I am facing problem in displaying a negative number in XML Publisher output in excel.
    My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to display it as (123).
    I have put these brackets using a formula column in the RDF, but it is the default functionality of excel that whenever there is a number in brackets then it automatically displays that as a negative value.
    Can anyone please help me how I can display this negative number within brackets and not as a negative digit. Is there any special tag or is there any formula which can be used to convert this into text and written in the Help text of RTF template.
    This is very urgent. If someone knows please reply asap.
    Regards,
    Shruti

    This is very urgent. If someone knows please reply asap.We are all volunteers here, so no ones questions are more urgent then other ones.
    If its that urgent it would have helped if you had chosen the correct forum to ask your question BI Publisher

  • Why does moving the mouse over an IMAQ image display slow the GUI down so much?

    I have a large application with several vi's running simultaneously under labview 8.6.1.  When I mouse over an image display control in one of the vi's, everything slows down a shocking amount in all the other vi's.  The windows task manager does not show a large increase in CPU use.  My pc is has a quad cpu with 4GB of RAM, and the CPU and memory loads do not appear to be terribly taxing to the system.  However, many of my vi's apparently come almost to a standstill if I just move the mouse in a circle around my image control.
    This looks like it is largely a GUI display issue.  If I make a new vi and put a while loop in it that only displays the iteration loop number to an indicator, I can see the iterating occurring, then stopping totally when I mouse inside the image display control.  When I stop moving the mouse inside the control, or when I move it outside the control, the interation loop number jumps up, as if it had been incrementing behind the scenes the whole time.  So only display of the interating was halted.
    This problem occurs even if the vi with the image control is not executing.  If the vi with the image control is open but not running, and I mouse over the image on it, the other guis all come to a screeching halt.
    Does mousing in the image display control really utterly crush all other guis in all other labview windows?  Is this an issue inherent to the image display control?  If so, is there anything I can do about this? 
    Also, this issue is not entirely limited to display.  I started looking at it in greater detail because this issue also exposed what I think is a race condition in my code.  I have a vi that acquires an image from a ccd and puts it into an IMAQ image.ctl.  This image then gets passed up to a vi up the call chain, and is put on a queue and sent over to be de-queued by a vi that has the image display control.  Here's the kicker:  when I mouse over the image display control, the image successfully gets acquired inside the subvi, and if I probe the wire leading to the output IMAQ image display.ctl, I see the image.  If I simultaneously probe the wire coming out of the subvi one level up the call chain, the image gets lost about half the time.  This only happens if I am mousing in the image display control IN A TOTALLY DIFFERENT AND SEPARATE VI.  If I bump up the priority of the ccd image acquisition vi to 'highest priority', the problem only happens about 1% of the time, and I really have to mouse around to make it happen.  Still, it's disturbing that mousing in the GUI in one window results in a failure of a separate subvi to simply pass an image up the call chain.  I understand that IMAQ images are referenced rather than passed by value, but I don't see why there should be a failure to pass the image up the call chain.  I've looked for a race condition, but can't find one.
    Eric

    I have finally been able to replicate the behavior that you are seeing on another computer once the image was large enough.  Here are a few notes about this behavior:
    First. The UI only slows down when the images are large, 16 bit images.  The reason why this is unique to 16 bit images is that they can only be displayed on the front panel as 8 bit images.  The workaround that Weiyuan suggested to change the 16 bit display mapping hints towards the root of the problem...that any time a mouse runs over the indicator, Windows asks the entire image to re-draw (having a separate indicator overlapping the image will create the same behavior).  With a 16 bit image, not only does the image have to re-draw on the screen but the 16 bit pixels need to be mapped to 8 bits.  When setting the 16 bit display mapping to Full Dynamic, this requires mor computation/pixel than 90% dynamic or one of the other mapping schemes.
    This is expected behavior if your program is running and you're trying to display a large 16 bit image.  To fix this behavior there are a couple options:
    Change the 16 bit display mapping to something other than full dynamic.  You can choose which 8 bits to display or if you want to map the bits. 
    Resize the image just for viewing purposes on your front panel (since you aren't going to view every single pixel of you image on the screen). You can use the IMAQ Resample.vi to do this.  This will allow you to take your 1500x1500 pixel image and only display a 500x500 pixel version.
    If you are interested in viewing small details of the large image, consider just displaying a smaller region of interest at a time.
    Let me know if any of these solutions work for you.  Good luck on your application.
    Zach C.
    Field Engineer
    Greater Los Angeles

  • Is this a bug of Outlook 2007 about images displaying in signature?

    I've done many tests and researched on website or MS KB. But still got no solution.
    My issue is:
    I make a signature with images linking from website which can be easily accessed.
    I setup this signature in Outlook 2007, when I compose a new mail, and choose the signature I set. It won't show the images with a high percentage rate, meanwhile, I try to get into "Signature"-"Signature...", 
    Outlook2007 gets stuck, then you can not close Outlook or open Internet Explorer unless you kill the process of OUTLOOK.exe.
    1. Test are done under a clean XP system and Office 2007 standard fresh installed. Also there are some other staffs who help me test the signature that report the same issue on Office 2007.
    2. Images are rendered in 96dpi. They are all in very small size stored on website, can be easily accessed without network connctivity problem.
    3. The signature is made by simple HTML language not by Outlook signature setup wizard. but in this case,  you can ignore which method I use to create the signature. The images in signature can be displayed well in Outlook 2003 &
    2010. Also I have tried insert images using "link to file" in Outlook signature setup wizard, got same issue.
    4. Don't suggest me to store the images locally. These images should be updated after a period. You can not ask the company staffs to update these images manually by themselves. and even if the images are stored locally, the images won't be shown
    in Outlook 2007 with a high percentage rate.
    5. I've tried setup signature with or without an account profile, got same issue.
    6. I 've tried without an accout profile, just copy the signature file to Outlook signature folder, unplug the network cable, and "new mail" then load the signature, of course, the images won't be shown because network connection doesn't exist,
    and then when I try to get into "Signature"-"Signature...",  the Outlook interface also gets stuck. So I think Outlook 2007 may have some problem on detecting the network connectivity.
    7. It is not possible to upgrate the version of Office. Since Office 2007 isn't out of date and is powerful enough for us, no one want to pay more money just to avoid this issue.
    I don't know why I cannot upload a screenshot for troubleshooting. If needed. I can send a mail with screenshot attached.
    So far to now, I still get no solution, I think this is a bug of Outlook 2007, because the same signature, there is no problem on Outlook 2003 & 2010. Hope someone of MS staff can see this article and report to technical support center.
    I would appriciate anyone's kindly help but please consider that you understand what I am talking about. I don't want to waste time for each of us.
    thanks in advanced.

    What kind of problem about the display image in signature?
    How do you add the image into the message body when you send the message?
    Does it show correct through Web-based access?
    Outlook 2007 doesn't support some of Style Element, you may reference the link as below:
    http://www.campaignmonitor.com/css/
    Thanks.
    Tony Chen
    TechNet Community Support
    Thanks for your reply,  I know that some Style Elements won't be supported in Outlook, but this is not the reason.
    Please refer to my post previously, I post it but get no response.
    http://social.technet.microsoft.com/Forums/office/en-US/481170b1-f23f-4d46-9914-823326491846/is-this-a-bug-of-outlook-2007-about-images-displaying-in-signature?forum=outlook

  • Flickering problem with live viewing with IMAQ Image Display

    Hi everyone,
    I am trying to write a program to do live imaging with Andor camera. I am using some examples from Andor. The images are acquired in sequence and send into IMAQ Image Display and also Intensity Graph. There is minimal flickering issue in the Intensity Graph but there is very bad flickering problem in IMAQ Image Display. Perhaps I misunderstand how to optimize the vision tools. Does anyone know how to overcome this issue? I have attached the code that I am testing. Thanks in advance.
    Best regards,
    Han Yen
    Solved!
    Go to Solution.
    Attachments:
    iXonRTA_live_0.0.1.vi ‏70 KB

    You can use Vision Assistant to test our vision functions. Vision Assistant is really meant to prototype - it does not have all teh functionality of Vision Development Module and is not as flexible as we don't allow you access to all the settings for every function.
    I recommend starting in Vision Assistant and then porting over to LabVIEW or C (whatever you are most comfortable with)...this is built-in functionality. There is nothing wrong with using Vision Assistant to do live imaging, just that you run into limitations and you will only be able to use this code on computers that have Vision Assistant.
    Hope this helps.
    --Michelle
    Instrument Control R&D
    National Instruments
    Instrument Control
    Machine Vision

  • How to fit to size to show the whole image in image display?

    HI, I am using a control palette to display my video images using image display. However, the size is alway out of proportion. How do i show the whole image in the small box screen size. Basically how to fit to size for the images? 
    Solved!
    Go to Solution.

    This should do the trick:
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do i create a Count for the no. of images displayed on stage

    i am a total newbie in flash ! & currently making a simple mcq quiz.
    each stage will have three choices of answers (A/B/C)
    every correct answers will be displayed an image :
    var myQ1a:URLRequest=new URLRequest("tick.png");
    in the end, how can i count the number of images displayed in the overall flash and display it.
    or.. perhaps you have other options on how can i display the scores.

    Hi.
    here's my code :
    stop();
    aa1.addEventListener(MouseEvent.CLICK, ona1Click);
    bb1.addEventListener(MouseEvent.CLICK, onb1Click);
    cc1.addEventListener(MouseEvent.CLICK, onc1Click);
    next1.addEventListener(MouseEvent.CLICK, onNext1Click);
    home1.addEventListener(MouseEvent.CLICK, onHome1Click);
    var Q1a:Loader;
    var Q1b:Loader;
    var Q1c:Loader;
    var Q1next:Loader = new Loader();
    var Q1home:Loader = new Loader();
    //the name of the function has to match what you're calling from the event listener
    function ona1Click(evt:MouseEvent):void {
    Q1a = new Loader();
    bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
    cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
    var myQ1a:URLRequest=new URLRequest("wrong.png");
    Q1a.load(myQ1a);
    addChild(Q1a);
    Q1a.x=320;
    Q1a.y=180;
    function onb1Click(evt:MouseEvent):void {
    Q1b = new Loader();
    aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
    cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
    var myQ1b:URLRequest=new URLRequest("tick.png");
    Q1b.load(myQ1b);
    addChild(Q1b);
    Q1b.x=320;
    Q1b.y=260;
    function onc1Click(evt:MouseEvent):void {
    Q1c = new Loader();
    aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
    bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
    var myQ1c:URLRequest=new URLRequest("wrong.png");
    Q1c.load(myQ1c);
    addChild(Q1c);
    Q1c.x=320;
    Q1c.y=340;
    //next1.addEventListener(MouseEvent.CLICK, onNext1Click);
    function onNext1Click(evt:MouseEvent):void {
    if(Q1a)
    removeChild(Q1a);
    if (Q1b)
    removeChild(Q1b);
    if(Q1c)
    removeChild(Q1c);
    gotoAndPlay(2);
    //home1.addEventListener(MouseEvent.CLICK, onHome1Click);
    function onHome1Click(evt:MouseEvent):void {
    gotoAndPlay(17);
    this code is on the 1st frame. this will go on till the 15th frame. i wonder where i can put the codes you've given me ..

  • Is there a way to turn the pattern matching example in Labview to instead of loading a rectangle around what you want the template to be you can use an image display , I've be trying and can get no where with it

    What I want to do is , have two images on image displays and the pass them through the same setup as the pattern matching example to get the number of matches , I have attached what I have done and also given the pattern matching example program as well.
    Hope to get answers back soon,
                                     Thanks Alan
    Attachments:
    screenshot.docx ‏48 KB
    Pattern Matching Example.vi ‏100 KB

    Hi there!
    The example used can be adapted for comparing two images, however the algorithm and coding for finding the differences is more specific to your actual problem. In terms of the loading and displaying of the images, this can be done in the same way.
    Once you have some sort of algorithm, then you can automate the learning and matching by simply wiring them in order. (in the example, these are put in case structures as they are waiting on response from the front panel)
    I hope that this helps,
    Liam A.
    National Instruments
    Applications Engineer

  • Why won't raw images display as thumbnails in organiser?

    My raw images display only as the 'egg timer' icons in Organiser.  I can open them individually, edit and save as jpeg but cannot view them on the grid either before or after editing. This has only just started happening - two weeks ago all was well. It's such a nuisance not being able to scroll down my images in order to decide which ones to edit.
    Here's what I've tried:
    Uninstalled Elements 12 and reinstalled
    Checked for updates (all up to date)
    Updated thumbnails
    Usually what happens after my images are imported is that I see these icons and they gradually open to reveal my raw images.  Now they just stay with the timer icon and nothing more happens.
    Anyone help me before I tear out any more hair?  Thank you!

    If you can use the 'update thumbnail' successfully on individual files and open those files in ACR correctly chances are that you are facing a computer power problem. Creating a thumbnail in the Organizer means opening the image to create a reduced version. For raw files, that means reading the raw file (32 GB each for my Fuji raws...), converting it using the last settings in the xmp sidecar files, then creating the reduced thumbnail. Several seconds, even with a decent  computer.
    To get an idea of your problem, it would be good to know the type and size of your raw files and your computer specs.
    Contrary to other viewing softwares which only show the embedded jpeg thumbnail in the raw file, the organizer shows a real preview.
    Photoshop Elements (PSE) knowledge base.: How to correct hourglass (generic) thumbnail in Elements Organizer??

  • Video is displaying in negative

    I have an intel iMac 17" bought in February. My kids logged on this morning to find that the video is displaying in negative, like a film negative. I first thought that maybe they downloaded some kind of skin or little app that let you change the look of the interface, but after I booted up WinXP in Parallels I found that XP was also affected.
    I then tested to see if the OS itself was defining the color-reversal by taking a screenshot, then printing it on a color printer. The color print came out normally. This suggests that the video card is the problem. If so, how do I fix it? I did check Software Update to see if there are any upgrades I need to install. The only thing that appears is the iMac EFI Firmware Update. I am going to run this now, and if this cures the problem somehow, I will post that the problem has been resolved. If not, then the problem still exists, and I would appreciate any help or suggestions to fix the problem. (This is the wife's Mac, and she ain't happy. Know what I mean?)

    Here is more research.
    After installing the EFI Firmware Update, the computer rebooted, and came back to the login screen. It was there that I realized that the login screen and background displayed just fine. I logged in to the main user, and I saw the screen initially flash with the correct colors, then immediately turn negative.
    After seeing this, I created a new user with full Admin privileges, and logged into it. The display was normal in the new user. So this appears to be some kind of preference problem, possibly a corrupt preference. But which one? Anybody know what I need to delete or change to fix this issue?

  • Loading new xml data into a already xml populated image display

    Hi everybody,
    I have a question about loading new xml data into a already xml populated image gallery.
    So I have my gallery set up so it calls some xml when it first loads. What I would now like to do is load different sets of images via a different xml sheet via the click of a button.
    So for example the loaded gallery already has all thumbs loaded and user can click on them to view the full size image. So next instead of the user having to close this gallery to allow a new gallery to open with a different set of pictures I would just like to have a button. This button will unload the existing thumbs from the gallery and load in new ones from a different xml file.
    If anybody can help me with this it would be great as I am still on a steep learning curve with AS3.
    Here is my AS3
    var xmlPath:String = "pictures.xml";
    var xml:XML;
    var loader = new URLLoader();
    loader.load(new URLRequest(xmlPath));
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(e:Event):void
         if ((e.target as URLLoader) != null )
              xml = new XML(loader.data);
              createMenu();
    var numberOfItems:uint = 0;
    var menuItems:Array = new Array();
    function createMenu():void
              numberOfItems = xml.items.item.length();
         var count:uint = 0;
              for each (var item:XML in xml.items.item)
              var imageLoader=new Loader();
              var menuItem:MenuItem = new MenuItem();
              menuItem.addChild(imageLoader);
              imageLoader.load(new URLRequest(item.url));
              menuItem.linkTo = item.linkTo;
              menuItem.mouseChildren = false;
              menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
              menuItems.push(menuItem);
              addChild(menuItem);
              count++;
    function ***():void
         //menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
         for (var i:uint = 0; i < menuItems.length; i++)
              setChildIndex(menuItems[i], i);

    Thanks so much for the reply Andrei1
    I think maybe my lack of knowledge when it comes to AS3 is not helping me at the moment because I thought I understood the code you supplied but there is something not going quite right.
    So I messed around with the code and added the new_loaded_thumbs_btn to load in the "new_pictures.xml" but I am def doing something wrong.
    import flash.ui.ContextMenuItem;
    var xmlPath:String = "pictures.xml";
    var xml:XML;
    var numberOfItems:uint = 0;
    var menuItems:Array = new Array();
    var loader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loadXML("pictures.xml");
    new_loaded_thumbs_btn.addEventListener(MouseEvent.CLICK, loadXML);
    function loadXML(path:String):void {
         loader.load(new URLRequest("new_pictures.xml"));
    function loadXML(path:String):void {
         loader.load(new URLRequest(path));
    function xmlLoaded(e:Event):void
         xml = new XML(loader.data);
         createMenu();
    function createMenu():void
         clearMenu();
         numberOfItems = xml.items.item.length();
         var count:uint = 0;
         var imageLoader;
         var menuItem:MenuItem;
         for each (var item:XML in xml.items.item)
              imageLoader = Loader();
              menuItem = new MenuItem();
              menuItem.addChild(imageLoader);
              imageLoader.load(new URLRequest(item.url));
              menuItem.linkTo = item.linkTo;
              menuItem.mouseChildren = false;
              menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
              menuItems.push(menuItem);
              addChild(menuItem);
              count++;
         sortChildren();
    // removes previously placed objects
    function clearMenu():void {
         var menuItem:MenuItem;
         while (menuItems.length > 0) {
              menuItem = menuItems[0];
              removeChildAt(getChildIndex(menuItem));
              menuItem.shift();
    function sortChildren():void
         //menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
         for (var i:uint = 0; i < menuItems.length; i++)
              setChildIndex(menuItems[i], i);
    When the image display 1st loads it displays the new_pictures.xml thumbs which I thought would load through my new button when clicked.
    And there was me thinking I was getting the hang of AS3.
    Could you please point me in the right direction in what I am doing wrong,
    Thanks for your time and effort in advance

Maybe you are looking for