<?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>Designscripting &#187; admin</title>
	<atom:link href="http://www.designscripting.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designscripting.com</link>
	<description>Latest in flash, Free slideshow, Flash tutorials, advance flash, actionscript, Adobe Air, flash slideshow, New technology, RIA, Abstract wall paper</description>
	<lastBuildDate>Thu, 17 Jun 2010 09:48:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>To find percentage between two given values</title>
		<link>http://www.designscripting.com/2010/06/to-find-percentage-between-two-given-values/</link>
		<comments>http://www.designscripting.com/2010/06/to-find-percentage-between-two-given-values/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 09:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=426</guid>
		<description><![CDATA[Formulae:
((X &#8211; minValue)/(maxValue &#8211; minValue)) * 100
Suppose we need to convert 14 &#8211; 100 as 0% &#8211; 100%
X may be any input from 14 to 100, and the calculation is 
((X &#8211; 14)/(100 &#8211; 14)) * 100
This might be usefull in scrollBar calculations or when we want to restrict size of Image and so on.
]]></description>
			<content:encoded><![CDATA[<p>Formulae:<br />
((X &#8211; minValue)/(maxValue &#8211; minValue)) * 100</p>
<p>Suppose we need to convert 14 &#8211; 100 as 0% &#8211; 100%</p>
<p>X may be any input from 14 to 100, and the calculation is </p>
<p>((X &#8211; 14)/(100 &#8211; 14)) * 100</p>
<p>This might be usefull in scrollBar calculations or when we want to restrict size of Image and so on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/06/to-find-percentage-between-two-given-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To iterate items in an Object:</title>
		<link>http://www.designscripting.com/2010/05/to-iterate-items-in-an-object/</link>
		<comments>http://www.designscripting.com/2010/05/to-iterate-items-in-an-object/#comments</comments>
		<pubDate>Tue, 18 May 2010 10:09:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=424</guid>
		<description><![CDATA[We can iterate through each items in an Object using For each loop or For in loop. 
But the For each can be used only when we need the value of an object not the key, loop is bit fast than for in.
Using for in loop we can get the value, key pair of an object.
Sample For in loop:

for(var item:* in object)
trace(item,object[item]);
Sample For each loop:

for(var item:* in object)
trace(item);
Note: Above outputs only the value not the Object key.
]]></description>
			<content:encoded><![CDATA[<p>We can iterate through each items in an Object using For each loop or For in loop. </p>
<p>But the For each can be used only when we need the value of an object not the key, loop is bit fast than for in.</p>
<p>Using for in loop we can get the value, key pair of an object.</p>
<p>Sample For in loop:</p>
<pre class="brush:as3">
for(var item:* in object)
trace(item,object[item]);</pre>
<p>Sample For each loop:</p>
<pre class="brush:as3">
for(var item:* in object)
trace(item);</pre>
<p>Note: Above outputs only the value not the Object key.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/05/to-iterate-items-in-an-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Glossy Icon In Flash</title>
		<link>http://www.designscripting.com/2010/04/free-glossy-icon-in-flash/</link>
		<comments>http://www.designscripting.com/2010/04/free-glossy-icon-in-flash/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 12:37:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=410</guid>
		<description><![CDATA[Create glossy icons to navigation menu for you website. This tutorials illustrates how to create glossy Icons.
1. Open new document of any size and create a shape that going to be a button. The below is the shape I have created.

2. Select some irregular portion of the shape which going to be the higlight area in button. Copy and paste the highligt area to new Layer.

3. Next Apply white to alpha gradient to shape.

Below is the gradient setting I applied.

4. Select the highlight area and scale it by pressing Ctrl ...]]></description>
			<content:encoded><![CDATA[<p>Create glossy icons to navigation menu for you website. This tutorials illustrates how to create glossy Icons.</p>
<p>1. Open new document of any size and create a shape that going to be a button. The below is the shape I have created.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/04/step1.jpg"><img src="http://www.designscripting.com/wp-content/uploads/2010/04/step1.jpg" alt="step1" title="step1" width="192" height="192" class="aligncenter size-full wp-image-411" /></a></p>
<p>2. Select some irregular portion of the shape which going to be the higlight area in button. Copy and paste the highligt area to new Layer.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/04/step2.jpg"><img src="http://www.designscripting.com/wp-content/uploads/2010/04/step2.jpg" alt="step2" title="step2" width="192" height="192" class="aligncenter size-full wp-image-412" /></a></p>
<p>3. Next Apply white to alpha gradient to shape.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/04/step3.jpg"><img src="http://www.designscripting.com/wp-content/uploads/2010/04/step3.jpg" alt="step3" title="step3" width="192" height="192" class="aligncenter size-full wp-image-413" /></a></p>
<p>Below is the gradient setting I applied.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/04/step4.jpg"><img src="http://www.designscripting.com/wp-content/uploads/2010/04/step4.jpg" alt="step4" title="step4" width="214" height="284" class="aligncenter size-full wp-image-414" /></a></p>
<p>4. Select the highlight area and scale it by pressing Ctrl + alt + s and scale it down by 97%</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/04/step5.jpg"><img src="http://www.designscripting.com/wp-content/uploads/2010/04/step5.jpg" alt="step5" title="step5" width="311" height="305" class="aligncenter size-full wp-image-415" /></a></p>
<p>Here is the final button with dropshadow filter effect</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="StageResize" /><param name="bgcolor" value="#FFFFFF" /><param name="align" value="middle" /><param name="src" value="http://www.designscripting.com/wp-content/uploads/2010/04/Glossy1.swf" /><param name="allowfullscreen" value="false" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="200" height="200" src="http://www.designscripting.com/wp-content/uploads/2010/04/Glossy1.swf" quality="high" allowfullscreen="false" align="middle" bgcolor="#FFFFFF" name="StageResize"></embed></object></p>
<p>Download the Final Output Files.</p>
<p style="text-align: center;"><a href="http://www.designscripting.com/wp-content/uploads/2010/04/Glossy.zip"><img class="aligncenter" src="http://www.designscripting.com/wp-content/uploads/2008/12/download.jpg" alt="" width="239" height="54" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/04/free-glossy-icon-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mx_internal in Flex</title>
		<link>http://www.designscripting.com/2010/03/mx_internal-in-flex/</link>
		<comments>http://www.designscripting.com/2010/03/mx_internal-in-flex/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 10:28:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=406</guid>
		<description><![CDATA[I came across a nice topic in Flex today its &#8220;mx_internal&#8221;.
mx_internal is a access modifier in Flex source code, since Flex is an open source you can look into the code. Adobe has encapsulated some variables in Flex Framework that will change in future release of Flex, So its good to avoid using mx_internal in projects.
mx_internal is a way to access variables that are hidden but available to use for developers.
we can use the variables in the code before that we need to import.
import mx.core.mx_internal;
< ?xml version="1.0" encoding="utf-8"?>


	
		< ![CDATA[
			import mx.controls.TextInput;
			import ...]]></description>
			<content:encoded><![CDATA[<p>I came across a nice topic in Flex today its &#8220;mx_internal&#8221;.<br />
mx_internal is a access modifier in Flex source code, since Flex is an open source you can look into the code. Adobe has encapsulated some variables in Flex Framework that will change in future release of Flex, So its good to avoid using mx_internal in projects.</p>
<p>mx_internal is a way to access variables that are hidden but available to use for developers.</p>
<p>we can use the variables in the code before that we need to import.</p>
<p>import mx.core.mx_internal;</p>
<pre class="brush:as3">< ?xml version="1.0" encoding="utf-8"?>
<mx :Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768">

	</mx><mx :Script>
		< ![CDATA[
			import mx.controls.TextInput;
			import mx.core.mx_internal;

			protected function initButton():void
			{
				var tf:TextField = bt.mx_internal::getTextField()
				tf.visible = false;
			}
		]]&gt;
	</mx>
	<mx :Button id="bt" initialize="initButton()" label="asdasd"/>
</pre>
<p>Here we are accesing the TextField from button and making it invisible. So this is just an easy way to access all the variables of a component.</p>
<p>Note:<br />
Adobe uses the mx_internal namespace to mark things that may change in future versions of the framework , so you have to use it at your own risk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/mx_internal-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animated Background + Flash</title>
		<link>http://www.designscripting.com/2010/03/animated-background-flash/</link>
		<comments>http://www.designscripting.com/2010/03/animated-background-flash/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 12:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=393</guid>
		<description><![CDATA[In this article we are going to create animated background without actionscript that we can use in Banner, Website, Game or any other.
Difficulty:
To Beginners
Final Output File:

Open New Document in Flash using File -> New or Ctrl + N
Change Background color(#090D11) of the document By pressing Ctrl + J or from Properties Dialog box
Create A oval shape With alpha 1% and of any dimension
Convert the Oval Shape to MovieClip by selecting the shape in stage and select Modify-> convert to symbol.. from Menu
Next double click to edit the MovieClip. Create a ...]]></description>
			<content:encoded><![CDATA[<p>In this article we are going to create animated background without actionscript that we can use in Banner, Website, Game or any other.</p>
<p><strong>Difficulty:</strong><br />
To Beginners</p>
<p><strong>Final Output File:</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="StageResize" /><param name="bgcolor" value="#090D11" /><param name="align" value="middle" /><param name="src" value="http://www.designscripting.com/wp-content/uploads/2010/03/Final1.swf" /><param name="allowfullscreen" value="false" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="400" height="400" src="http://www.designscripting.com/wp-content/uploads/2010/03/Final1.swf" quality="high" allowfullscreen="false" align="middle" bgcolor="#090D11" name="StageResize"></embed></object></p>
<p>Open New Document in Flash using File -> New or Ctrl + N</p>
<p>Change Background color(#090D11) of the document By pressing Ctrl + J or from Properties Dialog box</p>
<p>Create A oval shape With alpha 1% and of any dimension</p>
<p>Convert the Oval Shape to MovieClip by selecting the shape in stage and select Modify-> convert to symbol.. from Menu</p>
<p>Next double click to edit the MovieClip. Create a guide layer for layer1 and draw an oval outline.<br />
Note: To draw an outlite, create an oval shape and delete the fill.</p>
<p>Next Animate the oval shape on the layer 1, use many frames to move the object very slow.</p>
<p>Make sure the starting point and end point are the same in animation (Download and Open Steps_Middle.fla)</p>
<p>Duplicate the animate shape and resize them using transform tool.</p>
<p>Final file is ready.</p>
<p style="text-align: center;"><a href="http://www.designscripting.com/wp-content/uploads/2010/03/Animated_BG.zip"><img class="aligncenter" src="http://www.designscripting.com/wp-content/uploads/2008/12/download.jpg" alt="" width="239" height="54" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/animated-background-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Panorama viewer + Mouse Interaction</title>
		<link>http://www.designscripting.com/2010/03/as3-panorama-viewer-mouse-interaction/</link>
		<comments>http://www.designscripting.com/2010/03/as3-panorama-viewer-mouse-interaction/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 09:17:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=380</guid>
		<description><![CDATA[Objective of this tutorial is to create Panoramic viewer using Flash Actionscript 3.0, At the end of this tutorial you can create Panoramic viewer.
So before starting the tutorial download a nice panoramic picture from Internet. Rename the file as &#8216;panorama.jpg&#8217;
Difficulty:
Beginner to Intermediate Actionscript knowledge.
At the End of this tutorial we will know how to use,

Ternary operator in ActionScript.
HitTestPoint in ActionScript

Using Ternary Operator:
The ternary operator &#8220;?:&#8221; is shorter version of &#8220;IF Else&#8221;  statement used to evaluate a condition is either true of false, The syntax for ternary operator is
(Condition)?if condition is ...]]></description>
			<content:encoded><![CDATA[<p>Objective of this tutorial is to create Panoramic viewer using Flash Actionscript 3.0, At the end of this tutorial you can create Panoramic viewer.</p>
<p>So before starting the tutorial download a nice panoramic picture from Internet. Rename the file as &#8216;panorama.jpg&#8217;</p>
<p><strong>Difficulty</strong>:<br />
Beginner to Intermediate Actionscript knowledge.</p>
<p>At the End of this tutorial we will know how to use,</p>
<ul>
<li>Ternary operator in ActionScript.</li>
<li>HitTestPoint in ActionScript</li>
</ul>
<p><strong>Using Ternary Operator:</strong></p>
<p>The ternary operator &#8220;?:&#8221; is shorter version of &#8220;IF Else&#8221;  statement used to evaluate a condition is either true of false, The syntax for ternary operator is</p>
<p><span style="color: #333333;"><em>(Condition)?if condition is true : if condition is false;</em></span></p>
<p>We can write the above for IF ELSE<br />
<span style="color: #333333;"><em> if(Condition)<br />
{<br />
If Condition is true;<br />
}else<br />
{<br />
If Condition is false;<br />
}</em></span></p>
<p><strong>Using hitTestPoint Method of DisplayObject:</strong></p>
<p>hitTestPointMethod used to test whether a point hits over a shape even it is irregular one.</p>
<p>Syntax for hitTestPoint:</p>
<p><span style="color: #333333;"><em>displayObject.hitTestPoint(point.x, point.y, true|false);</em></span></p>
<p><span style="color: #333333;"><em>Note: Supply true if you want to test against actual shape and false to test against the bounding box.</em></span></p>
<p><strong>Demo File</strong>:<br />
Below is the output file of this Actionscript panoramic viewer.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="StageResize" /><param name="bgcolor" value="#666666" /><param name="align" value="middle" /><param name="src" value="http://www.designscripting.com/wp-content/uploads/2010/03/Main1.swf" /><param name="allowfullscreen" value="false" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="500" height="500" src="http://www.designscripting.com/wp-content/uploads/2010/03/Main1.swf" quality="high" allowfullscreen="false" align="middle" bgcolor="#666666" name="StageResize"></embed></object><br />
Image from acojon.deviantart.com</p>
<p>Create a new Flash File( Actionscript 3.0 ) save it on disk, where the panaromic picture got saved.</p>
<p>Change the Document Size by pressing Ctrl + J , Set dimension to 500 px X 500 px</p>
<p>Create a rectangle shape of above dimensions with x,y = 0,0 and convert it to MovieClip.</p>
<p>Give instance name for the MovieClip as &#8220;touchMC&#8221;</p>
<p>Next, We need to load the Panorama image in to Flash. We can load external files into Flash using Loader Class.</p>
<pre class="brush:as3">var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest("panorama.jpg"));</pre>
<p>When the image got loaded in to Flash completeHandler will be triggered. Where we are duplicating the loaded image to create panoramic effect using Bitmap Class.</p>
<pre class="brush:as3">var image1:Bitmap = (Bitmap)(loader.content);
	var image2:Bitmap = new Bitmap(image1.bitmapData.clone());
	holder_mc.addChild(image1);
	holder_mc.addChild(image2);
	addChild(holder_mc);</pre>
<p>Finally we are adding ENTER_FRAME event to stage, which will be listened by PanaromaMove function.</p>
<pre class="brush:as3">stage.addEventListener(Event.ENTER_FRAME, PanaromaMove);</pre>
<p>In ENTER_FRAME function we are checking whether the Image Pans across right limit or left limit and adusting it accordingly to the stage.</p>
<pre class="brush:as3">touchMC.hitTestPoint(this.mouseX, this.mouseY) == true? _flag = true:_flag = false;

	if(_flag)
	{

		//this.mouseX&gt;stage.stageWidth/2 ? holder_mc.x -= 10 : holder_mc.x += 10;
		this.mouseX&gt;stage.stageWidth/2 ? holder_mc.x += Math.ceil((((stage.stageWidth/2)- this.mouseX)*.01)*_speed): holder_mc.x -=Math.floor(((this.mouseX-(stage.stageWidth/2))*.01)*_speed);

		if (holder_mc.x&gt;0)
			holder_mc.x= -holder_mc.width /2;
		else if (holder_mc.x &lt; stage.stageWidth - holder_mc.width)
			holder_mc.x= stage.stageWidth - holder_mc.width/2 ;

	}</pre>
<p><strong>Entire code for Reference.</strong></p>
<pre class="brush:as3">import flash.display.BitmapData;
import flash.geom.Rectangle;

var _flag:Boolean = false;
var _speed:Number = 4;

var loader:Loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest("panorama.jpg"));

var holder_mc:Sprite = new Sprite();

function completeHandler(event:Event):void{

	var image1:Bitmap = (Bitmap)(loader.content);
	var image2:Bitmap = new Bitmap(image1.bitmapData.clone());
	holder_mc.addChild(image1);
	holder_mc.addChild(image2);
	image1.x = 0;
	image2.x = image1.width;

	addChild(holder_mc);
	holder_mc.x = 0;

	stage.addEventListener(Event.ENTER_FRAME, PanaromaMove);
}
function PanaromaMove(e:Event):void
{

	touchMC.hitTestPoint(this.mouseX, this.mouseY) == true? _flag = true:_flag = false;

	if(_flag)
	{

		//this.mouseX&gt;stage.stageWidth/2 ? holder_mc.x -= 10 : holder_mc.x += 10;
		this.mouseX&gt;stage.stageWidth/2 ? holder_mc.x += Math.ceil((((stage.stageWidth/2)- this.mouseX)*.01)*_speed): holder_mc.x -=Math.floor(((this.mouseX-(stage.stageWidth/2))*.01)*_speed);

		if (holder_mc.x&gt;0)
			holder_mc.x= -holder_mc.width /2;
		else if (holder_mc.x &lt; stage.stageWidth - holder_mc.width)
			holder_mc.x= stage.stageWidth - holder_mc.width/2 ;

	}
}</pre>
<p>In this tutorial we learnt some basics of Flash ActionScript3.0 and we have created Panaromic viewer in AS3</p>
<p>Download the Final Output Files.</p>
<p style="text-align: center;"><a href="http://www.designscripting.com/wp-content/uploads/2010/03/Main.zip"><img class="aligncenter" src="http://www.designscripting.com/wp-content/uploads/2008/12/download.jpg" alt="" width="239" height="54" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/as3-panorama-viewer-mouse-interaction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free AS3 Checkbox Component:</title>
		<link>http://www.designscripting.com/2010/03/free-as3-checkbox-component/</link>
		<comments>http://www.designscripting.com/2010/03/free-as3-checkbox-component/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 08:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Flash custom components]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=374</guid>
		<description><![CDATA[Writing new stylesheet or editing the V2 is headache for me. So I have created my own checkbox component. Hope will help you in your projects.
Difficulty of Use:
Intermediate to advanced users.
Sample component1:

Code for Sample1:
import com.Designscripting.Components.ICheck;

	var _icheck:CheckButton = new CheckButton();
		_icheck.index = 1;
		_icheck.x = _icheck.y = 60;
		_icheck._txt.text = "SampleData 1";
		_icheck._btn.addEventListener(MouseEvent.CLICK, buttonClicked);
		addChild(_icheck);

function buttonClicked(e:MouseEvent):void
{
	//Code to open URL in _blank window.
	navigateToURL( new URLRequest("http://www.designscripting.com/"), "_blank");
	ICheck.setItem(e.target.parent);
}
Here we are importing the custom classes and creating an instance for CheckButton and adding it to display list.
Later on selecting the checkbox we are launching the URL:designscripting.com
Some Useful Functions of the ...]]></description>
			<content:encoded><![CDATA[<p>Writing new stylesheet or editing the V2 is headache for me. So I have created my own checkbox component. Hope will help you in your projects.</p>
<p><strong>Difficulty of Use:</strong><br />
Intermediate to advanced users.</p>
<p><strong>Sample component1:</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="450" height="177" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="StageResize" /><param name="bgcolor" value="#666666" /><param name="align" value="middle" /><param name="src" value="http://www.designscripting.com/wp-content/uploads/2010/03/CheckBox1.swf" /><param name="allowfullscreen" value="false" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="450" height="177" src="http://www.designscripting.com/wp-content/uploads/2010/03/CheckBox1.swf" quality="high" allowfullscreen="false" align="middle" bgcolor="#666666" name="StageResize"></embed></object></p>
<p><strong>Code for Sample1:</strong></p>
<pre class="brush:as3">import com.Designscripting.Components.ICheck;

	var _icheck:CheckButton = new CheckButton();
		_icheck.index = 1;
		_icheck.x = _icheck.y = 60;
		_icheck._txt.text = "SampleData 1";
		_icheck._btn.addEventListener(MouseEvent.CLICK, buttonClicked);
		addChild(_icheck);

function buttonClicked(e:MouseEvent):void
{
	//Code to open URL in _blank window.
	navigateToURL( new URLRequest("http://www.designscripting.com/"), "_blank");
	ICheck.setItem(e.target.parent);
}</pre>
<p>Here we are importing the custom classes and creating an instance for CheckButton and adding it to display list.<br />
Later on selecting the checkbox we are launching the URL:designscripting.com</p>
<p><strong>Some Useful Functions of the Component:</strong></p>
<ul>
<li>setItem()</li>
<li>getSelectedIndices()</li>
<li>getSelectedData()</li>
<li>isItemSelected()</li>
</ul>
<p><em><strong>setItem</strong></em>: Static method to set the checkbox item selected.</p>
<p><em><strong>getSelectedIndices</strong></em>: Static method to return selected index of checkbox, return type Array.</p>
<p><strong><em>getSelectedData</em></strong>: Static method to return selected data of checkbox, return type Array.</p>
<p><em><strong>isItemSelected</strong></em>: Static method to return checkbox is selected or not. return type Boolean.</p>
<p><strong>Sample Component 2:</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="450" height="291" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="StageResize" /><param name="bgcolor" value="#666666" /><param name="align" value="middle" /><param name="src" value="http://www.designscripting.com/wp-content/uploads/2010/03/CheckBox.swf" /><param name="allowfullscreen" value="false" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="450" height="291" src="http://www.designscripting.com/wp-content/uploads/2010/03/CheckBox.swf" quality="high" allowfullscreen="false" align="middle" bgcolor="#666666" name="StageResize"></embed></object></p>
<p><strong>Code for Sample2:</strong></p>
<pre class="brush:as3">import com.Designscripting.Components.ICheck;

var verticalSpacing:Number = 50;

for(var count:int =0; count&lt;3; count++)
{
	var _icheck:CheckButton = new CheckButton();
	_icheck.x = 40
	_icheck.y = 70+count*verticalSpacing;
	_icheck.index = count;
	_icheck._txt.text = "SampleData "+count;
	_icheck._btn.addEventListener(MouseEvent.CLICK, buttonClicked);
	addChild(_icheck);
}

function buttonClicked(e:MouseEvent):void
{
	ICheck.setItem(e.target.parent);
}
resultMc.buttonMode = clearMc.buttonMode = true;
resultMc.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){
	_resultTxt.text = String("Selected Item\n"+ICheck.getSelectedIndices())
	trace(ICheck.getSelectedData())
	})
clearMc.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){ICheck.reset();_resultTxt.text = ""})</pre>
<p>Find the source files attached.</p>
<p style="text-align: center;"><a href="http://www.designscripting.com/wp-content/uploads/2010/03/CheckBox.zip"><img class="aligncenter" src="http://www.designscripting.com/wp-content/uploads/2008/12/download.jpg" alt="" width="239" height="54" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/free-as3-checkbox-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looping through each XMLNode and each attributes within Node:</title>
		<link>http://www.designscripting.com/2010/03/looping-through-each-xmlnode-and-each-attributes-within-node/</link>
		<comments>http://www.designscripting.com/2010/03/looping-through-each-xmlnode-and-each-attributes-within-node/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 08:12:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=371</guid>
		<description><![CDATA[In this tutorial we are going to iterate through node in a XML. Intead of using direct approach of getting the XML Length(); We are going to use indirect approach to loop through the XML.
Here we are going to use For each statement and iterate through the nodes to access information intead of using index values. 
Here is XMLManager class to load XML without pain.
Before proceeding we must know the difference between XML and XMLList.
XML:
XML is a single or collection of XMLNodes with in a rootnode.
XML example:


	
	

Note:
Here the root node ...]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we are going to iterate through node in a XML. Intead of using direct approach of getting the XML Length(); We are going to use indirect approach to loop through the XML.</p>
<p>Here we are going to use For each statement and iterate through the nodes to access information intead of using index values. </p>
<p>Here is <a href="http://www.designscripting.com/2008/11/xmlmanager-in-actionscript-30/">XMLManager class</a> to load XML without pain.</p>
<p>Before proceeding we must know the difference between XML and XMLList.</p>
<p>XML:<br />
XML is a single or collection of XMLNodes with in a rootnode.</p>
<p>XML example:</p>
<pre class="brush:as3">
<library>
	<book id='1' name='Book1' author='XXXXXX' category='YYYYYY'></book>
	<book id='2' name='Book2' author='AAAAAA' category='ZZZZZZ'></book>
</library></pre>
<p>Note:<br />
Here the root node is Library which contains Book Nodes.</p>
<p>XMLList:<br />
A collection of XMLNode without root node.</p>
<p>XMLList example:</p>
<pre class="brush:as3">
	<book id='1' name='Book1' author='XXXXXX' category='YYYYYY'></book>
	<book id='2' name='Book2' author='AAAAAA' category='ZZZZZZ'></book>
</pre>
<p>Next we will see how to interate through XMLNodes.</p>
<pre class="brush:as3">
var _xml:XML =
<library><book id='1' name='asdasd' author='sdcxc' category='fgsdgvs'></book><book id='2' name='sdas' author='hfdhghfg' category='sdfsdf'></book></library>
var _xmlList:XMLList = _xml.Book;

for each(var node in _xmlList)
trace(node.attribute('id'))
</pre>
<p>There may be situation that the number of attributes with in a node may not be know. So we should loop through the all the attributes of a XMLNode. </p>
<pre class="brush:as3">var _xml:XML =
<library><book id='1' name='asdasd' author='sdcxc' category='fgsdgvs'></book><book id='2' name='sdas' author='hfdhghfg' category='sdfsdf'></book></library>
var _xmlList:XMLList = _xml.Book;
trace("Attribute::Value");
trace("----------------")
for each(var node in _xmlList){
		for each(var attribute in node.attributes())
		trace(attribute.name()+"::"+attribute)
		trace("********Node End*********")
	}
</pre>
<p>Output:</p>
<p>Attribute::Value<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
id::1<br />
name::Book1<br />
author::XXXXXX<br />
category::YYYYYY<br />
********Node End*********<br />
id::2<br />
name::Book2<br />
author::AAAAAA<br />
category::ZZZZZZ<br />
********Node End*********</p>
<p>Cheers :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/looping-through-each-xmlnode-and-each-attributes-within-node/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe have released Flash player 10.1 for Mobiles</title>
		<link>http://www.designscripting.com/2010/03/adobe-have-released-flash-player-10-1-for-mobiles/</link>
		<comments>http://www.designscripting.com/2010/03/adobe-have-released-flash-player-10-1-for-mobiles/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 07:23:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=346</guid>
		<description><![CDATA[Adobe have released Flash player 10.1 for Mobiles. The full Flash Player will be available on smartphones and other Internet-connected mobile devices, To deliver on a high level of consistency and move onto mobile platforms with limited memory and processing resources, Flash Player 10.1 leverages hardware acceleration of graphics and video and many other performance improvements, such as rendering, scripting, memory utilization, start-up time, battery and CPU optimizations.

Flash Player 10.1 is also designed to take advantage of media delivery with HTTP streaming, including integration of content protection powered by Adobe ...]]></description>
			<content:encoded><![CDATA[<p>Adobe have released Flash player 10.1 for Mobiles. The full Flash Player will be available on smartphones and other Internet-connected mobile devices, To deliver on a high level of consistency and move onto mobile platforms with limited memory and processing resources, Flash Player 10.1 leverages hardware acceleration of graphics and video and many other performance improvements, such as rendering, scripting, memory utilization, start-up time, battery and CPU optimizations.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/03/Player_10.1.jpg"><img class="aligncenter size-full wp-image-347" title="Player_10.1" src="http://www.designscripting.com/wp-content/uploads/2010/03/Player_10.1.jpg" alt="Player_10.1" width="300" height="358" /></a></p>
<p>Flash Player 10.1 is also designed to take advantage of media delivery with HTTP streaming, including integration of content protection powered by Adobe Flash Access 2.0. This initiative, codenamed Zeri, will be an open format based on industry standards and will provide content publishers, distributors and partners the tools they need to utilize HTTP infrastructures for high-quality media delivery in Flash Player 10.1 and Adobe Air 2.0 software.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/03/adobe-have-released-flash-player-10-1-for-mobiles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>To use Flex SWC files in Flash CS4</title>
		<link>http://www.designscripting.com/2010/02/to-use-flex-swc-files-in-flash-cs4/</link>
		<comments>http://www.designscripting.com/2010/02/to-use-flex-swc-files-in-flash-cs4/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 07:20:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=339</guid>
		<description><![CDATA[Now we can use the SWC files created for Flex applications in Flash.
Just we need to add the SWC to Flash compiler. Follow the steps to use Flex SWC files in Flash development.
1. Open new File Flash CS4.
 2. Select File &#62; Publish Settings or Press Ctrl + Shift + F12, Publish Settings window will Popup.
 3. Click on Settings&#8230;  and Select Library path

4. Click on Plus Symbol to add SWC path or File.

5. Copy and Paste the Flex SWC files Path.
For example:C:\Program Files\Adobe\Adobe Flash Builder Beta 2\sdks\4.0.0\frameworks\libs
Thats it ...]]></description>
			<content:encoded><![CDATA[<p>Now we can use the SWC files created for Flex applications in Flash.<br />
Just we need to add the SWC to Flash compiler. Follow the steps to use Flex SWC files in Flash development.</p>
<p><strong>1.</strong> Open new File Flash CS4.<br />
<strong> 2.</strong> Select File &gt; Publish Settings or Press Ctrl + Shift + F12, Publish Settings window will Popup.<br />
<strong> 3.</strong> Click on Settings&#8230;  and Select Library path</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/02/publish-settings.jpg"><img class="aligncenter size-full wp-image-340" title="publish-settings" src="http://www.designscripting.com/wp-content/uploads/2010/02/publish-settings.jpg" alt="publish-settings" width="449" height="308" /></a></p>
<p><strong>4.</strong> Click on Plus Symbol to add SWC path or File.</p>
<p><a href="http://www.designscripting.com/wp-content/uploads/2010/02/Settings.jpg"><img class="aligncenter size-full wp-image-341" title="Settings" src="http://www.designscripting.com/wp-content/uploads/2010/02/Settings.jpg" alt="Settings" width="449" height="308" /></a></p>
<p><strong>5</strong>. Copy and Paste the Flex SWC files Path.</p>
<p><span style="color: #993300;">For example:</span><em><span style="color: #808080;">C:\Program Files\Adobe\Adobe Flash Builder Beta 2\sdks\4.0.0\frameworks\libs</span></em></p>
<p>Thats it now we can compile SWC files created for Flex Applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/02/to-use-flex-swc-files-in-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
