Comunidad de diseño web y desarrollo en internet online

problema con loadmovie extraño.

Citar            
MensajeEscrito el 06 May 2008 10:50 pm
baje un archivo de internet que se llama Zoompane Component, quyiza lo aya encontrado y ocupado tambien..

le he metido y quitado algunas funciones.. ahora solo necesito que desde la pelicula principal haga que el movie que cargo cambie a otro frame. solo eso.

necesito a un experto, quien me da su mail o quien me agrega, realmente lo noto muy comlicado.

solo expertos.

agreguenme: [email protected]

Por GenaroPalma

10 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 06 May 2008 11:53 pm
¿Te refieres que estudiemos el componente y los cambios que hiciste pero que lo discutamos por mail?
¿No te parece mejor explicar lo que hiciste en el foro, para beneficio de esta cuantiosa comunidad que nos alberga?

aya o no aya .... mejor haya

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 07 May 2008 12:46 am
ahi les va de nuevo..

baje este componente de aqui:

http://www.after-hours.org/2005/03/10/zoompane/

se llama Zoompane component.

si pueden bajenlo y revisenlo..

este componente de zoom lo que ahce es jalar una imagen y utilizarla para ponerle zoom, drag y todo eso.

ok hasta ahi todo bien. lo que yo hice fue cambiar la imagen por un swf.

asi:

Código :

};
b5.onPress = function() {
   myZoomPane.loadImage(\\\"tooltip.swf\\\");


solo cambie el nombre de l aimagen.jpg por el del swf.
El sfw se carga apartir de la accion de un boton, por cierto tambien me gustaria saber como hacerle para cargar la imagen sin necesidad de presionar el boton. pero eso dejemoslo para despues.

ahora lo que necesito es saber como hacer para que en la pelicula principal ponga por ejemplo unos 5 botones, y que cada boton se dirija al frame 1,2,3,4,5, digamos que con etiquetas o que se yo.

bueno hasta ahi no parece complicado. el problema es que no se cual seria la direccione que pondria para poder vincular los botones con la otra pelicula, no entiendo la programacion para saber en que nivel o en que mc se encuentra la pelicula cargada.

es mucho el el codigo que no lo entiendo, ahi les va para que lo chequen. o tambien pueden bajar el archivo de la direccion que puse.

gracias por la ayuda! realmente urge!

Código :

/*----------------------------------
FUNCIONES DE CARGA DE IMAGEN
loadImage(\\\"path/file\\\");
attachImage(\\\"idName\\\");

FUNCIONES DE AJUSTE DE ÁREA
setSelectionArea(true/false);
setZoomMode(0); --> (1 | 0 | -1)  / cero es inactivo / más de cero es zoom in / menos de cero es zoom out 
setMaxZoom(valorMaximoDeZoom); --> rango entre 100 y 3200
setZoomLevel(nivelDeZoom);
setEnabledArea(true/false);
setPosition(xPorcentaje, yPorcentaje);
setSize(width, height);
setColors(colorFondo, colorBorde, colorAreaSeleccionBorde, colorAreaSeleccionRelleno);
addMouseIcons(iconoZoomIn,iconoZoomOut,iconoseleccion,iconoDrag);
removeMouseIcons();
setPreLoadFunction(nombreDeLaFuncion);
setOnLoadFunction(nombreDeLaFuncion);
setOnChangedFunction(nombreDeLaFuncion); --> cada evento que se ejecuta llama la esta funcion 
centerImage(); --> centra la imagen en el área de visualización
fitOnArea(); --> ajusta la imagen en el área de visualización
actualPixels(); --> vuelve la imagen a su tamaño real(100%)
fitOnPixels(); --> ajusta la posición de la imagen en números enteros

RETURN --> el comp devuelve las siguientes variables de control

getEnabledArea()
getSelectionArea()
getZoomMode()
getMaxZoom()
getZoomLevel()
getXPercent()
getYPercent()
getWidth()
getHeight()
getBackgroundColor()
getBorderColor()
getSelectionBorderColor()
getSelectionFillColor()
getTotalBytes()
getLoadedBytes()
getUseMouseIcons()
getPreLoadFunction()
getOnLoadFunction()
*/
//--------
//--------
obj = this;
//--------
//--------
obj.button.useHandCursor = false;
obj.button.onRollOver = function() {
   if (obj.enabledAreaVar) {
      obj.addIcon();
   }
};
obj.button.onRollOut = function() {
   if (obj.enabledAreaVar) {
      obj.visibleIcon();
   }
};
obj.button.onPress = function() {
   obj.visibleIcon();
   if (obj.enabledAreaVar) {
      if (obj.selectArea) {
         obj.hit = true;
         obj.x = obj._xmouse;
         obj.y = obj._ymouse;
         obj.interval = setInterval(obj.selection, 20);
         obj.zoom = 0;
      } else if (obj.zoom == 0 && obj.firstRun) {
         obj.drag = true;
         obj.left = (obj.mask._width<obj.cont._width) ? obj.mask._width-obj.cont._width : obj.cont._x;
         obj.top = (obj.mask._height<obj.cont._height) ? obj.mask._height-obj.cont._height : obj.cont._y;
         obj.right = (obj.mask._width<obj.cont._width) ? 0 : obj.left;
         obj.bottom = (obj.mask._height<obj.cont._height) ? 0 : obj.top;
         if (obj.left != obj.right || obj.top != obj.bottom) {
            obj.button.useHandCursor = true;
            obj.cont.startDrag(false, obj.left, obj.top, obj.right, obj.bottom);
         }
      }
   }
};
obj.button.onRelease = obj.button.onReleaseOutside=function () {
   if (obj.enabledAreaVar) {
      obj.addIcon();
      obj.button.useHandCursor = false;
      obj.cont.stopDrag();
      if (obj.drag == false) {
         clearInterval(obj.interval);
         // 
         obj.sel._visible = obj.sel2._visible=0;
         obj.xs = obj.cont._xscale;
         obj.ys = obj.cont._yscale;
         // 
         if ((obj.sel._x+obj.sel._xscale>sel._x && obj.sel._y+obj.sel._yscale>obj.sel._y) || (obj.sel._x+obj.sel._xscale<=obj.sel._x && obj.sel._y+obj.sel._yscale<=obj.sel._y)) {
            if (obj.sel._x+obj.sel._xscale>obj.sel._x) {
               obj.x2 = obj.sel._x;
               obj.x3 = -(obj.sel._yscale/2-obj.sel._xscale/2);
            } else {
               obj.x2 = obj.sel._x+obj.sel._xscale;
               obj.x3 = obj.sel._yscale/2-obj.sel._xscale/2;
            }
            if (obj.sel._y+obj.sel._yscale>obj.sel._y) {
               obj.y2 = obj.sel._y;
               obj.y3 = -(obj.sel._xscale/2-obj.sel._yscale/2);
            } else {
               obj.y2 = obj.sel._y+obj.sel._yscale;
               obj.y3 = obj.sel._xscale/2-obj.sel._yscale/2;
            }
         } else {
            if (obj.sel._x+obj.sel._xscale>obj.sel._x) {
               obj.x2 = obj.sel._x;
               obj.x3 = obj.sel._yscale/2+obj.sel._xscale/2;
            } else {
               obj.x2 = sel._x+sel._xscale;
               obj.x3 = -(sel._yscale/2+sel._xscale/2);
            }
            if (obj.sel._y+obj.sel._yscale>obj.sel._y) {
               obj.y2 = obj.sel._y;
               obj.y3 = obj.sel._xscale/2+obj.sel._yscale/2;
            } else {
               obj.y2 = obj.sel._y+obj.sel._yscale;
               obj.y3 = -(obj.sel._xscale/2+obj.sel._yscale/2);
            }
         }
         // 
         obj.percentx = 100/obj.mask._width*obj.sel._width;
         obj.percenty = 100/obj.mask._height*obj.sel._height;
         // 
         if (obj.selectArea && obj.sel.hitTest(obj.cont)) {
            // 129 new! * if(...) *
            if ((Math.round(obj._xmouse)>Math.round(obj.x+5) && obj._xmouse>obj.x) || (Math.round(obj._xmouse)<Math.round(obj.x-5) && obj._xmouse<obj.x) || (Math.round(obj._ymouse)>Math.round(obj.y+5) && obj._ymouse>obj.y) || (Math.round(obj._ymouse)<Math.round(obj.y-5) && obj._ymouse<obj.y)) {
               if (obj.percentx>=obj.percenty) {
                  obj.cont._xscale = 100*(obj.cont._xscale/obj.percentx);
                  obj.cont._yscale = obj.cont._xscale;
                  obj.y2 += obj.y3;
               } else {
                  obj.cont._yscale = 100*(obj.cont._yscale/obj.percenty);
                  obj.cont._xscale = obj.cont._yscale;
                  obj.x2 += obj.x3;
               }
               // 140 / 151 new! * else{...} *
            } else {
               if (obj.cont.hitTest(_root._xmouse, _root._ymouse)) {
                  if (obj.cont._xscale<=obj.mZoom/2) {
                     obj.cont._xscale = obj.cont._yscale=obj.cont._xscale*2;
                  } else {
                     obj.cont._xscale = obj.cont._yscale=obj.mZoom;
                  }
               }
               obj.x2 = obj._xmouse;
               obj.y2 = obj._ymouse;
               obj.point = true;
            }
            obj.hit = false;
            // 
         } else {
            if (obj.zoom>0 && obj.cont.hitTest(_root._xmouse, _root._ymouse)) {
               if (obj.cont._xscale<=obj.mZoom/2) {
                  obj.cont._xscale = obj.cont._yscale=obj.cont._xscale*2;
               } else {
                  obj.cont._xscale = obj.cont._yscale=obj.mZoom;
               }
            }
            if (obj.zoom<0 && obj.cont._width>=20 && obj.cont._height>=20 && obj.cont.hitTest(_root._xmouse, _root._ymouse)) {
               obj.cont._xscale = obj.cont._yscale=obj.cont._xscale/2;
            }
            obj.x2 = obj._xmouse;
            obj.y2 = obj._ymouse;
            obj.point = true;
         }
         // 
         if (obj.cont._xscale>obj.mZoom) {
            obj.cont._xscale = cont._yscale=obj.mZoom;
            obj.point = true;
         }
         // 
         if ((obj.selectArea || obj.zoom != 0)) {
            if (!obj.max || obj.zoom<0) {
               obj.cont._x = (obj.cont._x-obj.x2)*(obj.cont._xscale/obj.xs);
               obj.cont._y = (obj.cont._y-obj.y2)*(obj.cont._yscale/obj.ys);
            }
            if ((!obj.max || obj.zoom<0) && obj.point) {
               obj.cont._x += obj.mask._width/2;
               obj.cont._y += obj.mask._height/2;
               obj.point = false;
            }
         }
         if (obj.selectArea) {
            if (obj.percentx>=obj.percenty) {
               obj.cont._y += ((obj.mask._height-obj.mask._width)/2);
            } else {
               obj.cont._x += ((obj.mask._width-obj.mask._height)/2);
            }
         }
         obj.rePos();
         obj.center();
         // 
      }
      obj.max = (obj.cont._xscale>=obj.mZoom) ? true : false;
      obj.position();
      obj.drag = false;
      obj.returnVars();
   }
};
obj.selection = function() {
   // 205 new! * if(...){ *
   if ((Math.round(obj._xmouse)>Math.round(obj.x+5) && obj._xmouse>obj.x) || (Math.round(obj._xmouse)<Math.round(obj.x-5) && obj._xmouse<obj.x) || (Math.round(obj._ymouse)>Math.round(obj.y+5) && obj._ymouse>obj.y) || (Math.round(obj._ymouse)<Math.round(obj.y-5) && obj._ymouse<obj.y)) {
      obj.tmpXmouse = (obj._xmouse<0) ? 0 : (obj._xmouse>obj.mask._width) ? obj.mask._width : obj._xmouse;
      obj.tmpYmouse = (obj._ymouse<0) ? 0 : (obj._ymouse>obj.mask._height) ? obj.mask._height : obj._ymouse;
      obj.sel._xscale = obj.sel2._xscale=obj.tmpXmouse-obj.x;
      obj.sel._yscale = obj.sel2._yscale=obj.tmpYmouse-obj.y;
      obj.sel._x = obj.sel2._x=obj.x;
      obj.sel._y = obj.sel2._y=obj.y;
      obj.sel._visible = obj.sel2._visible=1;
      // 213 / 216 new! * }else{...} *
   } else {
      obj.sel._visible = obj.sel2._visible=0;
   }
};
obj.rePos = function() {
   //
   if (obj.cont._x>0) {
      obj.cont._x = 0;
   }
   if (obj.cont._x<obj.mask._width-obj.cont._width) {
      obj.cont._x = obj.mask._width-obj.cont._width+1;
   }
   if (obj.cont._y>0) {
      obj.cont._y = 0;
   }
   if (obj.cont._y<obj.mask._height-obj.cont._height) {
      obj.cont._y = obj.mask._height-obj.cont._height+1;
   }
   obj.cont._quality = (obj.cont._xscale<=100 || obj.cont._width<=obj.mask._width && obj.cont._height<=obj.mask._height) ? \\\"best\\\" : \\\"low\\\";
   obj.returnVars();
   obj.position();
};
obj.center = function() {
   //
   if (obj.cont._width<obj.mask._width) {
      obj.cont._x = obj.mask._width/2-obj.cont._width/2;
   }
   if (obj.cont._height<obj.mask._height) {
      obj.cont._y = obj.mask._height/2-obj.cont._height/2;
   }
   obj.position();
};
obj.fitOnArea = function() {
   if (obj.cont._width<obj.cont._height) {
      obj.cont._yscale = 100*obj.mask._height/obj.inih;
      obj.cont._xscale = obj.cont._yscale;
   } else {
      obj.cont._xscale = 100*obj.mask._width/obj.iniw;
      obj.cont._yscale = obj.cont._xscale;
   }
   obj.cont._x = obj.cont._y=0;
   obj.max = (obj.cont._xscale>=obj.mZoom) ? true : false;
   obj.rePos();
   obj.center();
};
obj.actualPixels = function() {
   if (obj.enabledAreaVar) {
      obj.xs = obj.cont._xscale;
      obj.ys = obj.cont._yscale;
      obj.cont._xscale = obj.cont._yscale=100;
      obj.max = (obj.cont._xscale>=obj.mZoom) ? true : false;
      obj.cont._x = (obj.cont._x-(obj.mask._width/2))*(obj.cont._xscale/obj.xs);
      obj.cont._y = (obj.cont._y-(obj.mask._height/2))*(obj.cont._yscale/obj.ys);
      obj.cont._x += obj.mask._width/2;
      obj.cont._y += obj.mask._height/2;
      obj.rePos();
      obj.center();
   }
};
obj.setZoomMode = function(arg) {
   if (obj.enabledAreaVar) {
      if (arg == 0) {
         obj.zoom = obj.zoomMode=0;
         obj.setSelectionArea(false);
      }
      if (!obj.drag) {
         obj.zoom = obj.zoomMode=arg;
         obj.setSelectionArea(false);
      }
   }
   obj.firstRun = true;
};
obj.setMaxZoom = function(arg) {
   obj.mZoom = arg;
   if (arg<100) {
      obj.mZoom = 100;
   }
   if (arg>3200) {
      obj.mZoom = 3200;
   }
   obj.maxZoom = obj.mZoom;
};
obj.setSize = function(arg1, arg2) {
   if (arg1<=100) {
      obj.mask._width = obj.mask2._width=obj.mask3._width=obj.button._width=obj.border._width=obj.bg._width=100;
   } else {
      obj.mask._width = obj.mask2._width=obj.mask3._width=obj.button._width=obj.border._width=obj.bg._width=arg1;
   }
   if (arg2<=100) {
      obj.mask._height = obj.mask2._height=obj.mask3._height=obj.button._height=obj.border._height=obj.bg._height=100;
   } else {
      obj.mask._height = obj.mask2._height=obj.mask3._height=obj.button._height=obj.border._height=obj.bg._height=arg2;
   }
   obj.rePos();
   obj.center();
};
obj.setColors = function(arg1, arg2, arg3, arg4) {
   obj.tmpColor = new Color(obj.bg);
   obj.tmpColor.setRGB(arg1);
   obj.tmpColor = new Color(obj.border);
   obj.tmpColor.setRGB(arg2);
   obj.tmpColor = new Color(obj.sel);
   obj.tmpColor.setRGB(arg3);
   obj.tmpColor = new Color(obj.sel2);
   obj.sel2._alpha = 15;
   obj.bg._visible = (arg1 != null) ? 1 : 0;
   obj.border._visible = (arg2 != null) ? 1 : 0;
   obj.bgColor = arg1.toString(16);
   obj.bColor = arg2.toString(16);
   obj.selBorderColor = arg3.toString(16);
   obj.selFillColor = arg4.toString(16);
};
obj.position = function() {
   obj.xPosition = (obj.cont._width>obj.mask._width) ? 100/(obj.cont._width-obj.mask._width)*(obj.cont._x*-1) : 0;
   obj.yPosition = (obj.cont._height>obj.mask._height) ? 100/(obj.cont._height-obj.mask._height)*(obj.cont._y*-1) : 0;
   obj.returnVars();
};
obj.setPosition = function(arg1, arg2) {
   if (obj.enabledAreaVar) {
      obj.tmp1 = (arg1>100) ? 100 : (arg1<0) ? 0 : arg1;
      obj.tmp2 = (arg2>100) ? 100 : (arg2<0) ? 0 : arg2;
      obj.cont._x = (obj.cont._width>obj.mask._width) ? -((obj.cont._width-obj.mask._width)/100*obj.tmp1) : obj.cont._x;
      obj.cont._y = (obj.cont._height>obj.mask._height) ? -((obj.cont._height-obj.mask._height)/100*obj.tmp2) : obj.cont._y;
      obj.position();
   }
};
obj.centerImage = function() {
   if (obj.enabledAreaVar) {
      obj.cont._x = (obj.cont._width>obj.mask._width) ? (obj.mask._width-obj.cont._width)/2 : obj.cont._x;
      obj.cont._y = (obj.cont._height>obj.mask._height) ? (obj.mask._height-obj.cont._height)/2 : obj.cont._y;
      obj.position();
   }
};
obj.setZoomLevel = function(arg) {
   if (obj.enabledAreaVar) {
      obj.tmp4 = 20*100/obj.iniw;
      obj.tmp5 = 20*100/obj.inih;
      obj.tmp6 = (obj.tmp5<obj.tmp4) ? obj.tmp5 : obj.tmp4;
      obj.tmp = (arg>obj.mZoom) ? obj.mZoom : (arg<obj.tmp6) ? obj.tmp6 : arg;
      obj.xs = obj.cont._xscale;
      obj.ys = obj.cont._yscale;
      obj.cont._xscale = obj.cont._yscale=obj.zoomLevel=obj.tmp;
      obj.cont._quality = (obj.cont._xscale<=100 || obj.cont._width<=obj.mask._width && obj.cont._height<=obj.mask._height) ? \\\"best\\\" : \\\"low\\\";
      obj.cont._x = (obj.cont._x-(obj.mask._width/2))*(obj.cont._xscale/obj.xs);
      obj.cont._y = (obj.cont._y-(obj.mask._height/2))*(obj.cont._yscale/obj.ys);
      obj.cont._x += obj.mask._width/2;
      obj.cont._y += obj.mask._height/2;
      obj.rePos();
      obj.center();
   }
};
obj.returnVars = function() {
   obj.enabledArea = obj.enabledAreaVar;
   obj.selectionArea = obj.selectArea;
   obj.zoomMode = obj.zoom;
   obj.maxZoom = obj.mZoom;
   obj.zoomLevel = obj.cont._xscale;
   obj.xPercent = obj.xPosition;
   obj.yPercent = obj.yPosition;
   obj.width = obj.mask._width;
   obj.height = obj.mask._height;
   obj.backgroundColor = obj.bgColor;
   obj.borderColor = obj.bColor;
   obj.selectionBorderColor = obj.selBorderColor;
   obj.selectionFillColor = obj.selFillColor;
   obj.bytesLoaded = obj.cont.getBytesLoaded();
   obj.bytesTotal = obj.cont.getBytesTotal();
   obj.useMouseIcons = Boolean(obj.useIcon);
   if (!obj.cont) {
      obj.zoomLevel = obj.bytesTotal=obj.bytesLoaded=0;
   }
   obj.preLoadFunction = obj.preload;
   obj.onLoadFunction = obj.onloadF;
   obj.onChangedFunction = obj.onChangedF;
   obj.report = \\\"\\\";
   obj.report += \\\"obj.enabledArea = \\\"+obj.enabledAreaVar;
   obj.getEnabledArea = function() {
      return obj.enabledAreaVar;
   };
   obj.report += \\\"\\\\robj.selectionArea = \\\"+obj.selectionArea;
   obj.getSelectionArea = function() {
      return obj.selectionArea;
   };
   obj.report += \\\"\\\\robj.zoomMode = \\\"+obj.zoomMode;
   obj.getZoomMode = function() {
      return obj.zoomMode;
   };
   obj.report += \\\"\\\\robj.maxZoom = \\\"+obj.maxZoom;
   obj.getMaxZoom = function() {
      return obj.maxZoom;
   };
   obj.report += \\\"\\\\robj.zoomLevel = \\\"+obj.zoomLevel;
   obj.getZoomLevel = function() {
      return obj.zoomLevel;
   };
   obj.report += \\\"\\\\robj.xPercent = \\\"+obj.xPercent;
   obj.getXPercent = function() {
      return obj.xPercent;
   };
   obj.report += \\\"\\\\robj.yPercent = \\\"+obj.yPercent;
   obj.getYPercent = function() {
      return obj.yPercent;
   };
   obj.report += \\\"\\\\robj.width = \\\"+obj.width;
   obj.getWidth = function() {
      return obj.width;
   };
   obj.report += \\\"\\\\robj.height = \\\"+obj.height;
   obj.getHeight = function() {
      return obj.height;
   };
   obj.report += \\\"\\\\robj.backgroundColor = \\\"+obj.backgroundColor;
   obj.getBackgroundColor = function() {
      return obj.backgroundColor;
   };
   obj.report += \\\"\\\\robj.borderColor = \\\"+obj.borderColor;
   obj.getBorderColor = function() {
      return obj.borderColor;
   };
   obj.report += \\\"\\\\robj.selectionBorderColor = \\\"+obj.selectionBorderColor;
   obj.getSelectionBorderColor = function() {
      return obj.selectionBorderColor;
   };
   obj.report += \\\"\\\\robj.selectionFillColor = \\\"+obj.selectionFillColor;
   obj.getSelectionFillColor = function() {
      return obj.selectionFillColor;
   };
   obj.report += \\\"\\\\robj.bytesTotal = \\\"+obj.bytesTotal;
   obj.getTotalBytes = function() {
      return obj.bytesTotal;
   };
   obj.report += \\\"\\\\robj.bytesLoaded = \\\"+obj.bytesLoaded;
   obj.getLoadedBytes = function() {
      return obj.bytesLoaded;
   };
   obj.report += \\\"\\\\robj.useMouseIcons = \\\"+obj.useMouseIcons;
   obj.getUseMouseIcons = function() {
      return obj.useMouseIcons;
   };
   obj.report += \\\"\\\\robj.preLoadFunction = \\\"+Boolean(obj.preLoadFunction);
   obj.getPreLoadFunction = function() {
      return obj.preLoadFunction;
   };
   obj.report += \\\"\\\\robj.onLoadFunction = \\\"+Boolean(obj.onLoadFunction);
   obj.getOnLoadFunction = function() {
      return obj.onLoadFunction;
   };
};
obj.setEnabledArea = function(arg) {
   obj.enabledAreaVar = (arg == true || arg == false) ? arg : obj.enabledAreaVar;
   obj.returnVars();
};
obj.setSelectionArea = function(arg) {
   obj.selectArea = (arg == true || arg == false) ? arg : obj.selectArea;
   obj.firstRun = true;
   obj.returnVars();
};
obj.setPreLoadFunction = function(arg) {
   obj.preload = arg;
   obj.returnVars();
};
obj.setOnLoadFunction = function(arg) {
   obj.onloadF = arg;
   obj.returnVars();
};
obj.fitOnPixels = function() {
   obj.cont._x = Math.floor(obj.cont._x);
   obj.cont._y = Math.floor(obj.cont._y);
   obj.returnVars();
};
obj.addMouseIcons = function(arg1, arg2, arg3, arg4) {
   if (obj.enabledAreaVar) {
      //inIco, outIco, selectionIco,dragIco
      obj.useIcon = true;
      obj.createEmptyMovieClip(\\\"iconMc\\\", 7);
      obj.iconMc.attachMovie(arg1, \\\"s1\\\", 1);
      obj.iconMc.attachMovie(arg2, \\\"s2\\\", 2);
      obj.iconMc.attachMovie(arg3, \\\"s3\\\", 3);
      obj.iconMc.attachMovie(arg4, \\\"s4\\\", 4);
      obj.iconMc._visible = 0;
   }
   obj.returnVars();
};
obj.addIcon = function() {
   obj.dragIcon();
   if (obj.button.hitTest(_root._xmouse, _root._ymouse, false) && obj.useIcon) {
      obj.iconInterval = setInterval(obj.dragIcon, 20);
   }
};
obj.dragIcon = function(arg) {
   if (obj.button.hitTest(_root._xmouse, _root._ymouse, true)) {
      obj.iconMc._x = obj._xmouse+10;
      obj.iconMc._y = obj._ymouse;
      obj.iconMc._visible = 1;
      if (obj.selectArea) {
         obj.iv = [0, 0, 1, 0];
      } else {
         if (obj.zoom>0) {
            obj.iv = [1, 0, 0, 0];
         } else {
            if (obj.zoom<0) {
               obj.iv = [0, 1, 0, 0];
            } else {
               if (obj.zoom == 0 && !obj.selectArea && obj.firstRun && !obj.drag && (obj.cont._width>obj.mask._width || obj.cont._height>obj.mask._height)) {
                  obj.iv = [0, 0, 0, 1];
               } else {
                  obj.iv = [0, 0, 0, 0];
               }
            }
         }
      }
      obj.iconMc.s1._visible = obj.iv[0];
      obj.iconMc.s2._visible = obj.iv[1];
      obj.iconMc.s3._visible = obj.iv[2];
      obj.iconMc.s4._visible = obj.iv[3];
   }
};
obj.visibleIcon = function() {
   obj.iconMc.s1._visible = obj.iconMc.s2._visible=obj.iconMc.s3._visible=obj.iconMc.s4._visible=0;
};
obj.removeMouseIcons = function(arg) {
   if (obj.enabledAreaVar) {
      obj.useIcon = false;
      obj.iconMc.removeMovieClip();
      clearInterval(obj.iconInterval);
   }
   obj.returnVars();
};
obj.loadImage = function(arg) {
   if (obj.enabledAreaVar) {
      obj.createEmptyMovieClip(\\\"cont\\\", 1);
      obj.cont.setMask(obj.mask);
      obj.cont.loadMovie(arg);
      obj.loadingInterval = setInterval(obj.loading, 1);
   }
};
obj.loading = function() {
   obj.bytesTotal = obj.cont.getBytesTotal();
   obj.bytesLoaded = obj.cont.getBytesLoaded()-1;
   obj.tmp1 = (obj.bytesTotal>0) ? obj.bytesTotal : 1;
   obj.tmp2 = (obj.bytesLoaded>0) ? obj.bytesLoaded : 0;
   obj.preload.call(this, obj, obj.tmp1, obj.tmp2);
   if (obj.cont._width>0) {
      clearInterval(obj.loadingInterval);
      obj.cont.setMask(obj.mask);
      obj.bytesTotal = obj.cont.getBytesTotal();
      obj.bytesLoaded = obj.cont.getBytesLoaded();
      obj.iniw = obj.cont._width;
      obj.inih = obj.cont._height;
      obj.fitOnArea();
      obj.preload.call(this, obj, obj.bytesTotal, obj.bytesLoaded);
      obj.onloadF.call(this);
   }
};
obj.attachImage = function(arg) {
   if (obj.enabledAreaVar) {
      obj.cont.removeMovieClip();
      obj.attachMovie(arg, \\\"cont\\\", 1);
      obj.cont.setMask(obj.mask);
      obj.iniw = obj.cont._width;
      obj.inih = obj.cont._height;
      obj.fitOnArea();
      if (obj.cont._width>0) {
         obj.preload.call(this, obj, obj.bytesTotal, obj.bytesLoaded);
         obj.onloadF.call(this);
      }
   }
};
//--------
//--------
obj.border.swapDepths(2);
obj.sel2.swapDepths(3);
obj.mask.duplicateMovieClip(\\\"mask2\\\", 4);
obj.sel2.setMask(mask2);
obj.sel.swapDepths(5);
obj.mask.duplicateMovieClip(\\\"mask3\\\", 6);
obj.sel.setMask(mask3);
obj.setSize(this._xscale, this._yscale);
obj._xscale = obj._yscale=100;
obj.iniw = obj.cont._width;
obj.inih = obj.cont._height;
obj.sel._visible = obj.sel2._visible=obj.graphic._visible=0;
obj.button._alpha = 0;
obj.setSelectionArea(false);
obj.drag = false;
obj.enabledAreaVar = true;
obj.setZoomMode(0);
obj.setMaxZoom(3200);
obj.setColors(0xF2F2F2, 0xCCCCCC, 0xff6600, 0xFFFFFF);
obj.fitOnArea();
obj.center();
obj.firstRun = undefined;
//--------
//--------

Por GenaroPalma

10 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 07 May 2008 09:27 am
Bueno, ahora está mejor.
Lo siguiente es encontrar el héroe que se lea las 300 líneas de código, pero eso ya es otra cuestion
Yo, que con más de 10 me mareo, hasta aquí llegué

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.