Welcome, Guest
  • Author Topic: xml to scrollpane trouble  (Read 852 times)

    leo

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    xml to scrollpane trouble
    « on: 04/12/04, 12:54 »
    Hello I'm having this (loading data into holder, which goes well)

    xmlmenu=new XML();
    xmlmenu.ignoreWhite=true;
    xmlmenu.onLoad=function(success){
     if (success) {

       menuItem=this.firstChild.childNodes;
       for(var i=0; i<menuItem.length; i++){
         item=_root.myHolder.attachMovie("clip","new" +i, i);

         if (i%3 ==0){
         new Color(item.background).setRGB(0xFF9900);}
         if (i%2 ==0){
         new Color(item.background).setRGB(0x0099CC);}
         if (i%4 ==0){
         new Color(item.background).setRGB(0x99CC00);}

    item._x=0;
    item._y=20*i;
    item.itemLabel.text=menuItem.attributes.name;

    } } }
    xmlmenu.load("menu.xml");


    but now I want to load the items into an scrollpane (myScrollPane) but how

    thanks
       


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:xml to scrollpane trouble
    « Reply #1 on: 04/12/04, 18:24 »
    ScrollPane doesn't support scripted movies (mask fails), you need to manually setup a mask and scroller. See http://www.flash-db.com/Board/index.php?board=18;action=display;threadid=7274

    Jorge