Flash application

Discussion in 'Graphics & Multimedia' started by blueT, Apr 1, 2009.

  1. #1
    Hi guys, I'm using flash cs3 and I need to make an application about a store. But I need to view the pictures of the products that will scroll everytime they click the "next" or "previous" button, I also need to save the product/order info in a database. How do you create a database that will save all the info after the customer click "submit"?
     
    blueT, Apr 1, 2009 IP
  2. anamul

    anamul Well-Known Member

    Messages:
    173
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    The obvious answer would be as you know already, using php/Mysql and hooking up it with flash.
     
    anamul, Apr 2, 2009 IP
  3. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #3
    You just need a mysql database where to save the image link, and other infos about the product.In flash use actionscript to load product details from database trough php.
    To create a database use phpmyadmin.
    Check phpmyadmin.net and php.net.
    Also w3schools.com is a great website.
     
    ExtremeData, Apr 2, 2009 IP
  4. blueT

    blueT Peon

    Messages:
    271
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This will be a desktop application and I dont understand how to do all those things from php to mysql and stuff..
    Basically how can we connect the database with the flash apps?
     
    blueT, Apr 2, 2009 IP
  5. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #5
    From flash to mysql you can connect through php.
    You will need a website and a host that allow php and mysql.
    The flash application will connect to php witch get infos from databse.
    For example you make a php script to get the name, the price and the image of a product :
    product.php?product=123

    For the product with the ID 123 the php will get those infos from db :
    $name = "Test";
    $price = "123 dollars";
    $image = "test.jpg";

    The flash will get those variables from php so the flash will display those infos:

    Name : Test
    Price : 123 dollars
    Image : test.jpg

    When you need to send some infos to db the flash will send infos to php witch will add those to database.

    To understand the basics check this http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm
    Also you can search on google if you don't know how to do something or to post here.
    Nobody will make a full working application for you for free so you should ask here on dp for little help not for the whole application.
    Also you can hire someone to do that.
     
    ExtremeData, Apr 2, 2009 IP
  6. blueT

    blueT Peon

    Messages:
    271
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Man, its not for a website. Its just a small application for my task. Just a simple animated swf stuff. Just to input, submit, and save.
     
    blueT, Apr 2, 2009 IP
  7. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #7
    Yeah but where you will save all infos ? You need a host (and a domain, at least a free domain) where to upload all script files and to keep the database.
    If you need this application only for you you can make a local databse so all files will e on your pc.But if you will send the application to someone you will can't see what he was added to database.
     
    ExtremeData, Apr 2, 2009 IP
  8. blueT

    blueT Peon

    Messages:
    271
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Its not for a website. Just for my PC. Please tell me how to make a database for flash cs3 app. I just need simple animation, and when I submit something it will save the data. I really dont know how to make that database and connect it, is there any particular code?
     
    blueT, Apr 4, 2009 IP
  9. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #9
    You will need to install php, mysql and apache.I suggest you to use xampp ( is a pachage with all what you need http://www.apachefriends.org/en/xampp.html )
    After you will make a mysql database (use phpmyadmin witch is installed with xampp pachage).
    Connect to mysql database with php (http://www.tizag.com/mysqlTutorial/mysqlconnection.php).
    Send variables from flash to php (here is a tutorial how to send from flash to php and insert into mysql http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm).
    When you don't know how to do something try to search on google..there are a lot of tutorials.
    That's all.
     
    ExtremeData, Apr 4, 2009 IP