Go Back   Flashtory Support Forum > Flash Files Support > Flash Menus > Horizontal Scroller Motion Blur

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2011, 04:24 PM
Junior Member
 
Join Date: Apr 2011
Posts: 1
Default loading twice in one swf (using 2 different xml files)

Hi

I think this is a great flash file and works well for me, but it seems it can only be used once with one xml file.

I'm loading 2 copies of my Horizontal Scroller Motion Blur swf (to make 2 separate galleries) into my main swf but it only loads the xml of the first Horizontal Scroller Motion Blur swf that you load, even when it loads the other movieclip it still loads the older xml. Is there any way of changing the code on one of my Horizontal Scroller Motion Blur swfs to load another xml file...

First Horizontal Scroller Motion Blur swf...

Code:
var xmlOb:XML = new XML();
		myXml = xmlOb;
		xmlOb.ignoreWhite = true;
		xmlOb.onLoad = 	Proxy.create(this, conti, scroller, myXml, settings);
		xmlOb.load(_root.xmlFile == undefined ? "data.xml" : _root.xmlFile);
I'd want the other Horizontal Scroller Motion Blur swf to have a different xml file to load...

Code:
var xmlOb:XML = new XML();
		myXml = xmlOb;
		xmlOb.ignoreWhite = true;
		xmlOb.onLoad = 	Proxy.create(this, conti, scroller, myXml, settings);
		xmlOb.load(_root.xmlFile == undefined ? "data2.xml" : _root.xmlFile);
Thank you in advance
Reply With Quote
  #2 (permalink)  
Old 04-13-2011, 06:34 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 241
Default

replace this

xmlOb.load(_root.xmlFile == undefined ? "data2.xml" : _root.xmlFile);

with

xmlOb.load("somexmlFile.xml");

but again, I am not sure it will properly work, I never tested this twice in the same fla. Some class adjustments may be needed. If you still have problems, please email me.
Reply With Quote
  #3 (permalink)  
Old 06-12-2011, 10:57 AM
Junior Member
 
Join Date: Jun 2011
Posts: 1
Default I´m too trying to load in a swf 2 galeries with horizontal scroller

Hi, i bought the horizontal scroller to use as a gallery, but when i´m trying to have 2 galleries, it only loads the first xml.

main.swf loads in level10 (preview.swf)

preview.swf
data.xml

but when a try to load preview2.swf (debug list variables... it loads always the same xml, as if it is in cache)

preview2.swf
data1.xml

thank you...
Filipe

Ive found a solution to this problem... all
flashtory.hs.main (for gallery1)
flashtory.hs2.main (for gallery2)
etc... it works

Last edited by freezone76; 06-12-2011 at 10:09 PM.
Reply With Quote
  #4 (permalink)  
Old 06-13-2011, 08:38 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 241
Default

Quote:
Originally Posted by freezone76 View Post
Hi, i bought the horizontal scroller to use as a gallery, but when i´m trying to have 2 galleries, it only loads the first xml.

main.swf loads in level10 (preview.swf)

preview.swf
data.xml

but when a try to load preview2.swf (debug list variables... it loads always the same xml, as if it is in cache)

preview2.swf
data1.xml

thank you...
Filipe

Ive found a solution to this problem... all
flashtory.hs.main (for gallery1)
flashtory.hs2.main (for gallery2)
etc... it works

Yes, this is the solution, quite hard to do it but it's the right way to do it. I found no other way to properly load it twice or more inside the same project.

Thank you for sharing this
Reply With Quote
Reply

« Text color | - »
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

Forum Jump

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
based on a modified theme of CompleteGFX