0 Replies Latest reply on Nov 8, 2006 4:53 AM by elviskat

    need some bits of help with a couple of things ?

    elviskat
      I am basically trying to modify some code so as to display other items from from XML in fields.

      I can get the variables no problem from the XML, but i've been banging my head against the wall as to how i can dynamically put them into more fields, or even if i'm actually putting the fields in correctly!! could do with a little help!

      firstly I'm trying to put the variable .venue into menu_mc.info_txt.text outside of the rollover function, i'm not sure whether i'm doing this right though by putting it into the enterframe, and if so how to end the enterframe once done, to stop lag, or of this is correct or not.

      Secondly I'm trying to create an additional MC (var currentThumb_mc = menu_mc.createEmptyMovieClip("test_dj"+i,i);
      currentThumb_mc._y = i * thumb_spacing;)

      and in turn trying to dynamically put and diaplay say variaible title2 into this field.

      Could really do with a little help, been on this all morning and getting know where.

      thanks in advance, here's my code below

      [code]
      function GeneratePortfolio(portfolio_xml){
      var portfolioPictures = portfolio_xml.firstChild.childNodes;
      for (var i = 0; i < portfolioPictures.length; i++){
      var currentPicture = portfolioPictures ;

      var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
      currentThumb_mc._y = i * thumb_spacing;

      var currentThumb_mc = menu_mc.createEmptyMovieClip("test_dj"+i,i);
      currentThumb_mc._y = i * thumb_spacing;

      currentThumb_mc.menu_mc.test_dj0.loadMovie(currentPicture.attributes.title2);
      trace(currentThumb_mc)
      currentThumb_mc.createEmptyMovieClip("thumb_container",0);
      currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);
      currentThumb_mc.title = currentPicture.attributes.title;
      currentThumb_mc.venue = currentPicture.attributes.title2;
      currentThumb_mc.image = currentPicture.attributes.image;
      currentThumb_mc.description = currentPicture.attributes.description;

      currentThumb_mc.onEnterFrame = function(){
      menu_mc.info_txt.text = this.venue;
      }

      currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
      menu_mc.info_txt.text = this.title;
      }
      currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
      info_txt.text = "";
      }
      [/code]