<?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>Alvin / Aedis.Ju &#187; installApplication</title>
	<atom:link href="http://blog.richmediaplus.com/tag/installapplication/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.richmediaplus.com</link>
	<description>About the Adobe&#039;s RIA related solution and technology, like Adobe Air, Adobe Flex. You also can find the SEO for Flex, RIA, User Ex in this blog.</description>
	<lastBuildDate>Tue, 07 Sep 2010 04:23:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>從瀏覽器呼出相應的Air程式</title>
		<link>http://blog.richmediaplus.com/2009/04/call-adobe-air-app-from-browser/</link>
		<comments>http://blog.richmediaplus.com/2009/04/call-adobe-air-app-from-browser/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:00:00 +0000</pubDate>
		<dc:creator>Alvin / Aedis.Ju</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[installApplication]]></category>
		<category><![CDATA[launchApplication]]></category>

		<guid isPermaLink="false">http://blog.richmediaplus.com/?p=177</guid>
		<description><![CDATA[要能呼出相應的Adobe Air程式，除了以下的代碼外，相應的Adobe Air程式必須設置為&#60;allowBrowserInvocation&#62;true&#60;/allowBrowserInvocation&#62;。 &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;&#62; &#60;mx:Script&#62; &#60;!&#91;CDATA&#91; private var airSWF:Object; private var applicationID:String = 'AirAppId'; private var publisherID:String = 'AirPubliserId'; private var arguments:String; &#160; private function init&#40;&#41;:void &#123; var loader:Loader = new Loader&#40;&#41;; var loaderContext:LoaderContext = new LoaderContext&#40;&#41;; loaderContext.applicationDomain = ApplicationDomain.currentDomain; loader.contentLoaderInfo.addEventListener&#40;Event.INIT, onInit&#41;; loader.load&#40;new URLRequest&#40;'http://airdownload.adobe.com/air/browserapi/air.swf'&#41;&#41;; &#125; &#160; private function onInit&#40;event:Event&#41;:void &#123; airSWF [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>要能呼出相應的Adobe Air程式，除了以下的代碼外，相應的Adobe Air程式必須設置為&lt;allowBrowserInvocation&gt;true&lt;/allowBrowserInvocation&gt;。</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application xmlns<span style="color: #000000; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> airSWF<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span>;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> applicationID<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">'AirAppId'</span>;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> publisherID<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">'AirPubliserId'</span>;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">arguments</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>;
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Loader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Loader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                <span style="color: #6699cc; font-weight: bold;">var</span> loaderContext<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">LoaderContext</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">LoaderContext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                loaderContext.<span style="color: #004993;">applicationDomain</span> = <span style="color: #004993;">ApplicationDomain</span>.<span style="color: #004993;">currentDomain</span>;
                <span style="color: #004993;">loader</span>.<span style="color: #004993;">contentLoaderInfo</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">INIT</span>, onInit<span style="color: #000000;">&#41;</span>;
                <span style="color: #004993;">loader</span>.<span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'http://airdownload.adobe.com/air/browserapi/air.swf'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onInit<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
            <span style="color: #000000;">&#123;</span>
                airSWF = event.<span style="color: #004993;">target</span>.<span style="color: #004993;">content</span>;
                <span style="color: #0033ff; font-weight: bold;">switch</span><span style="color: #000000;">&#40;</span>airSWF.getStatus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#123;</span>
                    <span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;installed&quot;</span> <span style="color: #000000; font-weight: bold;">:</span>
                        <span style="color: #009900;">// AIR is installed</span>
                        <span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, onButtonClicked<span style="color: #000000;">&#41;</span>;
                        <span style="color: #0033ff; font-weight: bold;">break</span>;
                    <span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;available&quot;</span> <span style="color: #000000; font-weight: bold;">:</span>
                        <span style="color: #009900;">// AIR is Available</span>
                        <span style="color: #009900;">//airSWF.installApplication(url, runtimeVersion, arguments);...</span>
                        <span style="color: #0033ff; font-weight: bold;">break</span>;
                    <span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;unavailable&quot;</span> <span style="color: #000000; font-weight: bold;">:</span>
                        <span style="color: #009900;">// AIR Not Available</span>
                        <span style="color: #0033ff; font-weight: bold;">break</span>;
                <span style="color: #000000;">&#125;</span>
            <span style="color: #000000;">&#125;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onButtonClicked<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
            <span style="color: #000000;">&#123;</span>
                airSWF.launchApplication<span style="color: #000000;">&#40;</span>applicationID, publisherID, <span style="color: #004993;">arguments</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>



<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.richmediaplus.com/2009/04/call-adobe-air-app-from-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
