X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Flash (https://forum.x-cart.com/showthread.php?t=14895)

kevingibson 06-30-2005 02:51 AM

Flash
 
Hi

I'm using flash in the head part of the latest store I'm working on. I've put all the flash files into the Images directory and used the {$ImagesDir} when referring to the file.

The first flash file loads into the page, but any other files that are loading into that wont load.

Has anyone used flash successfully before? How did you get round this?

balinor 06-30-2005 05:35 AM

Please edit your signature to include your X-Cart version number. Edit profile, enter version, enter password, save.

anandat 06-30-2005 07:17 AM

intead of image path try to put full url i.e http://www.yoursite.com/x-cart/images/xyz.swf

kevingibson 07-22-2005 07:34 AM

Quote:

Originally Posted by anandat
intead of image path try to put full url i.e http://www.yoursite.com/x-cart/images/xyz.swf

I've tried that too, with no sucess unfortunately.

The site is still very much work in progress but you can find it at www.britkit.co.uk/xcart/customer/home.php

Heres the code from the head.tpl

Code:

<TABLE width="722" border="0" align="center" cellpadding="0" cellspacing="0" background="{$ImagesDir}/back_slice.gif">
<TR>
<TD><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="722" height="251">
  <param name="movie" value="http://www.britkit.co.uk/xcart/skin1/images/base2.swf"/>
  <param name="quality" value="high"/>
  <embed src="http://www.britkit.co.uk/xcart/skin1/images/base2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="722" height="251"></embed>
</object></TD>
</TR>
</TABLE>


dManager 07-22-2005 07:45 AM

Try this the build from there
 
Try stripping the code to just:

<embed src="http://www.britkit.co.uk/xcart/skin1/images/base2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="722" height="251"></embed>

and then build it from there

also would the !doctype affect this ? (i can not remember)

kevingibson 07-22-2005 08:22 AM

Hmm, tried that mate, still no workie.

The first file is loading, its just not playing.

From what I've read on here the doctype isn't needed.

kevingibson 07-25-2005 02:26 AM

No more suggestions?

ETInteractive.com 07-25-2005 05:41 AM

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="200" id="moto" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{$ImagesDir}/flash/moto.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="{$ImagesDir}/flash/moto.swf" quality="high" bgcolor="#000000" width="550" height="200" name="moto" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


kevingibson 07-26-2005 02:09 AM

Thanks mate, but I'm still getting the same problem.

I've tried another flash file and I think I've identified the problem.

The file I'm loading is essentially a "base" file. Within this movie there are actionscript commands to load other swf files into the base at various levels.

The problem is coming from the other swf files not loading into the base. I presume the flash movies people have had working are all set into one swf, with no other swfs loading into that?

Has anyone found a workaround for this?

ETInteractive.com 07-26-2005 03:54 AM

im assuming your flash movie cant find the other flash file to load.

post the AS code, maybe we can help.

kevingibson 07-26-2005 04:17 AM

Basically its just a bit of code that says

Code:

loadMovieNum('top.swf', 2);

Then the file top.swf loads into it and plays. All the swf files are together in the same folder so I can't see why the base can't see the other movies.

It's not just this movie, because I tried another flash file in there to be sure.

I think the only way around it is to create the flash header as one big file, which is a shame because altogether the flash files account for about 250k, which is now going to have be downloaded all at once.

jcole 09-02-2006 01:34 PM

Re: Flash
 
I have been searching the forums to try and find an answer to my question and so far this is the closest post to what I am trying to do....sorry to get off topic -

I am trying to use a flash file for our contact page to make it much more dynamic - but I am unable to figure out how to remove the current contact form and replace it with my swf file without really making a mess of things - any ideas?

Thanks,
jcole

balinor 09-02-2006 01:39 PM

Re: Flash
 
Jeremy, I'll be taking care of it for you, don't worry :) We'll just create a new static page and point all the contact links there.

Brent@goldenlanehoney.com 07-05-2007 10:38 PM

Re: Flash
 
Quote:

Originally Posted by kevingibson
Thanks mate, but I'm still getting the same problem.

I've tried another flash file and I think I've identified the problem.

The file I'm loading is essentially a "base" file. Within this movie there are actionscript commands to load other swf files into the base at various levels.

The problem is coming from the other swf files not loading into the base. I presume the flash movies people have had working are all set into one swf, with no other swfs loading into that?

Has anyone found a workaround for this?


You have any luck yet? I am having the same issue with a flash file that is loading XML Data and external jpg files. I'd love to hear what you came up with. It just doesn't make any sense to have to build it as one big file. I am trying to make something that is expandable and editable without opening the fla file.

Brent@goldenlanehoney.com 07-05-2007 11:09 PM

Re: Flash
 
Hey man... I actually just figured it out. When I am loading the XML Data in Flash I had to put an Absolute link to the xml file exactly where it sits on the server rather than a relative link. Then I had to put absolute links to all of the jpg files within the xml file.

Fixed everything right up for me.

Cheers!


All times are GMT -8. The time now is 04:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.