<?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>CAHİT ÇERÇİOĞLU &#187; flash</title>
	<atom:link href="http://cahit.hayalet.net/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://cahit.hayalet.net/blog</link>
	<description>Independent Internet Professional</description>
	<lastBuildDate>Sun, 04 Jul 2010 09:59:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash CS5 iPhone dream ( nightmare ? )</title>
		<link>http://cahit.hayalet.net/blog/646/flash-cs5-iphone-dream-nightmare/</link>
		<comments>http://cahit.hayalet.net/blog/646/flash-cs5-iphone-dream-nightmare/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:54:02 +0000</pubDate>
		<dc:creator>Cahit Crcioglu</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[cs5]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[imagination]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://cahit.hayalet.net/blog/?p=646</guid>
		<description><![CDATA[However this is not a recent news, i wanted to note some facts on my blog too. First of all, it&#8217;d be good to note that i have been using/coding on flash since year 1998; which makes it 12 years of experience till today. It&#8217;s fullname was Macromedia Flash 3. So i&#8217;m not an enemy [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-662 alignleft" title="Apple Juice" src="http://cahit.hayalet.net/blog/wp-content/uploads/2009/12/Apple_Juice_2.gif" alt="Apple Juice" width="300" height="427" />However this is not a recent news, i wanted to note some facts on my blog too.</p>
<p>First of all, it&#8217;d be good to note that i have been using/coding on flash since year 1998; which makes it  12 years of experience till today. It&#8217;s fullname was <a rel="nofollow" href="http://en.wikipedia.org/wiki/Adobe_Flash" target="_blank">Macromedia Flash 3</a>. So i&#8217;m not an enemy of the Flash, animation and actionscript.</p>
<p>Warning! Some of these sentences may tease you; read them calmly before shouting at me, there is an extra paragraph related to these teasing sentences (:</p>
<p>First of  all, for those who are not aware of the topic: Adobe announced that, CS5 will have a feature to export Flash applications as iPhone applications. iPhone will continue to NOT support SWF files in anyway. There will not be (at the time of this post &#8211; not announced by Apple) a Flash plugin even for Safari for iPhone. Flash will convert your Flash project into native/somewhat compiled iPhone application. You (currently) will not be able to test it on your computer (iPhone simulator), you have to install it to your device to try it&#8230; Ofcourse you still have to be a certified Apple iPhone developer by paying $100 per year (at the time of this post).</p>
<p><span id="more-646"></span></p>
<p><strong>Creating projects on Flash for iPhone is a <span style="color: #649dec;">dream</span>!</strong></p>
<ul>
<li> <strong>For new flash creators: </strong>
<ul>
<li>You don&#8217;t have to find algorithms for animations. You can make them in flash easily. So becareful, because that&#8217;ll also show your imagination power..</li>
<li>You don&#8217;t have to learn objective-c. However it&#8217;s a good language, it&#8217;s a little strange for people who never ever saw a code written with it. Other than that, people with no programming experience can use Flash to create iPhone projects which means, every person using Flash ( in anyway ) is a potential iPhone Application creator.</li>
<li>You do not have to buy Apple products ( but ofcourse developer certificate ). ( I am a mac owner, but an old/current microsoft user too ) (However, you may buy.. they are not bad.. really..!)</li>
<li>You do not have to think of ways to optimize memory usage, ( i do not mean performance optimization, i mean memory management. ) that is Adobe&#8217;s job.</li>
<li>You shouldn&#8217;t have to completely rewrite your flash applications to work on iPhone, you just have to rearrange screen dimensions and optimize everything to work as fast as possible. ( assuming you are not using features those are not supported in flash cs5 for iPhone. )</li>
<li>You can quickly create/convert widgets as iPhone applications.</li>
<li>You&#8217;ll no longer have to be angry and try to close your ears with your hands when someone near you talking about iPhone coding and earning money from it.</li>
<li>You don&#8217;t have to blame iPhone anymore for being a bad platform ( since you were unable to create projects on it because either you didn&#8217;t have mac or you didn&#8217;t know objective-c ) ( just kidding)</li>
</ul>
</li>
<li><strong>For users: </strong>
<ul>
<li>You&#8217;ll see more creative and visually astonishing applications; people who are not capable of coding, now can show their imagination power.</li>
<li>You&#8217;ll get better applications for less price because of the huge competition between application creators.</li>
<li>You may play your favorite flash games, those already exist on the web, on your iPhone.</li>
</ul>
</li>
<li><strong>For existing creators: </strong>
<ul>
<li>Don&#8217;t worry, because if you are making good applications, everybody will see that you are still showing yourself. There won&#8217;t be any excuse, because nearly everyone will be able to make applications for iPhone. So if you are still doing good, then, you will probably have more fame and respect.</li>
<li>If you also know Flash, you may be unbeatable with a good crew working with you.</li>
</ul>
</li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>Creating projects on Flash for iPhone is a <span style="color: #d92e1b;">nightmare!</span></strong></p>
<ul>
<li><strong>For existing creators:</strong>
<ul>
<li>You have to work more! If you can&#8217;t imagine much, you have to find someone with more imagination power ( i won&#8217;t tell anyone, don&#8217;t worry). If you don&#8217;t do this, flash users will beat you with their imagination, because flash is a visual tool that you can express yourself easier; you have to compete with far MOOOOOOOOOOOOOOOOORE people.</li>
<li>You&#8217;ve worked hard to learn objective-c and you wanted the respect for that. No way? Now you are nearly equal with flash developers. ( Not really )</li>
<li>Save money because people from the flash world can get the jobs you were looking for, so you may need your saved money more than ever, if you earn your money mostly from iPhone.</li>
<li>You application may be reviewed and approved/rejected more than 1 month until Apple expands their review team/tools; there will be enourmouse amount of applications. You draw a circle, move it, save it, it&#8217;s an iPhone application now (: (for flash users).</li>
<li>You may cry because you are no more special. (Not really)</li>
<li>If you don&#8217;t know how to use flash, then, you may never make better applications than some of the flash based iphone applications. (if you are not really good at non-flash developing. But a bad flash developer may create more selling applications)</li>
<li>Even if you are the best person when someone calls for imagination, you&#8217;ll be creating your project in a longer  duration. Because you/your team have to work on every aspect of the project; you must be sure that you are not leaking memory, you are not missing something that causes your application to crash, etc&#8230;</li>
<li>Your application may never get found by enough people for at least to balance your effort on the application unless you invent an incredible &#8220;thing&#8221;; you have to make good marketing plans or deals.</li>
</ul>
</li>
<li><strong>For users:</strong>
<ul>
<li>You have to deal with xillions of applications now. ( if apple does not filter those one in anyway)
<ul>
<li>Who draws a circle in Flash will be able to publish an application.</li>
<li>All of the existing flash games will be ported to iPhone where it&#8217;s possible.</li>
</ul>
</li>
<li>You may feel strange because if Apple accepts all the standard components of Flash, it may not exactly fulfill the requirements of Apple Human Interaction Guidelines. </li>
<li>Don&#8217;t expect to get all the features of applications those not made with flash. Because lots of features will be unavailable in Flash (according to the announcement made by Adobe till today).</li>
</ul>
<p><br class="spacer_" /></p>
</li>
<li><strong>For new Flash creators:</strong>
<ul>
<li>You won&#8217;t have any excuse if you can&#8217;t make your projects work on iPhone platform, if you can&#8217;t manage the power under your hands.</li>
<li>People shall be right underestimating you because of the lackness of your imagination power, if you fail to make a proper iPhone application.</li>
<li>You won&#8217;t have enough power to beat objective-c iPhone application developers (for now), because they are free to use all of the public APIs in iPhone SDK where Flash will be lacking some innovative features. ( However innovation does not equal to the limitless API usage, if someone get&#8217;s your audio recording from your hands, you can not dream of any project including audio recording feature.. right? Technical possibilities VERSUS artistic possibilities )<span style="color: #d92e1b;"><br />
 </span></li>
</ul>
</li>
</ul>
<p><strong><span style="color: #d92e1b;"><br />
 </span></strong></p>
<p>However it may stress the developers those only know objective-c, Flash users <span style="color: #ff0000;"><strong>will not</strong></span> be able to use  these features: ( currently! )</p>
<ul>
<li>Photo selection from file system</li>
<li>Contact selection from the address book</li>
<li>Camera</li>
<li>Cut/copy/paste</li>
<li>Accessory support</li>
<li>In app purchase support</li>
<li>Peer to peer</li>
<li>Maps</li>
<li>iPod library access</li>
<li>Compass</li>
<li>Push notifications</li>
<li>Audio recording</li>
<li>Video recording</li>
<li>Parental controls</li>
<li>Embedded HTML content</li>
<li>RTMPE</li>
<li>H.264 Video</li>
<li>Dynamically loading SWFs (containing AS3 code)</li>
<li>PixelBender</li>
</ul>
<p>( Sources: <a rel="nofollow" href="http://www.flashmobileblog.com/2009/10/05/flash-platform-extends-to-the-iphone-platform/" target="_blank">Mark Doherty</a>, <a rel="nofollow" href="http://labs.adobe.com/wiki/index.php/Applications_for_iPhone:Developer_FAQ" target="_blank">Applications for iPhone:Developer FAQ</a> )</p>
<p>Flash vs Objective-c <strong><span style="color: #ff0000;">=</span></strong> Artistic Freedom vs Freedom <span style="color: #ff0000;"><strong>=</strong></span> Technical possibilities VERSUS artistic possibilities  <span style="color: #d92e1b;"><span style="color: #ff0000;"><strong>=</strong></span></span><strong> </strong>Easiness vs Performance ( however Adobe will object to this, and they may be right generally) <strong><span style="color: #ff0000;">=</span></strong> &#8230; vs ,,,</p>
<p>I&#8217;ve written this post quickly, so there may be many things those can be added to this post or the above clauses.</p>
<p>Before finalizing the post, i have to note that, i <strong>DO </strong>consider flash users as (script) developers when they make use of heavy action<strong>script</strong>. So this is not a war between languages, coders, &#8230; Do not make war! (<strong>: Peace is easier, better, cleaner!</strong><span style="color: blue;"><strong> </strong></span></p>
<p>It&#8217;s currently not yet publicly announced that Apple will support and not put any obstacles in front of the Adobe till the end, but i don&#8217;t think that Adobe started to this without talking to Apple privately or without trusting on a concrete basis (:</p>
<p>If you are a company thinking that you can wait for Adobe to develop or make it developed in Flash, think about it again. Flash may or may not help you. If you think that you have enough  know-how and don&#8217;t want to invest on a firm/person to create native iPhone applications from beginning to end, think about it again. However you may still succeed with that idea, your thinking logic is not right, there&#8217;s something wrong in there. If you have waited because objective-c/iPhone developing was the only excuse, you will probably fail in the future. If it&#8217;s possible in the world at that moment and if you have ideas to be brought to the real life and if you&#8217;re not doing it because you currently think that you can not, then you have very low upper limits and you are only thinking about saving the day, not innovating, creating, expanding; you&#8217;ll only be day savers and cloners. Flash can not save you if you are nothing inside (even you are an incredible person/company according to other people). If not, you&#8217;ll earn more! (:</p>
<p>Flash&#8217;s performance may never match some other applications&#8217; or it may have missing features, but it just changes the categories of applications those can be made with it. The application itself is still hidden in the mind of the developers/creators, it&#8217;s not burried within the development language. So if you have a good idea and motivation to do it, start now. DO NOT TALK, DO IT! DO IT or SHUT UP forever! (:</p>
<p><a href="http://cahit.hayalet.net/blog/564/acta-non-verba/" target="_blank">Acta non Verba!</a></p>
   ]]></content:encoded>
			<wfw:commentRss>http://cahit.hayalet.net/blog/646/flash-cs5-iphone-dream-nightmare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash HD Video Players&#8217; Common Mistake</title>
		<link>http://cahit.hayalet.net/blog/56/flash-hd-video-player-common-problems/</link>
		<comments>http://cahit.hayalet.net/blog/56/flash-hd-video-player-common-problems/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 20:49:03 +0000</pubDate>
		<dc:creator>Cahit Crcioglu</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[fullscreen]]></category>
		<category><![CDATA[gpu]]></category>
		<category><![CDATA[hardware acceleration]]></category>
		<category><![CDATA[hardware scaling]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://cahit.hayalet.net/?p=56</guid>
		<description><![CDATA[People are using flash&#8217;s fullscreen ability in the wrong way; they are not using the advantage of hardware-acceleration enough. I have made a flash player (not-hd supported) in 2005 from scratch. It wasn&#8217;t using any flash component related to video playback. So it was&#8217;t using skins. Starting from those days, nothing really much changed when [...]]]></description>
			<content:encoded><![CDATA[<p>People are using flash&#8217;s fullscreen ability in the wrong way; they are not using the advantage of hardware-acceleration enough.</p>
<p>I have made a flash player (not-hd supported) in 2005 from scratch. It wasn&#8217;t using any flash component related to video playback. So it was&#8217;t using skins. Starting from those days, nothing really much changed when opening video in fullscreen.</p>
<p>After sometime, adobe gave us a big update which lets us use h264 codec in flash. Internet connections got faster and faster, h264 hardware acceleration was started to be used in graphics cards and in many different kinds of devices.</p>
<p>However  we see many blog posts, articles, tutorials about &#8220;how to go into fullscreen&#8221; or &#8220;true fullscreen mode in flash&#8221; or smiliar topics..</p>
<p>Nearly all of them says we have to use the following:</p>
<pre>function toggleFullScreen(){
    if(Stage["displayState"]=="normal"){
        Stage["displayState"]="fullScreen";
    } else{
        Stage["displayState"]="normal";
    }
}
// OR "stage.displayState = StageDisplayState.FULL_SCREEN;"
// according to the version you use</pre>
<p>Ok. This is not wrong. Infact, you have to do it. But this is not the right way to do it, i was possibly one of the first ones who asked this to adobe, i got no answer and interestingly nobody said anything about my question. ( it was open to public ) After sometime, i saw that that is what it should be. Now i&#8217;ll tell you what i&#8217;m talking about:</p>
<p><span id="more-56"></span>When you use only the code i just gave, you really go in to fullscreen, but you are using the same resolution of you desktop which really doesn&#8217;t use hardware acceleration of the graphics card perfectly. What you have to do, but you don&#8217;t is, changing the resolution of the player according to the resolution of the video. So, when applied properly, if your desktop is 1280&#215;1024, but if your video is 640&#215;480, you&#8217;ll see that your tracking bar, menu, or anything you show in fullscreen is oversized and looks horrible! At that time, watch the performance of video, it&#8217;s flying! Disadvantage of this method is oversized interface elements.. Since you are defining a frame/region and scale it on fullscreen, anything in that screen changes sizes. You have to dynamically calculate the menu interface and draw it accordindly, or if adobe tells us a new way ( or if they already said it, share it with us please ).</p>
<p>You can easily see that many famous web sites are still NOT using this technic. Since hardwares are going better and better everyday, it&#8217;s hard for people to see the performance diffference, who have bought their computer recently.</p>
<p>I can hear that you are telling about new window modes and hardware acceleration parameters&#8230; I had been really excited about those features too until i saw those are not exactly what we ( infact &#8220;i&#8221;) want.</p>
<p>Direct and GPU modes. According to me, after applying other methods, you may (shall) additionaly use &#8220;Direct&#8221; mode. GPU mode is not bad, but if your target audience is not very specific, it&#8217;s dangerous. If you use it and the visitor has not a good graphics card, performance may decrease MORE! But if you know your audience and their possible hardware, go ahead and try GPU!</p>
<p>When i said &#8220;famous&#8221; sites, i really meaned &#8220;famous&#8221; sites. This includes global video sharing sites and the ones in Turkey. Many developers may say that this method &#8220;is deprecated&#8221;, &#8220;has no meaning&#8221;.. &#8220;meaningless&#8221;.. &#8220;shouldn&#8217;t be used&#8221;.. &#8220;makes no sense&#8221;.. &#8220;it was for flash 9 only&#8221;&#8230; I&#8217;m sorry you are wrong. Come on! Don&#8217;t blame the computer hardware directly, it may not be the only problem.. It&#8217;s not hard to make tests for these, and i did. Ok I won&#8217;t tell anyone go ahead and try it silently, and apply it if you find it usefull. If you find a better way, or new way to add to these, i&#8217;ll be glad to see/learn it. I was not developing on flash for nearly 1.5 years ( but i was reading nearly every news about flash and other adobe developments ). As i said, this may be an outdated method when compared to newest things, but it&#8217;s for sure that i still see the difference, and i see that my player shows better performance when compared with famouse video players.</p>
<p>I hope this blog post helps anyone out there!</p>
<p>Here is my flash player from 2 years before (: (i have updated it to as3 and changed the way it starts &#8211; to put it here)</p>
<p>Thanks for reading.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_chtplayer_282713902"
			class="flashmovie"
			width="650"
			height="320">
	<param name="movie" value="http://cahit.hayalet.net/res/flash/chtplayer.swf" />
	<param name="play" value="true" />
	<param name="loop" value="false" />
	<param name="menu" value="true" />
	<param name="quality" value="best" />
	<param name="scale" value="noscale" />
	<param name="salign" value="tl" />
	<param name="wmode" value="direct" />
	<param name="bgcolor" value="#000000" />
	<param name="devicefont" value="false" />
	<param name="allowscriptaccess" value="always" />
	<param name="allowfullscreen" value="true" />
	<param name="allownetworking" value="all" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://cahit.hayalet.net/res/flash/chtplayer.swf"
			name="fm_chtplayer_282713902"
			width="650"
			height="320">
		<param name="play" value="true" />
		<param name="loop" value="false" />
		<param name="menu" value="true" />
		<param name="quality" value="best" />
		<param name="scale" value="noscale" />
		<param name="salign" value="tl" />
		<param name="wmode" value="direct" />
		<param name="bgcolor" value="#000000" />
		<param name="devicefont" value="false" />
		<param name="allowscriptaccess" value="always" />
		<param name="allowfullscreen" value="true" />
		<param name="allownetworking" value="all" />
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
   ]]></content:encoded>
			<wfw:commentRss>http://cahit.hayalet.net/blog/56/flash-hd-video-player-common-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
