<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flash Dummy</title>
	<atom:link href="http://flashdummy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashdummy.wordpress.com</link>
	<description>Adrian Şule</description>
	<lastBuildDate>Tue, 30 Oct 2007 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flashdummy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Flash Dummy</title>
		<link>http://flashdummy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flashdummy.wordpress.com/osd.xml" title="Flash Dummy" />
	<atom:link rel='hub' href='http://flashdummy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ARP Framework (Aral Balkan)</title>
		<link>http://flashdummy.wordpress.com/2007/10/30/arp-framework-aral-balkan/</link>
		<comments>http://flashdummy.wordpress.com/2007/10/30/arp-framework-aral-balkan/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 10:00:00 +0000</pubDate>
		<dc:creator>shull</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[Actionscript 3.0]]></category>

		<guid isPermaLink="false">http://flashdummy.wordpress.com/2007/10/30/arp-framework-aral-balkan/</guid>
		<description><![CDATA[Not recently i discovered Aral Balkan&#8217;s: ARP Framework, which i consider great for any Flash application that scale from medium to BIG.  I won&#8217;t talk more about it, and just pass you the links so you can find out for your self, but keep in mind is all open source baby: http://osflash.org/projects/arp http://www.ariaware.com/products/arp/downloads/ARP_2.02_Setup.exe -&#62; Windows Installer (contains the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=9&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Not recently i discovered Aral Balkan&#8217;s: ARP Framework, which i consider great for any Flash application that scale from medium to BIG.</p>
<p> I won&#8217;t talk more about it, and just pass you the links so you can find out for your self, but keep in mind is all open source baby:</p>
<p><a href="http://osflash.org/projects/arp">http://osflash.org/projects/arp</a></p>
<p><a href="http://www.ariaware.com/products/arp/downloads/ARP_2.02_Setup.exe">http://www.ariaware.com/products/arp/downloads/ARP_2.02_Setup.exe</a> -&gt; Windows Installer (contains the Pizza Service example application for AS2)</p>
<p><a href="http://www.ariaware.com/products/arp/downloads/ARP_2.02.zip">http://www.ariaware.com/products/arp/downloads/ARP_2.02.zip</a> -&gt; All Other Platforms</p>
<p><a href="http://www.ariaware.com/products/arp/docs/arp.htm">http://www.ariaware.com/products/arp/docs/arp.htm</a>  -&gt; Online Manual</p>
<p><a href="http://aralbalkan.com/642">http://aralbalkan.com/642</a>  -&gt; A preview of the Pizza Service Application in Flex (AS3)</p>
<p><a href="http://amfphp.org/">http://amfphp.org/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashdummy.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashdummy.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashdummy.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashdummy.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashdummy.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=9&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashdummy.wordpress.com/2007/10/30/arp-framework-aral-balkan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54874cc2b0bb98cc36fb3edd356cf40b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shull</media:title>
		</media:content>
	</item>
		<item>
		<title>WEB 2.0 Buttons in ActionScript</title>
		<link>http://flashdummy.wordpress.com/2007/09/25/web-20-buttons-in-actionscript/</link>
		<comments>http://flashdummy.wordpress.com/2007/09/25/web-20-buttons-in-actionscript/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 08:52:18 +0000</pubDate>
		<dc:creator>shull</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://flashdummy.wordpress.com/2007/09/25/web-20-buttons-in-actionscript/</guid>
		<description><![CDATA[Probably everyone knows about the new WEB 2.0 standards (if not go here and enlighten your self), so after haveing a look on a current existing model of a button that sticks with this styling standards, here is the code for creating your own WEB 2.0 Button useing ActionScript: /* WEB 2.0 BUTTON  * created [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=8&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Probably everyone knows about the new WEB 2.0 standards (if not go here and enlighten your self), so after haveing a look on a current existing model of a button that sticks with this styling standards, here is the code for creating your own WEB 2.0 Button useing ActionScript:</p>
<p>/* WEB 2.0 BUTTON<br />
 * created by: Adrian Sule<br />
 * based on: <a href="http://www.lukamaras.com/tutorials/actionscript/amazing-actionscript-designed-button.html">http://www.lukamaras.com/tutorials/actionscript/amazing-actionscript-designed-button.html</a><br />
 * date: September 25, 2007<br />
 */</p>
<p>//import class for glowing<br />
import flash.filters.GlowFilter;<br />
//variables for gradient<br />
var fillType:String = &#8220;linear&#8221;;<br />
var colors:Array = [0xFAD4DB, 0xEC748B, 0xC13A59, 0xA81230];<br />
var alphas:Array = [100, 100, 100, 100];<br />
var ratios:Array = [0, 126, 127, 255];<br />
var matrix:Object = {matrixType:&#8221;box&#8221;, x:0, y:0, w:80, h:30, r:90/180*Math.PI};<br />
//create button<br />
this.createEmptyMovieClip(&#8220;myButton1&#8243;, this.getNextHighestDepth());<br />
myButton1._x = 200;<br />
myButton1._y = 100;<br />
//create background<br />
myButton1.createEmptyMovieClip(&#8220;buttonBkg&#8221;, myButton1.getNextHighestDepth());<br />
myButton1.buttonBkg.lineStyle(0, 0x820F26, 60, true, &#8220;none&#8221;, &#8220;square&#8221;, &#8220;round&#8221;);<br />
myButton1.buttonBkg.beginGradientFill(fillType, colors, alphas, ratios, matrix);<br />
myButton1.buttonBkg.lineTo(120, 0);<br />
myButton1.buttonBkg.lineTo(120, 30);<br />
myButton1.buttonBkg.lineTo(0, 30);<br />
myButton1.buttonBkg.lineTo(0, 0);<br />
myButton1.buttonBkg.endFill()<br />
myButton1.createTextField(&#8220;labelText&#8221;, myButton1.getNextHighestDepth(), 0, 5, myButton1._width, 24);<br />
//text style<br />
var myFormat:TextFormat = new TextFormat();<br />
myFormat.align = &#8220;center&#8221;;<br />
//it is necesary that you have inside your library the<br />
//Tahoma font with a linkage itentifier name of &#8220;Tahoma&#8221;<br />
//you can achieve this by right clicking over the library and <br />
//chooseing &#8216;New Font&#8217; and afterwards right clicking again over the<br />
//created font and going to Linkage and putting the &#8220;Tahoma&#8221; name as an Identifier<br />
myFormat.font = &#8220;Tahoma&#8221;;<br />
myFormat.size = 13;<br />
myFormat.color = 0xFFFFFF;<br />
myButton1.labelText.text = &#8220;webdesign&#8221;;<br />
myButton1.labelText.embedFonts = true;<br />
myButton1.labelText.selectable = false;<br />
myButton1.labelText.antiAliasType = &#8220;advanced&#8221;;<br />
myButton1.labelText.setTextFormat(myFormat);<br />
//text glow<br />
var labelGlow:GlowFilter = new GlowFilter(0xFFFFFF, .30, 4, 4, 3, 3);<br />
var labelFilters:Array = [labelGlow];<br />
myButton1.labelText.filters = labelFilters;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashdummy.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashdummy.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashdummy.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashdummy.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashdummy.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=8&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashdummy.wordpress.com/2007/09/25/web-20-buttons-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54874cc2b0bb98cc36fb3edd356cf40b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shull</media:title>
		</media:content>
	</item>
		<item>
		<title>Shull Site</title>
		<link>http://flashdummy.wordpress.com/2007/09/17/shull/</link>
		<comments>http://flashdummy.wordpress.com/2007/09/17/shull/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 13:27:28 +0000</pubDate>
		<dc:creator>shull</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://flashdummy.wordpress.com/2007/09/17/shull/</guid>
		<description><![CDATA[Here is a site i&#8217;ve been working on for a while http://www.shull.ro<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=7&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a site i&#8217;ve been working on for a while</p>
<p><a href="http://www.shull.ro/">http://www.shull.ro</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashdummy.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashdummy.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashdummy.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashdummy.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashdummy.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=7&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashdummy.wordpress.com/2007/09/17/shull/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54874cc2b0bb98cc36fb3edd356cf40b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shull</media:title>
		</media:content>
	</item>
		<item>
		<title>Playlist functionality for Mp3Player</title>
		<link>http://flashdummy.wordpress.com/2007/09/17/playlist-functionality-for-mp3player/</link>
		<comments>http://flashdummy.wordpress.com/2007/09/17/playlist-functionality-for-mp3player/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 13:16:27 +0000</pubDate>
		<dc:creator>shull</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>

		<guid isPermaLink="false">http://flashdummy.wordpress.com/2007/09/17/playlist-functionality-for-mp3player/</guid>
		<description><![CDATA[Yesterday i runned into a mp3 tutorial on ultrashock.com made by Julian Wilson &#8211; Neverrain.net. Which is a simple application that can load and play mp3&#8242;s with simple buttons functionality (of play/pause/stop/next/previous) and a nice volume control. Here is the link to the tutorial: http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/showthread.php?s=&#38;postid=708395 This application had no playlist functionality, so i added one. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=5&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://shullflash.blogspot.com/2007/08/playlist-functionality-for-mp3player.html"></a></h3>
<p class="post-body entry-content">Yesterday i runned into a mp3 tutorial on ultrashock.com made by Julian Wilson &#8211; Neverrain.net. Which is a simple application that can load and play mp3&#8242;s with simple buttons functionality (of play/pause/stop/next/previous) and a nice volume control.<br />
Here is the link to the tutorial:<br />
<a href="http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/showthread.php?s=&amp;postid=708395"><font color="#5588aa">http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/showthread.php?s=&amp;postid=708395</font></a></p>
<p>This application had no playlist functionality, so i added one.<br />
Here is the code with the mp3player and playlist (i won&#8217;t go thru explaining how it works, you can find that on the utltrashock tutorial):</p>
<blockquote><p>import Library;<br />
import mx.transitions.Tween;<br />
import mx.transitions.easing.*;</p>
<p>class MusicPlayer<br />
{<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// Class Properties<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>//Target/Path to the player movieclip.<br />
private var __path:MovieClip;<br />
//As a shortcut to XML I&#8217;ve decided to define track(s) information in an object.<br />
private var __tracks:Object;<br />
//Allows for use of Sound class methods, such as attachSound and start.<br />
//You can&#8217;t listen to audio without a Sound object.<br />
private var __music:Sound;<br />
//Current track position (in milliseconds)<br />
private var __position:Number;<br />
//Current track volume (on a ratio of 0 to 100). Without this property each<br />
//track would automatically start with a volume of 100.<br />
private var __volume:Number = 100;<br />
//Used to determine if pause has been executed or not. If so play will<br />
//perform different actions to start from the paused position.<br />
private var __paused:Boolean = false;<br />
//ID of current track<br />
private var __trackid:Number;<br />
private var listTrackId:Number</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// Constructor<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>//Every classes constructor is automatically run when an instance<br />
//of the class is created.<br />
function MusicPlayer(path:MovieClip, tracks:Object, init:Number)<br />
{<br />
//Sets constructor variables to the corresponding class properties.<br />
__path = path;<br />
__tracks = tracks;<br />
__trackid = (init-1);</p>
<p>//Attaches actions to all UI controls.<br />
setupUI();<br />
//Begins playing the initial track.<br />
loadNextTrack();<br />
//Constantly updates scale of position and load bar.<br />
positionBar();<br />
loadBar();<br />
loadPlaylist()<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// Class methods<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>private function changeVolume():Void<br />
{<br />
var target = __path.volume;<br />
//Sets volume property to the ratio between where the bar was pressed and it&#8217;s total width.<br />
__volume = (target._xmouse/target._width)*100;<br />
//Slides bar to corresponding scale based on above ratio.<br />
var tween = new Tween(target.mask, &#8220;_xscale&#8221;, Back.easeOut, target.mask._xscale, __volume, 10);<br />
var slider = new Tween(__path.slider_btn, &#8220;_x&#8221;, Back.easeOut, __path.slider_btn._x, (__path.volume._x+target._xmouse)-(__path.slider_btn._width/2), 10);<br />
//Updates volume of the track.<br />
__music.setVolume(__volume);<br />
}<br />
private function setupUI():Void<br />
{<br />
//Attaches onRollOver events for all UI controls.<br />
//A loop is used because all UI events excluding onRelease are the same.<br />
for(var i in __path.controls)<br />
{<br />
__path.controls[i].onRollOver = function()<br />
{<br />
this.gotoAndStop(&#8220;hover&#8221;);<br />
}<br />
__path.controls[i].onRollOut = function()<br />
{<br />
this.gotoAndStop(&#8220;up&#8221;);<br />
}<br />
}</p>
<p>__path.controls.play_btn.onRelease = __path.controls.play_btn.onReleaseOutside = Library.delegate(this, &#8220;playTrack&#8221;);<br />
__path.controls.pause_btn.onRelease = __path.controls.pause_btn.onReleaseOutside = Library.delegate(this, &#8220;pauseTrack&#8221;);<br />
//Plays the previous or next track. The next track is determined using the getTrackID method.<br />
__path.controls.prev_btn.onRelease = __path.controls.prev_btn.onReleaseOutside = Library.delegate(this, &#8220;loadPrevTrack&#8221;);<br />
__path.controls.next_btn.onRelease = __path.controls.next_btn.onReleaseOutside = Library.delegate(this, &#8220;loadNextTrack&#8221;);<br />
__path.volume.onPress = Library.delegate(this, &#8220;changeVolume&#8221;);<br />
}<br />
private function pauseTrack():Void<br />
{<br />
__paused = true;<br />
updateUIStatus();<br />
//Remembers position when paused. This is needed for when the track is re-started<br />
//so that it knows what position to start from.<br />
__position = __music.position;<br />
__music.stop();<br />
}<br />
private function getTrackID(direction:Number):Number<br />
{<br />
var id = __trackid;<br />
//Adds direction (-1 is previous and 1 is next) to the current track ID.<br />
id += direction;<br />
//Instead of stopping at the first or last track, loop.<br />
if(id &lt; 0)<br />
{<br />
//Sets ID to the last track ID if less than zero.<br />
id += __tracks["titles"].length;<br />
}<br />
else<br />
{<br />
//Sets ID to the first track ID if greater than total tracks.<br />
id %= __tracks["titles"].length;<br />
}<br />
return id;<br />
}<br />
//Updates status of the play and pause buttons according to if paused or not<br />
private function updateUIStatus():Void<br />
{<br />
if(__paused)<br />
{<br />
__path.controls.play_btn.enabled = true;<br />
__path.controls.play_btn.gotoAndStop(&#8220;up&#8221;);<br />
__path.controls.pause_btn.gotoAndStop(&#8220;hover&#8221;);<br />
__path.controls.pause_btn.enabled = false;<br />
}<br />
else<br />
{<br />
__path.controls.pause_btn.enabled = true;<br />
__path.controls.pause_btn.gotoAndStop(&#8220;up&#8221;);<br />
__path.controls.play_btn.gotoAndStop(&#8220;hover&#8221;);<br />
__path.controls.play_btn.enabled = false;<br />
}<br />
}<br />
private function playTrack():Void<br />
{<br />
//Checks if track is paused. If so start from pause position, otherwise start from the beginning.<br />
if(__paused)<br />
{<br />
__music.start(__position/1000);<br />
__paused = false;<br />
updateUIStatus();<br />
}<br />
else<br />
{<br />
__music.start();<br />
}<br />
}<br />
private function beginLoad(id:Number):Void<br />
{<br />
__trackid = id;<br />
//Resets sound. Without this position and duration will output the values<br />
//from the first track loaded.<br />
__music = new Sound();<br />
//When track is finished playing, play the next one.<br />
__music.onSoundComplete = Library.delegate(this, &#8220;loadNextTrack&#8221;);<br />
//Starts streaming track<br />
__music.loadSound(__tracks["urls"][id], true);<br />
__music.setVolume(__volume);<br />
__paused = false;<br />
updateUIStatus();</p>
<p>//Populates title and artist textfields with new track data.<br />
__path.title_txt.text = __tracks["titles"][id].toUpperCase();<br />
__path.artist_txt.text = __tracks["artists"][id].toUpperCase();<br />
//Resets position and load bar scale.<br />
__path.track.mask._xscale = __path.track.load_mask._xscale = 0;</p>
<p>__path.playlist.selectedIndex = id<br />
}<br />
private function loadNextTrack():Void<br />
{<br />
//Starts loging the next track. The next tracks ID is processed by the getTrackID<br />
//method to enable looping.<br />
beginLoad(getTrackID(1));<br />
}<br />
private function loadPrevTrack():Void<br />
{<br />
beginLoad(getTrackID(-1));<br />
}<br />
private function positionBar():Void<br />
{<br />
//Constantly updates bar scale.<br />
__path.track.mask.onEnterFrame = Library.delegate(this, &#8220;updatePositionBar&#8221;);<br />
}<br />
private function updatePositionBar():Void<br />
{<br />
//Finds percentage loaded of the track loading<br />
var percent = (__music.getBytesLoaded()/__music.getBytesTotal())*100;<br />
if(percent &gt; 0)<br />
{<br />
__path.track.mask._xscale = __music.position/(__music.duration/percent);<br />
}<br />
}<br />
private function loadBar():Void<br />
{<br />
__path.track.load_mask.onEnterFrame = Library.delegate(this, &#8220;updateLoadBar&#8221;);<br />
}<br />
private function updateLoadBar():Void<br />
{<br />
var percent = (__music.getBytesLoaded()/__music.getBytesTotal())*100;<br />
if(percent &gt; 0)<br />
{<br />
__path.track.load_mask._xscale = percent;<br />
}<br />
}<br />
//Returns ID of the current track playing.<br />
public function get trackid()<br />
{<br />
return __trackid;<br />
}</p>
<p>private function loadPlaylist()<br />
{<br />
playlistStyle()<br />
// adds a default icon to the list&#8217;s items (you need to have an mc in the library with an instance nam of &#8220;playlistIcon&#8221;)<br />
//playlist.defaultIcon = &#8220;playlistIcon&#8221;</p>
<p>// populate the playlist<br />
for(var i:Number=0; i&lt;__tracks["titles"].length; i++)<br />
{<br />
var trackInfo:String = __tracks["artists"][i] + &#8221; &#8211; &#8221; + __tracks["titles"][i];<br />
__path.playlist.addItem(trackInfo, i)<br />
}</p>
<p>// create listener to detect change in the list<br />
var owner:MusicPlayer = this<br />
var listListener:Object = new Object();<br />
listListener.change = function(evt_obj:Object)<br />
{<br />
owner.listTrackId = evt_obj.target.selectedIndex<br />
owner.playlistSelectedTrack()<br />
}<br />
__path.playlist.addEventListener(&#8220;change&#8221;, listListener)</p>
<p>// select initial track<br />
__path.playlist.selectedIndex = 0</p>
<p>}</p>
<p>private function playlistSelectedTrack()<br />
{<br />
beginLoad(listTrackId)<br />
}</p>
<p>private function playlistStyle()<br />
{<br />
// adds style to the playlist<br />
var arrListColors:Array = new Array(0xA3E3FE, 0xD5F2FF)<br />
__path.playlist.alternatingRowColors = arrListColors<br />
__path.playlist.rollOverColor = 0xFFFF2B<br />
__path.playlist.selectionColor = 0x008ECC<br />
}<br />
}</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashdummy.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashdummy.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashdummy.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashdummy.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashdummy.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=5&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashdummy.wordpress.com/2007/09/17/playlist-functionality-for-mp3player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54874cc2b0bb98cc36fb3edd356cf40b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shull</media:title>
		</media:content>
	</item>
		<item>
		<title>Special Characters Fix</title>
		<link>http://flashdummy.wordpress.com/2007/09/17/special-characters-fix/</link>
		<comments>http://flashdummy.wordpress.com/2007/09/17/special-characters-fix/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 13:16:16 +0000</pubDate>
		<dc:creator>shull</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>

		<guid isPermaLink="false">http://flashdummy.wordpress.com/2007/09/17/special-characters-fix/</guid>
		<description><![CDATA[Have you ever tried useing inside your xml characters like: &#8220;ê&#8221;, &#8220;ñ&#8221;, &#8220;ü&#8221;, and so on&#8230;. ? If you have an xml that contains that sort of characters, you might find your self wondering why they won&#8217;t show up inside your text fields when you publish your project. It happened to me, and found a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=6&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried useing inside your xml characters like: &#8220;ê&#8221;, &#8220;ñ&#8221;, &#8220;ü&#8221;, and so on&#8230;. ?</p>
<p>If you have an xml that contains that sort of characters, you might find your self wondering why they won&#8217;t show up inside your text fields when you publish your project. It happened to me, and found a solution for this, by useing in stead html entities replacements that you can find here: <a href="http://www.w3schools.com/tags/ref_entities.asp">http://www.w3schools.com/tags/ref_entities.asp</a></p>
<p>And don&#8217;t forget to have your text fields read html text (yourTextField.html = true; yourTextField.htmlText  = stringTextFromYourXml), and also embed your font (txt.embedFonts = true)</p>
<p>So after finding the apropriate html replacement for the character ü (which is ü), my XML sample tag &#8220;&lt;my_tag&gt;Shüll&lt;/my_tag&gt;&#8221; would become &lt;my_tag&gt;Shüll&lt;/my_tag&gt;</p>
<p>But still it won&#8217;t work, because Flash at compile time it transformes the &#8220;&amp;&#8221; character from your &#8221; ü &#8221; replacement, to &#8220;&amp;&#8221;. To hack this up you should have a method that searches for  &#8221; &amp; &#8221; in your text string and replaces it back with &#8220;&amp;&#8221;.</p>
<p>Here are the two helpfull methods:</p>
<p> public static function replace(str:String,find:String,replace:String):String<br />
 {<br />
  var index:Number;<br />
  while(str.indexOf(find)!=-1)<br />
  {<br />
   index= str.indexOf(find);<br />
   str = str.substr(0,index) + replace + str.substr(index + find.length);<br />
  }<br />
  return str;<br />
 }</p>
<p>and</p>
<p>  public static function htmlReplace(str:String):String<br />
 {<br />
  str = replace(str,&#8221;&amp;&#8221;,&#8221;&amp;&#8221;);<br />
  str = replace(str,&#8221;"&#8221;,&#8221;&#8216;&#8221;);<br />
  str = replace(str,&#8221;&gt;&#8221;,&#8221;&gt;&#8221;);<br />
  str = replace(str,&#8221;&lt;&#8221;,&#8221;&lt;&#8221;);<br />
  <br />
  return str;<br />
 }</p>
<p>If let&#8217;s say &#8220;yourTextField&#8221; is the texfield instance and &#8220;stringTextFromXml&#8221; is the string inside which you keep your text content from &lt;my_tag&gt;&lt;/my_tag&gt;, then here is how you use the code: yourTextField.htmlText = htmlReplace(stringTextFromYourXml)</p>
<p>You should now see &#8220; Shüll &#8221; inside you text field, instead of &#8221; Shüll &#8220;, which is what we were after.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashdummy.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashdummy.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashdummy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashdummy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashdummy.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashdummy.wordpress.com&amp;blog=1735572&amp;post=6&amp;subd=flashdummy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashdummy.wordpress.com/2007/09/17/special-characters-fix/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54874cc2b0bb98cc36fb3edd356cf40b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">shull</media:title>
		</media:content>
	</item>
	</channel>
</rss>
