Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-22-2005, 02:02 PM   #1
zeepimp
Registered User
 
Join Date: Jun 2005
Posts: 2
Default PHPObject question

i managed to understand how phpobject works, but now i have a question. for example this is the actionscript code:

ActionScript Code:
myTest = new PHPObject("test"); myTest.modInfo_onResult = function () {     textvar = this.info; }; buton.onRelease = function() {     myTest.modInfo(text); }
textvar and text are some vars.

the php code is:

PHP Code:
<?php

class Test {

    var 
$info;

    function 
modInfo($var)
    {
        
$this->info $var;
    }

};

?>
now if there are 2 diferent persons, that are viewing the swf, when someone presses the button it modifies the $info by changing it to whatever the text variable is. but it only modifies HIS variable. how can i do in order to whenever a user that is using the swf (or any swf linked to test.php), to modify the $info for ALL other users ? how touse a mysql table in order to perform that (if required). i thought of a global variable beetween swf's or something, but i couldn't find something like that. please help me.

thanks
zeepimp is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:17 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.