Pages: [1]
  Print  
Author Topic: how add page to custom container?  (Read 144 times)
lolooza
Gaia Novice
*
Posts: 1


« on: August 23, 2011, 08:36:51 AM »

Greet all

In the index page I have a movie clip called holder, I need to put the page in it

I would like to know it is possible to add a page not just on stage,  but in a certain container (some movie clip on stage). if possible, how to do this?

Thank you in advance for helping
PS (hope I'm explained the problem understandable)
Logged
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« Reply #1 on: August 23, 2011, 10:35:11 AM »

you can add every other page to the index page container, but not the index page itself, of course Smiley

On every transitionIn call of every page (or in the abstract page, with some logic to avoid the index page) reference the movieclip you want (like Gaia.api.getPage('index').content.container_mc) and addChild the page (this). Not sure about it, but you might need to re-parent the page back to it's loader inside transitionOutComplete (before calling super.transitionOutComplete). Check without it if the pages unload correctly, do it if they dont.
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc