1 Reply Latest reply on May 26, 2008 2:41 PM by kglad

    Dynamically Loaded image ..border and center of movie clip

    kakas Level 1
      Hi all,

      I am working on a image gallery where i am loading the images from xml. Now my problem is On click of the thumbnails a larger image should load...I like to give a outline to the image based on the orientation horizontal and vertical and should fit to the image loaded.

      I am using the following script to load images.
      /*Scrip starts here*/
      import flash.filters.DropShadowFilter;
      var dropShadow:DropShadowFilter = new DropShadowFilter(3, 45, 0x000000, 0.4, 7, 7, 2, 3);
      big1.frm.filters = [dropShadow];
      big1._visible = 0;
      function loadXML(loaded) {
      if (loaded) {
      xmlNode = this.firstChild;

      th = [];

      total = xmlNode.childNodes.length;
      for (i=0; i<total; i++) {
      th = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
      loadmc(); // will assign the th to the movie clip name th_loader//
      } else {
      content = "file not loaded!";
      xmlData = new XML();
      xmlData.ignoreWhite = true;
      xmlData.onLoad = loadXML;

      Any help will be appreciated.

      Thanks & Regards,