<?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>Breathing Spring &#187; Flash</title>
	<atom:link href="http://breathing-spring.com/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://breathing-spring.com</link>
	<description></description>
	<lastBuildDate>Wed, 04 Aug 2010 11:22:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clearing XML Caching in Flash</title>
		<link>http://breathing-spring.com/clearing-xml-caching-in-flash/</link>
		<comments>http://breathing-spring.com/clearing-xml-caching-in-flash/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 06:08:57 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/clearing-xml-caching-in-flash/</guid>
		<description><![CDATA[the simplest way is to load it that way
xml.load("xmlFile.xml?"+Math.random());
since it will think that the file is new file each time&#8230;kinda not bad
]]></description>
			<content:encoded><![CDATA[<p>the simplest way is to load it that way</p>
<p><code>xml.load("xmlFile.xml?"+Math.random());</code></p>
<p>since it will think that the file is new file each time&#8230;kinda not bad</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/clearing-xml-caching-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial of Text Feilds inside movie clips</title>
		<link>http://breathing-spring.com/tutorial-of-text-feilds-inside-movie-clips/</link>
		<comments>http://breathing-spring.com/tutorial-of-text-feilds-inside-movie-clips/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 15:55:07 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=150</guid>
		<description><![CDATA[Here is a small tutorial of all you need for text feild inside a movie clip.
First we should create our movie clip
createEmptyMovieClip(&#8220;fudge&#8221;,i);
Now Lets create our text feild inside of the movieClip fudge
with (&#8220;fudge&#8221;) {
createTextField(&#8220;my_title&#8221;,getNextHighestDepth(),0,0,350,20);
}
Nice now we have a text feild that is called my_title and that is inside fudge we can even control several things ]]></description>
			<content:encoded><![CDATA[<p>Here is a small tutorial of all you need for text feild inside a movie clip.</p>
<p>First we should create our movie clip</p>
<blockquote><p>createEmptyMovieClip(&#8220;fudge&#8221;,i);</p></blockquote>
<p>Now Lets create our text feild inside of the movieClip fudge</p>
<blockquote><p>with (&#8220;fudge&#8221;) {</p>
<p>createTextField(&#8220;my_title&#8221;,getNextHighestDepth(),0,0,350,20);</p>
<p>}</p></blockquote>
<p>Nice now we have a text feild that is called my_title and that is inside fudge we can even control several things of that text feild, like height, html, border, multiline and so on here if we continue with the <strong>with</strong> scope again</p>
<blockquote><p>with (&#8220;fudge&#8221;) {</p>
<p>createTextField(&#8220;my_title&#8221;,getNextHighestDepth(),0,0,350,20);<br />
my_title.autoSize = &#8220;left&#8221;;<br />
my_title.wordWrap = true;<br />
my_title.multiline = true;<br />
my_title.border = false;<br />
my_title.html = false;<br />
my_title.text =&#8221; This should be a long text to test the auto height of the text feild we are creating and check if its working well&#8221;;</p>
<p>}</p></blockquote>
<p>Since we put autoSize to left and multiline and autowrap to true then the textFeild will grow by height.</p>
<p>Now Finally, We also can add text Format to color our text and choose the font  size here is what we do</p>
<blockquote><p>var title_format:TextFormat = new TextFormat();<br />
title_format.color = 0xEBCF4E;<br />
title_format.font = &#8220;Tahoma&#8221;;<br />
title_format.size = 11;<br />
title_format.bold = true;</p></blockquote>
<p>But also we shouldnt forget to style the thing we&#8217;ve started so here</p>
<blockquote><p>my_title.setTextFormat(title_format);</p></blockquote>
<p>Now this shouldnt go with the text thing at all but I always prefer to adjust the height of the movieClip to the height of Text incase I want to use the movieClip height later so here how to do it</p>
<blockquote><p>with (&#8220;fudge&#8221;) {</p>
<p>_height = my_title._height;</p>
<p>}</p></blockquote>
<p>So now if I want to add any movie beneath Fudge all what I have to do is</p>
<blockquote><p>myNewMovie._y= fudge._height+fudge._y;</p></blockquote>
<p>Thats all folks. hope this was helpful enough for you ^^&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/tutorial-of-text-feilds-inside-movie-clips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading XML from Flash</title>
		<link>http://breathing-spring.com/reading-xml-from-flash/</link>
		<comments>http://breathing-spring.com/reading-xml-from-flash/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:50:22 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=147</guid>
		<description><![CDATA[Here is the way
supposing we have XML that have this structure
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&#62;
&#60;products&#62;
&#60;item Title= &#8221; Home &#8221; Desciption=&#8221;" /&#62;
&#60;/products&#62;
///set up this default, not worth explaining
XML.prototype.ignoreWhite = true;
///Create a new empty XML Object
var myXML:XML = new XML();
///load in the xml file
myXML.load(&#8220;products.xml&#8221;);
//if the XML file has successfully loaded in, then this function is run through
myXML.onLoad = function(success) ]]></description>
			<content:encoded><![CDATA[<p>Here is the way<br />
supposing we have XML that have this structure</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;products&gt;<br />
&lt;item Title= &#8221; Home &#8221; Desciption=&#8221;" /&gt;<br />
&lt;/products&gt;</p>
<blockquote><p>///set up this default, not worth explaining<br />
XML.prototype.ignoreWhite = true;<br />
///Create a new empty XML Object<br />
var myXML:XML = new XML();</p>
<p>///load in the xml file<br />
myXML.load(&#8220;products.xml&#8221;);<br />
//if the XML file has successfully loaded in, then this function is run through<br />
myXML.onLoad = function(success) {<br />
if (success) {<br />
i=0;<br />
//new array for the total number of childNodes<br />
menuArray = new Array();<br />
menuArray = this.firstChild.childNodes;<br />
while (i&lt;menuArray.length) {<br />
trace(this.firstChild.childNodes[i].attributes.Title);<br />
i++;<br />
}<br />
}<br />
};</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/reading-xml-from-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>loadMovie with Fade effect</title>
		<link>http://breathing-spring.com/loadmovie-with-fade-effect/</link>
		<comments>http://breathing-spring.com/loadmovie-with-fade-effect/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 11:06:04 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=144</guid>
		<description><![CDATA[The best way to do that in actionscript 2 is to import the transition library and then check if the movie loaded and create the alpha effect
import mx.transitions.Tween;
import mx.transitions.easing.*;
loadMovie(&#8220;home.swf&#8221;, movie_loader);
this.onEnterFrame = function() {
if (movie_loader.getBytesLoaded()&#62;=movie_loader.getBytesTotal() &#38;&#38; movie_loader.getBytesLoaded()&#62;1) {
Tween1 = new Tween(movie_loader, &#8220;_alpha&#8221;, Strong.easeIn, 0, 100, 1, true);
delete this.onEnterFrame;
}
};
Stop();
]]></description>
			<content:encoded><![CDATA[<p>The best way to do that in actionscript 2 is to import the transition library and then check if the movie loaded and create the alpha effect</p>
<p>import mx.transitions.Tween;<br />
import mx.transitions.easing.*;<br />
loadMovie(&#8220;home.swf&#8221;, movie_loader);</p>
<p>this.onEnterFrame = function() {<br />
if (movie_loader.getBytesLoaded()&gt;=movie_loader.getBytesTotal() &amp;&amp; movie_loader.getBytesLoaded()&gt;1) {<br />
Tween1 = new Tween(movie_loader, &#8220;_alpha&#8221;, Strong.easeIn, 0, 100, 1, true);<br />
delete this.onEnterFrame;</p>
<p>}<br />
};<br />
Stop();</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/loadmovie-with-fade-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: Important Effects for flash</title>
		<link>http://breathing-spring.com/important-effects-for-flash/</link>
		<comments>http://breathing-spring.com/important-effects-for-flash/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 11:04:00 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=141</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://breathing-spring.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-141">Password:<br />
<input name="post_password" id="pwbox-141" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/important-effects-for-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Menu In Flash</title>
		<link>http://breathing-spring.com/hide-menu-in-flash/</link>
		<comments>http://breathing-spring.com/hide-menu-in-flash/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 02:54:12 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=6</guid>
		<description><![CDATA[Short and clean
var HideMenu:ContextMenu = new ContextMenu ();
HideMenu.hideBuiltInItems();
this.menu = HideMenu;
]]></description>
			<content:encoded><![CDATA[<p>Short and clean</p>
<blockquote><p>var HideMenu:ContextMenu = new ContextMenu ();<br />
HideMenu.hideBuiltInItems();<br />
this.menu = HideMenu;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/hide-menu-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit variables on Flash with PHP</title>
		<link>http://breathing-spring.com/limit-variables-on-flash-with-php/</link>
		<comments>http://breathing-spring.com/limit-variables-on-flash-with-php/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 17:49:47 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=5</guid>
		<description><![CDATA[I was working with login script using the usual code I used to use for always
loadVariableNum(&#8220;test.php&#8221;,0,&#8221;POST&#8221;);
kinda nice but wait wait wait, what is this doing? loading all the root variables and spreading php variables on root randomly, HELL that is a real mess? it even didnt work in some cases (like my case today with ]]></description>
			<content:encoded><![CDATA[<p>I was working with login script using the usual code I used to use for always</p>
<blockquote><p>loadVariableNum(&#8220;test.php&#8221;,0,&#8221;POST&#8221;);</p></blockquote>
<p>kinda nice but wait wait wait, what is this doing? loading all the root variables and spreading php variables on root randomly, HELL that is a real mess? it even didnt work in some cases (like my case today with my XML Flash file)<br />
but yes as usual alot of search and alot of do. I got it to work perfectly with this very very clean code<br />
Send and Load (To send specific variables to PHP) and Get Specific one back.<br />
so here it is</p>
<blockquote><p>
on (release, keyPress &#8220;<Enter>&#8220;) {<br />
	if (_root.user != &#8220;&#8221; &#038;&#038; _root.pass != &#8220;&#8221;) {<br />
		_root.text=&#8221;Connecting..&#8221;;<br />
                //result_lv to get variables from php<br />
		var result_lv:LoadVars = new LoadVars();<br />
                //set_lv to post variables to php<br />
		var set_lv:LoadVars = new LoadVars();<br />
		set_lv.user = _level0.user;<br />
		set_lv.pass = _level0.pass;<br />
		set_lv.sendAndLoad(&#8220;newlogin.php&#8221;,result_lv,&#8221;POST&#8221;);<br />
		result_lv.onLoad = function(success:Boolean) {<br />
			if (success) {<br />
				if (result_lv.checklog == 1) {<br />
					_root.text=&#8221;Congrat you are logged&#8221;;<br />
				}<br />
                                 else<br />
                                {<br />
					_root.text=&#8221;Sorry no such user name or password&#8221;;<br />
				}</p>
<p>			} else {<br />
				_root.text=&#8221;Could Not Connect&#8221;;</p>
<p>			}</p>
<p>		};<br />
	}<br />
}</p></blockquote>
<p>I know this is flash thing but if you still curious about the php part then here it is </p>
<blockquote>
<p>$user=$_POST['user'];<br />
$pass=$_POST['pass'];<br />
if ($user &#038;&#038; $pass){<br />
	mysql_connect(&#8220;localhost&#8221;,&#8221;root&#8221;,&#8221;");<br />
	mysql_select_db(&#8220;database&#8221;);</p>
<p>$query = &#8220;SELECT * FROM users WHERE username = &#8216;$user&#8217; AND password = md5(&#8216;$pass&#8217;)&#8221;;<br />
$result = mysql_query( $query ) ;</p>
<p>$num = mysql_num_rows( $result );<br />
if ($num == 1){<br />
	print &#8220;status=You&#8217;re in&#038;checklog=1&#8243;;<br />
	} else {<br />
	print &#8220;status=Sorry!&#038;checklog=2&#8243;;<br />
}<br />
}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/limit-variables-on-flash-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing Arabic in Flash, and Fixing Multiline Issue!</title>
		<link>http://breathing-spring.com/writing-arabic-in-flash-and-fixing-multiline-issue/</link>
		<comments>http://breathing-spring.com/writing-arabic-in-flash-and-fixing-multiline-issue/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 11:21:51 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=3</guid>
		<description><![CDATA[Yes Finally. Writing Arabic in Flash and using XML!! Weheeeeeee.
I&#8217;m excited about it because this was my concern for years and years and yesterday taraaa! I found the extension that worked perfectly!
The main feature of this extension is the ability to embed fonts and the ability to have multiple lines.
its made for Flash 8 and ]]></description>
			<content:encoded><![CDATA[<p>Yes Finally. Writing Arabic in Flash and using XML!! Weheeeeeee.</p>
<p>I&#8217;m excited about it because this was my concern for years and years and yesterday taraaa! I found the extension that worked perfectly!</p>
<p>The main feature of this extension is the ability to embed fonts and the ability to have multiple lines.</p>
<p>its made for Flash 8 and works for ActionScript2. I have flash CS3 and it worked fine too (&gt;.&gt;; since I still use ActionScript *coughs coughts*) anyways the extension is called Flaraby3 there is a lite version for free and a paid version for 30$.</p>
<p>So far the Lite version works perfectly for me and you can download it and see the video tutorial from here.</p>
<p>http://www.arabicode.com/flaraby/flash_arabic_support.php#license</p>
<p>Hope this will help you.<br />
Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/writing-arabic-in-flash-and-fixing-multiline-issue/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
