Flash player store added to page..Possible?
Autore: Jason RoseOk, so I have our site uploaded to my server and running but I also have a MP3 download store wriiten in Flash,PHP and AS3 where the folder has been uploaded to the same site/server and the database created in MySql. My 2 sites that are on the same server are www.spindisc.co.uk and the mp3 store at www.spindisc.co.uk/cart
Can I add this store player to a page in my site (it runs off a Index.html file ).
In Website X5 Evolution 9 I tried creating a page with flash animation object added and went into expert mode and added the two files required (I do not understand the boxes Server Relative path and Pathname for uploading the flash file dialougue boxes)
http://www.dreamlinestudio.com/shopping_cart_installation.html starting at 8:46. This video explains how it can be done
Despite my best efforts I can not get this to work and not sure if it is actually possible. Plus I am confused regarding box Pathname for uploading the Flash file.
I have been trying lots of different ways over the last 2 days with nothing working.
Any help in making this work would be very much appreciated or to just tell me it's not possible.
Thanks.
Hello Jason,
The Pathname is the option to define a subfolder where the files will be stored in case your flash file needs to have the files in a folder with a specific name.
You need to check if it has some files in a subfolder and then select the files and in pathname choose to create the subfolder with this name.
As example it has some files that are in in a folder called "files" then you choose to add these files and then in the program when you select them you set as path "files".
Since the flash cart is already online and visible you can also use the HTML&Widget Object and then use the html iframe function to load this cart page in your current project.
As example:
<iframe src="http://www.spindisc.co.uk/cart"></iframe>
You can find more informations on how to adapt the iframe code to fit to your needs on following page:
http://www.w3schools.com/tags/tag_iframe.asp
Please feel free to write back if you need more information.
Autore
That is so great, that part works (so easy). While trying it in preview mode, the player is there, it all functions ok, you can play the tracks and add them to basket etc etc.
However, when I press the checkout fuction and press the PayPal option I get this message
This content cannot be displayed in a frame<!-- Error Body -->
To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
<!-- What you can do --> What you can try:<!-- open in new window --> Open this content in a new window
I opened up the the link and PayPal reports this
"PayPal requires cookies to be turned on for many of its features. Pleaseturn on cookies in your internet browser. Then, go back and check out again with PayPal."
Not sure if this error will be produced if I publish the sit and it is live on the web?
Thank you for your help so far.
Autore
Ok so I went ahead and published it and it appears and functions which is great.
So now when I checkout it rather than geeting the Cookie problem message it just hangs and does nothing as in picture. is this to do with the AS3 server side or PayPal, it does not like to be inside a webpage of my site regarding forwarding to PayPal for payment?
Autore
After doing some search, it appears to be apparent that Paypal does not allow the use of iframes for security reasons, which therefore stops me using my purchased AS3 PHP cart within my website as checkout can not be completed, only externally :(
The only other way is to try the HTML function and add the neccessary files, though have tried in this and not working, so I am obviously doing something wrong, so near to of made this worked.
Hello Jason,
I noticed that also paypal is not working and then you need to check the complete strucutre of the files and recreate this one with the HTML&Widget Object so that it loads all necessary files.
Remember to change the extension of the page in step 2 in page properties, if it's needed also php code in the page.
Many thanks!
Autore
Apparently in the main working store, the 2 files that have to be together to reference everything to work together is the Index.html and config.xml files. As long as these are together in the same place and xml is configured correctly to tell the Index.html where to find the main.swf and skins folder it will work. So I have to be setting up the xml incorrectly. So very confusing,someone on the server support got it working and left the files in my database but I cant extract the script. It's a nightmare.
Autore
This pic shows the files and folders in the directory?
Autore
INDEX.HTML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FlashCart</title>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<div align="middle">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="900" height="550" id="FlashCart" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="Main.swf"
quality="high"
bgcolor="#000000"
width="900" height="550"
name="FlashCartDemo"
align="middle"
allowScriptAccess="sameDomain"
allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
/>
</object>
</div>
</body>
</html>
CONFIG.XML
<config>
<skin src="BlackMusicSkin" />
<db type="sql" src="cart/" sandbox="false" />
</config>
Wondering if any of the above means anything to you?
Hello Jason,
You need to add in the project in the HTML&Widget Object only the code that start in <OBJECT and ends with </OBJECT> and then in advanced you need to add il the main folder, where you delete the text in "Server relative path" all and you add the xml file. For the MAIN.SWF and dbconfig.php you do the same and the other files you select them and you choose the same folder name you have in the working version. Once you recreated the same folder structure then the script should work correctly.
Hope this helps.
Autore
Thanks for all your help.
I had to correct the pathing properly in the above files to point inside the cart folder for the main swf and and adjust the same for the config
embed src="Main.swf to "/Main"
src="cart/" to "/Cart"
Then copy the HTML into the widget as you said and add the config file in expert, I left the relative path blank and all is working
So anyway the only problem I have now LOL is it works and appears in Chrome but not in IE10, but I believe this to be a seperate problem to X5? as in standalone at www.spindisc.co.uk/cart it appears central in Chrome but upper left in IE10 which may be making it out of view through the website.
But once again, thankyou for your support.
Hello Jason,
It is a different way of handling files in IE and instead of:
<paramname="movie" value="Main.swf" />
you need to add the full path:
<paramname="movie" value="http://www.spindisc.co.uk/cart/Main.swf" />
Hope this helps.
Autore
Wow, thank you very much, you have been able to solve what members and administrators from other forums (though appreciative of their help) have not been able to find an answer to.
You have truly gone beyond all expectations of helping me here, which is something future customers should take into account of the fantastic support they will receive from Incomedia.
Time to upgrade to V10 next week as a way of thank you and the support I know I will get.