1 (edited by KMyers 2008-01-20 19:04:22)

Topic: Need Some Help /Flash with PHP

I opened MyChums.org as a place for fellow Chumby owners to meet on a non technical level. I would like to create a widget that would connect to a PHP File on MyChumbs.org and retrieve Profile information. The Question is how can I get the chumby to display the data (In FlashDevelop.

A Sample of the php code is :

<?php
 if($_REQUEST[’profile’]==�� "){
 //Function to choose a Random Profile
   echo "profilename=$profilename";
   echo "&chumbycolor=$chumbcolor";
  }else{
  //Choose a selected profile
   $_REQUEST[’profile’]
   echo "profilename=$profilename";
   echo "&chumbycolor=$chumbcolor";
}


?>

Also if anyone wants to develop some widgits for this site, let me know

Re: Need Some Help /Flash with PHP

To get you started take a look for LoadVars.sendAndLoad, you will also need a crossdomain.xml at http://MyChums.org/crossdomain.xml

Re: Need Some Help /Flash with PHP

I wrote a widget that controls my MPD player from the Chumby.  But the code is a good sample in Flash Develop that does basically what you want... Send a request to a PHP server, get the response and display it on the Chumby.  It also has a sample of how to load a custom crossdomain.xml file.

See http://www.vrtisworks.com/cmsms/index.p … ource-code