A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: xml with action 1.0

  1. #1
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713

    xml with action 1.0

    This is an XML issue problem so I belive this is the appropiate place.
    I have a koolmoves fun file that works in flash 8 but not Koolmoves. I know it is because what I have is action 2. So is there a way to convert it to action 1.0 so that it can be used in koolmoves? I am learning XML so as to create programs that can be easily edited. I do kinda of understand the XML posted here but not enough to redo it. (it is from gotoandlearn.com video) I attached the xml also.
    Attached Files Attached Files
    Any programming language is at its best before it is implemented and used.

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    You're XML is fine, it's the AS2 like you mentioned (Koolmoves is AS1 as you know). Crop it down to this (removes AS2 specific coding). Compare it against the original to see the changes.

    I already tested it but see you are still building the show (resize, x/y, etc) so at least gets your loading back online so you can continue building. This is using the code below but with me loading images that are too large (they were handy...sorry). I'm also only loading three pics (lazy).

    http://flashnow.servebbs.com/example...w/koolpic.html

    var x = new XML();
    x.ignoreWhite = true;

    var urls = new Array();
    var captions = new Array();
    var whoIson;

    x.onLoad = function() {
    var photos = this.firstChild.childNodes;
    for (i=0;i<photos.length;i++) {
    urls.push(photos[i].attributes.url);
    captions.push(photos[i].attributes.caption);
    }

    holder.loadMovie(urls[0]);
    caption.text = captions[0];
    whoIson = 0;
    }
    x.load ("picview.xml");

    //previous Button
    previous.onRelease = function() {
    if(whoIson > 0) {
    whoIson--;
    holder.loadMovie(urls[whoIson]);
    caption.text = captions[whoIson];
    }
    }

    //Next button
    next.onRelease = function() {
    if(whoIson < urls.length-1) {
    whoIson++;
    holder.loadMovie(urls[whoIson]);
    caption.text = captions[whoIson];
    }
    }

  3. #3
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Thank you.
    I know it was with the : or colons. I don't understand the difference here. But what you did now works and i see the difference. This is something that I am learning and I would like to post this at koolexchange when I am done.
    Any programming language is at its best before it is implemented and used.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center