Comunidad de diseño web y desarrollo en internet online

AYUDA CON TILT VIEWER URGENTE

Citar            
MensajeEscrito el 31 Ene 2010 06:57 pm
:( HOLA TENGO UN GRAVE PROBLEMA CON TILTVIEWER ES UNA GALERIA MUY BUENA Y QUIERO IMPLEMENTARLA EN UN DISEÑO QUE ESTOY HACIENDO, PERO NECESITO QUE ESTA SE QUEDE DENTRO DE UN CONTENEDOR Y NO SE MUEVA DE AHI DEL CUADRO DELIMITADOR PERO ESTA AL AMPLIARSE SE QUEDA CENTRADA TOTALMENTE EN TODO EL ESPACIO DELA PAGINA ES DECIR EN EL CENTRO ABSOLUTO Y NO ME RESPETA EL CONTENEDOR :twisted:

PORFAVOR SI ALGUIEN SABE COMO LE HAGO PARA QUE ESTA SE QUEDE DONDE YO NECESITO LE AGRADESCO

AQUI LA PUEDEN BAJAR PARA QUE ME AYUDEN POR FAVOR

http://pixelco.us/blog/tiltviewer-galeria-3d-en-flash-gratis/

:(

Por [email protected]

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Feb 2010 02:26 am
Primero que nada debes leer las Reglas del foro, verás ahí que no puedes escribir todo en mayusculas porque pareciese que estuvieras gritando y eso no es bueno.
Segundo, deberias leer lo que escribio solisarg y despues de eso tratar de explicarte un poco mejor lo q quieres hacer, como por ejemplo poniendo codigo, errores que saltan, etc.

Saludos

Por bubudrc

Claber

591 de clabLevel

1 tutorial

 

mayo 2006

chrome
Citar            
MensajeEscrito el 04 Feb 2010 12:59 am
bueno gracias por tus recomendaciones este es el codigo ke le tengo al tiltviewer

/**
* TILTVIEWER FLASH EMBED EXAMPLE CODE
* For documentation visit: www.airtightinteractive.com/projects/tiltviewer/pro/docs.html
**/


import flash.display.*;
import flash.net.URLRequest;

//turn off stage auto resizing
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
// turn off stage auto resizing


//load TiltViewer SWF
var ldr:Loader = new Loader();
addChild(ldr);
var url:String = "tiltViewer.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);




//SET TILTVIEWER OPTIONS
//Set tilviewer options here.
//These options will override options set via the HTML flashvars.
// For a description of config options, go to:
// http://www.airtightinteractive.com/projects/tiltviewer/config_options.html
ldr.contentLoaderInfo.addEventListener(Event.INIT, setOptions);
function setOptions(e:Event){
var options:Object = Object(ldr.content).embedOptions;
//Set example options here
options.columns = 3;
options.rows = 3;
options.useReloadButton = false;
options.bkgndTransparent = true;
options.useFlickr = false;
options.xmlURL = "gallery.xml";
options.maxJPGSize = 800;
options.bkgndTransparent = true;
}


//OPTIONAL TILTVIEWER RESIZING
//By default TiltViewer will autosize to fill the stage
//If you want to give TiltViewer a specific postion and size uncomment the following block:
/*
stage.addEventListener(Event.ENTER_FRAME,resizeTiltViewer);
function resizeTiltViewer(e:Event){
//example tiltViewer size and position values
var tvWidth = stage.stageWidth/2;
var tvHeight = stage.stageHeight/2;
var tvX = stage.stageWidth/4;
var tvY = stage.stageHeight/4;
ldr.x = tvX;
ldr.y = tvY;
var tiltviewer = Object(ldr.content)._app;
if ( tiltviewer != null){
tiltviewer.autoSize = false;
tiltviewer.setSize(tvWidth,tvHeight);
}
}
*/


//OPTIONAL TILTVIEWER MASKING
//if you want to mask TiltViewer uncomment the following block:
/*
var tiltviewerMask:Sprite = new Sprite();
ldr.mask = tiltviewerMask;
stage.addEventListener(Event.RESIZE,resizeMask);
resizeMask(null);
function resizeMask(e:Event){

var tvWidth = stage.stageWidth/2;
var tvHeight = stage.stageHeight/2;
var tvX = stage.stageWidth/4;
var tvY = stage.stageHeight/4;

tiltviewerMask.graphics.clear();
tiltviewerMask.graphics.beginFill(0xff00ff,1);
tiltviewerMask.graphics.drawRect(tvX, tvY, tvWidth, tvHeight);
}
*/


//example button to toggle TiltViewer visibility
var btn = new ExampleButton();
addChild(btn);
btn.addEventListener(MouseEvent.CLICK,onClick);
function onClick(e:Event){
ldr.visible = !ldr.visible;
}


como les comento necesito que esto no quede centrado absolutamente quiero que quede en el centro de un contenedor y de ahi no se salga gracias por si alguien me puede ayudar.

Por [email protected]

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 04 Feb 2010 03:18 am
Al parecer pegaste todo lo q tenias, por lo que te escribi mucho no te sirvio.
Viendo tu cofigo, al parecer lo que debes modificar es estas lineas:

Código ActionScript :

ldr.x = tvX; //Posicion Horizontal
ldr.y = tvY; //Posicion Vetical


y estan definidas en esta parte:

Código ActionScript :

var tvX = stage.stageWidth/4; //Toma el ANCHO del escenario y lo divide en 4
var tvY = stage.stageHeight/4; //Toma el ALTO del escenario y lo divide en 4   


Espero lo soluciones.
Saludos

Por bubudrc

Claber

591 de clabLevel

1 tutorial

 

mayo 2006

chrome
Citar            
MensajeEscrito el 05 Feb 2010 03:56 pm
listo muchas gracias voy a mirar y te cuento si me funciono, y de verdad que pena pero es la primera vez que escribo en este foro.

Por [email protected]

1 de clabLevel



 

firefox

 

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