Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default Tut: PHP and Flash roled into one

    I am a bit of a noob when it comes to Flash but have worked out a very simple way of showing information used in php onto flash. This is simple and is not made to be used as I am showing you so it can be developed.

    OK we start off with the flash...

    Open up Macromedia Flash and create a Dynamic Text box with the var "load"



    Right click on the first frame, click actions and then type this into the box

    Code:
    this.loadVariables("load.php");


    Save the fla and export the swf...

    Now open up notepad

    PHP Code:
    <?php
    $user 
    $_COOKIE[user];

    print(
    "load=Hello $user");
    ?>
    Save as load.php

    If you change load on the php, you will need to edit the var on the flash


    Upload to the your server and it should be working...

    Once you have done the PHP file you can put almost anything into the flash... Why not load the text from mysql?

    Demo: http://www.uploadz.co.uk/testing/flash.swf

    Thanks
    Danny

    DONT QUOTE THIS POST
    Last edited by Luckyrare; 10-12-2006 at 04:23 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    Leeds, Yorkshire
    Posts
    992
    Tokens
    0

    Default

    WOW
    That's hot.
    Thanks +rep if I can.


  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by emergency View Post
    WOW
    That's hot.
    Thanks +rep if I can.
    Thanks, I would rep back if I could.

  4. #4
    Join Date
    Nov 2006
    Posts
    163
    Tokens
    0

    Default

    So if I was to do something more different, I would use:

    <?php
    print("load=Wassup Sucka?");
    ?>

    Or can I get rid of load?

    And, meh n00b: How do you create a dynamic text box? I dont understand var load?
    Last edited by :Blobbed; 10-12-2006 at 06:24 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by :Blobbed View Post
    So if I was to do something more different, I would use:

    <?php
    print("load=Wassup Sucka?");
    ?>

    Or can I get rid of load?

    And, meh n00b: How do you create a dynamic text box? I dont understand var load?
    No you have to keep "load"

    You make a text box on the the bar you change it to Dynamic text (see image 1)

  6. #6
    Join Date
    Jun 2006
    Posts
    1,587
    Tokens
    0

    Latest Awards:

    Default

    seen it a fair amount of times but some may not know +rep

  7. #7
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Thanks for rep

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •