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.htmlldr.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.