<?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>Weblenium &#187; Flash</title>
	<atom:link href="http://www.weblenium.com/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weblenium.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Nov 2010 12:31:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ColorToy 2.0 &#8211; the Flash Colour Scheme Generator</title>
		<link>http://www.weblenium.com/2009/05/colortoy-20-the-flash-colour-scheme-generator/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.weblenium.com/2009/05/colortoy-20-the-flash-colour-scheme-generator/#comments</comments>
		<pubDate>Thu, 14 May 2009 14:10:05 +0000</pubDate>
		<dc:creator>phorner</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[colour scheme]]></category>
		<category><![CDATA[colours]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[rgb]]></category>

		<guid isPermaLink="false">http://www.weblenium.com/?p=452</guid>
		<description><![CDATA[If you are like me and have no idea what colour schemes look good or not, then this small Flash application is for you. ColorToy 2.0 allows you to enter your own RGB values, and it will display eight other colours that can be used in conjunction with the colour you specify. Great for creating [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me and have no idea what colour schemes look good or not, then this small Flash application is for you. <a href="http://www.colortoy.net/" target="_blank">ColorToy 2.0</a> allows you to enter your own RGB values, and it will display eight other colours that can be used in conjunction with the colour you specify. Great for creating themes, or for those like me without any graphical skills whatsoever.</p>
<p><img class="size-full wp-image-454 alignnone" title="ColorToy 2.0" src="http://www.weblenium.com/wp-content/uploads/2009/05/colortoy.jpg" alt="ColorToy 2.0" width="580" height="166" /></p>
<p>If you don&#8217;t have a particular colour that you want to base your design on, or you are just searching for inspiration, you can click on the &#8220;Random&#8221; button and it will randomly generate a colour for you, along with the accompanying matching colours.</p>
<p>For more information: <a href="http://www.colortoy.net/" target="_blank">ColorToy 2.0</a></p>
<img src="http://www.weblenium.com/?ak_action=api_record_view&id=452&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.weblenium.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.weblenium.com/2009/05/colortoy-20-the-flash-colour-scheme-generator/feed/</wfw:commentRss>
		<slash:comments>1437</slash:comments>
		</item>
		<item>
		<title>Reading HTML tags from XML into Flash</title>
		<link>http://www.weblenium.com/2009/05/reading-html-tags-from-xml-into-flash/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.weblenium.com/2009/05/reading-html-tags-from-xml-into-flash/#comments</comments>
		<pubDate>Thu, 07 May 2009 18:02:29 +0000</pubDate>
		<dc:creator>phorner</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.weblenium.com/?p=363</guid>
		<description><![CDATA[One problem that many people experience when working with XML and Flash is getting HTML tags inside the XML to be read in and rendered in Flash. Reading XML that contains HTML tags is a very common thing to do these days, as Flash gets used more and more to create applications since the release [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.weblenium.com/wp-content/uploads/2009/05/flashplayer_10_small.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-full wp-image-388 alignleft" title="Flash" src="http://www.weblenium.com/wp-content/uploads/2009/05/flashplayer_10_small.jpg" alt="Flash" width="84" height="83" /></a>One problem that many people experience when working with XML and Flash is getting HTML tags inside the XML to be read in and rendered in Flash. Reading XML that contains HTML tags is a very common thing to do these days, as Flash gets used more and more to create applications since the release of Adobe AIR. So here is a tutorial showing you the basics of how to do it.</p>
<p><span style="text-decoration: underline;"><strong>XML</strong></span></p>
<p>The trick to getting the XML parser in Flash to ignore the HTML tags is to encapsulate the text string containing the HTML tags using <strong>CDATA</strong>. Below is an example:</p>
<pre class="brush: xml; ">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;section&gt;
&lt;content&gt;&lt;![CDATA[Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&lt;br&gt;&lt;br&gt;Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;br&gt;&lt;br&gt;&lt;font color=&quot;#0099FF&quot;&gt;Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&lt;/font&gt;&lt;br&gt;&lt;br&gt;Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;br&gt;&lt;br&gt;List:&lt;ul&gt;&lt;li&gt;Item 1&lt;/li&gt;&lt;li&gt;Item 2&lt;/li&gt;&lt;li&gt;Item 3&lt;/li&gt;&lt;/ul&gt;]]&gt;&lt;/content&gt;
&lt;/section&gt;
</pre>
<p>By encapsulating the text string inside <strong>&lt;![CDATA[]]&gt;</strong>, this tells Flash to just treat everything inside the <strong>CDATA </strong>tag as a pure string, and to ignore any HTML tags that it may contain.</p>
<p><span style="text-decoration: underline;"><strong>Actionscript</strong></span></p>
<p>Once this string is read into Flash and assigned to a variable (in my example, the variable name is <strong>htmlContent</strong>), you will then most likely need to display this text. Create a text field on the stage, and select the &#8220;<strong>Render text as HTML</strong>&#8221; button in the text field properties. Give the text field an instance name (e.g. &#8220;contents_txt&#8221;). Then assign the variable &#8220;<strong>htmlContent</strong>&#8221; to the &#8220;<strong>htmlText</strong>&#8221; property of the text field.</p>
<pre class="brush: js; ">
contentXML.onLoad = function() {
...
contents_txt.htmlText = htmlContent;
}
</pre>
<p>By assigning the string to &#8220;<strong>htmlText</strong>&#8220;, this tells Flash to then render the text inside the text field using the HTML tags. Simple!</p>
<p>I&#8217;ve created example files for you to download and look at. AS2 version is <a href="http://www.weblenium.com/download/Flash-XML-HTML_AS2.zip#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">here</a> and AS3 version is <a href="http://www.weblenium.com/download/Flash-XML-HTML_AS3.zip#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">here</a>.</p>
<p>Hope this helps some of you out there to get those HTML tags rendering in Flash.</p>
<img src="http://www.weblenium.com/?ak_action=api_record_view&id=363&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.weblenium.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.weblenium.com/2009/05/reading-html-tags-from-xml-into-flash/feed/</wfw:commentRss>
		<slash:comments>2123</slash:comments>
		</item>
		<item>
		<title>Multiple file upload using jQuery and Flash</title>
		<link>http://www.weblenium.com/2009/05/multiple-file-upload-using-jquery-and-flash/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.weblenium.com/2009/05/multiple-file-upload-using-jquery-and-flash/#comments</comments>
		<pubDate>Fri, 01 May 2009 17:39:23 +0000</pubDate>
		<dc:creator>phorner</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.weblenium.com/?p=246</guid>
		<description><![CDATA[I was recently searching for a solution that would allow people to upload photos of their homes on Golf Home Exchange. The standard upload method using HTML forms and PHP was not good enough as their was no indication of progress. As a result, the users thought the system wasn&#8217;t responding or something had gone [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently searching for a solution that would allow people to upload photos of their homes on <a href="http://www.golfhome-exchange.com" target="_blank">Golf Home Exchange</a>. The standard upload method using HTML forms and PHP was not good enough as their was no indication of progress. As a result, the users thought the system wasn&#8217;t responding or something had gone wrong when simply it was taking a while to upload the image. Many simply gave up and never finished the registration process.</p>
<p>Luckily I stumbled across <a href="http://www.uploadify.com/" target="_blank">Uploadify</a>, developed by Ronnie Garcia. Uploadify is a jQuery plugin that allows the easy integration of multiple (or single) file uploads. By default, the standard File Upload dialog in browsers only allows for single selection of files. To circumvent this issue and enable multiple file uploading, Flash is used.</p>
<p>To get started, you will need to download the <a href="http://www.uploadify.com/_files/jquery.uploadify-v1.6.2.zip">jquery.uploadify-v1.6.2.zip</a> package, then unzip and upload the files to your website.</p>
<p>Then in your HTML, add this code:</p>
<pre class="brush: html; ">
&lt;body&gt;
&lt;input type=&quot;file&quot; name=&quot;fileInput&quot; id=&quot;fileInput&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
$(&#039;#fileInput&#039;).fileUpload ({
&#039;uploader&#039;  : &#039;uploader.swf&#039;,
&#039;script&#039;    : &#039;upload.php&#039;,
&#039;cancelImg&#039; : &#039;cancel.png&#039;,
&#039;auto&#039;      : true,
&#039;folder&#039;    : &#039;/uploads&#039;
});
});
&lt;/script&gt;
&lt;/body&gt;
</pre>
<p>This will set up Uploadify in it&#8217;s basic form. There are a ton of parameters you can set, plus event listeners (e.g. <strong>onAllComplete</strong> &#8211; triggers when all the files in the queue have been uploaded).</p>
<p>You can provide your own styled upload button and specifying the path to it by using the <strong>buttonImg</strong> parameter. If you want to customise the look of the upload progress bars, you will need to go into the Uploadify FLA and modify that manually.</p>
<p><img class="alignleft size-full wp-image-260" title="Uploadify" src="http://www.weblenium.com/wp-content/uploads/2009/05/fileupload.jpg" alt="Uploadify" width="581" height="323" /></p>
<p>You can also specify whether multiple files upload simultaneously or one at a time.</p>
<p>The <strong>script</strong> parameter allows you to specify your server side code that gets executed once a file has finished uploading. The example provided is PHP but you could use any backend development  language.</p>
<p>There is only one downside to Uploadify, and that is that it needs Flash Player installed. If a user doesn&#8217;t have Flash Player installed, then it won&#8217;t work. I&#8217;m still looking for a File Upload solution for instances where the user doesn&#8217;t have Flash Player installed. Can anyone point me in the right direction?</p>
<p>Apart from this small issue, Uploadify is a solid alternative to using the standard File Upload dialog.</p>
<p>For more information and documentation: <a href="http://www.uploadify.com/" target="_blank">Uploadify</a></p>
<img src="http://www.weblenium.com/?ak_action=api_record_view&id=246&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.weblenium.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.weblenium.com/2009/05/multiple-file-upload-using-jquery-and-flash/feed/</wfw:commentRss>
		<slash:comments>4040</slash:comments>
		</item>
		<item>
		<title>Tiny and fast Tweening Platform for Flash Actionscript</title>
		<link>http://www.weblenium.com/2009/04/tiny-and-fast-tweening-platform-for-flash-actionscript/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.weblenium.com/2009/04/tiny-and-fast-tweening-platform-for-flash-actionscript/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 18:18:43 +0000</pubDate>
		<dc:creator>phorner</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[tweening]]></category>
		<category><![CDATA[tweenlite]]></category>
		<category><![CDATA[tweenmax]]></category>

		<guid isPermaLink="false">http://www.weblenium.com/?p=116</guid>
		<description><![CDATA[To be able to use Flash to it&#8217;s fullest, you need to be able to control animation (or tweening as it&#8217;s better known) from within Actionscript. There have been many solutions these last few years, with Tweener being the most well known and popular. Now comes a faster and smaller tweening platform: TweenLite. Written by [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-129" title="GreenSock TweenLite/Max" src="http://www.weblenium.com/wp-content/uploads/2009/04/greensock_logo.jpg" alt="greensock_logo" width="60" height="61" />To be able to use Flash to it&#8217;s fullest, you need to be able to control animation (or tweening as it&#8217;s better known) from within Actionscript. There have been many solutions these last few years, with Tweener being the most well known and popular. Now comes a faster and smaller tweening platform: TweenLite. Written by Jack Doyle, this new tweening platform has taken everyone by surprise.</p>
<p>It comes in two different versions: TweenLite and TweenMax. The difference between the two is basically the level of functionality and the amount of features (<a href="http://blog.greensock.com/features/" target="_blank">TweenLite/Max features</a>). TweenLite has less functionality and features, and therefore is smaller in file size (5k with default plugins). TweenLite is perfect for your more basic projects. TweenMax, has far more functionality and features, but the offset is the increased file size (14k with default plugins).</p>
<p>To keep file size small, TweenLite and TweenMax are broken up into plugins. Each plugin contains certain features like filter blurring, color transformation and bezier tweening to name a few. The great thing about using plugins is that you only include the plugins that you need to use for your project. This reduces your Flash file size and also helps speed up tweening.</p>
<p>TweenLite supports both AS2 and AS3. AS2 support is great for those who still need to work with Flash Player installs earlier than Flash Player 9, though obviously the speed is much slower. The AVM2 engine (AS3) is much more efficient in performance, and you can see this in the speed tests on Jack&#8217;s site.</p>
<p>Speaking of performance, Jack has also created a Speed Comparison which compares all the major Tweening Platforms against TweenLite. TweenLite is incredibly fast. You can see the Speed Comparison <a href="http://blog.greensock.com/tweening-speed-test/" target="_blank">here</a>.</p>
<p>The use of TweenLite is limited to projects and games that don&#8217;t charge end users money. You can also donate to help keep Jack in development of TweenLite. The amount you donate determines which plugins you can use in your projects as not all plugins come standard with TweenLite/Max.</p>
<p>Having read Jack&#8217;s blog recently, it seems that several Tweening Platforms (Twease and gTween) will be merging with TweenLite/Max. This is great news as TweenLite will benefit from the coorporation of the developers.</p>
<p>The latest stable version is Version 10, with Version 11 Beta in the works. Some of the new features from Version 11 Beta are:</p>
<ul>
<li>the addition of the <strong>&#8220;TimelineLite&#8221;</strong> and <strong>&#8220;TimelineMax&#8221;</strong> classes. They make building and managing sequences/groups of tweens simple.</li>
<li> &#8220;<strong>useFrames</strong>&#8221; feature.</li>
<li>a new <strong>&#8220;motionBlur&#8221; plugin</strong> that applies a realistic directional blur based on the velocity and angle of a DisplayObject&#8217;s x/y movement.</li>
<li>a new <strong>&#8220;dynamicProps&#8221; plugin</strong> that allows you to associate a function with a property so that every time the tween is updated, it calls that function to get the end value for the associated property.</li>
</ul>
<p>Having used TweenLite, I can vouch for it&#8217;s speed and size. All the signs for this project look very promising and I look forward to seeing how it develops over the coming months. Great work Jack!</p>
<p>For more information: <a href="http://blog.greensock.com/" target="_blank">GreenSock Tweening Platform</a></p>
<img src="http://www.weblenium.com/?ak_action=api_record_view&id=116&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.weblenium.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.weblenium.com/2009/04/tiny-and-fast-tweening-platform-for-flash-actionscript/feed/</wfw:commentRss>
		<slash:comments>1017</slash:comments>
		</item>
	</channel>
</rss>

