A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: whats wrong ? (gallery xml + flash)

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    14

    whats wrong ? (gallery xml + flash)

    Hi guys, i try to make a xml image gallery but the buttons to load photos doesnt work...
    i get undefined... thats because 2 quotation marks ?

    well, thanks for any help
    Attached Files Attached Files
    Last edited by FXS; 06-28-2005 at 12:54 PM.

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518

    Maybe try this...

    code:

    for (var i=0; i<this.firstChild.childNodes.length; i++) {
    jpgArr.push(String(this.firstChild.childNodes[i].attributes.path));
    // building playlist buttons
    box.duplicateMovieClip("box"+i, i);
    _root["box"+i]._x = box._x+i*int(box._width)+i;
    _root["box"+i].txt = i+1;
    // ------------ add a place holder for the image name
    _root["box"+i].imgname = jpgArr[i];
    _root["box"+i].btn.onPress = function() {
    _root.transition.gotoAndPlay("in");
    // ------------ retrieve the name from the placeholder
    _root.img = this._parent.imgname;
    };
    }


  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    14
    hmm great dawsonk... thanks for your tip. Is my first test with XML.

    Can i add a buttons to navigate in cattegories if i have more ?

    [ gallery 1 - gallery 2 ] (add buttons by xml)

    xml:

    PHP Code:
    <projector>
         <
    gallery number 1>
        <
    foto path="i_01.jpg">
        <
    foto path="i_02.jpg">
        <
    foto path="i_03.jpg">
         </
    gallery>
         <
    gallery number 2>
        <
    foto path="g_01.jpg"
        <
    foto path="g_02.jpg">
         </
    gallery>
    <
    projector
    is correct ?
    thx guys
    Last edited by FXS; 06-29-2005 at 05:30 PM.

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