Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 17, 2012, 03:25:36 AM
Home
Forum
Documentation
Search
Help
Login
Register
Gaia Framework for Adobe Flash
>
Forum
>
Support
>
Gaia AS3 Support
(Moderators:
Nemo
,
Ramiro
) >
¿How to reload an asset?
Pages: [
1
]
« previous
next »
Print
Author
Topic: ¿How to reload an asset? (Read 305 times)
AzazelN28
Gaia Novice
Posts: 3
¿How to reload an asset?
«
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
Re: ¿How to reload an asset?
«
Reply #1 on:
September 12, 2010, 11:53:28 PM »
How you change gallery?
Logged
!
AzazelN28
Gaia Novice
Posts: 3
Re: ¿How to reload an asset?
«
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
Re: ¿How to reload an asset?
«
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
Re: ¿How to reload an asset?
«
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.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Downloads and Information
-----------------------------
=> * Download Gaia *
=> Lessons, Examples, Tips+Tricks, Mods and Utilities
=> Gallery
-----------------------------
Support
-----------------------------
=> General Gaia Support
=> Gaia AS3 Support
=> Gaia AS2 Support
=> Feature Requests
=> Non-Gaia Questions
-----------------------------
International Support
-----------------------------
=> Deutsche
=> Español
=> Français
=> Italiano
=> Português
=> 日本語
TinyPortal v1.0 beta 4 ©
Bloc
Loading...