Problems with image gallery, Help !

Hi, i need this gallery to be seperated from the thumbnails it interact. I need the button to open the Xmlgallery1 instead of the Xmlgallery. In other words, i want to load a different image than the thumbnails shows. Ive already copied the xml gallery to seperate it but i cannot find a way to load another xmlgallery...
Here the code, it is a simple vertical slider:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.display.Loader;
var galleryXML1:XML;
var galleryXML:XML;
var xmlLoader:URLLoader;
var xmlLoader1:URLLoader;
var xmlRequest:URLRequest;
var xmlRequest1:URLRequest;
xmlLoader1 = new URLLoader();
xmlLoader = new URLLoader();
xmlRequest1 = new URLRequest('galleryXML1.xml');
xmlRequest = new URLRequest('galleryXML.xml');
var numOfImages:int;
var numOfImages1:int;
var currImage:int = 0;
var currImage1:int = 0;
var imageLoader:Loader;
var imageLoader1:Loader;
var imageRequest:URLRequest;
var imageRequest1:URLRequest;
imageLoader = new Loader();
imageLoader1 = new Loader();
var imagesList:Array = new Array();
var imagesList1:Array = new Array();
var loadedImages:Array = new Array();
var loadedImages1:Array = new Array();
xmlLoader.load(xmlRequest);
xmlLoader.addEventListener(Event.COMPLETE,onComplete);
function onComplete(e:Event):void
          galleryXML = new XML(xmlLoader.data);
          numOfImages = galleryXML.photo.length();
          var i:int = numOfImages;
          while(i--)
                    imagesList.push(String(galleryXML.photo[i].url));
          startLoading();
          imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadNext);
function startLoading():void{
          imageRequest = new URLRequest(imagesList[currImage]);
          imageLoader.load(imageRequest);
function loadNext(e:Event):void
          if(currImage == numOfImages-1)
                    loadedImages.push(imageLoader.content);
                    imageLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,loadNext);
                    var i:int = galleryXML.photo.length();
                    container = new Sprite();
                    while(i--)
                              var rect:Bitmap = loadedImages[i];
                              var bitmapCont:Sprite = new Sprite();
                              bitmapCont.addChild(rect);
                              container.addChild(bitmapCont);
                              bitmapCont.y = i * 105;
                              bitmapCont.width = 118;
                              bitmapCont.height = 103;
                              bitmapCont.addEventListener(MouseEvent.CLICK,draw,false,0,true);
                              bitmapCont.addEventListener(MouseEvent.MOUSE_OVER,overFunc,false,0,true);
                              bitmapCont.addEventListener(MouseEvent.MOUSE_OUT,outFunc,false,0,true);
                              rect.y = 540;
                    addChild(container);
                    container.x = 960;
                    addEventListener(Event.ENTER_FRAME,update);
                    return;
          loadedImages.push(imageLoader1.content);
          currImage++;
          imageRequest = new URLRequest(imagesList[currImage]);
          imageLoader.load(imageRequest);
function overFunc(e:Event):void
function outFunc(e:Event):void
import flash.display.Sprite;
import flash.events.Event;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.events.MouseEvent;
import flash.filters.BlurFilter;
var bd:BitmapData = new BitmapData(1080,1920,true,0x00000000);
var b:Bitmap = new Bitmap(bd);
b.y = 0;
b.x = 0;
b.height = 1920;
b.width = 1080;
addChild(b);
var container:Sprite
var vel:Number = 0;
var acc:Number = 0;
var damp:Number = 0.95;
function update(e:Event):void
          acc = 0;
          if(mouseY>1200)
          acc = - - - -1;
          if(mouseY<550)
          acc = - - -1;
          vel +=acc;
          vel*=damp;
          container.y += vel;
          if(container.y>200)
          container.y = 200;
          if(container.y < 730-container.height)
          container.y = 730-container.height;
function draw(e:MouseEvent):void
          bd.draw(Sprite(e.currentTarget));

replace
xmlLoader.load(xmlRequest);
with
xmlLoader.load(xmlRequest1);

Similar Messages

  • Problem with image gallery

    Hi to all.
    With ios 5.01 I have a little problem with image gallery. As you can see I have only 1 image, but there is always this **** message "download 0 of 46) (sorry, but I'm Italian )
    I've removed my icloud account from settings, but there is nothing to do, this message don't goes away. What I can do? Thanks in advance

    Hello,
    Just adding a gallery I want to do the same slideshow WoodWing's, but in InDesign, if anyone knows of?
    Thank you
    Link video slideshow WoodWing's: http://www.youtube.com/watch?v=Xt6gNaEZ0-M&feature=relmfu
    The first slideshow shown

  • My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
    The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported.

  • Problem with Image.createImage()

    Hi all!
    I'm writing a simple midlet just to display an image on the screen and I'm having some problems with Image.createImage()
    Here is my code
    Image bg_img;
    ImageItem imageItem1;
    imageItem1 = new ImageItem("", null,ImageItem.LAYOUT_DEFAULT, "");
    try{
    bg_img = Image.createImage("/image.png");
    imageItem1.setImage(bg_img);
    catch(java.io.IOException e){
    e.printStackTrace();
    I'm getting an exception on bg_img = Image.createImage("/image.png");
    I can't understand what is it...:(
    I know for sure that the problem is not "file not found"
    Any one can help me???

    If you are catching IOException, then u may have problem with ur image path. "image not found on the specified path." if ur image is not in the current directiry then put it into current directory. otherwise, If u are using resouce folder and it is already included into the resouce path, then put ur image in that folder..try this..
    Still not get, then please give some detail about ur development toolkit. and ur apllication packaging scheem. are you using ANT?
    Pranav

  • Problems with image scaling

    I'm facing a real problem with image scaling
    I've used several algorithms but it all has defects but the most common thing is the out of memory error after several enlargments...
    does any one know a solution...
    note:
    I've used several packages to do so,but I'm looking for a solution from the jdk itself
    JAlexscorpio

    Did you take into account that the getScaledInstance() -method creates a completly new Image?
    So if you use it like in
    ImageIcon icon1=new ImageIcon("Blah.gif");
    ImageIcon icon2=new ImageIcon(icon1.getImage().getScaledInstance(400,400,SCALE_FAST);
    you will end up with 2 different Images which have their own data and memory requirements.
    even if you use something like
    ImageIcon icon1=new ImageIcon("Blah.gif");
    Image i=icon1.getImage();
    icon1.setImage(i.getScaledInstance(200,200,SCALE_FAST));
    You will need enough memory to store the data for the original image, as well as the data for the scaled
    version of the image, at least for the time that it take the JRE to create the scaled version. You never know when the garbage collector kicks in to delete you old data so it could be that this takes some time and until
    that moment your memory is not available. If your now doing several of the scaling operations, and there is no chance for the garbage collector to do its work, you will run out of memory.
    I hope that might help, if not feel free to post again

  • Experiencing problem with image display in LR5

    I have an intermittent problem with images displaying and exporting in LR. It just began a couple of months ago and is totally random - will do it with RAW (CR2) or JPG. It displays this way in all modules - Library, Develop, Slideshow....The image displays fine in a non-Adobe image viewer (Faststone or Windows Viewer). I've reloaded LR5 and PSCC and is still persists. I know the image file is fine. It also has begun effecting older images that were showing up just fine a while ago. I just loaded about 200 images and maybe 3 or so have this viewing problem in LR & PS. Has anyone else experienced it and have a suggested fix? My graphics card has the latest drivers and shows no problems with other applications. Here is the same image - one a jpg export from Lighroom, the other a save as jpg from Faststone. HELP!

    This is almost always a hardware problem, causing corruption of the file. The difference you see between Lightroom and other software is that Lightroom is accessing the full RAW image, while the other software is trying to read the embedded JPG preview.
    To figure out exactly what hardware is the problem, you need to try different transmission paths and hardware ... different camera cards, different card readers or USB cables/USB ports, different hard disks, etc. Eventually you should be able to isolate the problem.

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • Problem with images opened in Photoshop CS 5

    Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
    the following image:
    The image appears with a purple color in Photoshop. If I hover over the image
    with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
    I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.

    The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
    OK, that seems to be open to misunderstanding indeed.
    The video card: Citrix Systems Inc. Display Driver.
    Could not find a list for CS6 specifically, but the card may fall short.
    http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
    If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
    Also if you set View > Proof Setup to something different?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problems with Image Variants

    I got two problems with Image Variants:
    1. catalogCache.GetImagePath("Images", id) doesn’t work for some id. The error message is “GetImageVariant error”.
    2. catalogCache.Preload("Images", “Original”)
        catalogCache.Preload("Images", “Thumbnails”)
        catalogCache.Preload("Images", null)
       catalogCache.Preload("Images", "")
    get failed, the status code is -2147483647
    Anyone know how to setup  image variants?
    Thanks.
    Forrest

    status code: -2147483647 is RC_BADPARAM.

  • Copy and Paste Problems with Images

    I'm having the strangest problems with images. I copy an image off of the web for one of my art history classes and I go to paste into another program but, whether it's Keynote, Powerpoint, Photoshop, or Graphic Converter, something always goes wrong: the images definitely lose some of their quality, become brighter in appearance, and get jagged on the edges. This is starting to drive me nuts, especially since it never happened in 10.4 on my iBook G4. Any suggestions?

    Make it an 8-bit file (Image menu > mode).

  • SB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!

    JSB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!, I have this sound card connected?(optical OUT) ?to my home?theater system's digital IN ?through the recommended /8in. optical miniplug-to-optical SPDIF cable. Theater system is set correctly to Digital-In mode. I have no sound!
    The cable is a Velocity Toslink-to-Optical Mini Plug digital cable. I don't see any settings in the Creative Console Launcher. The notebook is a Dell XPS M730 (Vista 32).
    I have a PS3, DirecTV, and the SB Xtreme Audio Notebook cable on a hub switch that connects to the system's?one Optical IN. The PS3 and DirecTV sound perfect!
    The sound card works fine with standard PC speakers. I'm at a loss as?to what to try next. I set this whole system up myself, so I'm pretty good at working out the kinks, except this one!
    Karen

    OK. I just went to Control Panel - Sound - Playback - Digital Output Device (SB Xtreme Audio Notebook) - Properties - Advanced. I experimented with different sample rates and bit depths. Clicked the test button and lo and behold - sound from the HTS! I've tried iTunes, PowerDVD (configured to digital output) and YouTube - no sound! Am I missing something really obvious?
    HA! Just backed out to Playback and selected Digital Output Device (SPDIF) and set as Default. Sound is emunating from HTS! Well, that mystery is solved! Who knew.
    Thanks anyway! Any comments or advice will still be appreciated.

  • Problem with ALV search help Dictionary Search Help

    Hello experts
    I have a problem with ALV search help.
    I use DDIC table ZXXX with text table ZXXX_T. I created DDIC search help form table ZXXX. In my WD application, in context on COMPONENTCONTROLLER i set on attribute: 'Input help mode' as 'Dictionary Search Help' and in 'Dictionary Search Help' I pass name of new created DDIC search help.
    I create a input field from that atrribute and search help works fine (there was a value and description for value from text table). So I created ALV witch contains that attribute too.
    Next I set column for this attribute in ALV as editable but on Serch help for this collumn I have only value. I DON'T HAVE TEXT DESCRIPTION FOR VALUE.
    Please help me and tell me what I do wrong?
    Miko

    Hello,
    Thank's for your help. I create DDic Search help for all fields from my ALV. Next I changed 'TYPE' for all ALV fields in COMPONENTCONTROLLER from ZXXX-Zfield to Zfield, and I changed 'Input help mode' from 'Automatic' to 'Dictionary Search Help'. Now I see Value and Description for value in Search Help in my ALV.
    Regards
    Miko

  • I restore my iphone 3gs but after that iTunes show a message there is a problem with your iPhone, help me please

    i restore my iphone 3gs but after that iTunes show a message there is a problem with your iPhone, help me please

    Yes. Talk to whoever replaced the battery. Sounds like they broke something.

  • Urgent Help with Image Gallery

    Hi,
    I really need help with an image gallery i have created. Cannot think of a resolution
    So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider)
    The issue i am having is that when i click on this i am essentially clicking on all the items collectively and i would like to be able to click on each image seperately...
    Please see code below
    var xml:XML;
    var images:Array = new Array();
    var totalImages:Number;
    var nbDisplayed:Number = 1;
    var imagesLoaded:int = 0;
    var slideTo:Number = 0;
    var imageWidth = 150;
    var titles:Array = new Array();
    var container_mc:MovieClip = new MovieClip();
    slider_mc.addChild(container_mc);
    container_mc.mask = slider_mc.mask_mc;
    function loadXML(file:String):void{
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest(file));
    xmlLoader.addEventListener(Event.COMPLETE, parseXML);
    function parseXML(e:Event):void{
    xml = new XML(e.target.data);
    totalImages = xml.children().length();
    loadImages();
    function loadImages():void{
    for(var i:int = 0; i<totalImages; i++){
      var loader:Loader = new Loader();
      loader.load(new URLRequest("images/"+String(xml.children()[i].@brand)));
      images.push(loader);
    //      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    function onComplete(e:Event):void{
    imagesLoaded++;
    if(imagesLoaded == totalImages){
      createImages();
    function createImages():void{
    for(var i:int = 0; i < images.length; i++){
      var bm:Bitmap = new Bitmap();
      bm = Bitmap(images[i].content);
      bm.smoothing = true;
      bm.x = i*170;
      container_mc.addChild(bm);
          var caption:textfile=new textfile();
          caption.x=i*170; // fix text positions (x,y) here
       caption.y=96;
          caption.tf.text=(xml.children()[i].@brandname)   
          container_mc.addChild(caption);

    yes, sorry i do wish to click on individual images but dont know how to code that
    as i mentioned i have 6 images that load into an array and then into a container and i think that maybe the problem is that i have the listener on the container so when i click on any image it gives the same results.
    what i would like is have code thats says
    if i click on image 1 then do this
    if i click on image 2 then do something different
    etc
    hope that makes sense
    thanks for you help!

Maybe you are looking for

  • How to FaceTime and iMessage on multiple apple devices with one iTunes account

    We recently received iPad 2's for Christmas and was looking for some advice on how to FaceTime and iMessage on multiple apple devices with One iTunes Account (Apple Id).  I have created or attached other e-mail addresses to our apple id but do not kn

  • How do I disable InContext Editing code hints in Dreamweaver CS6?

    The service was discontinued in 2011, why does the latest version of Dreamweaver not make it easy to disable these code hints? There are no options to disable them, and I've gone so far as to comment out every individual line of the ICE.vtm file yet

  • Sub-totals in ALV Tree

    Hi Folks, Need your help. I have designed a report to be displayed in ALV tree. The report contains one column (Amount) which can be totaled using the SUM function of the ALV. The report is a 3 level hierarchy - Proj number, Plant and Proj type. When

  • Dialogbox

    Hello, I installed CS6 softwares Photoshop, InDesign and Illustrator on Windows 8.1. When I try to save an image as a new filename or create a new book, the software crashes and Windows reports a message indicating the module theShellNSE.dll Is there

  • IPad 2, 64MB 3G w/ Dead Pixel

    I stood in line for over 4 hours today for my iPad 2 (64MB, 3G, AT&T) and after I boot up it up the first thing right in the dead center of the screen -- a dead pixel. FML. Anyone else with this problem. I'm going to attempt to take it back tomorrow.