Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 how to replace the JPG to swf file?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tiny
Starting Member

14 Posts

Posted - March 13 2003 :  21:11:39  Show Profile  Reply with Quote
Hi everyone,
I want to know how to replace the JPG file to FLAHS swf file in catagory page(that's will show many as many catagory picture, so I want to use SWF to replace that)
I tried before, but failed
I will post the picture soon

pls help

tiny
Starting Member

14 Posts

Posted - March 13 2003 :  21:13:57  Show Profile  Reply with Quote
http://www.geocities.com/tinyko2003/screen.JPG

pls check

Go to Top of Page

tiny
Starting Member

14 Posts

Posted - March 13 2003 :  21:16:42  Show Profile  Reply with Quote
if you can't view
pls right click save target as your hard drive

cheers,
tiny

Go to Top of Page

GTM
VP-CART New User

USA
122 Posts

Posted - March 14 2003 :  19:14:27  Show Profile  Reply with Quote

Heres the problem as an .swf you have to embed the flash as an object which takes some time and space. So in the place of your image you would need something that looks like this:

<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="150" height="150">
<param name="movie" value="/images/flash/picture.swf">
<param name="quality" value="high">
<embed src="/images/flash/picture.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150"></embed></object>


Greg

Go to Top of Page

tiny
Starting Member

14 Posts

Posted - March 15 2003 :  07:57:33  Show Profile  Reply with Quote
quote:


Heres the problem as an .swf you have to embed the flash as an object which takes some time and space. So in the place of your image you would need something that looks like this:

<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="150" height="150">
<param name="movie" value="/images/flash/picture.swf">
<param name="quality" value="high">
<embed src="/images/flash/picture.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150"></embed></object>


Greg




I try your method before, I add the appropriate code in the shopdisplaycategories.asp, but failed, because I need to add many as many SWF file in to database, then, this page don't know what swf name need to call.

Can you explain more about my problem, I need to solve my problem immediately.

cheers
tiny

Go to Top of Page

tiny
Starting Member

14 Posts

Posted - March 16 2003 :  23:51:17  Show Profile  Reply with Quote
anyone know
pls help me

Go to Top of Page

MartinZ
Starting Member

USA
8 Posts

Posted - March 17 2003 :  02:46:12  Show Profile  Reply with Quote
Here's something you could try. If I am understanding this correctly, you want to replace an item JPG with a SWF file for each item in your database. Correct? If yes, here's something that in theory should work. However, it will require you to know ASP very well.

1. Create all of your SWF files to be the same size. This is important since the VPASP database doesn't take size into consideration and EMBEDDING the flash needs to have file size descriptions to work for sure.

2. Upload your SWF's to the same directory where the JPG's would have been.

3. In the item image category, give it a JPG name equivalent to the SWF filename. So if you have SHIRT1001.SWF, the filename entered in the admin section would be SHIRT1001.JPG.

4. Find the section in the ASP pages where the image is generated. This is probably in a SUB function. Comment out the line where this occurs.

5. Parse the variable name from FILENAME.JPG into FILENAME and JPG. The important thing is to DIM a new variable ("NEWVARIABLE") and get the FILENAME in it without the extension. From the example above, the variable would hold SHIRT1001

6. Use the EMBED code suggested earlier. You may need to jump out of ASP to do this effectively.

7. Within the EMBED section you will need to find the location that asks for the filename. Jump back into ASP for the filename and jump back out. It would look something like this:

<param name="movie" value="/images/flash/]<% = NEWVARIABLE %>.swf">
<param name="quality" value="high">
<embed src="/images/flash/<% = NEWVARIABLE %>.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150"></embed>

8. Jump back into ASP to allow the rest of the page to work like normal.

Theoretically this should work. Just be careful that you save all of the original code just in case something bad happens while coding. Commented code is easily reversed.


Another option is to put this type of setup into a new function and then call the function from the area of the code that uses the JPG. That's a little more tricky, but probably doable.

--MZ

quote:

I try your method before, I add the appropriate code in the shopdisplaycategories.asp, but failed, because I need to add many as many SWF file in to database, then, this page don't know what swf name need to call.

Can you explain more about my problem, I need to solve my problem immediately.

cheers
tiny





Edited by - martinz on March 17 2003 02:48:51

Edited by - martinz on March 17 2003 16:18:24
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00