<?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/"
	>

<channel>
	<title>Flash Otaku</title>
	<atom:link href="http://flashotaku.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashotaku.com/blog</link>
	<description></description>
	<pubDate>Mon, 23 Nov 2009 14:45:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Grid 3D flash component available</title>
		<link>http://flashotaku.com/blog/grid-3d-flash-component-available/</link>
		<comments>http://flashotaku.com/blog/grid-3d-flash-component-available/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:45:30 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[3d wall]]></category>

		<category><![CDATA[flash component]]></category>

		<category><![CDATA[grid 3d]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=166</guid>
		<description><![CDATA[A few days ago, we released a new flash component: Grid 3D. Similar components, inspired by the Cooliris 3D Wall plug-in, have been on the market for some time but we tried to create something better, less CPU-intensive and with more features. I think we&#8217;ve done a pretty good job but we&#8217;re open for suggestions [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, we released a new flash component: <a href="http://flashotaku.com/components/grid-3d/">Grid 3D</a>. Similar components, inspired by the Cooliris 3D Wall plug-in, have been on the market for some time but we tried to create something better, less CPU-intensive and with more features. I think we&#8217;ve done a pretty good job but we&#8217;re open for suggestions from you, people interested in our products. You can see the component in action <a href="http://flashotaku.com/components/grid-3d/examples/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/grid-3d-flash-component-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Carousel PRO and StackFlow PRO components released</title>
		<link>http://flashotaku.com/blog/carousel-pro-and-stackflow-pro-components-released/</link>
		<comments>http://flashotaku.com/blog/carousel-pro-and-stackflow-pro-components-released/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:11:37 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[carousel]]></category>

		<category><![CDATA[stackflow]]></category>

		<category><![CDATA[youtube video]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=163</guid>
		<description><![CDATA[We have recently released the Carousel PRO and StackFlow PRO flash components. These PRO versions add the capability to play video content, including YouTube videos.
Also, we&#8217;ve added zooming capability, so when you zoom over an item, a higher resolution of that item is displayed. This feature is included in the basic versions of the components [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently released the Carousel PRO and StackFlow PRO flash components. These PRO versions add the capability to play video content, including YouTube videos.<br />
Also, we&#8217;ve added zooming capability, so when you zoom over an item, a higher resolution of that item is displayed. This feature is included in the basic versions of the components as well. You can download free trial versions of the components <a href="http://flashotaku.com/components/carousel/">here</a> and <a href="http://flashotaku.com/components/stackflow/">here</a>. We would greatly appreciate your feedback. </p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/carousel-pro-and-stackflow-pro-components-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Component Free Trials Available</title>
		<link>http://flashotaku.com/blog/component-free-trials-available/</link>
		<comments>http://flashotaku.com/blog/component-free-trials-available/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 08:42:37 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Flash Components]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=158</guid>
		<description><![CDATA[The website has just been redesigned and reorganized. You can now create an account and keep track of all your orders and components. One great thing is that you can now download free trial version for all the available flash components [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>The <a href="http://flashotaku.com/">FlashOtaku.com</a> website has just been redesigned and reorganized. You can now create an account and keep track of all your orders and components. One great thing is that you can now download free trial version for all the available flash components. The free trials have the complete functionality of the full version but they will only run inside the Flash IDE. I encourage you to create an account and try out these components. Your feedback is greatly appreciated !</p>
<p>PS: If you&#8217;ve already purchased a component from FlashOtaku.com before, just contact me with your newly created account details and your transaction id and I&#8217;ll make the component available in your account page.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/component-free-trials-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FlashOtaku Components Update: Live Preview Added</title>
		<link>http://flashotaku.com/blog/flashotaku-components-update-live-preview-added/</link>
		<comments>http://flashotaku.com/blog/flashotaku-components-update-live-preview-added/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 22:36:34 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Flash Components]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=156</guid>
		<description><![CDATA[I just want to let you, the users of FlashOtaku components, know that the components were recently updated and Live Preview was added. This feature will enable you to see how the component will be rendered, at design time. This is pretty useful, as you will see. You can just re-download the component and enjoy [...]]]></description>
			<content:encoded><![CDATA[<p>I just want to let you, the users of FlashOtaku components, know that the components were recently updated and Live Preview was added. This feature will enable you to see how the component will be rendered, at design time. This is pretty useful, as you will see. You can just re-download the component and enjoy the new feature.<br />
The feature was added for the commercial components only.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/flashotaku-components-update-live-preview-added/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash Components Mashups - Part 2</title>
		<link>http://flashotaku.com/blog/flash-components-mashups-part-2/</link>
		<comments>http://flashotaku.com/blog/flash-components-mashups-part-2/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 16:29:00 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[carousel]]></category>

		<category><![CDATA[slideshow]]></category>

		<category><![CDATA[stackflow]]></category>

		<category><![CDATA[thumbnail grid]]></category>

		<category><![CDATA[thumbnail scroller]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=131</guid>
		<description><![CDATA[This post is Part 2 of the Flash Components Mashups series.
In this tutorial I will make the application a little more interactive.  I&#8217;ll let the &#8220;Auto Slideshow&#8221; feature activated, but this time I want to be able to jump to different slide when I click on a thumbnail. For this example I will use the [...]]]></description>
			<content:encoded><![CDATA[<p>This post is Part 2 of the <a href="http://flashotaku.com/blog/flash-components-mashups/">Flash Components Mashups</a> series.</p>
<p>In this tutorial I will make the application a little more interactive.  I&#8217;ll let the &#8220;Auto Slideshow&#8221; feature activated, but this time I want to be able to jump to different slide when I click on a thumbnail. For this example I will use the <a href="http://flashotaku.com/components/stackflow/">StackFlow</a> and the <a href="http://flashotaku.com/components/slideshow/">Slideshow</a> components. Click on the bellow image to see exactly what we&#8217;ll be trying to achieve.</p>
<p><a onclick="window.open('http://flashotaku.com/blog_tutorials/gallery_2a.swf', 'window', 'width=600, height=500');" href="javascript:void(0)"><img class="alignnone" src="http://flashotaku.com/blog_tutorials/gallery_2a.jpg" alt="" width="200" height="171" /></a></p>
<p>Like in the previous tutorial, I want that each time a slide is opened, the StackFlow component to scroll to the corresponding thumbnail. The code for this is the same as in the previous tutorial.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">flashotaku</span>.<span class="kw3">events</span>.<span class="me1">SlideshowEvent</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">mySlideshow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>SlideshowEvent.<span class="me1">TRANSITION_START</span>, transitionStartHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">function</span> transitionStartHandler<span class="br0">&#40;</span><span class="kw3">event</span>:SlideshowEvent<span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; myStackFlow.<span class="me1">select</span><span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">index</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Next I need to add the code which will allow as to open a slide when we click an item from the StackFlow. This is also pretty simple to do.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">flashotaku</span>.<span class="kw3">events</span>.<span class="me1">StackFlowEvent</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>StackFlowEvent.<span class="me1">ITEM_CLICK</span>, itemClickHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">function</span> itemClickHandler<span class="br0">&#40;</span><span class="kw3">event</span>:StackFlowEvent<span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; mySlideshow.<span class="me1">openSlide</span><span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">index</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>That&#8217;s all the code we need for creating this advanced flash gallery.<br />
The same steps need to be followed if you want to use a different component, like Carousel, Thumbnail Grid or Thumbnail Scroller.</p>
<p>More example bellow.</p>
<p><a onclick="window.open('http://flashotaku.com/blog_tutorials/gallery_2a.swf', 'window', 'width=600, height=500');" href="javascript:void(0)"><img class="alignleft" style="margin-left: 10px; margin-right: 10px;" src="http://flashotaku.com/blog_tutorials/gallery_2a.jpg" alt="" width="200" height="171" /></a></p>
<p><a onclick="window.open('http://flashotaku.com/blog_tutorials/gallery_2b.swf', 'window', 'width=600, height=500');" href="javascript:void(0)"><img class="alignleft" style="margin-left: 10px; margin-right: 10px;" src="http://flashotaku.com/blog_tutorials/gallery_2b.jpg" alt="" width="200" height="171" /></a></p>
<p><a onclick="window.open('http://flashotaku.com/blog_tutorials/gallery_2c.swf', 'window', 'width=600, height=500');" href="javascript:void(0)"><img class="alignleft" style="margin-left: 10px; margin-right: 10px;" src="http://flashotaku.com/blog_tutorials/gallery_2c.jpg" alt="" width="200" height="171" /></a></p>
<p><a onclick="window.open('http://flashotaku.com/blog_tutorials/gallery_2d.swf', 'window', 'width=600, height=500');" href="javascript:void(0)"><img class="alignleft" style="margin-left: 10px; margin-right: 10px;" src="http://flashotaku.com/blog_tutorials/gallery_2d.jpg" alt="" width="200" height="171" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/flash-components-mashups-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash Components Mashups</title>
		<link>http://flashotaku.com/blog/flash-components-mashups/</link>
		<comments>http://flashotaku.com/blog/flash-components-mashups/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 13:22:15 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[image gallery]]></category>

		<category><![CDATA[slideshow]]></category>

		<category><![CDATA[thumbnail scroller]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=128</guid>
		<description><![CDATA[Today I&#8217;ll begin a series of posts about how you can integrate two or more components together in order to create more complex and interesting flash applications. As you will see, this is very easy to achieve.
I&#8217;ll start with a very basic example in which I will create an image gallery (slideshow + thumbnails). For [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ll begin a series of posts about how you can integrate two or more components together in order to create more complex and interesting flash applications. As you will see, this is very easy to achieve.</p>
<p>I&#8217;ll start with a very basic example in which I will create an image gallery (slideshow + thumbnails). For this example I need to use the <a href="http://flashotaku.com/components/slideshow/">Slideshow</a> component and the <a href="http://flashotaku.com/components/thumbnail-scroller/">Thumbnail Scroller</a> component. I suppose you already know how to setup each component, so I won&#8217;t talk about that. I will only show how to make them work together.</p>
<p>1. Drag an instance of the Slideshow and the Scroller onto the stage. Set the XML files for each of the components and also customize their properties if you would like. One thing that you have to do is set the &#8220;Auto Slideshow&#8221; property to true (we will use this feature in the tutorial).</p>
<p>2. Now comes the part that makes the 2 components work together. What I want is that each time the slideshow navigates to a new slide, the corresponding thumbnail to be highlighted. We need to use Actionscript code for this. These flash components are AS3 compliant, so we need to use Actionscript 3 code.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">flashotaku</span>.<span class="kw3">events</span>.<span class="me1">SlideshowEvent</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">mySlideshow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>SlideshowEvent.<span class="me1">TRANSITION_START</span>, transitionStartHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">function</span> transitionStartHandler<span class="br0">&#40;</span><span class="kw3">event</span>:SlideshowEvent<span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; myScroller.<span class="me1">select</span><span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">index</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>That is all the code you need for this basic, but nice looking, example.</p>
<p><object width="600" height="500" data="http://flashotaku.com/blog_tutorials/gallery_1.swf" type="application/x-shockwave-flash"><param name="src" value="http://flashotaku.com/blog_tutorials/gallery_1.swf" /></object></p>
<p>More examples to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/flash-components-mashups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ScrollBar Component</title>
		<link>http://flashotaku.com/blog/scrollbar-component/</link>
		<comments>http://flashotaku.com/blog/scrollbar-component/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 16:09:45 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[components]]></category>

		<category><![CDATA[scrollbar]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=120</guid>
		<description><![CDATA[The purpose of this ScrollBar component is to be used together with the FlashOtaku components, but it can be used in other contexts as well. You can skin it the same way you would skin a Flash V3 component and you can also chose to show the left/right arrows or not. In functionality is more [...]]]></description>
			<content:encoded><![CDATA[<p>The purpose of this ScrollBar component is to be used together with the <a href="http://flashotaku.com/components/">FlashOtaku components</a>, but it can be used in other contexts as well. You can <a onclick="window.open('http://flashotaku.com/site_images/scrollbar_skins.jpg', 'window', 'width=500, height=300');" href="javascript:void(0)">skin</a> it the same way you would skin a Flash V3 component and you can also chose to show the left/right arrows or not. In functionality is more like a slider component but I decided to call it a scrollbar since it looks like a scrollbar.</p>
<p>This component is offered as premium with the purchase of any of the following components: <a href="http://flashotaku.com/components/thumbnail-scroller/">Thumbnail Scroller</a>, <a href="http://flashotaku.com/components/thumbnail-grid/">Thumbnail Grid</a>, <a href="http://flashotaku.com/components/carousel/">Carousel</a> and <a href="http://flashotaku.com/components/stackflow/">StackFlow</a>. If you already purchased any of these components, simply re-download the component using the link that you were given in your email. </p>
<p>See it in action in the bellow examples:<br />
<a onclick="window.open('http://flashotaku.com/components/examples/stackflow/stackflow_ex1.html', 'window', 'width=845, height=320');" href="javascript:void(0)">StackFlow</a><br />
<a onclick="window.open('http://flashotaku.com/components/examples/carousel/carousel_ex8.html', 'window', 'width=850, height=310');" href="javascript:void(0)">Carousel</a><br />
<a onclick="window.open('http://flashotaku.com/components/examples/grid/grid_ex6.html', 'window', 'width=900, height=520');" href="javascript:void(0)">Thumbnail Grid</a><br />
<a onclick="window.open('http://flashotaku.com/components/examples/scroller/scroller_ex6.html', 'window', 'width=850, height=270');" href="javascript:void(0)">Thumbnail Scroller</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/scrollbar-component/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Slideshow Component Released</title>
		<link>http://flashotaku.com/blog/new-slideshow-component-released/</link>
		<comments>http://flashotaku.com/blog/new-slideshow-component-released/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 13:20:28 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[slideshow]]></category>

		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=92</guid>
		<description><![CDATA[If you liked the first Slideshow component you will absolutely love the new one. The new component is AS3 only and comes with significant performance improvement and new features. Now you can add library assets and DisplayObject instances, besides external content like JPG, SWF etc. You can also add content using Actionscript methods, not necessarily [...]]]></description>
			<content:encoded><![CDATA[<p>If you liked the first Slideshow component you will absolutely love the new one. The new component is AS3 only and comes with significant performance improvement and new features. Now you can add library assets and DisplayObject instances, besides external content like JPG, SWF etc. You can also add content using Actionscript methods, not necessarily using XML. Another new feature is the built-in video player, which can play H.264 encoded files.</p>
<p>Read more about the component <a href="http://flashotaku.com/components/slideshow/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/new-slideshow-component-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using a custom preloader</title>
		<link>http://flashotaku.com/blog/using-a-custom-preloader/</link>
		<comments>http://flashotaku.com/blog/using-a-custom-preloader/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:35:28 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[image gallery]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=75</guid>
		<description><![CDATA[Any of the flash components available at FlashOtaku.com gives you the possibility to create a custom preloader or a temporary clip, to be more precise. The temporary clip will act as a re-placer for the content of the item until the content is completely loaded. By default, a simple temporary clip is created for you [...]]]></description>
			<content:encoded><![CDATA[<p>Any of the <a href="http://flashotaku.com/components/">flash components</a> available at FlashOtaku.com gives you the possibility to create a custom preloader or a temporary clip, to be more precise. The temporary clip will act as a re-placer for the content of the item until the content is completely loaded. By default, a simple temporary clip is created for you with a specified color and transparency and there are also 5 built-in preloaders from which you can chose, but there are times when you want something more suited for your project. In those cases you can create a movie clip and simply tell the component to use that movie clip as a temporary clip.</p>
<p>Below you can see an example where I used a simple movie clip with a rotating star(the animation is created with frames). After creating the movie clip you need to associate it a class (Right-click on the library symbol -&gt; Linkage), TempClip for example, and then pass the name of the class to the component&#8217;s temporaryClipReference property (myInstance.temporaryClipReference = TempClip).</p>
<p>Here&#8217;s the example:</p>
<p><object width="900" height="430" data="http://flashotaku.com/blog_tutorials/grid_temp_clip.swf" type="application/x-shockwave-flash"><param name="src" value="http://flashotaku.com/blog_tutorials/grid_temp_clip.swf" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/using-a-custom-preloader/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding a Tooltip to the StackFlow Component</title>
		<link>http://flashotaku.com/blog/adding-a-tooltip-to-the-stackflow-component/</link>
		<comments>http://flashotaku.com/blog/adding-a-tooltip-to-the-stackflow-component/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 15:41:55 +0000</pubDate>
		<dc:creator>FlashOtaku</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash Components]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[flash component]]></category>

		<category><![CDATA[xml tutorial]]></category>

		<guid isPermaLink="false">http://flashotaku.com/blog/?p=41</guid>
		<description><![CDATA[As promised in the previous tutorial, in this tutorial I will show you how to add a tooltip to one of the FlashOtaku components. I will use the StackFlow component as an example but it is applicable to the other flash components as well.
Here&#8217;s how the final result will look like:

First we need an XML [...]]]></description>
			<content:encoded><![CDATA[<p>As promised in the previous <a href="http://flashotaku.com/blog/carousel-component-with-url-for-each-item/">tutorial</a>, in this tutorial I will show you how to add a tooltip to one of the <a href="http://flashotaku.com/">FlashOtaku components</a>. I will use the <a href="http://flashotaku.com/components/stackflow/">StackFlow</a> component as an example but it is applicable to the other flash components as well.</p>
<p>Here&#8217;s how the final result will look like:</p>
<p><object width="820" height="270" data="http://flashotaku.com/blog_tutorials/stackflow_tooltip.swf" type="application/x-shockwave-flash"><param name="src" value="http://flashotaku.com/blog_tutorials/stackflow_tooltip.swf" /></object></p>
<p>First we need an XML file that will contain the source and the title of each item. To specify the title, I will use the &#8216;title&#8217; attribute but this is not a keyword. You can use any name for the extra attributes you add. The flash component will store all the attributes and then, the API will give you access to the value of those attributes.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">&lt;?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;images&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image1.jpg&quot;</span>  title=<span class="st0">&quot;Image 1 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image2.jpg&quot;</span>  title=<span class="st0">&quot;Image 2 title&quot;</span>/&gt;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image3.jpg&quot;</span>  title=<span class="st0">&quot;Image 3 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image4.jpg&quot;</span>  title=<span class="st0">&quot;Image 4 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image5.jpg&quot;</span>  title=<span class="st0">&quot;Image 5 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image6.jpg&quot;</span>  title=<span class="st0">&quot;Image 6 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image7.jpg&quot;</span>  title=<span class="st0">&quot;Image 7 title&quot;</span>/&gt;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image8.jpg&quot;</span>  title=<span class="st0">&quot;Image 8 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image9.jpg&quot;</span>  title=<span class="st0">&quot;Image 9 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;&lt;image source=<span class="st0">&quot;images/image10.jpg&quot;</span> title=<span class="st0">&quot;Image 10 title&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;/images&gt;</div>
</li>
</ol>
</div>
<p>As I mentioned in the previous tutorial, I can also use Actionscript to specify the data for each item. The Actionscript code should look like this:</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">var</span> myItems:<span class="kw3">Array</span> = <span class="br0">&#91;</span><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image1.jpg&quot;</span>, title:<span class="st0">&quot;Image 1 title&quot;</span><span class="br0">&#125;</span>,</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image2.jpg&quot;</span>, title:<span class="st0">&quot;Image 2 title&quot;</span><span class="br0">&#125;</span>,</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image3.jpg&quot;</span>, title:<span class="st0">&quot;Image 3 title&quot;</span><span class="br0">&#125;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">myStackFlow.<span class="me1">items</span> = myItems;</div>
</li>
</ol>
</div>
<p>or</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">myStackFlow.<span class="me1">addItem</span><span class="br0">&#40;</span><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image1.jpg&quot;</span>, title:<span class="st0">&quot;Image 1 title&quot;</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="me1">addItem</span><span class="br0">&#40;</span><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image2.jpg&quot;</span>, title:<span class="st0">&quot;Image 2 title&quot;</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="me1">addItem</span><span class="br0">&#40;</span><span class="br0">&#123;</span>source:<span class="st0">&quot;images/image3.jpg&quot;</span>, title:<span class="st0">&quot;Image 3 title&quot;</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>Now, create a new symbol and inside the symbol draw a simple tooltip and add a dynamic text field that will display the title. Give the text field an instance name of tooltipText and move the tooltip so that bottom edge of the tooltip&#8217;s arrow is positioned where the registration point of the symbol is.</p>
<p><img class="size-full wp-image-43 alignnone" title="tooltip" src="http://flashotaku.com/blog/wp-content/uploads/2008/12/tooltip.jpg" alt="tooltip drawing" width="230" height="107" /></p>
<p>When you&#8217;re done creating the tooltip, right click on it in the Library, chose Linkage, select Export for Actionscript and in the Class field write Tooltip. This step is necessary in order to be able to use the tooltip in the actionscript code.</p>
<p>The actionscript part is pretty easy, so I&#8217;m simply going to attach the code.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">flashotaku</span>.<span class="kw3">events</span>.<span class="me1">StackFlowEvent</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">import</span> flash.<span class="kw3">events</span>.<span class="kw3">MouseEvent</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// create an instance of the Tooltip</span></div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">var</span> tooltip:Tooltip = <span class="kw2">new</span> Tooltip<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>StackFlowEvent.<span class="me1">ITEM_MOUSE_OVER</span>, tooltipHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>StackFlowEvent.<span class="me1">ITEM_MOUSE_OUT</span>, tooltipHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">myStackFlow.<span class="kw3">addEventListener</span><span class="br0">&#40;</span>StackFlowEvent.<span class="me1">ITEM_CLICK</span>, itemClickHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> itemClickHandler<span class="br0">&#40;</span><span class="kw3">event</span>:StackFlowEvent<span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="co1">// event.index is the index of the clicked item</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="co1">// when an item is clicked, scroll to that item</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;myStackFlow.<span class="me1">select</span><span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">index</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> tooltipHandler<span class="br0">&#40;</span><span class="kw3">event</span>:StackFlowEvent<span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;<span class="kw1">if</span> <span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">type</span> == StackFlowEvent.<span class="me1">ITEM_MOUSE_OVER</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// event.data.title is the value of the title attribute added in the XML file</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addTooltip<span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">data</span>.<span class="me1">title</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;<span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="kw3">event</span>.<span class="kw3">type</span> == StackFlowEvent.<span class="me1">ITEM_MOUSE_OUT</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeTooltip<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> addTooltip<span class="br0">&#40;</span>myText:<span class="kw3">String</span><span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="co1">// add the tooltip to the stage</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;addChild<span class="br0">&#40;</span>tooltip<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;<span class="co1">// set the text property of the tooltipText TextField to the value of the myText parameter</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;tooltip.<span class="me1">tooltipText</span>.<span class="kw3">text</span> = myText;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="co1">// when the mouse moves, move the tooltip</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw3">stage</span>.<span class="kw3">addEventListener</span><span class="br0">&#40;</span><span class="kw3">MouseEvent</span>.<span class="me1">MOUSE_MOVE</span>, mouseMoveHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> removeTooltip<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="co1">// remove the listener</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw3">stage</span>.<span class="me1">removeEventListener</span><span class="br0">&#40;</span><span class="kw3">MouseEvent</span>.<span class="me1">MOUSE_MOVE</span>, mouseMoveHandler<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp;<span class="co1">// remove the tooltip instance from stage</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;removeChild<span class="br0">&#40;</span>tooltip<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> mouseMoveHandler<span class="br0">&#40;</span><span class="kw3">event</span>:<span class="kw3">MouseEvent</span><span class="br0">&#41;</span>:<span class="kw3">void</span></div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;tooltip.<span class="me1">x</span> = mouseX;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;tooltip.<span class="me1">y</span> = mouseY;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>As you can see in this tutorial and also in the previous one, it&#8217;s very easy to add extra features using the new <a href="http://flashotaku.com/">flash components</a>. If you have any questions feel free to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashotaku.com/blog/adding-a-tooltip-to-the-stackflow-component/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
