<?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</title>
	<atom:link href="http://breathing-spring.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://breathing-spring.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Jun 2010 07:48:25 +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>Connecting Joomla to external db</title>
		<link>http://breathing-spring.com/connecting-joomla-to-external-db/</link>
		<comments>http://breathing-spring.com/connecting-joomla-to-external-db/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 07:44:30 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=158</guid>
		<description><![CDATA[$db is now an object of type JDatabase and you can perform database operations on it using the usual methods.
$option = array(); //prevent problems

$option['driver']   = 'mysql';            // Database driver name
$option['host']     = 'db.myhost.com';    // Database host ]]></description>
			<content:encoded><![CDATA[<p>$db is now an object of type JDatabase and you can perform database operations on it using the usual methods.</p>
<pre>$option = array(); //prevent problems

$option['driver']   = 'mysql';            // Database driver name
$option['host']     = 'db.myhost.com';    // Database host name
$option['user']     = 'fredbloggs';       // User for database authentication
$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication
$option['database'] = 'bigdatabase';      // Database name
$option['prefix']   = 'abc_';             // Database prefix (may be empty)

$db = &amp; JDatabase::getInstance( $option );</pre>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/connecting-joomla-to-external-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading external image with preloading and getting width and height</title>
		<link>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/</link>
		<comments>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 07:45:08 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=155</guid>
		<description><![CDATA[I&#8217;ve tried loadComplete but oddly it didnt work..then I tried on EnterFrame and oddly it worked O.o
Here is the code
//Loading Images
function LoadImage(image, targetMC) {
targetMC.loadMovie(image);
this.onEnterFrame = function() {
var Percent = Math.ceil(targetMC.getBytesLoaded()/targetMC.getBytesTotal()*100);
if (Percent == 100) {
trace(&#8220;Width: &#8220;+targetMC._width);
trace(&#8220;Height: &#8220;+targetMC._height);
delete this.onEnterFrame;
}
};
}
just then we call the function that way
LoadImage and it should work fine ^_^
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried loadComplete but oddly it didnt work..then I tried on EnterFrame and oddly it worked O.o</p>
<p>Here is the code</p>
<p>//Loading Images<br />
function LoadImage(image, targetMC) {<br />
targetMC.loadMovie(image);<br />
this.onEnterFrame = function() {<br />
var Percent = Math.ceil(targetMC.getBytesLoaded()/targetMC.getBytesTotal()*100);<br />
if (Percent == 100) {<br />
trace(&#8220;Width: &#8220;+targetMC._width);<br />
trace(&#8220;Height: &#8220;+targetMC._height);<br />
delete this.onEnterFrame;<br />
}<br />
};</p>
<p>}</p>
<p>just then we call the function that way</p>
<p>LoadImage and it should work fine ^_^</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Get Alias Path In Drupal</title>
		<link>http://breathing-spring.com/get-alias-path-in-drupal/</link>
		<comments>http://breathing-spring.com/get-alias-path-in-drupal/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 11:35:17 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=139</guid>
		<description><![CDATA[I&#8217;ve added this to the module (also to template.php)  and its working well

function get_url_alias( $src ){
if ( $query = db_query( "SELECT * FROM {url_alias}
WHERE src='%s'", $src ) ){
if ( $rs = db_fetch_object( $query ) ){
return $rs-&#62;dst;
}
else {
return $src;
}
}
else {
return $src;
}
}

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added this to the module (also to template.php)  and its working well<br />
<code><br />
function get_url_alias( $src ){<br />
if ( $query = db_query( "SELECT * FROM {url_alias}<br />
WHERE src='%s'", $src ) ){<br />
if ( $rs = db_fetch_object( $query ) ){<br />
return $rs-&gt;dst;<br />
}<br />
else {<br />
return $src;<br />
}<br />
}<br />
else {<br />
return $src;<br />
}<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/get-alias-path-in-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>important variables to be added to page.tpl.php</title>
		<link>http://breathing-spring.com/important-variables-to-be-added-to-page-tpl-php/</link>
		<comments>http://breathing-spring.com/important-variables-to-be-added-to-page-tpl-php/#comments</comments>
		<pubDate>Sun, 30 May 2010 07:30:35 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=129</guid>
		<description><![CDATA[importent variables to be added to page.tpl.php
$base_path: The base path of the Drupal installation. At the very least, this will always
default to / if Drupal is installed in a root directory.
$breadcrumb: Returns the HTML for displaying the navigational breadcrumbs on the
page.
$closure: Returns the output of hook_footer() and thus is usually displayed at the bottom
of the ]]></description>
			<content:encoded><![CDATA[<p>importent variables to be added to page.tpl.php</p>
<p><strong>$base_path:</strong> The base path of the Drupal installation. At the very least, this will always<br />
default to / if Drupal is installed in a root directory.</p>
<p><strong>$breadcrumb</strong>: Returns the HTML for displaying the navigational breadcrumbs on the<br />
page.</p>
<p><strong>$closure:</strong> Returns the output of hook_footer() and thus is usually displayed at the bottom<br />
of the page, just before the close of the body tag. hook_footer() is used to allow<br />
modules to insert HTML or JavaScript at the end of a page. Note that drupal_add_js()<br />
will not work in hook_footer().</p>
<p><strong>$content:</strong> Returns the HTML content to be displayed. Examples include a node, an<br />
aggregation of nodes, the content of the administrative interface, and so on.</p>
<p><strong>$css:</strong> Returns an array structure of all the CSS files to be added to the page. Use $styles<br />
if you are looking for the HTML version of the $css array.</p>
<p><strong>$directory: </strong>The relative path to the directory the theme is located in; for example,<br />
themes/bluemarine or sites/all/themes/custom/greyscale. You’ll commonly use this<br />
variable in conjunction with the $base_path variable to build the absolute path to your<br />
site’s theme:<br />
&lt;?php print $base_path . $directory ?&gt;<br />
will resolve to<br />
&lt;?php print &#8216;/&#8217; . &#8217;sites/all/themes/custom/greyscale&#8217; ?&gt;</p>
<p><strong>$feed_icons: </strong>Returns RSS feed links for the page. RSS feed links are added via<br />
drupal_add_feed().</p>
<p><strong>$footer:</strong> Returns the HTML for the footer region, including the HTML for blocks<br />
belonging to this region. Do not confuse this with hook_footer(), which is a Drupal<br />
hook that lets modules add HTML or JavaScript that will appear in the $closure variable<br />
just before the closing body tag</p>
<p><strong>$footer_message:</strong> Returns the text of the footer message that was entered at Administer<br />
ä Site configuration ä Site information.</p>
<p><strong>$front_page:</strong> The output of url() with no parameters; for example, /drupal/.<br />
Use $front_page instead of $base_path when linking to the front page of a site, because<br />
$front_page will include the language domain and prefix when applicable</p>
<p><strong>$head:</strong> Returns the HTML to be placed within the &lt;head&gt;&lt;/head&gt; section. Modules<br />
append to $head by calling drupal_set_html_head() to add additional markup.</p>
<p><strong>$head_title:</strong> The text to be displayed in the page title, between the HTML<br />
&lt;title&gt;&lt;/title&gt; tags. It is retrieved using drupal_get_title().</p>
<p><strong>$header:</strong> Returns the HTML for the header region, including the HTML for blocks<br />
belonging to this region.</p>
<p><strong>$is_front: </strong>TRUE if the front page is currently being displayed</p>
<p><strong>$left:</strong> Returns the HTML for the left sidebar, including the HTML for blocks belonging<br />
to this region.</p>
<p><strong>$logged_in:</strong> TRUE if the current user is logged in; FALSE otherwise.</p>
<p><strong>$logo: </strong>The path to the logo image, as defined in the theme configuration page of<br />
enabled themes. It’s used as follows in Drupal’s default page template:<br />
&lt;img src=&#8221;&lt;?php print $logo; ?&gt;&#8221; alt=&#8221;&lt;?php print t(&#8216;Home&#8217;); ?&gt;&#8221; /&gt;</p>
<p><strong>$messages:</strong> This variable returns the HTML for validation errors, success notices for<br />
forms, and other messages as well. It’s usually displayed at the top of the page.</p>
<p><strong>$mission:</strong> Returns the text of the site mission that was entered at Administer ä Site configuration<br />
ä Site information. This variable is only populated when $is_front is TRUE.</p>
<p><strong>$primary_links:</strong> An array containing the primary links as they have been defined at<br />
Administer ä Site building äMenus. Usually $primary_links is styled through the<br />
theme(&#8216;links&#8217;) function as follows:<br />
&lt;?php<br />
print theme(&#8216;links&#8217;, $primary_links, array(&#8216;class&#8217; =&gt; å<br />
&#8216;links primary-links&#8217;))<br />
?&gt;</p>
<p><strong>$secondary_links: </strong>An array containing the secondary links as they have been defined at<br />
Administer ä Site building äMenus. Usually $secondary_links is styled through the<br />
theme(&#8216;links&#8217;) function as follows: and are placed beneath primary links as they are the sub links for them<br />
&lt;?php<br />
print theme(&#8216;links&#8217;, $secondary_links, array(&#8216;class&#8217; =&gt; å<br />
&#8216;links primary-links&#8217;))<br />
?&gt;</p>
<p><strong>$site_name:</strong> The name of the site, which is set at Administer ä Site configuration ä Site<br />
information. $site_name is empty when the administrator has disabled the display on<br />
the theme configuration page of enabled themes.</p>
<p><strong>$site_slogan: </strong>The slogan of the site, which is set at Administer ä Site configuration ä<br />
Site information. $site_slogan is empty when the administrator has disabled the display<br />
of the slogan on the theme configuration page of enabled themes.</p>
<p><strong>$styles:</strong> Returns the HTML for linking to the necessary CSS files to the page. CSS files<br />
are added to the $styles variable through drupal_add_css().</p>
<p><strong>$tabs: </strong>Returns the HTML for displaying tabs such as the View/Edit tabs for nodes. Tabs<br />
are usually at the top of the page in Drupal’s core themes</p>
<p><strong>$title:</strong> The main content title, different from $head_title. When on a single node view<br />
page $title is the title of the node. When viewing Drupal’s administration pages,<br />
$title is usually set by the menu item that corresponds to the page being viewed</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/important-variables-to-be-added-to-page-tpl-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>access config variables</title>
		<link>http://breathing-spring.com/access-config-variables/</link>
		<comments>http://breathing-spring.com/access-config-variables/#comments</comments>
		<pubDate>Tue, 25 May 2010 07:34:10 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=127</guid>
		<description><![CDATA[to access config variables we put it like this
add the variable to configruation.php
$my_variable
then
$GLOBALS['mosConfig_my_variable']
]]></description>
			<content:encoded><![CDATA[<p>to access config variables we put it like this<br />
add the variable to configruation.php<br />
$my_variable<br />
then<br />
$GLOBALS['mosConfig_my_variable']</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/access-config-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
