How to use PHP in Flash

Discussion in 'PHP' started by CuBz, Sep 30, 2007.

  1. #1
    Does anybody know how to use flash in php?

    for instance...

    If i was to put this on a flash file:

    <?php
    echo"CuBz";
    ?>
    PHP:
    COuld i do it to just show the word CuBz on a Flash file?

    Thanks :D
     
    CuBz, Sep 30, 2007 IP
  2. alexjdb

    alexjdb Well-Known Member

    Messages:
    69
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    120
    #2
    I don't know... Maybe you should try it and see what happens...

    I'm pretty sure it would work though... There are a lot of sites with flash login pages and such!
     
    alexjdb, Sep 30, 2007 IP
  3. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried just typing it in and saving it as a .swf but it just displays the PHP too :s
     
    CuBz, Sep 30, 2007 IP
  4. SGTScripts

    SGTScripts Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Flash and PHP don't make a good pair. I have been able to post from flash to php but never tried the reverse.
     
    SGTScripts, Sep 30, 2007 IP
  5. Parasite

    Parasite Active Member

    Messages:
    192
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I want to know this too, since PHP makes a perfect backend for flash online gaming.
     
    Parasite, Sep 30, 2007 IP
  6. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #6
    well, i also use flash the most but didn't try to connect flash with php as im new in php.

    try viewing some tutorials, they might help you in working with flash and php together. Link
     
    khan11, Sep 30, 2007 IP
  7. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #7
    tamilsoft, Sep 30, 2007 IP
  8. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #8
    dont know what you wanna do, but some flash libs read the data out of an xml file generated by php, so something like this:

    user input -> php -> xml -> flash
     
    falcondriver, Sep 30, 2007 IP
  9. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I mean using PHP inside flash, like most websites you see online are made fully of flash

    and they have logins etc

    LOGINS CAN ONLY USE PHP
     
    CuBz, Oct 1, 2007 IP
  10. HuggyCT2

    HuggyCT2 Guest

    Messages:
    222
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Why?

    Any language you could make a login, php is just common and easy to learn thats why its used so much.
     
    HuggyCT2, Oct 1, 2007 IP
  11. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11

    So it is not possible to to use PHP in a flash file?

    Is there any other things that i can add php to that can be embeded into a website using <embed> tags
    ??
     
    CuBz, Oct 1, 2007 IP
  12. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #12
    olddocks, Oct 2, 2007 IP
  13. SGTScripts

    SGTScripts Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    flash mainly will post to php in the example you mentioned....
    user types in login info in flash and then posts that info to php

     
    SGTScripts, Oct 2, 2007 IP