<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4647920763940156089</id><updated>2024-08-29T12:25:08.943-07:00</updated><category term="converter"/><category term="decimal"/><category term="flex"/><category term="flex 4"/><category term="numerals"/><category term="roman"/><title type='text'>Deepflex</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-7648945021028583877</id><published>2013-04-28T01:47:00.002-07:00</published><updated>2013-04-28T01:49:36.391-07:00</updated><title type='text'>Convert Flash ActionScript to HTML JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
After Adobe donated Flex to Apache, there have been a lot of work being done by Apache Flex team. One of the substantial feature has been to convert Flex\MXML based project to HTML\Javascript. With this, flash player&#39;s dependency can be completely eliminated and flex based sites can now run on any browser without flash player addon in it.&lt;br /&gt;
&lt;br /&gt;
For more:&lt;br /&gt;
https://cwiki.apache.org/confluence/display/FLEX/ASJS+-+From+Flash+Player+to+web+native&lt;br /&gt;
&lt;br /&gt;
3 Cheers to the team!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/7648945021028583877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2013/04/convert-flash-actionscript-to-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/7648945021028583877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/7648945021028583877'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2013/04/convert-flash-actionscript-to-html.html' title='Convert Flash ActionScript to HTML JavaScript'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-2619918422856755355</id><published>2013-03-29T10:40:00.002-07:00</published><updated>2013-03-29T10:40:25.735-07:00</updated><title type='text'>Writing large files on mobile\android\ios from web using Flex AIR</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Generally, we tend to load a file, read it and then write it on the disk, which works absolutely fine on web\desktop. But in case of mobiles\tablets, memory is a huge constraint. Smaller files may still work as intended, but in case of larger files(&amp;gt; 300MB), FileStream.readBytes or FileStream.writeBytes would fail as app would try to load the data in memory which would be very less comparatively and app would crash in that case. Hence, we could instead read and write data in chunks which would not affect the memory as much.&lt;br /&gt;
&lt;br /&gt;
 getRemoteFile(&quot;http://www.someserver.com/mobilefiles/someLargeDBFile.sqlite&quot;);&lt;br /&gt;
&lt;br /&gt;
private var urlStream:URLStream;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
public function getRemoteFile(path:String):void&amp;nbsp;&lt;br /&gt;
{&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; urlStream = new URLStream();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var urlReq:URLRequest = new URLRequest(path);&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; urlStream.addEventListener(Event.COMPLETE, loaded); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; urlStream.addEventListener(ProgressEvent.PROGRESS, onProgress);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; urlStream.load (urlReq);&amp;nbsp;&lt;br /&gt;
&amp;nbsp;} &lt;br /&gt;
&lt;br /&gt;
private function onProgress(event:ProgressEvent):void&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writeDataToDisk();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private function writeDataToDisk():void &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fileLocal = File.applicationStorageDirectory.resolvePath(folderName+&quot;\\&quot;+fileName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var bytes:ByteArray = new ByteArray();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ( urlStream.bytesAvailable == 0 ) return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ( urlStream.connected ) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; urlStream.readBytes(bytes, bytes.length);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs = new FileStream();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs.addEventListener(Event.CLOSE, onClose);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs.addEventListener(IOErrorEvent.IO_ERROR, onIOError);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs.open( fileLocal, FileMode.APPEND );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs.writeBytes( bytes );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bytesOffset = bytes.length;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fs.close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/2619918422856755355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2013/03/writing-large-files-on-mobileandroidios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/2619918422856755355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/2619918422856755355'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2013/03/writing-large-files-on-mobileandroidios.html' title='Writing large files on mobile\android\ios from web using Flex AIR'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-6981111022831957548</id><published>2013-02-12T05:18:00.002-08:00</published><updated>2013-02-12T05:19:21.782-08:00</updated><title type='text'>Check internet connection for offline solutions in Flex Mobile Applications</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Method 1: Using URLMonitor and URLRequest&lt;br /&gt;
&lt;br /&gt;
private var mon:URLMonitor;&lt;br /&gt;
private var monurl:URLRequest = new URLRequest(&#39;http://www.blogger.com&#39;); &lt;br /&gt;
&lt;br /&gt;
protected function isOnInternet():Boolean&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; //to check internet connection&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var isInternet:Boolean = false; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; monurl.method = URLRequestMethod.HEAD;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mon = new URLMonitor(monurl);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mon.start();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mon.addEventListener(StatusEvent.STATUS, function(event:StatusEvent):void&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(event.code == &#39;Service.available&#39;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //internet connection available&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; isInternet = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return isInternet;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Method 2: Using NetworkInfo&lt;br /&gt;
private function checkInternetConnection():Boolean&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var interfaces:Vector.&amp;lt;NetworkInterface&amp;gt; = NetworkInfo.networkInfo.findInterfaces();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(interfaces.length==0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(var i:uint = 0; i &amp;lt; interfaces.length; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(interfaces[i].name.toLowerCase() == &quot;wifi&quot; &amp;amp;&amp;amp; interfaces[i].active)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;WiFi connection enabled&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else if(interfaces[i].name.toLowerCase() == &quot;mobile&quot; &amp;amp;&amp;amp; interfaces[i].active)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Mobile data connection enabled&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/6981111022831957548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2013/02/check-internet-connection-for-offline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/6981111022831957548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/6981111022831957548'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2013/02/check-internet-connection-for-offline.html' title='Check internet connection for offline solutions in Flex Mobile Applications'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-4252752580122608041</id><published>2011-05-16T02:51:00.001-07:00</published><updated>2011-05-16T22:56:46.373-07:00</updated><title type='text'>Pattern based login system</title><content type='html'>1. Left click, hold and drag the mouse pointer on the dots to draw a pattern.&lt;br /&gt;2. Click on &#39;Register&#39; to register the drawn pattern.&lt;br /&gt;3. Verify back by re drawing the same pattern or different pattern.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://users4.jabry.com/megharajdeepak/flex/Patternlogin/Patternlogin.swf&quot; quality=&quot;high&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; align=&quot;middle&quot; height=&quot;500&quot; width=&quot;500&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/4252752580122608041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/05/pattern-based-login-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/4252752580122608041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/4252752580122608041'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/05/pattern-based-login-system.html' title='Pattern based login system'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-2034214803986688664</id><published>2011-04-07T07:08:00.000-07:00</published><updated>2011-04-07T21:32:11.048-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="converter"/><category scheme="http://www.blogger.com/atom/ns#" term="decimal"/><category scheme="http://www.blogger.com/atom/ns#" term="flex"/><category scheme="http://www.blogger.com/atom/ns#" term="flex 4"/><category scheme="http://www.blogger.com/atom/ns#" term="numerals"/><category scheme="http://www.blogger.com/atom/ns#" term="roman"/><title type='text'>Roman to decimal and vice versa converter in flex</title><content type='html'>You can convert roman numerals to decimals and decimals to romans. Roman to decimal uses modern roman notation and decimal to roman uses ancient roman notation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://users4.jabry.com/megharajdeepak/flex/Romanconverter/Romanconverter.swf&quot; quality=&quot;high&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; align=&quot;middle&quot; height=&quot;200&quot; width=&quot;500&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/2034214803986688664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/04/roman-to-decimal-and-vice-versa.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/2034214803986688664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/2034214803986688664'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/04/roman-to-decimal-and-vice-versa.html' title='Roman to decimal and vice versa converter in flex'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-471480299111029284</id><published>2011-03-26T01:28:00.000-07:00</published><updated>2013-08-14T00:04:56.967-07:00</updated><title type='text'>Weather Widget</title><content type='html'>&lt;!--&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Well, my brother asked me, why can&#39;t I show up real time weather instead of using a timer and showing some dummy temperature (http://deepflex.blogspot.com/2011/03/glossy-mobile-widget-in-flex.html). That&#39;s when this widget was born! :D&lt;br /&gt;
I&#39;ve used three services. One is to automatically detect the location, based on your IP(http://ipinfodb.com/ip_location_api.php), the other one takes this location as input and gives current weather details(http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=yourCityName)and finally 3rd service(http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=yourCityName) gives us the weather forecast of next 4 days.&lt;br /&gt;
&lt;br /&gt;
Fortunately there are no flash security problems due to availability of crossdomain.xml files in both ipinfodb&#39;s and wunderground&#39;s roots ^_^&lt;br /&gt;
&lt;br /&gt;
Hope you enjoy this one!&lt;br /&gt;
&lt;br /&gt;
&lt;embed align=&quot;middle&quot; allowscriptaccess=&quot;always&quot; height=&quot;500&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; quality=&quot;high&quot; src=&quot;http://users4.jabry.com/megharajdeepak/Flex/Weatherwidget/Weatherwidget.swf&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;600&quot;&gt;&lt;/embed&gt;&lt;/div&gt;--&gt;
</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/471480299111029284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/03/weather-widget.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/471480299111029284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/471480299111029284'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/03/weather-widget.html' title='Weather Widget'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-9032431349565918543</id><published>2011-03-21T07:46:00.000-07:00</published><updated>2011-03-21T07:51:50.510-07:00</updated><title type='text'>Glossy Mobile Widget in Flex</title><content type='html'>Along with day and time, it also shows temperature in degree celsius. &lt;br /&gt;I&#39;ve used a timer which ticks every 5 seconds, just to depict the usage of different weather images, based on the current temperature, which gets generated randomly between 0 and 50.&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://users4.jabry.com/megharajdeepak/Flex/Clockwidget/Clockwidget.swf&quot; quality=&quot;high&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; align=&quot;middle&quot; height=&quot;400&quot; width=&quot;500&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/9032431349565918543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/03/glossy-mobile-widget-in-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/9032431349565918543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/9032431349565918543'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/03/glossy-mobile-widget-in-flex.html' title='Glossy Mobile Widget in Flex'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-3260137152525786019</id><published>2011-03-20T08:41:00.000-07:00</published><updated>2011-03-20T09:40:38.137-07:00</updated><title type='text'>How to use Vector class to draw a Polygon in flex</title><content type='html'>Simple Flex app to depict usage of Vector class in drawing a polygon.&lt;br /&gt;1. &#39;Click here to draw a polygon&#39;&lt;br /&gt;2. After drawing as many points as you want, close it by clicking &#39;Close Polygon&#39;&lt;br /&gt;3. Check if user clicks inside or outside the polygon, once it&#39;s built&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://users4.jabry.com/megharajdeepak/Flex/Polygon/Main.swf&quot; quality=&quot;high&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; align=&quot;middle&quot; height=&quot;400&quot; width=&quot;500&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/3260137152525786019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/03/how-to-use-vector-class-to-draw-polygon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/3260137152525786019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/3260137152525786019'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/03/how-to-use-vector-class-to-draw-polygon.html' title='How to use Vector class to draw a Polygon in flex'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4647920763940156089.post-6512183758560642459</id><published>2011-03-10T07:56:00.001-08:00</published><updated>2011-03-20T09:49:04.767-07:00</updated><title type='text'>Flex 4 Analog Clock</title><content type='html'>Here&#39;s a ananlog clock, built purely in flex 4(mxml and as3) without any images. Hope you enjoy this gadget :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://users4.jabry.com/megharajdeepak/Flex/Clock/Myclock.swf&quot; quality=&quot;high&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; align=&quot;middle&quot; height=&quot;600&quot; width=&quot;900&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepflex.blogspot.com/feeds/6512183758560642459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deepflex.blogspot.com/2011/03/flex-4-analog-clock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/6512183758560642459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4647920763940156089/posts/default/6512183758560642459'/><link rel='alternate' type='text/html' href='http://deepflex.blogspot.com/2011/03/flex-4-analog-clock.html' title='Flex 4 Analog Clock'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>