Welcome, Guest
  • Author Topic: Flash Remoting with AMF - Flash Shopping Cart issues  (Read 3304 times)

    aronDB

    • Server what's that
    • *
    • Posts: 5
      • View Profile
    I am using the "An Online Store" tutorial at: http://www.flash-db.com/Tutorials/store/ShoppingTutorial.php?page=1   

    I have acquired the files "for our online store" AND the amfphp source files. After installing the files on my server and configuring the database, I started configuring everything and noticed that on page 6 of the tutorial it states that I have a "flashServices" folder within the "shopping" folder which I do NOT have. It then states that if you have problems installing the files, create a post. So here I am posting my problems that I do not have all of the packaged files and I need them as well as some assistance getting the cart to actually function both locally AND remotely on my server.

    Please SOMEONE inform me of why i might not have those files and provide some insight for me as this is the first flash shopping cart i have ever setup for a client and I am strugglin'!

    Thank you in advance!
    -ARON

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    flashservices was renamed to services in the last amfphp distribution. Put in services folder shopping.php and inc_sql.php and will be fine. Also notice that if you're using AS2, you should use the AS2 fla from the source code

    Jorge

    aronDB

    • Server what's that
    • *
    • Posts: 5
      • View Profile
    Thank you Jorge!  Where can I find the AS2 version of the store? OR can i just change the publish settings in flash?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Quote
    you should use the AS2 fla from the source code

    ... named flashdb_newstore2.fla

    Also if you look at the readme file you will see the descrtiption of each file:

    Quote
    Description of files:

    inc_sql.php: here you need to put your Database Host, Name, User and Password
    setup.php: run this script in your browser to create database and tables
    shopping.sql: if you're creating the database trough phpMyAdmin, you can use this file to setup your database
    gateway.php: this is the gateway to your amfphp library
    shopping.php: this is the Flash Remoting service file (related to the amfphp packet)
    flashdb_newstore.fla: this is the main movie, use AS1 Remoting classes
    flashdb_newstore2.fla: this is the main movie, use AS2 Remoting classes
    products/pics folder: thumbnails of products
    products/photos folder: big images of products
    preload.fla: preloading movie if you want to use (trough Localconnection)

    Jorge

    aronDB

    • Server what's that
    • *
    • Posts: 5
      • View Profile
    Jorge,

    Please bare with me on a few more things.. :-\

     I know i have everything all setup with the database. I am still not sure how to "install" the AMFPHP. Do I have to edit the globals.php to have the same database settings as the inc_sql.php file in the newstore folder? Also, in the "Hello World through Flash" tutorial, they show an example of what the gateway.php file would look like when you change the include("/path/to/your/flashservices/app/Gateway.php"); yet, I can not find that script even in the gateway.php file from AMFPHP.    Is that example old and does that script only need to be changed in the flash file. Regardless, where in the world is this "pathtoyourflashservices"?! Is that a local file from the flash remote services folder or is this a path to a remote file in the AMFPHP or NEWSTORE folders?

    Generally, if you can just give me a better explanation of how to install my AMFPHP and tell me where the flashservices path is I would be much obliged.

    I think that your store is the best one for me and I feel like I am very close to activating it, but there is a lot of confusion with all of the updated files and multiple tutorials. Please shoot me some more quick advice and hopefully these will be my last questions. Thanks again Jorge!

    -A

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Sure, I have writed a tutorial on how to setup amfphp here: http://www.flash-db.com/Tutorials/helloAS2/

    Jorge