Jump to content
Search Community

multiple images in each imageLoader node

alflasy test
Moderator Tag

Recommended Posts

Hi,

I am looking for something like having more than one image in single image node. Like I want two images on each slide. something like adding another attribute in imageLoader Node

url2='images/image_1a.jpg'

 

<ImageLoader name="img_1" url="images/img_1.jpg" url2='images/image_1a.jpg' estimatedBytes="94000" load="true" />
<ImageLoader name="img_1" url="images/img_2.jpg" url2='images/image_2a.jpg' estimatedBytes="94000" load="true" />
<ImageLoader name="img_1" url="images/img_3.jpg" url2='images/image_3a.jpg' estimatedBytes="94000" load="true" />

 

Thanks

Link to comment
Share on other sites

The solution is to create multiple ImageLoader's per "slide" and store them in a LoaderMax.

 

<LoaderMax name="slide1" load="true">
<ImageLoader name="img_1-1" url="images/img_1-1.jpg" estimatedBytes="94000" />
<ImageLoader name="img_1-2" url="images/img_1-2.jpg" estimatedBytes="94000" />
</LoaderMax>

 

This is the most flexible way to handle it. Check the XMLLoader and LoaderMax docs to see all the ways you can manage and track the loading of each asset.

 

If you have more questions let us know.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...