Embedding two slideshows

Posted by Jennifer Heidelberg on Stack Overflow See other posts from Stack Overflow or by Jennifer Heidelberg
Published on 2010-03-26T11:40:07Z Indexed on 2010/03/26 11:43 UTC
Read the original article Hit count: 445

Filed under:
|
|

Hello,

I am trying to embedd two slideshows into my flash file. I already managed to integrate one, but I can't integrate another since my knowledge of actionscript is very limited. For people that know Flash well it is a really easy question. What do I have to rename in this script so that I can create a second slideshow, without always calling on the first one.

Here is the script for the first slideshow: (I got it from the website where I bought the template for the slideshow from)

var loader:Loader = new Loader(); var monoslideshow:Object; loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, onLoadComplete); addChild(loader); loader.load(new URLRequest("monoslideshow.swf")); function onLoadComplete(event:Event):void { monoslideshow = event.target.content; monoslideshow.showLogo = false; monoslideshow.setViewport(new Rectangle(730, 20, 700, 660)); var xml:XML = monoslideshow.loadXML(xml); }

Thank you very much in advance!! Aylin

© Stack Overflow or respective owner

Related posts about slideshow

Related posts about embedded