<?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>GUYA.NET &#187; Animation</title>
	<atom:link href="http://blog.guya.net/category/animation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.guya.net</link>
	<description>Flash and Everything Else</description>
	<lastBuildDate>Tue, 29 Nov 2011 15:42:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>New Away3D Flash Molehill Video</title>
		<link>http://blog.guya.net/2011/02/23/new-away3d-flash-molehill-video/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-away3d-flash-molehill-video</link>
		<comments>http://blog.guya.net/2011/02/23/new-away3d-flash-molehill-video/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 22:20:19 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Animation]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2011/02/23/new-away3d-flash-molehill-video/</guid>
		<description><![CDATA[This is a never seen before example of the upcoming version of Away3D engine taking advantage of the new 3D API of the upcoming Flash Player – code named Molehill. This example and more, were presented by Lee Brimelow today &#8230; <a href="http://blog.guya.net/2011/02/23/new-away3d-flash-molehill-video/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="Away3D Molehill head" href="http://www.youtube.com/watch?v=SafDPSw6G1o">This is</a> a never seen before example of the upcoming version of <a title="Away3D - Realtime 3D engine for Flash" href="http://away3d.com">Away3D</a> engine taking advantage of the new 3D API of the upcoming Flash Player – <a title="Digging more into the Molehill APIs" href="http://blogs.adobe.com/flashplatform/2011/01/digging-more-into-the-molehill-apis.html">code named Molehill</a>.</p>
<p>This example and more, were presented by <a title="theFlashBlog" href="http://blog.theflashblog.com/">Lee Brimelow</a> today in the <a title="Flash Israel" href="http://flashisrael.com">FlashIsrael</a> event and he said he just got these a few hours ago from Away3D devs, so chances are you never seen it before.</p>
<p> <object width="450" height="364"><param name="movie" value="http://www.youtube.com/v/SafDPSw6G1o?hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SafDPSw6G1o?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="450" height="364"></embed></object>
<p>There were other impressive examples with even much more polygons and such. I’m sure we’ll get to play with all of it in a few weeks when the <a title="3D APIs for Adobe Flash Player and Adobe AIR" href="http://labs.adobe.com/technologies/flash/molehill/">labs version of Molehill</a> will be available along with the new Away3D engine &#8211; - Great!</p>
<p>It was great to finally be able to meet Lee and <a title="Flash Israel speakers" href="http://flashisrael.com/category/speakers-and-sessions/">all the others</a>. After years of reading Lee’s blogs and seeing him in videos, he seems like a truly funny, smart and nice dude… ah yeah… and tolerant for annoying people with cameras <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://blog.guya.net/wp-content/uploads/2011/02/wlEmoticon-winkingsmile.png" /> &#8212; Thanx</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2011/02/23/new-away3d-flash-molehill-video/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Thoughts about the pug dog screen cleaner</title>
		<link>http://blog.guya.net/2008/02/11/thoughts-about-the-pug-dog-screen-cleaner/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=thoughts-about-the-pug-dog-screen-cleaner</link>
		<comments>http://blog.guya.net/2008/02/11/thoughts-about-the-pug-dog-screen-cleaner/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 15:38:43 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash General]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2008/02/11/thoughts-about-the-pug-dog-screen-cleaner/</guid>
		<description><![CDATA[If you haven&#8217;t seen this cool pug cleaning your screen then click here. This cool Flash video embed inside a simple swf was floating all over the web for the past month or so. The first think that came to &#8230; <a href="http://blog.guya.net/2008/02/11/thoughts-about-the-pug-dog-screen-cleaner/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t seen this cool pug cleaning your screen then click <a title="Pug Screen Cleaner" href="http://raincitystory.com/flash/screenclean.swf" target="_blank">here</a>. This cool Flash video embed inside a simple swf was floating all over the web for the past month or so.</p>
<p>The first think that came to mind was, lets turn this into a screensaver. Which introduced me to this great 100% freeware, swf to screensaver, <a title="InstantStorm - a free Flash screensaver creator - turn your SWF files into a screensaver" href="http://www.instantstorm.com/" target="_blank">Instantstorm</a>. Only then I&#8217;ve realized that, it fits too perfectly as a screensaver to not already be a screensaver. indeed, after googleing I&#8217;ve found it <a href="http://www.wvpdles.com/dogscreensavers.html" target="_blank">here</a> and a similar concept <a href="http://www.mymonitorpets.com/" target="_blank">here</a> (I wouldn&#8217;t install these, might contain ad-wares).</p>
<p>The most interesting thing bout this is, how something that had almost no existent became as viral as hell when it was re-distributed as a simple link to a swf file. No play button, no scrubber, and no nothing, follow the link and you get it filling the whole browser space and the experience starts immediately. Sometimes a link to a swf may be the best way of distribution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2008/02/11/thoughts-about-the-pug-dog-screen-cleaner/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Pay Per View with Flash Media Server</title>
		<link>http://blog.guya.net/2007/08/15/pay-per-view-with-flash-media-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pay-per-view-with-flash-media-server</link>
		<comments>http://blog.guya.net/2007/08/15/pay-per-view-with-flash-media-server/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 16:10:55 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash General]]></category>
		<category><![CDATA[JAJAH]]></category>
		<category><![CDATA[VOIP 2.0]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2007/08/15/pay-per-view-with-flash-media-server/</guid>
		<description><![CDATA[At JAJAH we are always looking for ways to leverage our payment system in new and exciting ways. One of the ideas that came up was to sell calls to videos. You call to a certain number and while the &#8230; <a href="http://blog.guya.net/2007/08/15/pay-per-view-with-flash-media-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At JAJAH we are always looking for ways to leverage our payment system in new and exciting ways. One of the ideas that came up was to sell calls to videos. You call to a certain number and while the call is active, you can watch a certain video. Not a new concept at all, it&#8217;s been used in some industries for ages now <img src='http://blog.guya.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . But, we only needed a demo for now and we needed a super quick way to create it. The obvious choice was to use Flash Media Server with some kind of ticketing system. For this demo we used a third party shared server from <a target="_blank" title="influxis.com/" href="http://influxis.com/">influxis</a> which is more then enough in this case.</p>
<p>Creating a ticketing system with FMS couldn&#8217;t be easier, you can find some tutorials about it <a title="Using tickets and Flash Remoting MX (PDF)" href="http://www.adobe.com/devnet/flashcom/articles/ticket/fcs_secure_ticket.pdf">here</a>, <a target="_blank" title="Communication and Security with the Flash Communication Server" href="http://www.devarticles.com/c/a/Flash/Communication-and-Security-with-the-Flash-Communication-Server/2/">here</a> and <a target="_blank" title="Programming Flash Communication Server (Chapter 18)" href="http://www.oreilly.com/catalog/progflashcs/toc.html">here</a>. But let me summarize it for you. Create some kind of a temporary ticket (random number or <a target="_blank" title="GUID" href="http://en.wikipedia.org/wiki/GUID">GUID</a> will do) and send it to the client (the Flash player), when the player request the video stream from the server, send this ticket to the FMS along with the request. The FMS in it&#8217;s turn validate this ticket against your server. Continue checking this ticket in a certain interval and as long as this ticket is valid, play the stream, if it become invalid kill the connection. Thats it. Most of the articles on the web about FMS tells you that Flash-Remoting is needed for any kind of communication from the FMS. It isn&#8217;t completely true. While using remoting may be beneficial in some cases, since FMS 2.0 it is easy to make asynchronous calls like webservices and loadvars. So you have more choise when developing your ticketing system. If you want to use Flash Remoting in dot.net consider using <a target="_blank" title="WebOrb" href="http://www.themidnightcoders.com/">Midnightcoders WebOrb</a>, as an alternative to <a target="_blank" title="Macromedia Flash Remoting MX" href="http://www.adobe.com/products/flashremoting/">Macromedia&#8217;s Flash Remoting MX</a> (both didn&#8217;t install on Vista at the time, btw).<br />
Since Jajah&#8217;s pay per view is only a demo, we didn&#8217;t exert ourselves  to make it supper secure. you can learn more about securing your videos in this <a title="Explore video content protection measures enabled by Flash Media Server" target="_blank" href="http://www.adobe.com/devnet/flashmediaserver/articles/protecting_video_fms.html">Adobe Flash Media Server article</a>.</p>
<p><a target="_blank" title="JAJAH" href="http://www.jajah.com"><img id="image152" alt="Jajah Pay Per View" src="http://blog.guya.net/wp-content/uploads/2007/08/jajah_pay_per_view.jpg" /></a></p>
<p>To watch the pay per view demo, go to jajah.com, login or register and make a (free) call to this number +43-123456789. Your phone will ring, answer the call and behold. You will see a cool animation, an homage to IceAge. When you&#8217;ll hang up your phone, the animation will stop. If you&#8217;ll try to watch the movie after hanging-up, the stream won&#8217;t be served from the FMS since the ticket isn&#8217;t valid anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2007/08/15/pay-per-view-with-flash-media-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A beautiful Flash website by Microsoft</title>
		<link>http://blog.guya.net/2007/05/06/a-beautiful-flash-website-by-microsoft/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-beautiful-flash-website-by-microsoft</link>
		<comments>http://blog.guya.net/2007/05/06/a-beautiful-flash-website-by-microsoft/#comments</comments>
		<pubDate>Sun, 06 May 2007 10:11:34 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2007/05/06/a-beautiful-flash-website-by-microsoft/</guid>
		<description><![CDATA[Designed like a game website, this new Microsoft website shows a nice use of the Flash technology. It got it all, from Flash Video to scripted animation, sound and transitions. check it out&#8230;]]></description>
			<content:encoded><![CDATA[<p>Designed like a game website, this new Microsoft website shows a nice use of the Flash technology. It got it all, from Flash Video to scripted animation, sound and transitions.<br />
<a target="_blank" title="defyallchallenges.com" href="http://www.defyallchallenges.com/">check it out&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2007/05/06/a-beautiful-flash-website-by-microsoft/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Shape Hints &#8211; Have you forgotten how good they taste ?</title>
		<link>http://blog.guya.net/2007/04/14/shape-hints-have-you-forgotten-how-good-they-taste/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shape-hints-have-you-forgotten-how-good-they-taste</link>
		<comments>http://blog.guya.net/2007/04/14/shape-hints-have-you-forgotten-how-good-they-taste/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 01:17:36 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash CS3]]></category>
		<category><![CDATA[Flash General]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2007/04/14/shape-hints-have-you-forgotten-how-good-they-taste/</guid>
		<description><![CDATA[These days it&#8217;s easy to forget that Flash is an amazing classic animation tool. Ever since the arrival of the fine Macromedia Tween Class and the amazing Fuse Kit (a new version was just released) and great books like Foundation &#8230; <a href="http://blog.guya.net/2007/04/14/shape-hints-have-you-forgotten-how-good-they-taste/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These days it&#8217;s easy to forget that Flash is an amazing classic animation tool. Ever since the  arrival of the fine <a title="Macromedia's Tween Class" href="http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00004155.html">Macromedia Tween Class</a> and the amazing <a title="http://www.mosessupposes.com/Fuse/index.html" target="_blank" href="http://blog.guya.net/wp-admin/The%20Fuse%20Kit">Fuse Kit</a>  (a new version was just released) and great books like <a title="Not an affiliate link" target="_blank" href="http://www.amazon.com/gp/product/1590595181/qid=1131559860/sr=8-1/ref=pd_bbs_1/002-0952178-2854438?n=507846&#038;s=books&#038;v=glance">Foundation Actionscript Animation</a>, by: <a target="_blank" href="http://bit-101.com">keith peters</a>, <a title="Foundation Actionscript 3.0 Animation: Making Things Move!" target="_blank" href="http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=pd_bbs_sr_2/002-0079416-5943245?ie=UTF8&#038;s=books&#038;qid=1174500088&#038;sr=1-2">new version for Actionscript 3.0 is on the way</a> <span style="font-size: 9px">(not affiliat)</span>, it seems that we want to script our animation no matter what! Now, don&#8217;t get me wrong, I also think that scripted animation is very powerful and I use it all the time. But, I sometimes find myself over using it in places where I should have used a simple tweening instead.With the 8th version of Flash we received a nice improvement to the tweening capabilities, it is now possible to achieve a relatively complex tweening animation with only two key frames. Check out this tutorial: <a title="Achieving Amazing Easing Effects in Flash" target="_blank" href="http://www.adobe.com/devnet/flash/articles/custom_easing.html">Achieving Amazing Easing Effects in Flash</a>, by: Rafiq R. Elmansy.</p>
<p>And what about the new kid animation abilities?! With what I&#8217;ve seen so far in the main <a target="_blank" title="WPF Expression" href="http://www.microsoft.com/products/expression/en/default.mspx">WPF interactive editor</a> CTP (beta) vesions, it fall short of Flash, it has an interesting concept of having the animation of an object as just another property of that object. But, it lake of satisfactorily key-frames controll and things like shape tween are not existent. These things might be improved in the final version, but it seems to me that Microsoft is still donesn&#8217;t pay atantion to creativity as it should have, and is mainly thinking about GUI creation.</p>
<p>I just hope that Adobe wont forget the origins of Flash and one of the main reasons it is such a terrific tool, and is planing a tons more of animation and creativity features in the next Flash IDE release.</p>
<p>Note: I&#8217;ve written this post some time back, before the announcement of the new <a title="Flash CS3 feature list" target="_blank" href="http://www.adobe.com/products/flash/features/allfeatures/">Flash CS 3 (Flash 9) feature list.</a> It seems that we&#8217;ll get some animation improvements, the two most interesting improvements looks like, <strong>Custom easing control</strong> and <strong>Copy and paste animations</strong>. The first will &#8220;provides independent control of position, rotation, scale, color, and filters&#8221;, it will give us much finer control over every keyframe in our animation similar to high-end animation software. The second will let us copy timeline animations as fully editable Actionscript 3.0 XML objects for easy duplication and modification. It looks like even complex tweening that uses a <a title="flashmagazine - Flash CS3 Preview" target="_blank" href="http://www.flashmagazine.com/1394.htm">motion guide</a> can be copied and edited, no clarity about the coping of a shape tweens though. I guess no one at adobe have the nerve to dive into the Flash core and update something as the Shape Hints or even the Timeline itself, but overall, it seems like a nice update in terms of the animation abilities of Flash.</p>
<p>Flash CS3 will be released in April 20th.</p>
<p><strong>Behind The Curtains &#8211; Shape Hints Animation Tutorial</strong></p>
<p>Hover above this box:<br />
[kml_flashembed movie="http://blog.guya.net/wp-content/uploads/2007/04/curtain.swf" width="320" height="240"  /]</p>
<p>I was amazed when I first saw shape animation in flash, create two different shapes on two different frames and easily get a morphing animation between them&#8230;</p>
<p>Few years back I was asked to make a flash banner for <a target="_blank" href="http://www.habima.org.il/">Habima</a> Theater. I came with the, somewhat cheesy, idea of a animating a red curtain, and inside it, to fade images from few of the theater best shows.</p>
<p>Creating a curtain animation in Flash shouldn&#8217;t be a problem, I thought, I&#8217;ll create the start and finish frames and my beloved Flash will do the rest. The start frame of a simple curtain animation is simply a box and the end frame is an open curtain&#8230;</p>
<p><span style="font-weight: bold">1.</span> Create a new Flash Document, resize it to 320 x 240 and set the Frame rate to 30.</p>
<p><img alt="Document Properties" id="image124" src="http://blog.guya.net/wp-content/uploads/2007/04/document_properties_2.png" /></p>
<p><span style="font-weight: bold">2.</span> Create a red rectangle (R) anywhere on the stage no matter what size, select the rectangle and set it&#8217;s properties (Show/Hide Properties Ctrl+F3): width and height to 160 and 240 respectively, x and y both to 0.</p>
<p><span style="font-weight: bold">3.</span> With the rectangle still selected press F8 to turn it into a Movie clip, and name it curtain.</p>
<p><img alt="Convert to Movie clip" id="image123" src="http://blog.guya.net/wp-content/uploads/2007/04/convert_to_mc_2.png" /></p>
<p><span style="font-weight: bold">4.</span> Inside the properties panel name the instance of the curtain on stage to leftCurtain.</p>
<p><img alt="properties" id="image113" src="http://blog.guya.net/wp-content/uploads/2007/04/curtain_properties.png" /></p>
<p><span style="font-weight: bold">5.</span> Double click on leftCurtain to step inside it. On the Timeline (Show/Hide the Timeline Ctrl+Alt+T) name Layer 1 to curtain. Right click on the 30th frame and select Insert Keyframe (F6).</p>
<p><img alt="Insert Keyframe" id="image114" src="http://blog.guya.net/wp-content/uploads/2007/04/insert_keyframe.png" /></p>
<p><span style="font-weight: bold">6.</span> The first frame of our animation, the closed state of our curtain is already done on frame 1, we&#8217;ll now create the opened  frame on frame 30. Deselect the red rectangle by clicking anywhere outside it on the stage. Point your mouse to the bottom right corner of the rectangle until the mouse cursor turns into a right angle shape, this indicates that you can grab the corner. With the Shift Key pressed click and drag the rect corner to the left and to about 45px from the left edge.</p>
<p><img id="image116" alt="Drag Corner" src="http://blog.guya.net/wp-content/uploads/2007/04/drag_corner_2_cut.png" /></p>
<p><span style="font-weight: bold">7.</span> In order to achieve an open curtain look we&#8217;ll split it near the bottom. Point the cursor near the edge of the now diagonal line to about 50px from the bottom. When the cursor changes its shape to a small round line, press Ctrl and click to drag the new point to left to about 30px from the edge. Pressing on the Ctrl key while dragging a line breaks it and creates a new point where the break is.</p>
<p><img id="image117" alt="Drag Middle" src="http://blog.guya.net/wp-content/uploads/2007/04/drag_middle_2.png" /></p>
<p><span style="font-weight: bold">8.</span> Similar to the previous step, hover with the mouse near the right edge of the rectangle, when the cursor change it&#8217;s shape click and drag (without pressing Ctrl) the edge until it gets a nice belly, do the same for the small right edge.</p>
<p><img alt="Drag Belly" id="image118" src="http://blog.guya.net/wp-content/uploads/2007/04/drag_belly.png" /></p>
<p><span style="font-weight: bold">9.</span> We done the entire 2 frames of our animation, now it&#8217;s time to animate it. In the Timeline Select frame 1 and in the properties panel set Tween to Shape, also set Ease to 70, it will make the animation nicer by easing it near the end.</p>
<p><img id="image119" alt="Tween" src="http://blog.guya.net/wp-content/uploads/2007/04/tween.png" /></p>
<p><span style="font-weight: bold">10.</span> It looks like we got ourselves an opening curtain animation, but testing the movie (Ctrl+Enter) reveals that though we got an animation it&#8217;s nothing like a believable curtain. This is because Flash can&#8217;t know what exactly we&#8217;re animating and how we like the morphing to be done. Flash simply guess, and this time its guess is very wrong. This is where Shape Hints come to our aid.</p>
<p><span style="font-weight: bold">11.</span> Select frame 1 and click on Modify -> Shape -> Add Shape Hint (Ctrl+Shift+H)  5 times. This will create 5 Shape Hints identified by characters from a to e. Arrange the Hints in the 4 corners and 1 where the break is, look at the image. Go to frame 30 and arrange the Hints respectively to the 1th frame. Every Hint character in frame 1 must correspond to the Hint character in frame 30.</p>
<p><img id="image120" alt="Shape Hints" src="http://blog.guya.net/wp-content/uploads/2007/04/shape_hints.png" /></p>
<p>Tip: you can lock the layer and still be able to edit the Shape Hints.</p>
<p>Tip: Show/Hide all the Shape Hints Ctrl+Alt+H</p>
<p><span style="font-weight: bold">12.</span> Now lets test our movie (Ctrl+Enter) to see our curtain animate to its open state as it should.</p>
<p><span style="font-weight: bold">13.</span> To create the closing animation the simplest way is to duplicate the frames and then reverse it. Select all the frames in the curtain layer by clicking on its name and Right click -> Copy frame then Right click on frame 31 and select Paste frames. This will copy the opening animation, Shape Hints included. Click on frame 31 and while the Shift key is pressed click on frame 60 to select all of this frames range. Right click on the selected frames and click Reverse frames, it&#8217;ll reverse the animation but sadly it&#8217;ll also break the Shape Hints of this section, you&#8217;ll have to create it again for frame 31 and 60, similar to the previous step.</p>
<p><span style="font-weight: bold">14.</span> Select frame 31 and in the properties panel set the Ease to -50, this will create an ease-in effect so the closing animation will start a bit slower and then accelerate as it goes.</p>
<p><span style="font-weight: bold">15.</span> Test the movie to see the (half) curtain open and close. Thats it, we&#8217;re done our curtain animation it&#8217;s time to duplicate the half into a full curtain and put some interactivity into it.</p>
<p><span style="font-weight: bold">16.</span> Before you go back to the main stage add another Layer inside the curtain Movie clip and name it actions. Click on Window -> Actions (F9), while the first frame selected enter the code stop(); inside the Action panel. Create a new key frame on frame 30 of the actions layer and put a stop(); in there as well. This will prevent the curtain from animating on its own and we&#8217;ll control it with Actionscript.</p>
<p><img alt="Stop Action" id="image121" src="http://blog.guya.net/wp-content/uploads/2007/04/stop_action.png" /></p>
<p><span style="font-weight: bold">17.</span> Go back up to Scene 1 by double clicking on an empty area of the stage. Copy the leftCurtain Movie clip, paste it any where, set its x to 160, its y to 0 and its name to rightCurtain.</p>
<p><span style="font-weight: bold">18.</span> With the rightCurtain selected click on Modify -> Transform -> Flip Horizontal.</p>
<p><span style="font-weight: bold">19.</span> On the main Timeline in Scene 1 create another layer and name it actions open the actions panel (F9) and enter the following script:</p>
<p>function openCurtain():Void{<br />
leftCurtain.gotoAndPlay(1);<br />
rightCurtain.gotoAndPlay(1);<br />
}</p>
<p>function closeCurtain():Void{<br />
leftCurtain.gotoAndPlay(31);<br />
rightCurtain.gotoAndPlay(31);<br />
}</p>
<p><span style="font-weight: bold">20.</span> We can call these functions to open and close the curtain as we like, in this example we&#8217;ll open the curtain when the mouse roll over it and close it when it roll out.</p>
<p><span style="font-weight: bold">21.</span> Create another layer beneath the actions layer but above the curtain layer and name it hitArea. Draw a green rectangle and set it&#8217;s alpha to 0%, the color doesn&#8217;t really matter  since this rect will be invisible, also set it&#8217;s width to 320, height to 240 and x, y to 0. Click F8 to turn this rectangle to a Movie clip and name it hitArea. in the properties panel name the hitArea instance on the stage to <strong>hit</strong>.</p>
<p><span style="font-weight: bold">22.</span> Add this code to the actions layer:</p>
<p>hit.onRollOver = openCurtain;<br />
hit.onRollOut = closeCurtain;</p>
<p>Now every time we roll over the invisible hit Movie clip that is above the curtain the function openCurtain will be called and when we&#8217;ll roll out from it the closeCurtain will be called.</p>
<p><span style="font-weight: bold">23.</span> Test the movie to see that we now got our interactive animated curtain, roll over it and it opens, roll out and it closes. But, if you&#8217;ll play with it a little you&#8217;ll see that it&#8217;s not always act as it should. For example, when you roll out while the curtain is opening it jumps to beginning of the closing sequence instead of closing from the current position. To fix that we&#8217;ll add a simple calculation to find the right frame we need to jump to in order for the animation to look seamless.</p>
<p><span style="font-weight: bold">24.</span> Replace the code in the action frame with this:</p>
<p>hit.onRollOver = openCurtain;<br />
hit.onRollOut = closeCurtain;</p>
<p>var nTotalFrames:Number = leftCurtain._totalframes;</p>
<p>function openCurtain():Void{<br />
var nFrame:Number;<br />
if(leftCurtain._currentframe > nTotalFrames / 2){<br />
nFrame = leftCurtain._totalframes &#8211; leftCurtain._currentframe + 2;<br />
}else{<br />
nFrame = leftCurtain._currentframe;<br />
}<br />
leftCurtain.gotoAndPlay(nFrame);<br />
rightCurtain.gotoAndPlay(nFrame);<br />
}</p>
<p>function closeCurtain():Void{<br />
var nFrame:Number = leftCurtain._totalframes &#8211; leftCurtain._currentframe;<br />
leftCurtain.gotoAndPlay(nFrame);<br />
rightCurtain.gotoAndPlay(nFrame);<br />
}</p>
<p>We just changed the open and close functions to be a bit more smart ones, function that knows to which frame to gotoAndPlay, it does it according to the current frame and not just jump blindly to the beginning of each sequence.</p>
<p>Test the movie and behold, our interactive curtain is ready.</p>
<p>Tip: you can add this code, hit.useHandCursor = false; so the cusror won&#8217;t change into a hand when you hover the curtain.</p>
<p><a title="Curtain Animation source files" href="http://blog.guya.net/wp-content/uploads/2007/04/curtain.zip">Download Curtain Animation source files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2007/04/14/shape-hints-have-you-forgotten-how-good-they-taste/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>When Lego meets GTA</title>
		<link>http://blog.guya.net/2006/11/19/when-lego-meets-gta/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=when-lego-meets-gta</link>
		<comments>http://blog.guya.net/2006/11/19/when-lego-meets-gta/#comments</comments>
		<pubDate>Sun, 19 Nov 2006 16:09:16 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2006/11/19/when-lego-meets-gta/</guid>
		<description><![CDATA[Forget about these cheesy Star-Wars Lego games. Imagine how a GTA Lego game would look like. This is how: Download Grand Theft Auto &#8211; Lego City The guys from brickflick.com are creating scenes from famous video games using real lego &#8230; <a href="http://blog.guya.net/2006/11/19/when-lego-meets-gta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Forget about these cheesy Star-Wars Lego games. Imagine how a GTA Lego game would look like. This is how:</p>
<p>Download <a title="Grand Theft Auto - Lego City" target="_blank" href="http://www.archive.org/download/gta_lego_city/gta_lego_city.zip">Grand Theft Auto &#8211; Lego City</a></p>
<p><img id="image92" alt="GTA - Lego City   " src="http://blog.guya.net/wp-content/uploads/2006/11/dvd_front.gif" /></p>
<p>The guys from <a title="brickflick.com" target="_blank" href="http://brickflick.com/">brickflick.com</a> are creating scenes from famous video games using real lego blocks and stop-motion animation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2006/11/19/when-lego-meets-gta/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Amazing arcade games parody</title>
		<link>http://blog.guya.net/2006/05/02/amazing-arcade-games-parody/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amazing-arcade-games-parody</link>
		<comments>http://blog.guya.net/2006/05/02/amazing-arcade-games-parody/#comments</comments>
		<pubDate>Tue, 02 May 2006 11:29:07 +0000</pubDate>
		<dc:creator>guya</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://blog.guya.net/2006/05/02/amazing-arcade-games-parody/</guid>
		<description><![CDATA[If you ever played beat&#8217;em up games in the arcade or old consoles (even if you didn&#8217;t), you&#8217;re gonna blow your mind from this video. This Pixel-Art styled animation is the work of Paul RobertsonÂ who manageÂ to deliver a non stop &#8230; <a href="http://blog.guya.net/2006/05/02/amazing-arcade-games-parody/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you ever played beat&#8217;em up games in the arcade or old consoles (even if you didn&#8217;t), you&#8217;re gonna blow your mind from this video. This Pixel-Art styled animation is the work of <a href="http://probertson.livejournal.com/" target="_blank">Paul Robertson</a>Â who manageÂ to deliver a non stop 12 minutes of amazing, smoth, video game like action.Â </p>
<p>Check out the screens:</p>
<p><img id="image28" style="width: 330px; height: 180px" height="180" alt="pirateBaby_01.jpg" src="http://blog.guya.net/wp-content/uploads/2006/05/pirateBaby_01.jpg" width="330" /></p>
<p><img id="image29" style="width: 330px; height: 187px" height="187" alt="pirateBaby_02.jpg" src="http://blog.guya.net/wp-content/uploads/2006/05/pirateBaby_02.jpg" width="330" /></p>
<p><img id="image30" style="width: 330px; height: 186px" height="186" alt="pirateBaby_03.jpg" src="http://blog.guya.net/wp-content/uploads/2006/05/pirateBaby_03.jpg" width="330" /></p>
<p><img id="image31" style="width: 330px; height: 186px" height="186" alt="pirateBaby_04.jpg" src="http://blog.guya.net/wp-content/uploads/2006/05/pirateBaby_04.jpg" width="330" /></p>
<p>Download: <a href="http://www.selectparks.net/modules.php?name=News&#038;file=article&#038;sid=442" target="_blank">Pirate Baby&#8217;s Cabana Battle Street Fight 2006</a>Â <br />
Well worth it&#8217;s 112mb</p>
<p>ForÂ me, beside itÂ is a great animation it reminds me of the good old arcade days in a funny and inspiring way.<br />
Someone gotta make this into a real game.</p>
<p>Â </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guya.net/2006/05/02/amazing-arcade-games-parody/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

