Old 10-22-2008, 10:00 PM   #1 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 2
Default more than one carousel on a site

I cannot figure out how to place another carousel on the same flash site, not even on the same page, I thought all i have to do was duplicate the symbol and change xml path, but that didn't work, maybe cause there is library elements that conflict with duplicating??

please help!

thanks,
josh
joshuaturk is offline   Reply With Quote
Old 10-28-2008, 01:09 AM   #2 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default same issue

I'm having the same problem trying to place a single carousel on different pages, but on one "site".

In the "Carousel.as" I've tried to rename the XML file (and path) to something else so i can have the different carousels have a different set of images to call from:

xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = Delegate.create(this, dataLoaded);
xml.load("notcarousel.xml");
}

I've tried keeping all paths in order. I've got a directory of images for each page (5). So i'd like to have 5 different html files, have 5 different carousels, but I can't find why I cannot rename "carousel.xml" or put it in a lower directory so it's not used by ALL pages.

Please advise.
aleus is offline   Reply With Quote
Old 10-28-2008, 08:37 PM   #3 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,969
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hello,
I am sorry, only one instance of the carousel will work. A solution would be to export two versions of the carousel and load them using the MovieClipLoader class or the loadMovie method.
Adrian is offline   Reply With Quote
Old 10-29-2008, 06:00 PM   #4 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 5
Default maybe

i havent tried this but maybe this will work. since the files are beeing loaded to the user pc try changing all the name of all the files as to not have the machine think its the same one. i had the same problem once with the xml file. so that may work but ill get back to you once i try.
amib77 is offline   Reply With Quote
Old 02-03-2009, 09:55 PM   #5 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 3
Default

i was able to actually get two instances of this working on one page at the same time. it took a little messing around, so i don't have the exact steps, but basically make sure they are named differently, of course. carousel1.swf and carousel1.xml and then carousel2.swf and carousel2.xml. both xml files need to go in the root folder i believe.

however, put carousel2.swf in a folder called "c2" or whatever you want, then load it into the page. for some reason it seems to allow 2 carousels fine if they aren't in the same folder on your webserver. make sure the paths are correct to the .xml files and you should be fine.

the only caveat to this, is they affect each other's speed because of processing issues. its almost too much "load" for the page to handle.

here's an example (this site is not in use, this was a test page. the site is coming soon and things will be done somewhat differently):

DJ M-Squared.com


update: make sure the carousel.as file points to carousel2.xml when exporting carousel2.swf

Last edited by brandonsadkins; 02-03-2009 at 10:01 PM.
brandonsadkins is offline   Reply With Quote
Old 04-03-2009, 12:40 PM   #6 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 5
Default Same problem

I am having the same problem, and I have:

Published four versions of the carousel (carousel1.swf, carousel2.swf etc)
Loaded them into separate movie clips
Loaded separate xml files
Edted thumbnail.as to target the individual movie clips and individual xml paths

...and still it will only load one carousel.

Take a look at my problem here: Sounding Good New Design

You can load one carousel fine, but try to load another and it re-loads the previous one and not any nother. Could somebody perhaps check through my files? I'd be happy to send them.

Thanks

Shaun Guyver
shaun.guyver is offline   Reply With Quote
Old 04-04-2009, 04:31 PM   #7 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 5
Default

don't worry I've fixed
shaun.guyver is offline   Reply With Quote
Old 05-06-2009, 05:09 AM   #8 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default

Quote:
Originally Posted by shaun.guyver View Post
don't worry I've fixed
Hi shaun.guyver, mind to share how u code on the actionscript there? cause i need to load more than 1 carousel too.
geoffrey7 is offline   Reply With Quote
Old 10-16-2009, 12:10 PM   #9 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 1
Default

Hello

You can have as many instances of the carousel as you want.

here is how I do that

Create as many folders as instances you need (every folder with a specific name ex carousel1 / carousel2 / carousel 3 ...). Unzip the advanced-3d-carousel-menu.zip in each folders. Create the same folders (empty) on your web server.

Step two : for each carousel, you gotta modify the "Carousel.as" file and write an absolute URL for the XML file

ex: xml.load("carousel.xml"); will become : xml.load("http://www.myserver.com/carousel1/carousel.xml");

Step 3 : open each .fla and save them with a new name. generate the .swf file fore each .fla in a its folder.

Step 4 : modify the .xml file and enter absolute URL for each image.

Step 5 : upload each folder content on the corresponding folder on the webserver.

I'am sorry my english is bad... but I hope this message will help you.

Check out that test-webpage with 3 differents carousels 3 diff carousels
pidjy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:28 AM.