I have a 3D portfolio built with papervision that works great. It opens with a
category image (cube). On mouseOVER, a matrix of thumbnail images
(categoryClicked) opens.
I would like to have the gallery of thumbnails open automatically without a
mouseEvent. I've tried using a TimerEvent and EnterFrame with no luck.
Any ideas?
Thanks.
code section:
env.scene.addChild(cube);
// interactive
cube.addEventListener(InteractiveScene3DEvent.OBJECT_OVER, categoryClicked,
false, 0, true);
// loaded complete
if (++count == totalCategory)
{
// hide preloader
loadText0.visible = false;
// fade in viewport and move camera
dLayer.activate(true);
//addChild(goFull);
TweenMax.to(env.viewport, 2, { alpha:1,
startAt: { alpha:0 } });
TweenMax.to(env.camera, 2, { x:0,
y:0, z: -env.camera.zoom * env.camera.focus, ease:Quint.easeOut});
TweenMax.to(this, 0, {
delay:1,
onComplete:function():void
{
// start looking around
PV3DShortcut.startLookAroundStyle2(env,
configObject.lookAroundDelta);
dLayer.deactivate();
}
});
env.startRendering();
}
}
}
// Category Interactive
private function categoryClicked(e:InteractiveScene3DEvent):void
{
if (gridMode) return;
env.keepRendering = true;
cCategory = Cube(e.target);
// fade out other cube
var i:Number;
var c:Cube;
for (i = 0; i < totalCategory; i++)
{
c = Cube(env.scene.getChildByName("category" +
i));
if (i != e.target.extra.index)
{
TweenMax.to(c, 0.75, { scale:0,
ease:Quint.easeOut, visible:false } );
}
}
// move selected cube to center
TweenMax.to(e.target, 1, { x:0, ease:Quint.easeOut } );
// rotate cube - start load or display asset
rotateCube = new TweenMax(e.target, 5, { delay:0.5,
rotationY:360, loop:0, ease:Linear.easeNone } );
currentCategory = e.target.extra.index;
dLayer.activate(true);
//addChild(goFull);
// load asset or display
if (!category[currentCategory].assetLoaded)
loadCategoryAsset();
else
{
maxPage =
Math.floor(category[currentCategory].TOTAL /
category[currentCategory].matrix.num) + (category[currentCategory].TOTAL %
category[currentCategory].matrix.num != 0);
displayCategoryAsset();
}
}
DON TALCOTT
404.538.1642
[email protected]
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders