Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

XML & flash

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-29-2008, 08:46 PM
 
shorelineoftahoe shorelineoftahoe is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 30
 

Default XML & flash

I have an x-cart client that has created a flash .swf file which requires a .xml file to load images.

This flash is working on a htm version of the page located in the same place as the .swf and .xml file. However, when I try to load the .swf in my welcome.tpl file, it doesn't work.

The odd thing is, I already have a flash file in the welcome.tpl page that is working fine. That file is in the same directory as the new one and loads. When I change the name of the old flash to the new flash, nothing loads.

We had this problem the last time when we originally put up the flash file that is there now. We ended up having to recreate the flash file using no .xml file.

I was also given the suggestion of recreating the flash using javascript, but I would rather make this work if possible.

Does Smarty not understand xml? (I'm kind of new a this, so sorry if it's a dumb question).
__________________
xcart v. 4.18-4.4
Reply With Quote
  #2  
Old 04-29-2008, 11:13 PM
 
xim xim is offline
 

X-Cart team
  
Join Date: Nov 2004
Posts: 677
 

Default Re: XML & flash

I suppose that the reason in the paths which you defined to the .xml data and .swf flash file.

Please, note that the path should start from X-Cart root directory. Try to put the .swf and .xml files to the xcart root web directory and check it.

Also if you provide me with the URL of the example I can inspect this issue more detailed to find the original reason.
__________________
Sincerely yours, Max Vydrin
Reply With Quote
  #3  
Old 04-30-2008, 05:50 AM
 
shorelineoftahoe shorelineoftahoe is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 30
 

Default Re: XML & flash

Thank you for answering my question. You were right. I had just tried so many variations without finding the right one that I had given up on the easy answer.

What I needed to do was the following, in case I or anyone else ever needs help with this:

In the XML file, define the path to the images absolutely:

/flash/images/image1
/flash/images/image2

and so on

In the welcome.tpl file I linked to the flash file also absolutely:

/flash/flash_mov.swf

I then copied the xml file into the /customer/ folder.

I think that final step is what I was missing. I was trying to make it all work in the /customer/main folder because that's where welcome.tpl is. But maybe since welcome.tpl is called by home_main.tpl (which is in the customer folder) that is where the file is seeking the xml.

I really appreciated the help!
__________________
xcart v. 4.18-4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:00 PM.

   

 
X-Cart forums © 2001-2020