<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[chumbysphere forum - Flash/Widget]]></title>
	<link rel="self" href="http://forum.chumby.com/extern.php?action=feed&amp;fid=6&amp;type=atom"/>
	<updated>2010-09-09T07:05:26Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.chumby.com/index.php</id>
		<entry>
			<title type="html"><![CDATA[opaqueBackground]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5432&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hello! I&#039;m completely new to flash and have been trying to build some sample code for my chumby using FlashDevelop. I got a hang of the basics and was trying something when I faced this issue.</p><p>I want to change the background color of my widget based on some event. I realised that using the <em>opaqueBackground</em> works but only behind the textfields that are created, not the complete screen. The widget is configured for 320x240, background(#FFFF00, yellow), 2fps. Here is the sample code:</p><div class="codebox"><pre><code>class Main
{
    private static var _i:Number;
    
    public static function main() : Void
    {
        _i = 0;
        _root.createTextField(&quot;t&quot;, _root.getNextHighestDepth(), 0, 20, 320, 100);
        var tf:TextFormat = new TextFormat();
        tf.size = 32;
        tf.align = &quot;center&quot;;        
        _root.t.text = &quot;Hello, world!&quot;;
        _root.t.setTextFormat(tf);
        _root.onEnterFrame = function () {
            Main.myOnEnterFrame();
        }
    }
    
    public static function myOnEnterFrame():Void
    {
        _i++;
        if (_i &gt; 20) _root.opaqueBackground = 0x00FFFF;//change to light blue color
    }
}</code></pre></div><p>I expect the complete screen to change to light blue color after 10s(20 frames) because I am changing the background of _root. Instead only the area behind the t textField changes to light blue and the remaining screen remains yellow. I&#039;ll try to post screenshots if possible. A few questions:</p><p>1. Is this the right way to create textFields? In my actual project I need 3 textFields which I plan to create using <em>_root.createTextField(&lt;name&gt;, _root.getNextHighestDepth(),...</em><br />2. Is this the right way to change background color? As I understand this is a more efficient way than beginFill/endFill which I have not yet tried.</p><p>Hope some experts can help me.</p>]]></summary>
			<author>
				<name><![CDATA[rubpa]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7145</uri>
			</author>
			<updated>2010-09-09T07:05:26Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5432&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MasterClock source]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5423&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hello!</p><p>Some time ago I made a little Widget called <a href="http://www.chumby.com/guide/widget/MasterClock">MasterClock</a>, which basically just shows other clocks downloaded from the Chumby-Website. I now have complains that it stopped working, but I currently have no time to look into it. Therefore I put the <a href="http://web.student.tuwien.ac.at/~e9825447/MasterClock-src.zip">source code</a> online in case anyone else want to take a look at it. If anyone can tell my what I need to correct I will publish a new version. Of course anyone is welcome to republish a better version of my MasterClock. (My guess is that it&#039;s some sort of crossdomain-issue.)</p><p>I packed the whole FlashDevelop-Project, so it should be not problem to compile it, as long as FlashDevelop is installed. The code is rather primitive, because I have no clue about flash programming and just hacked into the dark <img src="http://forum.chumby.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Good luck!<br />Christian</p>]]></summary>
			<author>
				<name><![CDATA[djchumby]]></name>
				<uri>http://forum.chumby.com/profile.php?id=691</uri>
			</author>
			<updated>2010-09-08T22:57:04Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5423&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Device limitations?]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5435&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi, Rick here from breakdesign.com. Just recently got myself a Chumby one and love the little guy. After reading all the guidelines I have been playing around with the basics of widget development. There are quite a few limitations (initially) which were not so great like 100k file size limit, 12 fps etc...</p><p>However, I tried a quick test and just chucked one of our touch games on it to see what would happen and it works great!!! The game is 900k at 20fps and plays beautifully on the chumby, obviously a few things don&#039;t work with a direct port but most of it works fine, even viewing our leaderboards. The games are built at 360 X 640 but when scaled look fine.</p><p>My question, why are we limited to 100k at 12 fps if we can actually put any file size on? Is this purely for keeping the loadtimes really quick? Will a game be rejected for public viewing if file size is over 100k? Even if we were to build smart preloaders?</p><p>Thanks!</p><p>Rick</p><p>btw, you can view our flash lite games at <a href="http://www.barkingseed.com">http://www.barkingseed.com</a>, if you got a Nokia touch device you can have a play. Hopefully will be doing some cool widgets down the line for Chumby!</p>]]></summary>
			<author>
				<name><![CDATA[breakdesign_rick]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7550</uri>
			</author>
			<updated>2010-09-08T04:34:04Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5435&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Developer refresh]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5427&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Can something be done about the ridiculous wait time after uploading a widget?&nbsp; Testing and relying on local results is not an option for the chumby, and for those of us who are time limited (who isn&#039;t) this is an especially aggravating issue.</p><p>Is the idea to make it *harder* for developers to take care of chumby business?&nbsp; It&#039;s becoming easier just to hit delete than to navigate the jungle of chumby dev. <img src="http://forum.chumby.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>cb</p>]]></summary>
			<author>
				<name><![CDATA[zurk]]></name>
				<uri>http://forum.chumby.com/profile.php?id=2515</uri>
			</author>
			<updated>2010-09-07T19:40:21Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5427&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Custom alarm screen]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=4756&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I thought I&#039;d share my custom alarm screen for waking up.&nbsp; Below is the example of the screen when the alarm goes off. </p><p><span class="postimg"><img src="http://thegroverfamily.net:8/chumby/alarmring.png" alt="alarm screen" /></span></p><p>To download it I have posted the swf and fla (CS4) here:</p><p><a href="http://thegroverfamily.net:8/chumby/alarmring.swf">http://thegroverfamily.net:8/chumby/alarmring.swf</a><br /><a href="http://thegroverfamily.net:8/chumby/alarmring.fla">http://thegroverfamily.net:8/chumby/alarmring.fla</a></p><p>I&#039;m still learning flash so I&#039;m sorry I&#039;ve just used standard library objects and simple text fields.&nbsp; I&#039;d be happy to try suggestions.</p>]]></summary>
			<author>
				<name><![CDATA[likearaptor]]></name>
				<uri>http://forum.chumby.com/profile.php?id=4201</uri>
			</author>
			<updated>2010-09-05T10:50:53Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=4756&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[detecting screen size ??]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5406&amp;action=new"/>
			<summary type="html"><![CDATA[<p>how do i detect screen size 800/320 in actionscript in a simple if loop ?<br />also how do i resize the flash movie dynamically ?</p>]]></summary>
			<author>
				<name><![CDATA[Duane]]></name>
				<uri>http://forum.chumby.com/profile.php?id=6049</uri>
			</author>
			<updated>2010-09-02T01:19:34Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5406&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Full Screen Mode]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5396&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi All,</p><p>Is it possible to resize an app to full screen?</p><p>Something like:</p><p>var resizeListener = new Object();<br />resizeListener.onResize = function():Void{<br />&nbsp; &nbsp; stage_size.text = Stage.width + &quot;x&quot; + Stage.height;<br />}<br />Stage.addListener(resizeListener);</p><p>I am using a Sony dash and the max resolution is 860x480 vs 320x240.</p><p>Thanks,</p><p>- J</p>]]></summary>
			<author>
				<name><![CDATA[jmcarlson]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7406</uri>
			</author>
			<updated>2010-08-30T22:07:09Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5396&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sony Dash load XML]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5383&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hello,</p><p>I am confused on how to get an external XML file to load.</p><p>I am using a cross domain policy file.</p><p>Is it required to use something like:</p><p><span style="color: blue">function receivedParameters(parameters) { myTextField.text = parameters.someParameterName;<br />}</span></p><p>Thanks for the help!</p><p>-J</p>]]></summary>
			<author>
				<name><![CDATA[jmcarlson]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7406</uri>
			</author>
			<updated>2010-08-26T21:10:30Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5383&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OpenLaszlo & Touch screens]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=70&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Has anyone successfully put an OpenLaszlo widget on the chumby? I don&#039;t see why a passive widget would not work, but I am wondering if anything would need to be done to get OpenLaszlo to accept touch-screen input.</p>]]></summary>
			<author>
				<name><![CDATA[Dorgendubal]]></name>
				<uri>http://forum.chumby.com/profile.php?id=58</uri>
			</author>
			<updated>2010-08-21T04:18:01Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=70&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Flash and Linux]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=640&amp;action=new"/>
			<summary type="html"><![CDATA[<p>What do you use to make Flash applets in Linux?</p>]]></summary>
			<author>
				<name><![CDATA[Dorgendubal]]></name>
				<uri>http://forum.chumby.com/profile.php?id=663</uri>
			</author>
			<updated>2010-08-21T04:14:46Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=640&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OpenLaszlo XMLHttpRequest question]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5016&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I&#039;m using OpenLaszlo to write Flash SWF.</p><p>I&#039;ve used OpenLaszlo &lt;dataset&gt; to access an external web site with a CrossDomain file OK.</p><p>However I am trying OpenLaszlo lz.XMLHttpRequest to get data.&nbsp; I can create the request and get a readyState of 2 then 4.&nbsp; However the status returned is 0.&nbsp; Should this work?</p><p>TIA Chris</p>]]></summary>
			<author>
				<name><![CDATA[Dorgendubal]]></name>
				<uri>http://forum.chumby.com/profile.php?id=5859</uri>
			</author>
			<updated>2010-08-21T04:06:55Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5016&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Communications questions.]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5366&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi,</p><p>I have a few questions that did not turn up answers in simple searches.</p><p>1.&nbsp; I have noticed that things I can do in the PC based stand alone flash player, like log into a webserver that requires cookies to communicate, seems to work.&nbsp; However, when I attempt the same stunt using a my swf file (running as the Chumby control panel), the same webserver&nbsp; treats it as unauthenticated.&nbsp; This is a web server that really has no authentication activated, no login required running on the local LAN.&nbsp; The flash running in this fashion on the chumby is actually the first time in the life of our product (5 years) that anyone in my team has seen this particular webserver (running on an embedded linux server on the LAN) give an unauthenticated message.</p><p>Does the chumbyflashplayer do less than the stand alone projector on a PC regarding cookies?&nbsp; (or is this a flashlite thing?)</p><p>2.&nbsp; I have also noticed that when I try my normally reliable alternative approach of connecting by using a socket at port 3050, the connection is never recognized by the socket server.&nbsp; It does work in just about every other configuration, except running on the Chumby.</p><p>Does the chumbyflashplayer allow direct socket connections to ports (such as 3050?)</p><p>Thanks!</p><p>nearmedia</p>]]></summary>
			<author>
				<name><![CDATA[Duane]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7229</uri>
			</author>
			<updated>2010-08-19T05:52:26Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5366&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[base path for widgets?]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5361&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hello,</p><p>In a browser when you want to develop a flash based solution, that is comprised of external xml and other resources, the embed tag allows you to set the relative path for all file loads.&nbsp; This is done using the &quot;base&quot; attribute.</p><p>I would like to deploy a widget that uses a more complex directory structure and dependencies.&nbsp; To do this, I can upload a file to the chumby.com site that when loaded, calls loadMovie() to load an externally located swf.&nbsp; This seems to work nicely&nbsp; -- (Thanks Duane!).&nbsp; However, when this external file is loaded, it&#039;s relative directory is ... well not relative to it.</p><p>Is there a nifty trick in the flash player used to display chumby widgets that allows the setting of the &quot;base&quot; path of a widget?&nbsp; Or any other trick, short of hard coding paths into the external resources (ouch), to achieve the goal of establishing a relative path?</p><p>Runtime sharing seems to be a non starter for widgets today based on this...</p><p>Thanks in advance for your response!</p>]]></summary>
			<author>
				<name><![CDATA[nearmedia]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7229</uri>
			</author>
			<updated>2010-08-18T01:05:16Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5361&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Control panel developers]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5360&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Looking for people to develop some control panels or even a control panel theme manager.</p>]]></summary>
			<author>
				<name><![CDATA[phoenixflames]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7291</uri>
			</author>
			<updated>2010-08-16T21:29:20Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5360&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What is a Crossdomain.xml?]]></title>
			<link rel="alternate" href="http://forum.chumby.com/viewtopic.php?id=5357&amp;action=new"/>
			<summary type="html"><![CDATA[<p>What is a crossdomain and what is it&#039;s purpose? I created a simple application for the Chumby and I did not create a crossdomain, so I&#039;m not sure what the purpose of this is?</p><p>Any help would be great since the Chumby experts weren&#039;t able to help me, I&#039;m hoping someone out there will be able to!</p>]]></summary>
			<author>
				<name><![CDATA[chumby1]]></name>
				<uri>http://forum.chumby.com/profile.php?id=7311</uri>
			</author>
			<updated>2010-08-16T16:56:00Z</updated>
			<id>http://forum.chumby.com/viewtopic.php?id=5357&amp;action=new</id>
		</entry>
</feed>
