Making a very bespoke xml gallery

Hello people :-)
Having come up with a new design for my friend's jewellery
website that I'm building in xhtml and CSS, I've decided to go for
flash for the gallery in order to keep it fully updatable.
Mock
up design here
There are eventually going to be many categories and new
items of jewellery added on a fairly regular basis, hence the need
for scrolling on both the categories and the thumbnails sections.
Each section, sub section etc would need to be infinitely updatable
(within reason!)
Now I've built really simple xml galleries before, nothing on
this scale. Perhaps someone could point me in the direction of a
tutorial for a gallery similar to this one? It would have to be
almost identical for me to be able to be able to adapt it to my
design as I just don't have the in depth knowledge of this stuff to
make massive additions or changes and i'm really pushed for time.
Was thinking maybe there's some kind of template around I could
adapt - I've done countless searches on this type of thing but
can't find anything similar enough! Or maybe even someone here
could have a go at it for a fee?!!
Hopefully it's clear enough from the jpg what needs to happen
and where...
Any suggestions very much appreciated!
Pat

Hello people :-)
Having come up with a new design for my friend's jewellery
website that I'm building in xhtml and CSS, I've decided to go for
flash for the gallery in order to keep it fully updatable.
Mock
up design here
There are eventually going to be many categories and new
items of jewellery added on a fairly regular basis, hence the need
for scrolling on both the categories and the thumbnails sections.
Each section, sub section etc would need to be infinitely updatable
(within reason!)
Now I've built really simple xml galleries before, nothing on
this scale. Perhaps someone could point me in the direction of a
tutorial for a gallery similar to this one? It would have to be
almost identical for me to be able to be able to adapt it to my
design as I just don't have the in depth knowledge of this stuff to
make massive additions or changes and i'm really pushed for time.
Was thinking maybe there's some kind of template around I could
adapt - I've done countless searches on this type of thing but
can't find anything similar enough! Or maybe even someone here
could have a go at it for a fee?!!
Hopefully it's clear enough from the jpg what needs to happen
and where...
Any suggestions very much appreciated!
Pat

Similar Messages

  • Creating a very simple XML-driven gallery

    Hi, I'm learning XML in AS3 and I am having real trouble finding a resource that can help me learn how to build a very simple XML-driven picture gallery.
    I am working in an FLA file with AS3, with a dynamic text field with the instance name "textfield". I also have a UILoader Component with the instance name "UILoaderComponent" and an XML file called "rootdir.xml".
    I have an XML file in the following format.
    <images>
         <imagenames>
              <name>image1</name>
              <name>image2</name>
              <name>image3</name>
              <name>image4</name>
              <name>image5</name>
         </imagenames>
         <imagepaths>
              <path>image1.jpg</path>
              <path>image2.jpg</path>
              <path>image3.jpg</path>
              <path>image4.jpg</path>
              <path>image5.jpg</path>
         </imagepaths>
    </images>
    I am using the following as my actionscript.
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("rootdir.xml"));
    function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    parseImg(xmlData);
    function parseImg(imgLoad:XML):void {
    var imgChild:XMLList = imgLoad.images.children();
    for each (var imgTrace:XML in imgChild) {
    trace(imgTrace);
    No matter which way I experiment, I always have poor results with my dynamic text, and every tutorial I've followed does not reproduce anything like the same returned data in "textfield" that it does with the trace command.
    My objective is: I simply want to build a menu inside a textbox called "textfield" that lists images1-5, and when clicked, calls upon the relevant image. For instance: I load the file "rootdir.xml" into the file "index.fla". I call a function to parse the XML into a dynamic text box called "textfield". When image 2 is clicked on the textbox "textfield", it would call upon a function that would load into the UIComponent Loader "image2.jpg".
    Are there any tutorials for this? I'm so confused as to why dynamic text operates so differently from the trace command. I'm not interested in doing a fancy menu bar with thumbnails, scrollbars and animations, I just want to learn the basics.

    I don't really see how you are getting a valid trace out of that code (I get nothing if I try it as is), but as far as the textfield goes, you haven't shown any attempt in your code that might help to point to why you cannot get the text into a textfield.  It might be a problem with how you are trying to write to the textfield and not how your are manipulating the data.
    While you could make use of a textfield for the menu, doing so is not straightforward, as you would need to implement htmlText with special coding in order to have the text clickable.  You might consider using a List component or ComboBox instead.
    What I always do when I am working with xml is to store the data into a data structure, usually an array conatining objects, and then make use of that structure rather than dippng into the xml data itself when I utilize the data.
    Another thing, which rquigley demonstrated, is that your xml will serve its purpose better if the data for each image is collected under the same node.  If you have separate sections for each piece of data like you have, when it comes to editing it will be more prone to error as you have to be sure you are editing the correct entry of each separate group.
    I too am no expert in the world of xml, but I have not yet worked with parameters inside the tags, so I would usually structure it as...
    <images>
       <image>
           <imgName>image 1</imgName>
           <imgPath>image1.jpg</imgPath>
       </image>
       <image>
           <imgName>image 2</imgName>
           <imgPath>image2.jpg</imgPath>
       </image>
    </images>
    Now, back to what you have...  let's say you have a textField named imgText that you want to list the image names in.  The following should work, though I do not go my usual route of storing the data into an object array first...
    function parseImg(imgLoad:XML):void {
       var imgNames:XMLList = imgLoad.imagenames.name;
       var imgPaths:XMLList = imgLoad.imagepaths.path;
       // show name
       for each (var nameTrace:XML in imgNames) {
          trace(nameTrace);
          imgText.appendText(nameTrace +"\n");
       // show path
       for each (var pathTrace:XML in imgPaths) {
          trace(pathTrace);
          imgText.appendText(pathTrace +"\n");
       // show name and path
       for(var i:uint=0; i<imgNames.length(); i++){
          trace(imgNames[i].text()+"  "+imgPaths[i].text());
          imgText.appendText(imgNames[i].text()+"  "+imgPaths[i].text() +"\n");

  • Xml gallery alignment, help

    I am making an XML gallery with thumbnails. It is working fine, but I have a problem with alignment of the images. All the large images are loading into the top left corner. I would like them to load with center alignment for all images. I don't know anything about Action Script. The way I made this website was to use already made sample of some one else. Can you help me to figure out this alignment problem? Again, I am very bad at Action Script, so it would be great if you can show me the actual coding for this to work.
    Here is the sample gallery: http://www.chimeddorj.com
    Here goes the Sript>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    RemoveAllThumbs.onLoad = function(){
    removeAllThumbs()
    //init global variables and properties
    Stage.scaleMode = "noscale";
    import gs.TweenFilterLite;
    import gs.TweenLite;
    XML LOADING
    //handle loading of external images..
    var slide:XML = new XML();
    slide.ignoreWhite = true;
    var largeImageUrl:Array = new Array();
    var thumbUrl:Array = new Array();
    var captions:Array = new Array();//not used
    var p:Number = 0;//tracks position in arrays
    /*!!!!if you want to load in another XML file, make sure you clear the existing thumbnails
    by calling the removeAllThumbs() function first!*/
    slide.onLoad = function() {
    largeImageUrl = [];
    thumbUrl = [];
    captions =  [];
    xmlNode = this.firstChild;
    var images:Array = this.firstChild.childNodes;
    for (i=0; i<images.length; i++) {
    thumbUrl[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
    largeImageUrl[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
    captions[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
    p = 0;//reset p for different gallery loading
    //create a bg clip for the thumbsTrack. Enables padding between images to work correctly
    thumbMask_mc.thumbBox_mc.createEmptyMovieClip("thumbTrackBg",1);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.beginFill(0x000000,20);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.moveTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x+thumbMask_mc.thum bBox_mc._width,thumbMask_mc.thumbBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x+thumbMask_mc.thum bBox_mc._width,thumbMask_mc.thumbBox_mc._y+thumbMask_mc.thumbBox_mc._height);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y+thumbMask_mc.thumbBox_mc._height);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.endFill();
    //load the thumbs
    loadThumbs();
    Mouse.removeListener(mouseListener);//kill the mouselistener if it is added
    slide.load("paintings.xml");//load xml
    var imageWidth:Number = 0;//default x position of our movieclips relative to containing movieclip
    var buffer:Number = 20;//padding between images
    var thumbsToShow:Number = 5//
    LOAD THUMBNAILS, ADD ACTIONS & PADDING TO THUMBS
    //here we load in our thumbnails
    function loadThumbs() {
    //remove the movieclip loade listener on each iteration of this function
    Clip.removeListener(mclListener);
    //attach and associate with a variable a MC to hold each loaded movieClip
    var container:MovieClip = thumbMask_mc.thumbBox_mc.attachMovie("thumbBox", "thumbBox"+p, thumbMask_mc.thumbBox_mc.getNextHighestDepth(), {_x:imageWidth, _y:0});
    //create a movieclip loader
    var Clip:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function(target_mc:MovieClip) {
    target_mc._alpha = 0;//set thumb alpha to be zero
    //handle loading progress - simple counter here
    mclListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    //use this if you want to indicate loading of your thumbnails etc...
    //loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    //here we can access our loaded clips properties!
    //here is where we attach functions to our clip so that we can dynamically create rollovers etc.
    //make our thumbnails visible again
    TweenLite.to(target_mc, 2, {_alpha:100});
    //based off image width this places our thumbs next to each other
    imageWidth = (imageWidth+target_mc._width)+buffer;
    //associate a variable here with our p value, we use this later to load in large images
    target_mc.pictureValue = p;
    //handle  image rollovers these are active only on the thumb image!!! Watch the US spelling!
    target_mc.onRollOver = function() {
    TweenFilterLite.to(target_mc,.4,{type:"Color", brightness:1.5, ease:None.easeOut});
    target_mc.onRollOut = function() {
    TweenFilterLite.to(target_mc,4,{type:"Color", brightness:1, ease:None.easeOut});
    //handle a click on a thumbnail
    target_mc.onRelease = function() {
    //load large images
    mcLoader.loadClip(largeImageUrl[target_mc.pictureValue],largeImage_mc);
    caption.text = captions[target_mc.pictureValue];;
    p++;//increment value to cycle through array
    if (p<thumbUrl.length) {
    loadThumbs();//create loop
    if (p == thumbUrl.length) {
    /*we set this variable here because this is where we know the length of our thumbnails containing mc.
    After we have loaded all content in. Makes sense really!*/
    mcWidth = thumbMask_mc.thumbBox_mc._width;
    //adjust the width and height of the thumbstrack bg clip
    thumbMask_mc.thumbBox_mc.thumbTrackBg._width = mcWidth;
    thumbMask_mc.thumbBox_mc.thumbTrackBg._height = thumbMask_mc.thumbBox_mc._height
    /*add the mouse listener object to the thumbnail mask. We do this element of our script here so
    we do not enable scrolling of our mc before the images have all loaded in. As this can look a little funny*/
    Mouse.addListener(mouseListener);
    //load in the next thumb
    Clip.addListener(mclListener);
    Clip.loadClip(thumbUrl[p],container);
    REMOVE ALL THUMBS METHOD
    //Use to clear old thumbs if you are going to add in a new set of thumbs
    function removeAllThumbs():Void {
    for (var i in thumbMask_mc.thumbBox_mc) {
    if (typeof (thumbMask_mc.thumbBox_mc[i]) == "movieclip") {
    removeMovieClip(thumbMask_mc.thumbBox_mc.getInstanceAtDepth(thumbMask_mc.thumbBox_mc[i].ge tDepth()));
    thumbMask_mc.thumbBox_mc._width = thumbMask_mc._width
    /*sampleRemoveAllButton.onRelease = function(){
    removeAllThumbs()
    LOAD LARGE IMAGES MOVIECLIP LOADER FUNCTION
    /*generic load object here we handle loading in external images etc
    this block of code loads the large images into the bright blue mc
    for instance, you could fade in/out big images or make a progress indicator
    using this block of script*/
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var listener:Object = new Object();
    listener.onLoadStart = function(target_mc:MovieClip) {
    //empty
    listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    //amountLoaded = Math.floor((bytesLoaded/bytesTotal)*100);//calulate a loading percentage!
    listener.onLoadInit = function(target:MovieClip):Void  {
    //empty
    mcLoader.addListener(listener);
    MOUSE LISTENER
    //this handles the panning of the thumbnails
    mouseListener = new Object();
    mouseListener.onMouseMove = function() {
    if (thumbMask_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
    maskOver();//call the scroll function
    SCROLLER FUNCTION
    var scrollSpeed:Number = 5;
    var halfMaskWidth:Number = thumbMask_mc._width/2;
    var npixels:Number;
    var mcWidth:Number = thumbMask_mc.thumbBox_mc._width;
    var maskWidth:Number = Math.floor(thumbMask_mc._width);
    function slideThumbs() {
    // stop scrolling if we are off the mask and delete the enterframe event
    if (!thumbMask_mc.thumbBox_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
    delete this.onEnterFrame;
    // mouse over left half of slider:
    if (thumbMask_mc._xmouse>0 && thumbMask_mc._xmouse<thumbMask_mc._x+halfMaskWidth) {
    npixels = (halfMaskWidth-thumbMask_mc._xmouse)/halfMaskWidth*scrollSpeed;
    thumbMask_mc.thumbBox_mc._x += npixels;
    //stop sliding too far to the left
    if (thumbMask_mc.thumbBox_mc._x>=0) {
    thumbMask_mc.thumbBox_mc._x = 0;
    delete this.onEnterFrame;
    // mouse over right half of slider:
    if (thumbMask_mc._xmouse>halfMaskWidth && thumbMask_mc._xmouse<thumbMask_mc._x+thumbMask_mc._width) {
    npixels = (thumbMask_mc._xmouse-halfMaskWidth)/halfMaskWidth*scrollSpeed;
    thumbMask_mc.thumbBox_mc._x -= npixels;
    //stop sliding too far to the right
    if (thumbMask_mc.thumbBox_mc._x<=-(mcWidth-maskWidth)) {
    thumbMask_mc.thumbBox_mc._x = -(mcWidth-maskWidth);
    delete this.onEnterFrame;
    //function to do the scrolling man!
    function maskOver() {
    this.onEnterFrame = function() {
    slideThumbs();

    I am using Flash CS 4, like I mentioned earlier, I am making this site on some one's pre-made flash file. There is a movie symbol for loading the large images (called largeImage_mc). I resized this movie clip to 550x450 px (landscape). And positioned it at X=200 Y=0 (top left corner registration point or the anchor point).
    The movie clip could be dragged to any position. But images that are loaded into this bo is always aligning to the top left corner of this movie symbol.
    If I calculate the actual center of this image loading area (regarding its position on the window), it would be x=425, y=225.
    I hope my writing makes sence.
    actual site: www.chimeddorj.com

  • Xml gallery with thumbnails & next/previous buttons.

    hallo all the wise people,
    sorry to bother you, but i'm kind of desperate, and nobody around to ask, so....
    i've spend now three full days editing an xml gallery... to my needs, and always goes messy, so maybe it's time give up and make my own from the scratch, or looking from a one closer to my needs =/ (helpless).
    could anyone help - maybe any of you by some chance knows a link as close as possible to tutorial/source as3 fla to sthg as close as possible to this:
    a) xml gallery
    b) thumbnails
    c) when thumbnail clicked a big picture shows
    d) next/previous buttons possible
    otherwise, i can also post the code of my gallery where i absolutely can't add next/previous buttons without making a big mess =/
    i will be totally youbie doubie grateful for any help... any, if you only know any good link, 'll try to fugure out a tutorial or edit the source myself....
    thanks in advance

    heyyyo wise one,
    at least this is really  nice of you to ask -  this gallery really makes me by now feel twice as blond as i am 8-0. but this is kinda really nested.
    the xml structure goes like this (this is easy and more or, less standard)(Caption is neglectable, probabaly i will not even display it, unless i have some extra time):
    <MenuItem>
             <picnum>01</picnum>
             <thumb>thumbs/Image00001.jpg</thumb>  
             <picture>Image00001.jpg</picture>
       <Caption>Fist Title</Caption> 
    </MenuItem>
    uaaha, then the as goes. there is the URLloader, but also two different loaders inside (one for the thumbnails, one for the big picture). and this is all inside a for each loop -eh... i was always trying to change the pictLdr behavior - the loader, that loads the big picture.
    anyway the URL loader, and the main function, which is attached to it go like this:
    var myXML:XML = new XML();
    var XML_URL:String = "gallery_config.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    // Create the xmlLoaded function
    function xmlLoaded(event:Event):void
    // Place the xml data into the myXML object
        myXML = XML(myLoader.data);
        // Initialize and give var name to the new external XMLDocument
    var xmlDoc:XMLDocument = new XMLDocument();
    // Ignore spacing around nodes
        xmlDoc.ignoreWhite = true;
    // Define a new name for the loaded XML that is the data in myLoader
        var menuXML:XML = XML(myLoader.data);
    // Parse the XML data into a readable format
        xmlDoc.parseXML(menuXML.toXMLString());
        // Access the value of the "galleryFolder" node in our external XML file
    for each (var galleryFolder:XML in myXML..galleryFolder)
       // Access the value of the "pagenum" node in our external XML file
               var galleryDir:String = galleryFolder.toString();
    //trace (galleryDir);
    //trace (galleryFolder);//output taki sam jak powyżej
    // inicjuję variable flag, która bedzie trzsymac nazwę klikniętego thumbnail
    var flag2:String = null;
    // Set the index number of our loop, increments automatically
    var i:Number = 0;
    // Run the "for each" loop to iterate through all of the menu items listed in the external XML file
    for each (var MenuItem:XML in myXML..MenuItem)
    // Access the value of the "picnum" node in our external XML file
        var picnum:String = MenuItem.picnum.toString();
    // Access the value of the "pagetext" node in our external XML file
        var Caption:String = MenuItem.Caption.toString();
    // Access the value of the "thumb" node in our external XML file
        var thumb:String = MenuItem.thumb.toString();
    // Access the value of the "pagepicture" node in our external XML file
        var picture:String = MenuItem.picture.toString();
    // Just some trace I used for testing, tracing helps debug and fix errors
    //trace(picnum);
    var thumbLdr:Loader = new Loader();
        var thumbURLReq:URLRequest = new URLRequest(galleryDir + thumb);
        thumbLdr.load(thumbURLReq);
    // Create MovieClip holder for each thumb
    var thumb_mc = new MovieClip();
    thumb_mc.addChild(thumbLdr);
    addChildAt(thumb_mc, 1);
      // Create the rectangle used for the clickable button we will place over each thumb
      var rect:Shape = new Shape;
      rect.graphics.beginFill(0xFFFFFF);
      rect.graphics.lineStyle(1, 0x999999);
      rect.graphics.drawRect(0, 0, 80, 80);      
      // Create MovieClip holder for each button, and put that rectangle in it,
      // make button mode true and set it to invisible
      var clip_mc = new MovieClip();
      clip_mc.addChild(rect);
      addChild(clip_mc);
      clip_mc.buttonMode = true;
      clip_mc.alpha = .0;
         // The following four conditionals create the images where the images will live on stage
      // by adjusting math through each row we make sure they are laid out good and not stacked
      // all on top of one another, or spread out in one long row, we need 4 rows, so the math follows
      if (picnum < "05")
           line1xpos = line1xpos + distance; // These lines place row 1 on stage
        clip_mc.x = line1xpos;
        clip_mc.y = yPlacement;
        thumb_mc.x = line1xpos;
        thumb_mc.y = yPlacement;
       else  if (picnum > "04" && picnum < "11")
        line2xpos = line2xpos + distance; // These lines place row 2 on stage  
        clip_mc.x = line2xpos;
        clip_mc.y = 86;
        thumb_mc.x = line2xpos;
        thumb_mc.y = 86;
       else  if (picnum > "10" && picnum < "14")
        line3xpos = line3xpos + distance; // These lines place row 3 on stage
        clip_mc.x = line3xpos;
        clip_mc.y = 172;
        thumb_mc.x = line3xpos;
        thumb_mc.y = 172;
       else  if (picnum > "13" && picnum < "21")
       line4xpos = line4xpos + distance; // These lines place row 4 on stage
       clip_mc.x = line4xpos;
       clip_mc.y = 258;
       thumb_mc.x = line4xpos;
       thumb_mc.y = 258;
       // And now we create the pic loader for the larger images, and load it into "pictLdr"
       var pictLdr:Loader = new Loader();
       var pictURL:String = picture;
          var pictURLReq:URLRequest = new URLRequest(galleryDir + picture);
       //var pictURLReq:URLRequest = new URLRequest("gallery/Image00004.jpg");sprawia,ze zawsze wyswitla sie jeden obrazek
          pictLdr.load(pictURLReq);
       // Access the pic value and ready it for setting up the Click listener, and function
          clip_mc.clickToPic = pictLdr;
       // Access the text value and ready it for setting up the Click listener, and function
       clip_mc.clickToText = Caption;
       //var instName:String = flag();
       // Add the mouse event listener to the moviClip button for clicking
          clip_mc.addEventListener (MouseEvent.CLICK, clipClick);
          // Set the function for what happens when that button gets clicked
       function clipClick(e:Event):void
         // Populate the parent clip named frameSlide with all of the necessary data
         MovieClip(parent).frameSlide.gotoAndPlay("show"); // Makes it appear(slide down)
         MovieClip(parent).frameSlide.caption_txt.text = e.target.clickToText; // Adds the caption
         MovieClip(parent).frameSlide.frame_mc.addChild(e.target.clickToPic); // Adds the big pic
       } // This closes the "for each" loop
    } // And this closes the xmlLoaded function
    and the effect looks like this (it's a sketch, so big pictures are loaded randomly, don;t put too much attention to it): http://bangbangdesign.pl/xmlGallery/gallery29.swf
    but i guess it's a terrible stuff to go through all this. i would be totallly satisfied with a likng to a good tutorial to do it from scratch, or just a hint where to start rebuilding this.
    + in any case i send greetinngs to whereever you are =]

  • Xml gallery problem??

    I´m using a xml gallery with thumbs . I tried several
    things but can´t get it work. I want to add links in the
    textfield. The text in the textfield comes from a .txt file and xml
    file. I dont know if it´s possible to add links in .txt files
    or if there is any other way to open urls with links for the
    different images.
    I hope someone can help me with this..
    file included...
    http://www.robertr.se/flash/portfoliopage.zip
    207 kb
    Very best regards
    /Robert

    I'm not really sure what you are trying to do. I dont know
    what you are trying to make a link out of....
    However if you have a movieclip called myPic, and you want it
    to link to one of your urls loaded from the xml or a .txt file
    myLink= whatever your loaded link from xml or .txt is;
    myPic.onRelease=function(){
    getURL(myLink,blank);}

  • I purchased a song through iTunes on my MacBook which I have owned for years using the same Apple ID and all of the sudden I am not authorized to listen to this song only? Why? How do I fix it cause it's making me very mad...

    Just purchased a song through iTunes on my MacBook which I have owned for years using the same Apple ID and all of the sudden I am not authorized to listen to this song only? Why? How do I fix it cause it's making me very mad...

    Hi E_WM7,
    Welcome to Apple Support Communities!
    Take a look at the article linked below, it provides suggestions that may be able to resolve the authorization issue.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    -Jason

  • My iphone took all of my pics off of my computer. this is making it very slow. How do I remove them if the only options are places or albums?

    Hello,
    I accidently hit restore on my phone and erased everything. When I called Apple they helped me retrieve everything from my computer and more. I now have over 4,000
    pics on my phone  that were on my computer, which is making it very slow. How do I get these off when the only options the phone is giving me are places and albums

    To Remove Photos from your Phone you need to Sync your phone with the Computer you Usually Sync with...
    See Here for Syncing...
    http://support.apple.com/kb/HT1386
    From Here
    http://www.apple.com/support/iphone/syncing/
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Flash & xml gallery problem

    i have a flash & xml gallery source. whatever click the
    thumbnails, opening first image. where is the problem? i need help,
    please...
    Flash & Xml
    Gallery

    then that's a problem. sometimes your cookie may loaded
    sooner than the needed frame in your swf and when you try to go to
    a frame that hasn't been downloaded, the swf will stay on frame 1.
    i assume you already have a stop() on frame 1 and you check
    the cookie's value before proceeding. in addition to waiting for
    the cookie to load, you should wait for the needed frame of your
    swf to load.
    so, if you're not using a loop now to check for your cookie,
    you'll need one for your swf to check its _framesloaded property
    before advancing the timeline.

  • Clear loaded pictures in xml gallery to load another set

    i cannot figure how to unload my already populated xml gallery, before loading new content :
    here the functions i want :
    //following 2 functions will be called by a button :
    // removes previously placed objects
    function clearLoadedPictures():void {
    // Load another ,xml to load new pictures set - ok : works fine
    function LoadNewPictures():void {
            i_g = 0;
               // xml data
                var xml_gallery:XML                = new XML();
                var xml_gallery_List:XMLList        = new XMLList;
                // XML data loader...
                var xmlUrlReq:URLRequest   = new URLRequest("xml/gallery2.xml");// gallery2.xml will replace gallery.xml already loaded
                var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
                xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
                xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
    here the xml gallery code :
    var _mc:item;
    var total:int;
    var i_g:int;
    var id:int;
    var btn_Gallery_Ready:Boolean;
    var speedX:Number;
    var spaceR:Number;
    var img_gallery_Loader:Loader;
    i_g = 0;
               // xml data
                var xml_gallery:XML                = new XML();
                var xml_gallery_List:XMLList        = new XMLList;
                // XML data loader...
                var xmlUrlReq:URLRequest   = new URLRequest("xml/gallery.xml");
                var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
                xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
                xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
                bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OVER, startScroll);
                bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OUT, stopScroll); //
    // xmlComplete function
            function xml_gallery_Complete(e:Event):void
            xml_gallery = XML(e.target.data); //
                xml_gallery_List = xml_gallery.item;  // <item> in gallery.xml
                total = xml_gallery_List.length();
                spaceR = xml_gallery.attribute("space"); // specified in gallery.xml file as is : <gallery space="119" speed="0.2">
                speedX = xml_gallery.attribute("speed");
                init_gallery();
            function xml_gallery_LoadFailed(e:IOErrorEvent):void {
                trace("Load Failed: " + e);
            function init_gallery()  //
                //bottom.gallery.content_mc.itemHolder_mc.
                _mc = new item(); //
                _mc.alpha = 0;
                //_mc.imgMask_mc.scaleY = 0;  // condition pour apparition des timbres ds la gallery - OLD
                _mc.imgMask_mc.alpha = 0; // condition pour apparition des timbres ds la gallery - NEW
                _mc.x = i_g * spaceR;
                _mc.btn.id = i_g;
                _mc.btn.mouseChildren = false;
                bottom24.gallery.content_mc.itemHolder_mc.addChild(_mc);
                Tweener.addTween(_mc, {alpha:1, time:0.8, transition:"easeOutExpo"});
                _mc.online_mc.alpha = 0; //invisible sans roll over
                if (xml_gallery_List[i_g].url != "")
                    _mc.btn.buttonMode = true;
                    _mc.online_mc.visible = true;
                    btn_Gallery_Ready = true;
                else
                    _mc.btn.buttonMode = false;
                    _mc.online_mc.visible = false;
                    btn_Gallery_Ready = false;
            var imgRequest:URLRequest = new URLRequest (xml_gallery_List[i_g].image); //
             img_gallery_Loader = new Loader(); // var imgLoader:Loader;
                img_gallery_Loader.load(imgRequest); //
                img_gallery_Loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imgLoading);
                img_gallery_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, img_gallery_Complete);
                i_g++;
            function imgLoading(event:ProgressEvent):void // tiny preloader in bottom thumbs pics
        _mc.preloader_mc.width = Math.round(img_gallery_Loader.contentLoaderInfo.bytesLoaded / img_gallery_Loader.contentLoaderInfo.bytesTotal * 100);
            function img_gallery_Complete(event:Event):void
                _mc.imgHolder_mc.addChild(img_gallery_Loader);
                Tweener.addTween(_mc.imgHolder_mc, {_saturation:0.9, time:0.6});// desaturate scrolling thumbs
                //_mc.imgHolder_mc.alpha = 0.5; // test
                // apparition des timbres ds la gallery, ici fade in : - NEW
                Tweener.addTween(_mc.imgMask_mc, {"alpha":1, delay:i_g / 20, time:0.4, transition:"easeOutExpo"});// test
                // apparition des timbres ds la gallery, ici image apparait de haut en bas : - OLD
                //Tweener.addTween(_mc.imgMask_mc, {"scaleY":1, delay:i_g / 10, time:1, transition:"easeOutExpo"});
                // la ligne de preloader qui diminue vers la gauche :
                Tweener.addTween(_mc.preloader_mc, {"scaleX":0, delay:0, time:1, transition:"easeOutExpo"});
                _mc.btn.addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
                _mc.btn.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
                _mc.btn.addEventListener(MouseEvent.CLICK, onMouseClick);
                if (i_g < total)
                    init_gallery();
    thanks

    hi,
    back to work,
    then i used a loop in the first clear function:
    var n:int = 0;
                  while (n < xml_gallery_List.length() -1) {
                      bottom24.gallery.content_mc.itemHolder_mc.removeChildAt(n); //
                    i++;
    and it remove all my previously loaded pictures,but it throw me an error :
    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display: DisplayObjectContainer/removeChildAt()
    it seems error come from the removeChildAt, but i can't figure out what's wrong
    i've tried to replace removeChildAt(n); by removeChild(n); and the loop crash Flash software....
    any suggestion ?

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • XML GALLERY WONT EXIT

    I have an XML gallery that has been giving me some problems. My as3 refers to an .as file that is in itself a class. This class creates the gallery and has an event listener to exit the gallery when clicked. It works perfectly fine for exiting the main image, but my thumbnails don't budge. I fixed the thumbnail issue by adding the code removeChild, which removes the gallery completely, but freezes the main image. What I think is happening is that when I add the code removeChild it disables any communication between my swf and as files, which in turn skips over the eventListener to remove my main image.. the code is kind of long and complicated, but i was hoping for some advice.. tips.. anything.

    thanks for the help!!
    I'm still getting an error 2007 non null object, even though i declared it in same style in which i declared photo_bit.
    take the following code for example...
    stage.removeChild(stage.getChildByName("photo_bit"));
    stage.removeChild(stage.getChildByName("thumb_btn"));
    stage.removeChild(stage.getChildByName("thumb_bit"));
    and yes I added it to my .as file
    private function displaythumb(e:Event):void
         thumb_btn = new Sprite();
         thumb_bit= new Bitmap();
         thumb_btn.name="thumb_btn";
         thumb_bit.name="thumb_bit";
         thumb_btn.y=(stage.stageHeight-thumb_btn.height)/1.25;
         thumb_btn.graphics.beginFill(0x000000,0);
         thumb_btn.graphics.drawRect(0,0,125,125);
         thumb_btn.graphics.endFill();
         thumb_bit=e.target.content as Bitmap;
         thumb_bit.y=(stage.stageHeight-thumb_bit.height)/1.045;
         thumb_btn.width=thumb_btn.height=thumb_bit.width=thumb_bit.height=125;
         thumb_bit.smoothing=true;
         addChild(thumb_bit);
         addChild(thumb_btn);
         thumb_btn.addEventListener(MouseEvent.CLICK,loadphoto);

  • Best technology to navigate through a very large XML file in a web page

    Hi!
    I have a very large XML file that needs to be displayed in my web page, may be as a tree structure. Visitors should be able to go to any level depth nodes and access the children elements or text element of those nodes.
    I thought about using DOM parser with Java but dropped that idea as DOM would be stored in memory and hence its space consuming. Neither SAX works for me as every time there is a click on any of the nodes, my SAX parser parses the whole document for the node and its time consuming.
    Could anyone please tell me the best technology and best parser to be used for very large XML files?

    Thank you for your suggestion. I have a question,
    though. If I use a relational database and try to
    access it for EACH and EVERY click the user makes,
    wouldn't that take much time to populate the page with
    data?
    Isn't XML store more efficient here? Please reply me.You have the choice of reading a small number of records (10 children per element?) from a database, or parsing multiple megabytes. Reading 10 records from a database should take maybe 100 milliseconds (1/10 of a second). I have written a web application that reads several hundred records and returns them with acceptable response time, and I am no expert. To parse an XML file of many megabytes... you have already tried this, so you know how long it takes, right? If you haven't tried it then you should. It's possible to waste a lot of time considering alternatives -- the term is "analysis paralysis". Speculating on how fast something might be doesn't get you very far.

  • Since upgrading to iphoto 11 I,m having difficulty viewing my photos in edit mode. On the quick scan of info mode the photos appear sharp, however in edit mode the edges blur up making it very difficult to edit properly, What is the problem here?  I never

    Since upgrading to iphoto 11 I,m having difficulty viewing my photos in edit mode. On the quick scan of info mode the photos appear sharp, however in edit mode the edges blur up making it very difficult to edit properly, What is the problem here?  I never

    Marisa, you stand a better chance of getting an answer concerning iPhoto by posting this question in the iPhoto forum
    https://discussions.apple.com/community/ilife/iphoto

  • At times, the type in the bookmarks toolbar as well as the tabs changes to white with a drop shadow on a white background, making it very difficult to read. I do not know what it causing the colors to change. Is there any way to fix this?

    At times, the type in the bookmarks toolbar as well as the tabs changes to white with a drop shadow on a white background, making it very difficult to read. I do not know what it causing the colors to change. Is there any way to fix this?

    quick test based on screendump from your picture
    1: hue & saturation : master sat -100
    2:levels : input white=67
    OK ?

  • Very large XML String parameters

    Hi !
    I'm using AXIS 1.x, websphere 5 --- The problem is - when i call webservice with xml (String) parameter upto size of 10kb-400kb.. it works fine..
    But my application could genrate very large xml, like 900kb-1000kb even more.. When this large XML is sent as String parameter.. no reply is recieved back..
    Can some body throw some light.. what is going wrong... and which approch to be followed.
    Thanks a lot
    @mit

    Maybe this example on the XDB forum will be helpful...
    XMLType view of Relational Content
    XML type questions are best asked in that forum.
    ;)

Maybe you are looking for

  • IPod mini windows - but own a mac

    I got an iPod mini (1st generation) last year which is compatible with windows. But have just bought a new macbook. Will mini work on the macbook, and if not is there anything i can do to make it work with the macbook? Thanks go the socceroos!! MacBo

  • Down payment for Purchase order

    Dear Friends In my client place Down payment is made as per purchase order Item wise How to make down payment on the value of Purchase order not considering the PO item wise? The reason why i am asking is Some times if vendor does not do the service

  • How do I save or print consecutive pages from a web site document

    When visiting a web site and viewing a document with several pages, when I try to print the document out FF only prints the first two pages. Even when I say print pages.. say.. 1-6... only the first two pages are printed. Maybe one or more of my sett

  • CLASSPATH / Project organisation

    Hi, I'm fairly new to Java, but I'd like to think I'm a reasonably experienced programmer. I think I've missed something fundamental with the organisation of Java projects though. I have a lot of toy Java projects, mostly as learning tools, some of t

  • Any more customized program for BEx

    Hello, I wonder if there is any way to customized data from BEx Analyzer rathan using variables with processing type-Customer Exit? -WJ-