<?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: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-2674621133338159334</id><updated>2011-08-05T10:34:20.652-07:00</updated><category term='meteo'/><category term='Group'/><category term='sunset'/><category term='video'/><category term='Flash Biulder 4'/><category term='flv'/><category term='h.264'/><category term='actionscript'/><category term='TitleWindow'/><category term='MovableGroup'/><category term='PopUpManager'/><category term='netstream'/><category term='sunrise'/><title type='text'>Various Actionscript Experiments</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asexp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://asexp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>dweckl</name><uri>http://www.blogger.com/profile/18267631083796784370</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2674621133338159334.post-3106925910956047175</id><published>2010-11-07T06:20:00.000-08:00</published><updated>2010-11-07T10:13:01.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Group'/><category scheme='http://www.blogger.com/atom/ns#' term='TitleWindow'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash Biulder 4'/><category scheme='http://www.blogger.com/atom/ns#' term='PopUpManager'/><category scheme='http://www.blogger.com/atom/ns#' term='MovableGroup'/><category scheme='http://www.blogger.com/atom/ns#' term='actionscript'/><title type='text'>Movable popups - for other components than TitleWindow</title><content type='html'>&lt;div&gt;Creating draggable/movable popup window in Flash Builder 4 is an easy task as long as you use TitleWindow component and, of course, PopUpManager class which, as I thought, handles the dragging part - but that's not the case! It is, in fact, implemented in TitleWindow class, so if you want to have draggable custom component inheriting from Group  for example, you have to handle it Yourself.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Additionally if You want to go other way around - prevent TitleWindow from moving - you can set the titleWindow.moveArea visible property to 'false'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As I needed this for my own project, I've created a MovableGroup component (based on Group component). I copied most of the code from the TitleWidow, so it has the same properties, and generates the same events(windowMoveStart,windowMoving,windowMove,windowMoveEnd), so I can't say I wrote it realy ;). Maybe it'll be usefull for someone - the source is attached.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The main difference is that the moveArea  (skin element, that is default the titleBar in TitleWindow) is set as 'this' by default (so you can move the component by clicking anywhere on it) - you can change it of course and set a diffrent InteractiveObject&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://asexp.googlegroups.com/web/MovableGroup.as?hl=pl&amp;amp;gsc=2LvT2AsAAACJcFGUqTzmZud7pqe78h1r"&gt;MovableGroup.as&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2674621133338159334-3106925910956047175?l=asexp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asexp.blogspot.com/feeds/3106925910956047175/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://asexp.blogspot.com/2010/11/movable-popups-for-other-components.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/3106925910956047175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/3106925910956047175'/><link rel='alternate' type='text/html' href='http://asexp.blogspot.com/2010/11/movable-popups-for-other-components.html' title='Movable popups - for other components than TitleWindow'/><author><name>dweckl</name><uri>http://www.blogger.com/profile/18267631083796784370</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2674621133338159334.post-100829247565637446</id><published>2010-03-18T12:16:00.001-07:00</published><updated>2010-03-28T15:22:28.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sunrise'/><category scheme='http://www.blogger.com/atom/ns#' term='sunset'/><category scheme='http://www.blogger.com/atom/ns#' term='actionscript'/><category scheme='http://www.blogger.com/atom/ns#' term='meteo'/><title type='text'>Actionscript class to calculate sunrise and sunset time</title><content type='html'>Here is a simple Actionscript class that calculates the sunrise and sunset time for given date and coordinates ( latitude ,  longitude ) . It's based on the algorithm I found on  &lt;a href="http://www.noaa.gov/"&gt;National Oceanic &amp;amp; Atmospheric Administration&lt;/a&gt; , and implemented in AS.&lt;br /&gt;&lt;br /&gt;It seems to generate accurate results, but I have not tested it extensively..&lt;br /&gt;&lt;br /&gt;It needs some improvements (like DST, and solar noon calculation), and I should improve it soon I hope ;).&lt;br /&gt;&lt;br /&gt;I'd like to put up an example of usage using google maps in the next few days if I'll have some time for it..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://asexp.googlegroups.com/web/SunriseSunsetCalculator.as?hl=pl&amp;amp;gda=bb5UaE0AAACTUOeQj_GrIwxaTvIqF4YBoCGAfQx9BGLywQIfKllen9yU-m-Ekf5C_BF1EzjWcGzkgfLNP6mcLR_xDzbuwJ5a5Tb_vjspK02CR95VRrtmeQ&amp;amp;gsc=x5dFcwsAAACsRXjACDjJmOGpBv-Hl0AH"&gt;SunriseSunsetCalculator.as&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2674621133338159334-100829247565637446?l=asexp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asexp.blogspot.com/feeds/100829247565637446/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://asexp.blogspot.com/2010/03/actionscript-class-to-calculate-sunrise.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/100829247565637446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/100829247565637446'/><link rel='alternate' type='text/html' href='http://asexp.blogspot.com/2010/03/actionscript-class-to-calculate-sunrise.html' title='Actionscript class to calculate sunrise and sunset time'/><author><name>dweckl</name><uri>http://www.blogger.com/profile/18267631083796784370</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2674621133338159334.post-33704524832043219</id><published>2010-03-09T10:29:00.000-08:00</published><updated>2010-03-09T14:51:02.519-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='netstream'/><category scheme='http://www.blogger.com/atom/ns#' term='actionscript'/><category scheme='http://www.blogger.com/atom/ns#' term='h.264'/><category scheme='http://www.blogger.com/atom/ns#' term='flv'/><title type='text'>mp4 h.264 netstream buffering problem</title><content type='html'>As I was creating a simple video queue class to pre-buffer the video content, I couldn't get the videos to play until the whole movie loaded, the "NetStream.Buffer.Full" was triggered when whole movie downloaded. Setting different values of bufferTime on stream object didn't helped.&lt;br /&gt;&lt;br /&gt;The problem as it occurred after some googling, was the encoding. I used h.264 mp4's for all my videos, and in my ignorance I didn't know they act differently from plain old flv.&lt;br /&gt;&lt;br /&gt;For h.264 encoded videos to buffer properly  "the "moov atom" needs to be located at the beginning of the file. ", as I just discovered in David Hassoun's article &lt;a href="http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html"&gt;"Exploring Flash Player support for high-definition H.264 video and AAC audio" &lt;/a&gt;(page 2)&lt;br /&gt;&lt;br /&gt;The tools the author pointed to fix the problem are:&lt;br /&gt;&lt;ul class="link-list"&gt;&lt;li&gt;&lt;a href="http://renaun.com/blog/2008/02/25/250/" target="_blank"&gt;QTIndexSwapper&lt;/a&gt; &lt;span class="stamp-fileinfo"&gt;(Adobe AIR app by Renaun Erickson)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://svn.mplayerhq.hu/ffmpeg/trunk/tools/qt-faststart.c?revision=9634&amp;amp;view=markup" target="_blank"&gt;qt-faststart.c&lt;/a&gt; &lt;span class="stamp-fileinfo"&gt;(command-line app by Mike Melanson)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;I haven't tried them out yet, but I hope one of them will fix the problem..&lt;br /&gt;Just a quick note from the battlefield ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2674621133338159334-33704524832043219?l=asexp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asexp.blogspot.com/feeds/33704524832043219/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://asexp.blogspot.com/2010/03/mp4-netstream-buffering-problem.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/33704524832043219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2674621133338159334/posts/default/33704524832043219'/><link rel='alternate' type='text/html' href='http://asexp.blogspot.com/2010/03/mp4-netstream-buffering-problem.html' title='mp4 h.264 netstream buffering problem'/><author><name>dweckl</name><uri>http://www.blogger.com/profile/18267631083796784370</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
