<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Bronson web development blog</title>
	<atom:link href="http://www.bronsonid.com/blog/tech/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bronsonid.com/blog/tech</link>
	<description>Tips and hacks from the nicest web agency in Malmö</description>
	<pubDate>Tue, 09 Dec 2008 12:52:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>How to make a Flex DateChooser transparent</title>
		<link>http://www.bronsonid.com/blog/tech/how-to-make-a-flex-datechooser-transparent/</link>
		<comments>http://www.bronsonid.com/blog/tech/how-to-make-a-flex-datechooser-transparent/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:52:51 +0000</pubDate>
		<dc:creator>Camilo</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[adobe]]></category>

		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.bronsonid.com/blog/tech/?p=22</guid>
		<description><![CDATA[A couple of weeks ago, we were skinning an Air Application for one of our clients. One detail,was to make a DateChooser transparent. We tried and tried and could fix the transparency so we had to give in.
The strange thing is that if you use the standard backgroundAlpha style and set it to 0, you [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago, we were skinning an Air Application for one of our clients. One detail,was to make a DateChooser transparent. We tried and tried and could fix the transparency so we had to give in.</p>
<p>The strange thing is that if you use the standard backgroundAlpha style and set it to 0, you still get a semi-transparent background.</p>
<p>After attending Adobe MAX in Milan, we tried some more tricks and finally we created a calendar that is transparent all the way.<span id="more-22"></span></p>
<ol>
<li>First we created a new class that extends the DateChooser class.</li>
<li>Second, we create a new style setting so that it is easy to change the opacity of the background.</li>
<li>Third, we override the createChildren to use the new opacity for the background.</li>
</ol>
<p>There might be a mush simpler way of achieving this (there should be at least), but we havent found it yet. If some of you know how to make it easier, let me know.</p>
<p>Here is a <a href="http://www.bronsonid.com/develop/extendeddatechooser/" target="_blank">demo</a> and here is the complete source: <a href="http://www.bronsonid.com/develop/extendeddatechooser/srcview/" target="_blank">Link</a></p>
<p>And here is the extended class code:</p>
<pre>// DateChooser extended class to make transparency possible
// Author: Camilo Tapia, Bronson ID
// Date: 2008-12-04
// Copyright 2008
package com.bronson
{
    import mx.controls.DateChooser;

    // create a new style setting
    [Style(name="calendarContentBackgroundAlpha", type="Number", inherit="no")]

    public class ExtendedDateChooser extends DateChooser
    {

        public function ExtendedDateChooser()
        {
            super();
        }

        // override the createChildren function to make the changes
        override protected function createChildren():void
        {
            super.createChildren();
            super.getChildAt(1).alpha = getStyle("calendarContentBackgroundAlpha");
            super.getChildAt(0).alpha = getStyle("calendarContentBackgroundAlpha");
        }

    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bronsonid.com/blog/tech/how-to-make-a-flex-datechooser-transparent/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Adobe Group for AS, Flex and Flash users</title>
		<link>http://www.bronsonid.com/blog/tech/new-adobe-group-for-as-flex-and-flash-users/</link>
		<comments>http://www.bronsonid.com/blog/tech/new-adobe-group-for-as-flex-and-flash-users/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:23:28 +0000</pubDate>
		<dc:creator>Camilo</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[adobe]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[community]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[group]]></category>

		<guid isPermaLink="false">http://www.bronsonid.com/blog/tech/?p=24</guid>
		<description><![CDATA[After attending Adobe Max In Milan, we where inspired to create a new Adobe Group for adobe developers in southern Sweden.The idea is to help and inspire eachother to make the the community in our region even better than it already is.
So please join the group here.
]]></description>
			<content:encoded><![CDATA[<p>After attending Adobe Max In Milan, we where inspired to create a new Adobe Group for adobe developers in southern Sweden.The idea is to help and inspire eachother to make the the community in our region even better than it already is.</p>
<p>So please join the group <a title="The Southern Swedish Flex/Flash/AS Group" href="http://groups.adobe.com/groups/8a68ccf04d" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bronsonid.com/blog/tech/new-adobe-group-for-as-flex-and-flash-users/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Top 5 browser plugins for web development</title>
		<link>http://www.bronsonid.com/blog/tech/top-5-browser-plugins-for-web-development/</link>
		<comments>http://www.bronsonid.com/blog/tech/top-5-browser-plugins-for-web-development/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 08:50:23 +0000</pubDate>
		<dc:creator>Camilo</dc:creator>
		
		<category><![CDATA[Better Life]]></category>

		<category><![CDATA[browser]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.bronsonid.com/blog/tech/?p=14</guid>
		<description><![CDATA[There are so many browser plug-ins for developers now, that it&#8217;s no surprise that we find new, useful, plug-ins now and then.
Yesterday my college showed me the Pixelperfect plug-in for firefox and I wondered how I could have survived the last ten years without it. OK, maybe its a bit of exaggeration but its a [...]]]></description>
			<content:encoded><![CDATA[<p>There are so many browser plug-ins for developers now, that it&#8217;s no surprise that we find new, useful, plug-ins now and then.</p>
<p>Yesterday my college showed me the <a href="http://www.pixelperfectplugin.com/" target="_blank">Pixelperfect</a> plug-in for firefox and I wondered how I could have survived the last ten years without it. OK, maybe its a bit of exaggeration but its a tiny, super helpful plug-in.</p>
<p>That plug-in, together with a couple of others, are plug-in that we use daily in our work which greatly improve our way of work.</p>
<p><span id="more-14"></span></p>
<p>So, to help out others that might have missed which plug-ins might make their lives better, here is a list of the top 5 we find <span class="tyda_entry_base" title="grundform">indispensable</span>:</p>
<ol>
<li><a href="http://getfirebug.com/" target="_blank">Firebug</a> for Firefox. How did we manage before Firebug? This is by far the best plugin there. It&#8217;s a must have.</li>
<li><a href="http://chrispederick.com/work/web-developer/" target="_blank">Web Develop Toolbar</a> for Firefox. Same here. Indispensable and impossible to develop without it after trying.</li>
<li><a href="http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;displaylang=en" target="_blank">Internet Explorer Developer Toolbar</a> for IE. If you still are developing on IE as your main development browser, this is a must-have.</li>
<li><a href="http://www.janodvarko.cz/firecookie">Firecookie</a> for Firebug/Firefox. This plug-in monitors all cookies that are read or writen and shows everyhting trough the Firebug Console. Extremely useful for debugging.</li>
<li><a href="http://www.pixelperfectplugin.com/">Pixelperfect</a> for Firebug/Firefox. This plug-in allows you to put an image as a overlay on a site you are developing and set a custom amount of transparency. Perfect when you are as picky as us when coding HTML and CSS.</li>
</ol>
<p>So, there you have it. At least our top 5. There are plenty more such as ColorZilla, Charles/Fiddler (for watching all traffic between your browser and the server) etc, but the list only has 5 slots.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bronsonid.com/blog/tech/top-5-browser-plugins-for-web-development/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adobe Air mailto special characters mega problem in mac os x</title>
		<link>http://www.bronsonid.com/blog/tech/adobe-air-mailto-special-characters-mega-problem-in-mac-os-x/</link>
		<comments>http://www.bronsonid.com/blog/tech/adobe-air-mailto-special-characters-mega-problem-in-mac-os-x/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 11:25:19 +0000</pubDate>
		<dc:creator>Camilo</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[mac os x]]></category>

		<category><![CDATA[special charaters]]></category>

		<guid isPermaLink="false">http://www.bronsonid.com/blog/tech/?p=3</guid>
		<description><![CDATA[Imagine this scenario:
You are creating an air application, destined for both os x and windows. Everything works as it should and you are fixing the last functions. One of them is to create an email in your default mail application with a predefined subject and body.
Since it’s flex and cross platform compatible and all that, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Imagine this scenario:</strong></p>
<p>You are creating an air application, destined for both os x and windows. Everything works as it should and you are fixing the last functions. One of them is to create an email in your default mail application with a predefined subject and body.</p>
<p>Since it’s flex and cross platform compatible and all that, you create the email by using navigateToUrl in flex and opening a link with all content like this:</p>
<p>mailto:emailadress@theinternet.com?subject=hello&amp;body=thisisanemail.</p>
<p>In windows, everything works fine and you are happy. You know that cross platform prolems might occur, but you hope that, at least this time, everything is ok.<br />
And everything actually works fine.<br />
That is until you put some special characters in your subject or body. Our application needed some those äöå so we had a problem.<br />
<span id="more-3"></span><br />
In mac os x, the body and subject where emptied as soon as one single special character appeared. No subject, no body and nothing to do about it. We tried to urlencode, write unicode characters directly with \u etc but nothing worked.</p>
<p>We almost gave up and told our client that they might have to rethink their copy and try to avoid any special characters (which is quite hard in swedish).</p>
<p>But, as our last test, we tried to see if that problem occurred if we only had a html file with s subject with the same characters. That worked and we concluded that the problem had to do with flex and how it handles the navigateToUrl string.</p>
<p>So, to solve everything and make our client happy, we created a work-around, and here it is:<br />
<strong>1. Create a HTMLLoader in flex:</strong></p>
<p><span style="color: #800000;">var html:HTMLLoader = new HTMLLoader();</span><br />
<strong>2. Create a HTMLHost in it:</strong></p>
<p><span style="color: #800000;">html.htmlHost = new HTMLHost();</span></p>
<p><strong>3. fill the html with an empty page but a javascript redirect to the mailto string:</strong></p>
<p><span style="color: #800000;">html.loadString(&#8217;&lt;html&gt;&lt;script&gt;location.href=&#8221;mailto:emailadress@theinternet.com?subject=Hello ÄÖÅ&amp;body=This isatest ÄÖÅ&#8221;;&lt;/script&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;&#8217;);</span></p>
<p>Thats it. Very simple, works with both windows and mac and everything i solved.<br />
here is the complete code for it:</p>
<pre><span style="color: #800000;">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"&gt;    </span></pre>
<pre><span style="color: #800000;">    &lt;mx:Script&gt;</span></pre>
<pre><span style="color: #800000;">        &lt;![CDATA[
            function mailto():void
            {
                var html:HTMLLoader = new HTMLLoader();
                html.htmlHost = new HTMLHost();
                var mailtoString = '</span><span><span style="color: #800000;">&lt;html&gt;&lt;script&gt;location.href=';
                </span></span><span><span><span><span style="color: #800000;">mailtoString </span></span></span></span>+= '<span><span style="color: #800000;">"mailto:camilo@bronsonid.com?';
                </span></span><span><span><span><span style="color: #800000;">mailtoString </span></span></span></span>+= '<span><span style="color: #800000;">subject=tjenaÅÄÖ ÄÖÅ&amp;body=HELLO BODY ÄÖÅ";</span></span>';
                <span><span><span><span style="color: #800000;">mailtoString </span></span></span></span>+= '<span><span style="color: #800000;">&lt;/script&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;'</span></span>;<span><span style="color: #800000;">
</span></span></pre>
<pre><span style="color: #800000;">                html.loadString(</span><span><span><span><span style="color: #800000;">mailtoString</span></span></span></span><span style="color: #800000;">);
            }</span></pre>
<pre><span style="color: #800000;">        ]]&gt;</span></pre>
<pre><span style="color: #800000;">    &lt;/mx:Script&gt;
</span></pre>
<pre><span style="color: #800000;">    &lt;mx:Button label="click to mailto" click="mailto();" /&gt;
&lt;/mx:WindowedApplication&gt;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bronsonid.com/blog/tech/adobe-air-mailto-special-characters-mega-problem-in-mac-os-x/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
