Results 1 to 3 of 3

Thread: loading 3 xmls deping on user clicks the button,...plz help

  1. #1
    Join Date
    Jan 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face loading 3 xmls deping on user clicks the button,...plz help

    hai to all help me plzzzz

    i did photogallery for my project.it is driven by the xml.

    the pics are classifed as small,medium,large.

    i kept three buttons like small_mc,medium_mc,large_mc.

    if the user clicks on them the respective xml should load and corresponding pics should be loaded.

    here i did like
    on(press){
    l="small.xml";
    }
    on(press){
    l="medium.xml";
    }

    this is where xml will be loaded in flash mx 2004.

    my_xml = new XML();
    my_xml.ignoreWhite = true;
    my_xml.load(l);---------this is not working i am not geting the pics loaded
    any corrections plzzzzzzzz
    my_xml.onLoad = function() {
    rootElement = my_xml.firstChild;
    children = rootElement.firstChild.childNodes;
    bababbabbababbabbaba

  2. #2
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default trace

    try to put a trace where the XML loads.

    What is "l" ?

    greets
    Clark

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    It's not working because on button press you are just changing a variable. You are not rerunning the load function.

    The easiest way is to make 3 instances for the XMP load function. Give them each a different load (not "l" but "small" "med" "large" etc.)

    Add that to your button's on(press) and on (release) call that function.

    I know you have a working model of the XML load function, we made your last one work not too long ago
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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