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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default Flash - Get PHP data problem.. +rep

    Hello everyone.

    I have an annoying problem with Flash.
    I want to get the data from a PHP page (which collects data from a MySQL database). That part works alright for what is needed.

    is the link to the data.

    Now I load my data data using
    PHP Code:
    onClipEvent (load) {
        
    = new LoadVars();
        
    i.load("http://freyta.net/mysql/hot.php?name=shane"this"GET");

    which recieves the data "127="...

    How do I get rid of that equals sign :S


    Sorry for the really dumb question

  2. #2
    Join Date
    Oct 2008
    Posts
    1,420
    Tokens
    0

    Latest Awards:

    Default

    It works?
    Quote Originally Posted by Nazi View Post
    100mbps would just lead to people doing everything possible on the internet, thus completing the internet and having to trade it in or something due to it not being fun anymore.

  3. #3
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    No, it has the stupid equals sign...
    I can't just load the data "127"... (it works fine on the webpage but when i load it into flash it adds the = sign)

  4. #4
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    1,363
    Tokens
    106
    Habbo
    Yonder

    Latest Awards:

    Default

    show the flash page.. please and your php source.

  5. #5
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    http://freyta.net/mysql/hot.phps
    http://freyta.net/mysql/gayz.fla

    (its the little square box with all the code for the fla )

    edit:

    Maybe it is just my PC but it wants to download the phps

    Here is the code in the spoiler
    Last edited by Blinger1; 06-11-2008 at 10:11 AM.

  6. #6
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    To be sure you could shortern the string to three in flash (duno how) or in php:

    Code:
    $user = $user[hot];
    $user = substr($user,0,-1);
    Edited by ,Jess, (Forum Super Moderator): Double posts merged due to lag.
    Last edited by ,Jess,; 06-11-2008 at 10:32 PM.


  7. #7
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    If I remember correctly, flash can read data like this:

    &name=that
    &this=poop
    This is loading data using LoadVars

    ActionScript:
    PHP Code:
    data = new LoadVars();
    data.load"http://www.disasterpiece.co.uk/flashData.php" );
    data.onLoad = function( success )
    {
        if( 
    success )
        {
            
    tracedata.myMessage );
        }

    Returns
    "Joygasmic ****"

    The PHP page if you're interested whats on it (doesn't have to be a php page, can be a html/text/etc page)

    Live content:
    "&myMessage=Joygasmic ****"

    PHP code:
    PHP Code:
    <?php
    // Using PHP just to explain
    $variable 'Joygasmic ****';
    echo 
    '&myMessage=' $variable;
    ?>

    Hope this helped.
    Hi, names James. I am a web developer.

  8. #8
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Okay that worked ! (it got the variable properlly)

    But, now my rotation won't work :S?

    PHP Code:
    onClipEvent (load) {
        
    data = new LoadVars();
        
    data.load("http://www.freyta.net/flashData.php");
        
    data.onLoad = function(success) {
            
    data.myMessage;
            if (
    success) {
                
    trace(i);
                if (
    _root.mcobj._rotation<tobe) {
                    
    _root.mcobj._rotation++;
                }
            }
        };

    Why doesn't that work?

    This is really stupid :eusa_wall

  9. #9
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    I dont understand what you are trying to do, explain more and I can help you.
    Hi, names James. I am a web developer.

  10. #10
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Okay...

    Here is my idea.
    I want to make an application called the 'hot-o-dometer'. Its like a speedometer but instead of saying mph or kmph, it tells you how 'hot' you are..

    How it works:
    I get a variable (which we called myMessage) from a remote location, and then dial turns that many degrees to point to how 'hot' you are..


    Does that make sense?

Page 1 of 2 12 LastLast

Posting Permissions

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