Foros del Web » Creando para Internet » Flash y Actionscript »

Indicar posición a un swf externo

Estas en el tema de Indicar posición a un swf externo en el foro de Flash y Actionscript en Foros del Web. hola estoy trabajando con asp3 pues bien tengo mi pelicula carga y todo , mi swf externo carga correctamente, el problema es que aparece al ...
  #1 (permalink)  
Antiguo 18/07/2011, 11:28
 
Fecha de Ingreso: julio-2006
Mensajes: 32
Antigüedad: 17 años, 9 meses
Puntos: 0
Pregunta Indicar posición a un swf externo

hola estoy trabajando con asp3
pues bien tengo mi pelicula carga y todo , mi swf externo carga correctamente, el problema es que aparece al medio de mi presentacion

como puedo lograr posicionarlo? eso de loadmovie me lanza error

les cologo el codigo de mi pelicula


import fl.transitions.*
import fl.transitions.easing.*

{

var animacion= new Tween(barra_mc, "y", Elastic.easeOut, 620, 645, 3, true);
var animacion2= new Tween(soy3, "x", Elastic.easeOut, 1038, 865, 3, true);
var animacion3= new Tween(hago3, "x", Elastic.easeOut, 1038, 865, 3, true);
var animacion4= new Tween(quiero2, "x", Elastic.easeOut, 1038, 865, 3, true);
var animacion5= new Tween(cv2, "x", Elastic.easeOut, 1038, 865, 3, true);
var animacion6= new Tween(encuentra2, "x", Elastic.easeOut, 1038, 865, 3, true);
var animacion7= new Tween(derecho, "y", Elastic.easeOut, 600, 620, 3, true);


}
{
var loader:Loader=new Loader ();
addChild (loader) ;

this[Math.round(Math.random()*10000)]= new Tween(soy, "alpha", None.easeOut, 0, 1, 2, true);
this[Math.round(Math.random()*10000)]= new Tween(hago, "alpha", None.easeOut, 0, 1, 2, true);
this[Math.round(Math.random()*10000)]= new Tween(quiero, "alpha", None.easeOut, 0, 1, 2, true);
this[Math.round(Math.random()*10000)]= new Tween(cv, "alpha", None.easeOut, 0, 1, 2, true);
this[Math.round(Math.random()*10000)]= new Tween(encuentra, "alpha", None.easeOut, 0, 1, 2, true);
this[Math.round(Math.random()*10000)]= new Tween(dise, "alpha", None.easeOut, 0, 1, 2, true);



}

var soy1:Loader=new Loader ();
addChild (soy1) ;

soy3.addEventListener(MouseEvent.CLICK,cargar_pres entacion);
function cargar_presentacion (e:MouseEvent):void {
soy1.load(new URLRequest("soy4.swf"));
this[Math.round(Math.random()*10000)]= new Tween(soy1, "alpha", None.easeOut, 0, 1, 2, true);

}

var hago1:Loader=new Loader ();
addChild (hago1) ;

hago3.addEventListener(MouseEvent.CLICK,cargar_gal eria);
function cargar_galeria (e:MouseEvent):void {
hago1.load(new URLRequest("GaleriaDeslizante.swf"));
this[Math.round(Math.random()*10000)]= new Tween(hago1, "alpha", None.easeOut, 0, 1, 2, true);

}

gracias !^^
  #2 (permalink)  
Antiguo 18/07/2011, 12:09
Avatar de Diegoazul  
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Indicar posición a un swf externo

Con as3 así posicionas:
Cita:
var myRequest:URLRequest = new URLRequest("imagen.jpg");
var loader:Loader=new Loader();


loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,handleComplete);

loader.load(myRequest);


function handleComplete(e:Event)
{
loader.x = 500;
loader.y = 500;
addChild(loader);
}
__________________
{ Flash }
  #3 (permalink)  
Antiguo 18/07/2011, 23:18
 
Fecha de Ingreso: julio-2006
Mensajes: 32
Antigüedad: 17 años, 9 meses
Puntos: 0
Respuesta: Indicar posición a un swf externo

hola muchas gracias me sirvio demasiado

pero me confundi con los codes, pq en si tengo 3 botones
se supone que aca con el hago3 llamo a mi pelicula externa

var hago1:Loader=new Loader ();
addChild (hago1) ;

hago3.addEventListener(MouseEvent.CLICK,cargar_gal eria);
function cargar_galeria (e:MouseEvent):void {
hago1.load(new URLRequest("GaleriaDeslizante.swf"));
this[Math.round(Math.random()*10000)]= new Tween(hago1, "alpha", None.easeOut, 0, 1, 2, true);

}

pero no se como hacer eso del posicionamiento

osea lo hice , pero nose como agregar o hacer eso de que mi boton "hago3" llame a mi pelicula y a la vez lo posicione, y tb con el code de abajo aparece al principio de la pelicula, con el otro code solo aparecia cuando lo llamaba

var myRequest:URLRequest = new URLRequest("GaleriaDeslizante.swf");
var contenedor:Loader=new Loader();


contenedor.contentLoaderInfo.addEventListener(Even t.COMPLETE,handleComplete);

contenedor.load(myRequest);


function handleComplete(e:Event)
{
contenedor.x = -80;
contenedor.y = 70;
addChild(contenedor);
}


T_T plz!
  #4 (permalink)  
Antiguo 20/07/2011, 01:10
 
Fecha de Ingreso: julio-2006
Mensajes: 32
Antigüedad: 17 años, 9 meses
Puntos: 0
Respuesta: Indicar posición a un swf externo

pude arreglar sorry

por si alguien le pasa tb

var hago1:Loader=new Loader ();
addChild (hago1) ;

hago3.addEventListener(MouseEvent.CLICK,cargar_gal eria);
function cargar_galeria (e:MouseEvent):void {
hago1.load(new URLRequest("GaleriaDeslizante.swf"));
hago1.contentLoaderInfo.addEventListener(Event.COM PLETE,handleComplete);


function handleComplete(e:Event)
{
hago1.x = -80;
hago1.y = 70;
addChild(hago1);
}

this[Math.round(Math.random()*10000)]= new Tween(hago1, "alpha", None.easeOut, 0, 1, 2, true);

}

Etiquetas: externo, swf
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:35.