Pages: [1]
  Print  
Author Topic: ¿How to reload an asset?  (Read 305 times)
AzazelN28
Gaia Novice
*
Posts: 3


« on: September 09, 2010, 03:38:28 AM »

Hi everyone,

I'm doing my first Gaia Website and I'm getting into a dead end. I have a site.xml like this:

<page src="index.swf" ...>
   <page src="nav.swf" ...>
        <page src="gallery.swf" id="gallery">
             <asset id="dataXML" type="xml" src="xml/gallery.php?id={galleryID}" />
        </page>

   <page ...>
      ...
   </page>

   </page>
</page>

On the transitionIn I get the XML data and then I display the gallery, my problem is: when I'm in one gallery and I click on another gallery, nothing happens. My question is, how can I reload that XML with the correct galleryID?

Thank you in advance
Logged
Nemo
Moderator
Gaia Addict
*****
Posts: 594


Freelancer for hire


WWW
« Reply #1 on: September 12, 2010, 11:53:28 PM »

How you change gallery?
Logged

!
AzazelN28
Gaia Novice
*
Posts: 3


« Reply #2 on: September 13, 2010, 12:47:50 AM »

Hi,

I change the gallery using Gaia.api.goto("index/nav/gallery/1"), Gaia.api.goto("index/nav/gallery/2"), etc. all the deeplinks (/1, /2, etc) come from another XML (generated using PHP) with the IDs of the galleries.
Logged
Nemo
Moderator
Gaia Addict
*****
Posts: 594


Freelancer for hire


WWW
« Reply #3 on: September 13, 2010, 04:57:32 AM »

Your assets are loaded only once. Because the page is already loaded.

- You can load xml by your self using onDeepLink
- Load full XML will all categories ( I do this, but it will work good only if your gallery is not so big)
Logged

!
AzazelN28
Gaia Novice
*
Posts: 3


« Reply #4 on: September 14, 2010, 01:20:52 AM »

Thank you very much for your help! I think that I'm going to use the first method loading the XML on the "onDeepLink" event.

 Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc