Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/11/2014, 09:53
job2
 
Fecha de Ingreso: agosto-2014
Mensajes: 2
Antigüedad: 9 años, 8 meses
Puntos: 0
Estoy intentando creear un flipbook con el Component Flippingbook

Saludos

Ayuda con el zoom de un flipbook hecho con el Componet Flippingbook de mediaparts .

Estoy intentando creear un flipbook con el Component Flippingbook(www.flippingbook.com). Pero tengo problemas para realizar el efecto zoom.

La idea es que mediante un boton, al hacer click en el, se active la funcion zoom sobre todo el libro y que pueda mover el libro en diferentes angulos. algo parecido a esto http://activeden.net/item/firefly-as3-xml-flip-book/full_screen_preview/702173.
y luego restablecerlo a su tamaño normal.

este es el codigo como esta ordenado el flipbook:
function onResize()
{
cx = Stage.width / 2 + (600 - Stage.width) / 2;
cy = Stage.height / 2 + (400 - Stage.height) / 2;
debug_btn._width = Stage.width;
debug_btn._height = Stage.height;
debug_btn._x = cx - Stage.width / 2;
debug_btn._y = cy - Stage.height / 2;
debug_btn._alpha = 0;
debug_btn.useHandCursor = false;
debug_btn.swapDepths(200);
} // End of the function


function loadBook()
{
var _loc1 = new Object();
_loc1._x = 300;
_loc1._y = 160;
_loc1.extXML = xmlConfig;
myBook = _root.attachMovie("FFlippingBookSymbol", "FFlippingBook", 1, _loc1);
} // End of the function


function checkImage()
{
var _loc2 = bg_mc.getBytesLoaded();
var _loc1 = bg_mc.getBytesTotal();
entire_preloader_mc._rotation = entire_preloader_mc._rotation + 12;
if (_loc1 > 0 && _loc2 >= _loc1)
{
bg_mc._x = cx - bg_mc._width / 2;
bg_mc._y = cy - bg_mc._height / 2;
unloadMovie(entire_preloader_mc);
delete this.onEnterFrame;

loadBook();

} // end if
} // End of the function


Stage.scaleMode = "noScale";
//Stage.align = "CL";
Stage.addListener(this);
onResize();



if (bgImage != undefined)
{
bg_mc = _root.createEmptyMovieClip("bg", 0);
bg_mc._visible = false;
//_root.attachMovie("EntirePreloader", "entire_preloader_mc", 100, {_x: Math.round(cx), _y: Math.round(cy)});
_root.onEnterFrame = checkImage;
bg_mc.loadMovie(bgImage);
}
else
{

loadBook();

} // end else if