Topic: Crossdomain.xml question

Newbie question - I am creating a weather app that will pull data from Wunderground's API. I can see that the have a crossdomain.xml on their site. When working locally with the swf file I needed to adjust my settings. So, do I need to do anything or will this just work once it is a posted app?

Re: Crossdomain.xml question

It depends - how did you have to adjust your settings?

You can, of course, just upload the widget and try it - you don't have to make it publicly available during testing.

Re: Crossdomain.xml question

Hi Duane, the setting was on the global security settings. I had to add an exception to allow the swf file to get data from another site. I added the swf file as an exception and it worked.

I didn't know you could upload and not have it publicly available. I'll try that. Thanks!!

Re: Crossdomain.xml question

Duane wrote:

You can, of course, just upload the widget and try it - you don't have to make it publicly available during testing.

I uploaded it and it works on the site, but crashes when I try it on my Chumby One. Where can I see what's causing it to crash?

Re: Crossdomain.xml question

What you'll want to do is SSH into the device, then do:

stop_control_panel; start_control_panel

At that point, you'll see a bunch of debug output.

For information on how to enable and use SSH, see the wiki here.

Re: Crossdomain.xml question

That's pretty cool! I think this is the relevant info. The app name is Tampa Weather.

2011-02-07 22:08:33 TRACE: _chumby_widget_name Tampa Weather
2011-02-07 22:08:33 TRACE: _chumby_widget_instance_href http://xml.chumby.com/xml/widgetinstanc … 21288E785A
2011-02-07 22:08:33 TRACE: _chumby_widget_instance_id 57887A7A-3311-11E0-A636-0021288E785A
2011-02-07 22:08:33 TRACE: _chumby_widget_instance_count 13
2011-02-07 22:08:33 TRACE: _chumby_widget_instance_index 0
2011-02-07 22:08:34 TRACE: - using widget timing:
2011-02-07 22:08:34 TRACE:  - timeout, 45000 ms
2011-02-07 22:08:34 TRACE: - running the widget for 45 seconds
2011-02-07 22:08:34 TRACE: - expires at Mon Feb 7 22:09:18 GMT-0500 2011
2011-02-07 22:08:34 TRACE: Setting advance timer handler
2011-02-07 22:08:34 TRACE: ScreenManager.widgetPlayerMode()
2011-02-07 22:08:34 TRACE: WidgetMode(): creating overlay intercom
2011-02-07 22:08:34 ClientObject::SWFValidateCommon() - validation failed, bad movie!
2011-02-07 22:08:34 ClientObject::SetDeferredVariables() - cannot execute while loading is in progress!
2011-02-07 22:08:34 TRACE: WidgetPlayer.advanceTimerHandler(): widget died with error -3 (validation failed)
2011-02-07 22:08:34 TRACE: WidgetPlayer.nextWidget(): loading next widget instance

Re: Crossdomain.xml question

Hmmm, to fail validation my guess is that this movie was either published as Flash 10, or uses Actionscript 3.

The Flash player in the chumby does not (currently) support AS3, only AS1 or AS2.