main page example

Support for the Grid 3D component.

main page example

Postby geot on Sun Dec 20, 2009 1:20 pm

Hi. How can I make the component go to the middle thumbnails after all thumbnail are completely loaded? I just want the same effect you are using in the main page.

Thank you,
George
geot
 
Posts: 1
Joined: Sun Dec 20, 2009 1:14 pm

Re: main page example

Postby David on Mon Dec 21, 2009 10:34 am

Hello George,

That's very easy to achieve. You need to listen for the ITEMS_LOAD_COMPLETE event and when it's fired, set the currentPosition property to 0.5.
See the code below:

Code: Select all
grid3d.addEventListener(Grid3DEvent.ITEMS_LOAD_COMPLETE, itemsLoadCompleteHandler);

function itemsLoadCompleteHandler(event:Grid3DEvent):void
{
   if (grid3d.currentPosition == 0)
   {
      grid3d.currentPosition = 0.5;
   }
}
David
Site Admin
 
Posts: 345
Joined: Tue Nov 04, 2008 4:38 pm


Return to Grid 3D

Who is online

Users browsing this forum: No registered users and 1 guest

cron