Hi, while developing my project (HTML5), I have some declared assets like at project.xml like this:
<assets id="btDown" path="assets/icons/btDown.png"/>
This work nice, since I place the exported JS file with the assets files in the proper path “below” it. However, I was wondering if I could, at runtime, set the path to load these assets. Is this possible?
The resource node is embedded by default. If you want to load it at runtime, you can set “embed=false preload=” false“
Indicates no embedding or preloading, resources need to be manually loaded at runtime
Did I misunderstand what you meant?
Unfortunately that’s not what I’m looking for. I got the assets declared at the projects file and I’d like to keep them loaging automatically. I was wonderig it there was a way to “intercept” the assets loding at the preloader to change tehir paths. Since the project is aimed at HTLM5, I believe this could be possible, since they are not actually loaded when tye preloader starts.
@Confidant
I have already answered above, “embed=false preload=false”, But he said it’s not what he wants ..
See my comment about using an AssetManifest at runtime.
1 Like