Comunidad de diseño web y desarrollo en internet online

Cambiar tamaño imagen desde as??

Citar            
MensajeEscrito el 03 Ago 2005 05:05 pm
Hola amigos

Tengo una duda cosmica se puede cambiar el tamaño de una imagen cargada dinamicamente a traves de loadMovie().Otra cosa hice una funcion en un mc para cargar la imagen de yo elija el codigo es el siguiente:

Código :

var old_height:Number = this._height;
var old_width:Number = this._width;
var old_y:Number = this._y;
var inc:Number = 5;

function load_Img (url:String):Boolean{
   loadMovie(url,this);
   this._height = old_height;
   this._width = old_width;
   return true;
}

this.onRollOver = function() {
   this._y = this._y - (inc/2);
   this._height = this._height + inc
   this._width = this._width + inc
};

this.onRollOut = function() {
   this._y = old_y;
   this._height = this._height - inc
   this._width = this._width - inc
};


Bueno os mando todo el codigo pero es la funcion load_img() no se como acceder a ella desde otro clip q es el contenedor de este es asi

Photo1.img.load_Img("Imagen.jpg");

hago esto pero no accedo a ella, esto lo hago desde el primer frame de la pelicula _root pera nada :(

Si me podeis ayudar un poco, gracias de todos modos

Por axdaleon

25 de clabLevel



 

firefox
Citar            
MensajeEscrito el 03 Ago 2005 06:37 pm
Para acceder a ella, lo puedes hacer desde un boton

Código :

on(press){ 
   load_img()
   }


on en un frame

Código :

onClipEvent (enterFrame){
   load_img()   
   }

Por bryanisimo

664 de clabLevel



Genero:Masculino  

Geek

firefox
Citar            
MensajeEscrito el 03 Ago 2005 08:10 pm
gracias tios voy a probar!!!

Por axdaleon

25 de clabLevel



 

firefox

 

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