<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>devbar.de &#187; Allgemein</title>
	<atom:link href="http://www.devbar.de/index.php/category/allgemein/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devbar.de</link>
	<description>just code chunks</description>
	<lastBuildDate>Sat, 07 Jan 2012 19:50:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Icons f&#252;r meine Apps</title>
		<link>http://www.devbar.de/index.php/2012/01/icons-fr-meine-apps/</link>
		<comments>http://www.devbar.de/index.php/2012/01/icons-fr-meine-apps/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 18:49:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://www.devbar.de/?p=735</guid>
		<description><![CDATA[Wer seiner Anwendung mit hübschen Icons und Grafiken den letzten Schliff verleihen will, wird im Internet mit Sicherheit fündig. Der Haken ist, dass Icon-Pakete oft teuer sind oder nur unter bestimmten Auflagen genutzt werden können. Manchmal ist die Verwendung auch gar nicht weiter geregelt und man spielt mit dem Feuer.
Das Projekt www.iconfinder.com versucht den Dschungel [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2012/01/iconfinder_logo.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="iconfinder_logo" border="0" alt="iconfinder_logo" align="right" src="http://www.devbar.de/wp-content/uploads/2012/01/iconfinder_logo_thumb.png" width="240" height="104" /></a>Wer seiner Anwendung mit hübschen Icons und Grafiken den letzten Schliff verleihen will, wird im Internet mit Sicherheit fündig. Der Haken ist, dass Icon-Pakete oft teuer sind oder nur unter bestimmten Auflagen genutzt werden können. Manchmal ist die Verwendung auch gar nicht weiter geregelt und man spielt mit dem Feuer.</p>
<p>Das Projekt <a href="http://www.iconfinder.com">www.iconfinder.com</a> versucht den Dschungel zu lichten. Hier lassen sich gezielt die richtigen Grafiken suchen und die Ergebnisse nach kostenlosen/kostenpflichtigen Angeboten filtern.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2012/01/icons-fr-meine-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Podcast-Tipp zu Windows Azure</title>
		<link>http://www.devbar.de/index.php/2011/03/podcast-tipp-zu-windows-azure/</link>
		<comments>http://www.devbar.de/index.php/2011/03/podcast-tipp-zu-windows-azure/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 21:19:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/03/podcast-tipp-zu-windows-azure/</guid>
		<description><![CDATA[Die beste Sendung die ich bisher beim Heise &#8211; Developer-Podcast gehört habe. Außerdem weiß ich jetzt endlich wie man “Azure” ausspricht . Nein &#8211; im Ernst: Hier wird alles angerissen und man kriegt wirklich einfach mal einen Überblick was da auf uns zu kommt. Viel Spaß beim Hören.
Links:

Zur Sendung

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2011/03/podcast_teaser.gif"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 3px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top: 0px; border-right: 0px; padding-top: 0px" title="podcast_teaser" border="0" alt="podcast_teaser" align="right" src="http://www.devbar.de/wp-content/uploads/2011/03/podcast_teaser_thumb.gif" width="68" height="69" /></a>Die beste Sendung die ich bisher beim Heise &#8211; Developer-Podcast gehört habe. Außerdem weiß ich jetzt endlich wie man “Azure” ausspricht <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smiley" src="http://www.devbar.de/wp-content/uploads/2011/03/wlEmoticon-smile.png" />. Nein &#8211; im Ernst: Hier wird alles angerissen und man kriegt wirklich einfach mal einen Überblick was da auf uns zu kommt. Viel Spaß beim Hören.</p>
<p><strong>Links:</strong></p>
<ul>
<li><font color="#333333"><a href="http://www.heise.de/developer/artikel/Episode-29-Cloud-Computing-mit-Windows-Azure-1211445.html">Zur Sendung</a></font></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/03/podcast-tipp-zu-windows-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CeBIT-Tickets auf den letzten Dr&#252;cker</title>
		<link>http://www.devbar.de/index.php/2011/03/cebit-tickets-auf-dem-letzten-drcker/</link>
		<comments>http://www.devbar.de/index.php/2011/03/cebit-tickets-auf-dem-letzten-drcker/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 21:15:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/03/cebit-tickets-auf-dem-letzten-drcker/</guid>
		<description><![CDATA[Wer noch kurzfristig kostenlose CeBIT-Tickets braucht, kann bei der Computer-Bild noch welche bekommen. Diverse Gutscheincodes in anderen Blogs scheinen dagegen nicht mehr zu funktionieren.
Man sieht sich 
Links:

Cebit
Computerbild

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2011/03/cebit.png"><img style="background-image: none; border-right-width: 0px; margin: 0px 9px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="cebit" border="0" alt="cebit" align="left" src="http://www.devbar.de/wp-content/uploads/2011/03/cebit_thumb.png" width="128" height="129" /></a>Wer noch kurzfristig kostenlose CeBIT-Tickets braucht, kann bei der Computer-Bild noch welche bekommen. Diverse Gutscheincodes in anderen Blogs scheinen dagegen nicht mehr zu funktionieren.</p>
<p>Man sieht sich <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Zwinkerndes Smiley" src="http://www.devbar.de/wp-content/uploads/2011/03/wlEmoticon-winkingsmile.png" /></p>
<p>Links:</p>
<ul>
<li><a href="http://www.cebit.de/">Cebit</a></li>
<li><a href="http://www.computerbild.de/artikel/cb-News-Internet-Gratis-CeBIT-Tageskarten-sichern-6004048.html">Computerbild</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/03/cebit-tickets-auf-dem-letzten-drcker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Diagram Viewer von Adobe</title>
		<link>http://www.devbar.de/index.php/2011/02/as3-diagram-viewer-von-adobe/</link>
		<comments>http://www.devbar.de/index.php/2011/02/as3-diagram-viewer-von-adobe/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 23:04:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/02/as3-diagram-viewer-von-adobe/</guid>
		<description><![CDATA[Wenn ihr euch (so wie ich) gerade in ActionScript einarbeitet, dann ist es vielleicht manchmal ganz hilfreich, wenn man das Framework mal als Gesamtübersicht im Zugriff hat. Hier könnt ihr euch das Diagramm samt Viewer downloaden.
Wenn ihr auf der Suche nach hübschem Wandschmuck seid, dann könnt ihr euch das ganze auch als jpg downloaden und [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2011/02/air_20080225162906.jpg"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="air_20080225162906" border="0" alt="air_20080225162906" align="right" src="http://www.devbar.de/wp-content/uploads/2011/02/air_20080225162906_thumb.jpg" width="103" height="104" /></a>Wenn ihr euch (so wie ich) gerade in ActionScript einarbeitet, dann ist es vielleicht manchmal ganz hilfreich, wenn man das Framework mal als Gesamtübersicht im Zugriff hat. <a href="http://www.adobe.com/cfusion/marketplace/index.cfm?event=marketplace.offering&amp;marketplaceid=1&amp;offeringid=10364">Hier</a> könnt ihr euch das Diagramm samt Viewer downloaden.</p>
<p>Wenn ihr auf der Suche nach hübschem Wandschmuck seid, dann könnt ihr euch das ganze auch als <a href="http://www.coolinfographics.com/blog/2010/6/24/adobe-actionscript-30-poster-viewer.html">jpg downloaden</a> und ausdrucken (lassen). </p>
<p>Das ist bestimmt ein Eye-Catcher <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Zwinkerndes Smiley" src="http://www.devbar.de/wp-content/uploads/2011/02/wlEmoticon-winkingsmile.png" />.</p>
<p>&#160;</p>
<p><strong>Links</strong></p>
<ul>
<li><a href="http://www.adobe.com/cfusion/marketplace/index.cfm?event=marketplace.offering&amp;marketplaceid=1&amp;offeringid=10364">ActionScript 3.0 Diagram Viewer</a></li>
<li><a href="http://www.coolinfographics.com/blog/2010/6/24/adobe-actionscript-30-poster-viewer.html">Cool Infographics</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/02/as3-diagram-viewer-von-adobe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playbook-Browser aus App aufrufen</title>
		<link>http://www.devbar.de/index.php/2011/02/playbook-browser-aus-app-ansprechen/</link>
		<comments>http://www.devbar.de/index.php/2011/02/playbook-browser-aus-app-ansprechen/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 22:34:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/?p=665</guid>
		<description><![CDATA[Nachdem ich vor einigen Tagen zum Besten gegeben habe wie ihr in eure Anwendung das QNXStageWebView-Control einbindet, kommt jetzt der externe Browser dran. Der Browser ist im Simulator zum aktuellen SDK 0.9.3 vorinstalliert.
  

Wenn man den BlackBerry Playbook-Simulator installiert, fällt direkt auf, dass es sogar an den wichtigsten Tools fehlt. Da muss man selbst [...]]]></description>
			<content:encoded><![CDATA[<p>Nachdem ich vor einigen Tagen zum Besten gegeben habe wie ihr in eure Anwendung das QNXStageWebView-Control einbindet, kommt jetzt der externe Browser dran. Der Browser ist im Simulator zum aktuellen SDK 0.9.3 vorinstalliert.</p>
<p>  <span id="more-665"></span><br />
<blockquote>
<p>Wenn man den BlackBerry Playbook-Simulator installiert, fällt direkt auf, dass es sogar an den wichtigsten Tools fehlt. Da muss man selbst Hand anlegen und sich z.B. seinen eigenen Webbrowser basteln. </p>
</blockquote>
<p>Mein Flehen wurden offenbar erhört. In der aktuellen Version des Simulators gibt es zumindest schon mal den Browser zur Begutachtung. Besonders spannend natürlich, ob man das Ding auch mit seinen Apps benutzen kann. Ich versuche momentan einen kleinen Twitter-Client zu bauen und da ist es für OAuth unbedingt erforderlich, dass es eine Browserintegration gibt (entweder eingebettet oder eben extern).</p>
<p><strong>So wird’s gemacht</strong></p>
<p>Das ganze habe ich mal in einer handlichen kleinen Anwendung zusammengefasst.</p>
<pre class="brush: java;">package
{
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.net.*;
    import qnx.ui.buttons.LabelButton;
    import qnx.ui.core.Container;
    import qnx.ui.text.TextInput;

    /**
     * ...
     * @author Siron
     */

    // The following metadata specifies the size and properties of the canvas that
    // this application should occupy on the BlackBerry PlayBook screen.
    [SWF(width=&quot;1024&quot;, height=&quot;600&quot;, backgroundColor=&quot;#cccccc&quot;, frameRate=&quot;30&quot;)]

    public class Main extends Sprite
    {
        private var main:Container;
        private var browse:LabelButton;
        private var url:TextInput;

        /**
         * constructor
         */
        public function Main():void
        {
            main = new Container();

            // feld für url erstellen
            url = new TextInput();
            url.width = 250;
            url.y = 3;
            url.text = &quot;http://devbar.de&quot;;
            main.addChild(url);

            // button zum browsen
            browse = new LabelButton();
            browse.setPosition(255, 1);
            browse.label = &quot;Go&quot;;
            browse.addEventListener(MouseEvent.CLICK, btUrlClicked);
            main.addChild(browse);

            // container auf die stage stellen
            main.setSize(stage.stageWidth, stage.stageHeight);
            addChild(main);
        }

        /**
         * zu url browsen, wenn button geklickt wurde
         * @param    event
         */
        private function btUrlClicked(event:MouseEvent):void {
            navigateToURL(new URLRequest(url.text));
        }

    }

}</pre>
<p>&#160;</p>
<p>So sieht das ganze anschließend im Simulator aus. Zur Bedienung der Anwendung muss ich wahrscheinlich nicht mehr viel sagen.</p>
<p><a href="http://www.devbar.de/wp-content/uploads/2011/02/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.devbar.de/wp-content/uploads/2011/02/image_thumb.png" width="244" height="145" /></a></p>
<p><a href="http://www.devbar.de/wp-content/uploads/2011/02/image1.png"><img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.devbar.de/wp-content/uploads/2011/02/image_thumb1.png" width="244" height="145" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/02/playbook-browser-aus-app-ansprechen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Actionscript-Vectoren sortieren</title>
		<link>http://www.devbar.de/index.php/2011/02/actionscript-vectoren-sortieren/</link>
		<comments>http://www.devbar.de/index.php/2011/02/actionscript-vectoren-sortieren/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 21:34:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/02/actionscript-vectoren-sortieren/</guid>
		<description><![CDATA[Hier schick ich noch ein kleines Häppchen hinterher, weil&#8217;s einfach mal cool ist wie das Sortieren von Vectoren in ActionScript gelöst ist   
package 
&#123; 
&#160; &#160; import flash.display.Sprite; 
&#160; &#160; import flash.events.MouseEvent; 
&#160; &#160; import flash.geom.Rectangle; 
&#160; &#160; import flash.text.TextField; 
&#160; &#160; import qnx.ui.buttons.IconButton;

&#160; &#160; import qnx.media.QNXStageWebView; 
&#160; &#160; import qnx.ui.buttons.LabelButton; 
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Hier schick ich noch ein kleines Häppchen hinterher, weil&#8217;s einfach mal cool ist wie das Sortieren von Vectoren in ActionScript gelöst ist <img src='http://www.devbar.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <span id="more-609"></span></p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #9900cc; font-weight: bold;">package</span> <br />
<span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=textfield%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:textfield.html"><span style="color: #004993;">TextField</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>buttons<span style="color: #000066; font-weight: bold;">.</span>IconButton<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>media<span style="color: #000066; font-weight: bold;">.</span>QNXStageWebView<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>buttons<span style="color: #000066; font-weight: bold;">.</span>LabelButton<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span>TextInput<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.*;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #3f5fbf;">/** <br />
&nbsp; &nbsp; * ... <br />
&nbsp; &nbsp; * @author Siron <br />
&nbsp; &nbsp; */</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// The following metadata specifies the size and properties of the canvas that </span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// this application should occupy on the BlackBerry PlayBook screen. </span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;1024&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;600&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#cccccc&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">frameRate</span>=<span style="color: #990000;">&quot;30&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a> <br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span>TextInput<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> ok<span style="color: #000066; font-weight: bold;">:</span>LabelButton <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> webView<span style="color: #000066; font-weight: bold;">:</span>QNXStageWebView<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> mainCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> topCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> searchButton<span style="color: #000066; font-weight: bold;">:</span>IconButton<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> draftCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #004993;">source</span> = <span style="color: #990000;">'../applications-internet.png'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> appInet <span style="color: #000066; font-weight: bold;">:</span> <a href="http://www.google.com/search?q=class%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:class.html"><span style="color: #004993;">Class</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// sets main container </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">HORIZONTAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>mainCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// top bar </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>sizeUnit = SizeUnit<span style="color: #000066; font-weight: bold;">.</span>PIXELS<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">HORIZONTAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = ContainerAlign<span style="color: #000066; font-weight: bold;">.</span>FAR<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>containment = Containment<span style="color: #000066; font-weight: bold;">.</span>DOCK_TOP<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span> = <span style="color: #0033ff; font-weight: bold;">new</span> TextInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">180</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">500</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;http://devbar.de&quot;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton = <span style="color: #0033ff; font-weight: bold;">new</span> IconButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span>setIcon<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> appInet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">36</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> navigate<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>searchButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>topCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// draft </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>sizeUnit = SizeUnit<span style="color: #000066; font-weight: bold;">.</span>PERCENT<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">VERTICAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = ContainerAlign<span style="color: #000066; font-weight: bold;">.</span>NEAR<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>padding = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>draftCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView = <span style="color: #0033ff; font-weight: bold;">new</span> QNXStageWebView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span>= <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>autoFit=<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>viewPort = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span>stageHeight<span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableCookies = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableJavascript = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableScrolling = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>loadURL<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://devbar.de&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> navigate<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>loadURL<span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #000000;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/02/actionscript-vectoren-sortieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webbrowser mit QNXStageWebView</title>
		<link>http://www.devbar.de/index.php/2011/02/webbrowser-mit-qnxstagewebview/</link>
		<comments>http://www.devbar.de/index.php/2011/02/webbrowser-mit-qnxstagewebview/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 21:13:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[Playbook]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/02/webbrowser-mit-qnxstagewebview/</guid>
		<description><![CDATA[Wenn man den BlackBerry Playbook-Simulator installiert, fällt direkt auf, dass es sogar an den wichtigsten Tools fehlt. Da muss man selbst Hand anlegen und sich z.B. seinen eigenen Webbrowser basteln. Wie man dies sogar mit dem OS-Werkzeug FlashDevelop schafft, zeig ich euch hier.

Los geht&#8217;s
Bevor ihr startet, solltet ihr euch das wirklich hervorragende Tutorial von studio&#124;chris [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man den BlackBerry Playbook-Simulator installiert, fällt direkt auf, dass es sogar an den wichtigsten Tools fehlt. Da muss man selbst Hand anlegen und sich z.B. seinen eigenen Webbrowser basteln. Wie man dies sogar mit dem OS-Werkzeug <a href="http://www.flashdevelop.org/">FlashDevelop</a> schafft, zeig ich euch hier.</p>
<p><span id="more-601"></span></p>
<p><strong>Los geht&#8217;s</strong></p>
<p>Bevor ihr startet, solltet ihr euch das wirklich hervorragende Tutorial von <a href="http://www.studiochris.us/2010/flashdevelop-and-blackberry-playbook-development-the-basics/">studio|chris</a> anschauen.</p>
<p><strong>Das Script</strong></p>
<p>Hier haben wir das Script für unser Tool. Eigentlich nichts spektakuläres. Aber der Teufel liegt im Detail.</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #9900cc; font-weight: bold;">package</span> <br />
<span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=textfield%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:textfield.html"><span style="color: #004993;">TextField</span></a><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>buttons<span style="color: #000066; font-weight: bold;">.</span>IconButton<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>media<span style="color: #000066; font-weight: bold;">.</span>QNXStageWebView<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>buttons<span style="color: #000066; font-weight: bold;">.</span>LabelButton<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span>TextInput<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> qnx<span style="color: #000066; font-weight: bold;">.</span>ui<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.*;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #3f5fbf;">/** <br />
&nbsp; &nbsp; * ... <br />
&nbsp; &nbsp; * @author Siron <br />
&nbsp; &nbsp; */</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// The following metadata specifies the size and properties of the canvas that </span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// this application should occupy on the BlackBerry PlayBook screen. </span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;1024&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;600&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#cccccc&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">frameRate</span>=<span style="color: #990000;">&quot;30&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a> <br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span>TextInput<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> ok<span style="color: #000066; font-weight: bold;">:</span>LabelButton <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> webView<span style="color: #000066; font-weight: bold;">:</span>QNXStageWebView<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> mainCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> topCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> searchButton<span style="color: #000066; font-weight: bold;">:</span>IconButton<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> draftCon<span style="color: #000066; font-weight: bold;">:</span>Container<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #004993;">source</span> = <span style="color: #990000;">'../applications-internet.png'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> appInet <span style="color: #000066; font-weight: bold;">:</span> <a href="http://www.google.com/search?q=class%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:class.html"><span style="color: #004993;">Class</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// sets main container </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">HORIZONTAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>mainCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// top bar </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>sizeUnit = SizeUnit<span style="color: #000066; font-weight: bold;">.</span>PIXELS<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">HORIZONTAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = ContainerAlign<span style="color: #000066; font-weight: bold;">.</span>FAR<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span>containment = Containment<span style="color: #000066; font-weight: bold;">.</span>DOCK_TOP<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span> = <span style="color: #0033ff; font-weight: bold;">new</span> TextInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">180</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">500</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;http://devbar.de&quot;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton = <span style="color: #0033ff; font-weight: bold;">new</span> IconButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span>setIcon<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> appInet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">36</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">36</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> navigate<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; topCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>searchButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>topCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// draft </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon = <span style="color: #0033ff; font-weight: bold;">new</span> Container<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>sizeUnit = SizeUnit<span style="color: #000066; font-weight: bold;">.</span>PERCENT<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>flow = ContainerFlow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">VERTICAL</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = ContainerAlign<span style="color: #000066; font-weight: bold;">.</span>NEAR<span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; draftCon<span style="color: #000066; font-weight: bold;">.</span>padding = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>draftCon<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView = <span style="color: #0033ff; font-weight: bold;">new</span> QNXStageWebView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span>= <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>autoFit=<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>viewPort = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span>stageHeight<span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableCookies = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableJavascript = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>enableScrolling = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>loadURL<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://devbar.de&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainCon<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> navigate<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webView<span style="color: #000066; font-weight: bold;">.</span>loadURL<span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #000000;">&#125;</span></div></div>
<p><strong>Woher kommt QNXStageWebView?</strong></p>
<p><em>QNXStageWebView</em> steckt in <em>qnx-air.swc</em>. Die Library ist im SDK-Pfad im Unterorder <em>frameworks\libs\air.</em> Die Datei müsst ihr eurem Projekt hinzufügen, wie ihr das auch schon von der <em>qnx-screen.swc</em> und <em>spark.swc</em> kennt. Auch hier müsst ihr den Menüeintrag &#8220;Add to Library&#8221; ausführen. Allerdings gibt es hier die Besonderheit, dass ihr über die Optionen der Library festlegen müsst, dass es sich um eine &#8220;External library&#8221; handelt. Der Grund dafür ist, dass die <em>qnx-air.swc</em> zur Laufzeit angebunden werden muss, da Playbook-spezifische Aufrufe enthalten sind.</p>
<p><strong>Class qnx.media::QNXStageWebView could not be found</strong></p>
<p>Diese Meldung werdet ihr immer bekommen, wenn ihr versucht die Anwendung direkt aus FlashDevelop und nicht über den Simulator zu starten. Der Grund ist, wie gesagt, dass die Libraries erst auf dem Playbook zur Laufzeit dynamisch eingehängt werden. Leider lässt sich daher unsere Anwendung nur im Simulator testen.</p>
<p><strong>Ergebnis</strong></p>
<p><a href="http://www.devbar.de/wp-content/uploads/2011/02/bb_browser.png"><img style="width: 400px; height: 234px;" src="http://www.devbar.de/wp-content/uploads/2011/02/zrtn_002p404e3cbc_tn.jpg" alt="" width="400" height="234" /></a></p>
<p><strong>Links:</strong></p>
<ul>
<li><a href="http://www.flashdevelop.org/">FlashDevelop</a></li>
<li><a href="http://www.studiochris.us/2010/flashdevelop-and-blackberry-playbook-development-the-basics/">studio|chris</a></li>
<li><a href="http://www.petefreitag.com/item/770.cfm">petefreitag</a></li>
</ul>
<p><strong>Download</strong></p>
<ul>
<li><a href="http://www.devbar.de/wp-content/uploads/2011/02/WebBrowser.zip">WebBrowser</a></li>
</ul>
<div id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 570px; left: -10000px;">package<br />
{<br />
import flash.display.Sprite;<br />
import flash.events.MouseEvent;<br />
import flash.geom.Rectangle;<br />
import flash.text.TextField;<br />
import qnx.ui.buttons.IconButton;import qnx.media.QNXStageWebView;<br />
import qnx.ui.buttons.LabelButton;<br />
import qnx.ui.text.TextInput;<br />
import qnx.ui.core.*;</p>
<p>/**<br />
* &#8230;<br />
* @author Siron<br />
*/</p>
<p>// The following metadata specifies the size and properties of the canvas that<br />
// this application should occupy on the BlackBerry PlayBook screen.<br />
[SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]</p>
<p>public class Main extends Sprite<br />
{</p>
<p>private var url:TextInput;<br />
private var ok:LabelButton<br />
private var webView:QNXStageWebView;<br />
private var mainCon:Container;<br />
private var topCon:Container;<br />
private var searchButton:IconButton;<br />
private var draftCon:Container;</p>
<p>[Embed(source = '../applications-internet.png')]<br />
public var appInet : Class;</p>
<p>public function Main()<br />
{<br />
// sets main container<br />
mainCon = new Container();<br />
mainCon.flow = ContainerFlow.HORIZONTAL;<br />
addChild(mainCon);</p>
<p>// top bar<br />
topCon = new Container();<br />
topCon.size = 36;<br />
topCon.sizeUnit = SizeUnit.PIXELS;<br />
topCon.flow = ContainerFlow.HORIZONTAL;<br />
topCon.align = ContainerAlign.FAR;<br />
topCon.containment = Containment.DOCK_TOP;</p>
<p>url = new TextInput();<br />
url.setSize(180, 36);<br />
url.width = 500;<br />
url.text = &#8220;http://devbar.de&#8221;;<br />
topCon.addChild(url);</p>
<p>searchButton = new IconButton();<br />
searchButton.setIcon(new appInet());<br />
searchButton.setSize(36, 36);<br />
searchButton.addEventListener(MouseEvent.CLICK, navigate);<br />
topCon.addChild(searchButton);</p>
<p>mainCon.addChild(topCon);</p>
<p>// draft<br />
draftCon = new Container();<br />
draftCon.size = 100;<br />
draftCon.sizeUnit = SizeUnit.PERCENT;<br />
draftCon.flow = ContainerFlow.VERTICAL;<br />
draftCon.align = ContainerAlign.NEAR;<br />
draftCon.padding = 10;</p>
<p>mainCon.addChild(draftCon);</p>
<p>webView = new QNXStageWebView();<br />
webView.stage= stage;<br />
webView.autoFit=true;<br />
webView.viewPort = new Rectangle(1,40,stage.stageWidth,stage.stageHeight-40);<br />
webView.enableCookies = true;<br />
webView.enableJavascript = true;<br />
webView.enableScrolling = true;<br />
webView.loadURL(&#8220;http://devbar.de&#8221;);</p>
<p>mainCon.setSize(stage.stageWidth, stage.stageHeight);<br />
}</p>
<p>private function navigate(event:MouseEvent):void {<br />
webView.loadURL(url.text);<br />
}</p>
<p>}</p>
<p>}</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/02/webbrowser-mit-qnxstagewebview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playbook-Apps mit FlashDevelop</title>
		<link>http://www.devbar.de/index.php/2011/01/playbook-apps-mit-flashdevelop/</link>
		<comments>http://www.devbar.de/index.php/2011/01/playbook-apps-mit-flashdevelop/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 16:26:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Playbook]]></category>

		<guid isPermaLink="false">http://www.devbar.de/index.php/2011/01/playbook-apps-mit-flashdevelop/</guid>
		<description><![CDATA[
Hier vielleicht nochmal ein kleiner Nachtrag für alle, die sich jetzt auch in Adobe-AIR für das Playbook stürzen wollen. Unter diesem Link findet ihr eine sehr nützliche Anleitung zum Einstieg in FlashDevelop + Blackberry Tablet SDK. Englischkenntnisse werden vorausgesetzt  
]]></description>
			<content:encoded><![CDATA[<p style="TEXT-ALIGN: left"><img src="http://www.devbar.de/wp-content/uploads/2011/01/FlashDevelop_logo.jpg" style="DISPLAY: inline; FLOAT: left" height="125" alt="FlashDevelop_logo.jpg" width="126"/></p>
<p style="TEXT-ALIGN: left">Hier vielleicht nochmal ein kleiner Nachtrag für alle, die sich jetzt auch in Adobe-AIR für das Playbook stürzen wollen. Unter diesem <a href="http://www.studiochris.us/2010/flashdevelop-and-blackberry-playbook-development-the-basics/">Link</a> findet ihr eine sehr nützliche Anleitung zum Einstieg in FlashDevelop + Blackberry Tablet SDK. Englischkenntnisse werden vorausgesetzt <img src='http://www.devbar.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/01/playbook-apps-mit-flashdevelop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kostenloses BlackBerry PlayBook f&#252;r Entwickler</title>
		<link>http://www.devbar.de/index.php/2011/01/kostenloses-blackberry-playbook-fur-entwickler/</link>
		<comments>http://www.devbar.de/index.php/2011/01/kostenloses-blackberry-playbook-fur-entwickler/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 05:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[4fun]]></category>
		<category><![CDATA[Blackberry]]></category>

		<guid isPermaLink="false">http://www.devbar.de/?p=576</guid>
		<description><![CDATA[    So, jetzt wird mal wieder ein bisschen der Blog mit Leben gefüllt. Ich habe zwar lange nichts von mir hören lassen, war aber nicht faul  .
   Die letzten Wochen habe ich fleißig an meiner ersten Playbook-App gebastelt. RIM hat nämlich versprochen, dass es für Entwickler die Apps einreichen [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2011/01/bluepad_90.png"><img class="size-full wp-image-578 alignleft" title="bluepad_90" alt="" src="http://www.devbar.de/wp-content/uploads/2011/01/bluepad_90.png" width="90" height="90" /></a>    <br />So, jetzt wird mal wieder ein bisschen der Blog mit Leben gefüllt. Ich habe zwar lange nichts von mir hören lassen, war aber nicht faul <img src='http://www.devbar.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>  <span id="more-576"></span> Die letzten Wochen habe ich fleißig an meiner ersten Playbook-App gebastelt. RIM hat nämlich versprochen, dass es für Entwickler die Apps einreichen das Playbook für lau gibt. Hab&#8217; ich ja nicht so recht dran geglaubt. Aber so wie&#8217;s aussieht bin ich wohl unter den Glücklichen *freu*.
<p>Mein Beitrag ist übrigens ein kleiner Texteditor mit dem Namen <a href="http://appworld.blackberry.com/webstore/content/23608?lang=en">BluePad</a>.</p>
<p>Die Aktion wurde bis zum 15. März verlängert. Das Gerät kommt logischerweise erst, wenn es auch zu kaufen ist.</p>
<p>Links:</p>
<ul>
<li><a href="http://appworld.blackberry.com/webstore/content/23608?lang=en">BluePad</a> </li>
<li><a href="http://us.blackberry.com/developers/tablet/playbook_offer.jsp">Free Blackberry Playbook offer</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2011/01/kostenloses-blackberry-playbook-fur-entwickler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blackberry DevCon 2010</title>
		<link>http://www.devbar.de/index.php/2010/09/blackberry-devcon-2010/</link>
		<comments>http://www.devbar.de/index.php/2010/09/blackberry-devcon-2010/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 19:04:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.devbar.de/?p=572</guid>
		<description><![CDATA[Alle BB-Coder sollten sich den 27.-30. September rot im Kalendar anstreichen. Dann findet in San Francisco die diesjährige Blackberry DevCon statt. Highlight wird wohl Blackberry 6 sein.
Link:

www.blackberrydevcon.com

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devbar.de/wp-content/uploads/2010/09/logo.png"><img class="size-full wp-image-573 alignright" title="logo" src="http://www.devbar.de/wp-content/uploads/2010/09/logo.png" alt="" width="138" height="104" /></a>Alle BB-Coder sollten sich den 27.-30. September rot im Kalendar anstreichen. Dann findet in San Francisco die diesjährige Blackberry DevCon statt. Highlight wird wohl Blackberry 6 sein.</p>
<p>Link:</p>
<ul>
<li><a href="http://www.blackberrydevcon.com/">www.blackberrydevcon.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.devbar.de/index.php/2010/09/blackberry-devcon-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

