Topic: Is loadVariables working with the light Flash of Chumby?

Hello,
I try to launch a flash widget with a short action behind a button:

on (release) {
    l_url = "http://www.xxxxxxxxxxxxxx.be/chumby.php?tts=" + texte.text ;
    this.createEmptyMovieClip("Go", this.getNextHighestDepth());
    loadVariables(l_url, Go,"GET");
    param_interval=setInterval(checkGo, 100);       
}




function checkGo()
{
if (Go.launched == undefined)
    {
   texte.text='...please wait...';
// ...
    }
   else
    {
    clearInterval(param_interval);       
    texte.text = 'Ok';
   Go.swapDepths(500000);
   Go.removeMovieClip();
    }   
}


The file seems to be never called... any idea?

Re: Is loadVariables working with the light Flash of Chumby?

Do you have a crossdomain.xml file set up on that server to grant permission to perform this fetch?

3 (edited by tabatha 2007-12-22 07:18:02)

Re: Is loadVariables working with the light Flash of Chumby?

Sorry Duane but I don't understand your question.
The xxxxxxx.be is mine. I already used that same script in an other flash application (indeed not called by the chumby) on the same server that works fine.
I read somewhere that the flash in the Chumby was a light (free) one... do you know which functions are not allowed?loadVariables?

EDIT: *tilt   I've understood what Duane said..alleluiaaa...because of your wiki and the link: http://kb.adobe.com/selfservice/viewCon … ;sliceId=2

What is the more secure solution? if I had a crossdomain.xml file, it will allow all the widgets (also the widgets of people I don't know to access to my www.xxxxxxx.be Isn't ?

Re: Is loadVariables working with the light Flash of Chumby?

If you do the file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*.chumby.com"/>
</cross-domain-policy>

...it would allow only movies loaded from our servers to access your server - if someone took the widget and tried to host it from another server, it would not work.  If you want to restrict it to just *your* widget, then you'd probably need to add some sort of confirmation handshake in the protocol itself.

5 (edited by tabatha 2007-12-23 14:31:21)

Re: Is loadVariables working with the light Flash of Chumby?

I dit it...
It works fine... Thanks a lot Duane ... but ... ... my widget works fine in the preview (in the selection screen) but not in the virtual one on the homepage... I don't see anymore the "input text" field...neither the "dynamic text" field...
Any idea?
EDIT: tsss...as a rookie I didn't search around the forum first...
Now I embedded the font and everything works fine...
Thanks a lot to Duane & the forum big_smile