<?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</title>
	<atom:link href="http://www.designscripting.com/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>Mon, 30 Aug 2010 09:32:05 +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>HTML5 Overview</title>
		<link>http://www.designscripting.com/2010/08/html5-overview/</link>
		<comments>http://www.designscripting.com/2010/08/html5-overview/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 09:32:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Webmasters]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=437</guid>
		<description><![CDATA[HTML5 Overview
HTML5 is currently being developed as the next major revision of HTML (HyperText Markup Language), the core markup language of the World Wide Web. HTML5 is the proposed next standard for HTML 4.01, XHTML 1.0 and DOM Level 2 HTML. It aims to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as Adobe Flash, Sumisho Curl Surge RTE and Microsoft Silverlight.
HTML 5 New APIs
In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs).

The canvas element for immediate mode 2D drawing.
Timed media playback
Offline storage ...]]></description>
			<content:encoded><![CDATA[<p><strong>HTML5 Overview</strong></p>
<p>HTML5 is currently being developed as the next major revision of HTML (HyperText Markup Language), the core markup language of the World Wide Web. HTML5 is the proposed next standard for HTML 4.01, XHTML 1.0 and DOM Level 2 HTML. It aims to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as Adobe Flash, Sumisho Curl Surge RTE and Microsoft Silverlight.</p>
<p><strong>HTML 5 New APIs</strong></p>
<p>In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs).</p>
<ul>
<li>The canvas element for immediate mode 2D drawing.</li>
<li>Timed media playback</li>
<li>Offline storage database (offline web applications)</li>
<li>Document editing</li>
<li>Drag-and-drop</li>
<li>3D Transforms</li>
<li>Geo-Loaction (functionalities like foursquare and yelp)</li>
<li>Browser history management and more..</li>
</ul>
<p>Click to open HTML 5 Demos and Examples  http://html5demos.com/<br />
Another Demo Website ( Click on thumbnails to load different app) http://mrdoob.com/91/Ball_Pool_HTML5</p>
<p><strong>Calculation of support of currently displayed feature lists</strong></p>
<p><span style="color: #800000;">Browser                                                 IE               Firefox    Safari       Chrome     Opera</span></p>
<p>Present                                                  8.0: 26% 3.6: 77% 5.0: 87% 5.0: 86% 10.5: 72%<br />
<span style="color: #003300;"> Near Future (early 2010)             8.0: 26% 3.6: 77% 5.0: 87% 5.0: 86% 10.5: 72%</span><br />
Future (late 2010 or later)           9.0: 48% 4.0: 89% 5.*: 89% 6.0: 90% 10.6: 79%</p>
<p>View <span style="color: #800000;">HTML5 &amp; CSS3 READINESS</span> across several browsers http://html5readiness.com/</p>
<p>HTML5 aims to change all that. When it is finalized, the new standard will include tags and APIs for improved interactivity, multimedia, and localization. Modernized HTML will free them from reliance on proprietary plug-ins such as Flash, QuickTime, and Silverlight.</p>
<p><span style="color: #800000;"><em>Note</em></span>: Use Google Chrome to view HTML5 Demo Apps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/08/html5-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List tag( li ) not working in AS3!</title>
		<link>http://www.designscripting.com/2010/08/list-tag-li-not-working-in-as3/</link>
		<comments>http://www.designscripting.com/2010/08/list-tag-li-not-working-in-as3/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 09:25:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[html tags flash]]></category>
		<category><![CDATA[html tags from XML]]></category>
		<category><![CDATA[li tag as3]]></category>
		<category><![CDATA[li tag not working]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=435</guid>
		<description><![CDATA[I was loading the XML data from a XML file and displaying the list( li ) data in an HTML text but it displays as single bullet and remaining content below as single line.
Solution:
To overcome the issue we need to add multiline property well before we set the HTML text in the TextField.
Solution Code:
var textField : TextField = new TextField();
textField.multiline = true;
textField.htmlText = String(itemObject.data);
addChild(textField);
]]></description>
			<content:encoded><![CDATA[<p>I was loading the XML data from a XML file and displaying the list( li ) data in an HTML text but it displays as single bullet and remaining content below as single line.</p>
<p><strong>Solution:</strong><br />
To overcome the issue we need to add multiline property well before we set the HTML text in the TextField.</p>
<p><strong>Solution Code:</strong></p>
<pre class="brush:as3">var textField : TextField = new TextField();
textField.multiline = true;
textField.htmlText = String(itemObject.data);
addChild(textField);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/08/list-tag-li-not-working-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Tags supported By Flash</title>
		<link>http://www.designscripting.com/2010/08/html-tags-supported-by-flash/</link>
		<comments>http://www.designscripting.com/2010/08/html-tags-supported-by-flash/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:58:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=433</guid>
		<description><![CDATA[Read more about flash Player supports the following HTML tags:
 



Tag
Description


Anchor tag
The &#60;a&#62; tag creates a hypertext link and supports the following attributes:


target: Specifies the name of the target window where you load the page. Options include_self, _blank, _parent, and _top. The _self option specifies the current frame in the current window, _blank specifies a new window, _parent specifies the parent of the current frame, and _top specifies the top-level frame in the current window.
href: Specifies a URL or an ActionScript link event.The URL can be either absolute or relative to the location of the SWF file that is ...]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">Read more about flash Player supports the following HTML tags:<br />
<span id="more-1268" style="padding: 0px; margin: 0px;"> </span></p>
<table style="padding: 0px; margin: 0px;" border="0">
<tbody style="padding: 0px; margin: 0px;">
<tr style="padding: 0px; margin: 0px;">
<th style="padding: 0px; margin: 0px;">Tag</th>
<th style="padding: 0px; margin: 0px;">Description</th>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Anchor tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;a&gt;</code> tag creates a hypertext link and supports the following attributes:</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">target</code>: Specifies the name of the target window where you load the page. Options include<code style="font-size: 1.1em; padding: 0px; margin: 0px;">_self</code>, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_blank</code>, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_parent</code>, and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_top</code>. The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_self</code> option specifies the current frame in the current window, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_blank</code> specifies a new window, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_parent</code> specifies the parent of the current frame, and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">_top</code> specifies the top-level frame in the current window.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">href</code>: Specifies a URL or an ActionScript <code style="font-size: 1.1em; padding: 0px; margin: 0px;">link</code> event.The URL can be either absolute or relative to the location of the SWF file that is loading the page. An example of an absolute reference to a URL is <code style="font-size: 1.1em; padding: 0px; margin: 0px;">http://www.adobe.com</code>; an example of a relative reference is<code style="font-size: 1.1em; padding: 0px; margin: 0px;">/index.html</code>. Absolute URLs must be prefixed with http://; otherwise, Flash treats them as relative URLs. You can use the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">link</code> event to cause the link to execute an ActionScript function in a SWF file instead of opening a URL. To specify a <code style="font-size: 1.1em; padding: 0px; margin: 0px;">link</code> event, use the event scheme instead of the http scheme in your <code style="font-size: 1.1em; padding: 0px; margin: 0px;">href</code> attribute. An example is<code style="font-size: 1.1em; padding: 0px; margin: 0px;">href="event:myText"</code> instead of <code style="font-size: 1.1em; padding: 0px; margin: 0px;">href="http://myURL"</code>; when the user clicks a hypertext link that contains the event scheme, the text field dispatches a <code style="font-size: 1.1em; padding: 0px; margin: 0px;">link</code> TextEvent with its <code style="font-size: 1.1em; padding: 0px; margin: 0px;">text</code>property set to “<code style="font-size: 1.1em; padding: 0px; margin: 0px;">myText</code>“. You can then create an ActionScript function that executes whenever the link TextEvent is dispatched. You can also define <code style="font-size: 1.1em; padding: 0px; margin: 0px;">a:link</code>, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">a:hover</code>, and<code style="font-size: 1.1em; padding: 0px; margin: 0px;">a:active</code> styles for anchor tags by using style sheets.</li>
</ul>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Bold tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;b&gt;</code> tag renders text as bold. A bold typeface must be available for the font used.</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Break tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;br&gt;</code> tag creates a line break in the text field. You must set the text field to be a multiline text field to use this tag.</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Font tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;font&gt;</code> tag specifies a font or list of fonts to display the text.The font tag supports the following attributes:</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">color</code>: Only hexadecimal color (<code style="font-size: 1.1em; padding: 0px; margin: 0px;">#FFFFFF</code>) values are supported.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">face</code>: Specifies the name of the font to use. As shown in the following example, you can specify a list of comma-delimited font names, in which case Flash Player selects the first available font. If the specified font is not installed on the user’s computer system or isn’t embedded in the SWF file, Flash Player selects a substitute font.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">size</code>: Specifies the size of the font. You can use absolute pixel sizes, such as 16 or 18, or relative point sizes, such as +2 or -4.</li>
</ul>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Image tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;img&gt;</code> tag lets you embed external image files (JPEG, GIF, PNG), SWF files, and movie clips inside text fields. Text automatically flows around images you embed in text fields. To use this tag, you must set the text field to be multiline and to wrap text.The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;img&gt;</code> tag supports the following attributes:</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">src</code>: Specifies the URL to an image or SWF file, or the linkage identifier for a movie clip symbol in the library. This attribute is required; all other attributes are optional. External files (JPEG, GIF, PNG, and SWF files) do not show until they are downloaded completely.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">width</code>: The width of the image, SWF file, or movie clip being inserted, in pixels.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">height</code>: The height of the image, SWF file, or movie clip being inserted, in pixels.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">align</code>: Specifies the horizontal alignment of the embedded image within the text field. Valid values are <code style="font-size: 1.1em; padding: 0px; margin: 0px;">left</code> and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">right</code>. The default value is <code style="font-size: 1.1em; padding: 0px; margin: 0px;">left</code>.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">hspace</code>: Specifies the amount of horizontal space that surrounds the image where no text appears. The default value is 8.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">vspace</code>: Specifies the amount of vertical space that surrounds the image where no text appears. The default value is 8.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">id</code>: Specifies the name for the movie clip instance (created by Flash Player) that contains the embedded image file, SWF file, or movie clip. This is useful if you want to control the embedded content with ActionScript.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">checkPolicyFile</code>: Specifies that Flash Player will check for a cross-domain policy file on the server associated with the image’s domain. If a cross-domain policy file exists, SWF files in the domains listed in the file can access the data of the loaded image, for instance by calling the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">BitmapData.draw()</code> method with this image as the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">source</code> parameter. For more information, see the “Flash Player Security” chapter in <em style="font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif; padding: 0px; margin: 0px;">Programming ActionScript 3.0</em>.</li>
</ul>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">Flash displays media embedded in a text field at full size. To specify the dimensions of the media you are embedding, use the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;img&gt;</code> tag’s <code style="font-size: 1.1em; padding: 0px; margin: 0px;">height</code> and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">width</code> attributes.</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">In general, an image embedded in a text field appears on the line following the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;img&gt;</code> tag. However, when the <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;img&gt;</code> tag is the first character in the text field, the image appears on the first line of the text field.</p>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Italic tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;i&gt;</code> tag displays the tagged text in italics. An italic typeface must be available for the font used.</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">List item tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;li&gt;</code> tag places a bullet in front of the text that it encloses. <strong style="font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif; padding: 0px; margin: 0px;">Note:</strong> Because Flash Player does not recognize ordered and unordered list tags (<code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;ol&gt;</code> and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;ul&gt;</code>, they do not modify how your list is rendered. All lists are unordered and all list items use bullets.</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Paragraph tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;p&gt;</code> tag creates a new paragraph. You must set the text field to be a multiline text field to use this tag. The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;p&gt;</code> tag supports the following attributes:</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;">align: Specifies alignment of text within the paragraph; valid values are <code style="font-size: 1.1em; padding: 0px; margin: 0px;">left</code>, <code style="font-size: 1.1em; padding: 0px; margin: 0px;">right</code>,<code style="font-size: 1.1em; padding: 0px; margin: 0px;">justify</code>, and <code style="font-size: 1.1em; padding: 0px; margin: 0px;">center</code>.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;">class: Specifies a CSS style class defined by a flash.text.StyleSheet object.</li>
</ul>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Span tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;span&gt;</code> tag is available only for use with CSS text styles. It supports the following attribute:</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;">class: Specifies a CSS style class defined by a flash.text.StyleSheet object.</li>
</ul>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Text format tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;textformat&gt;</code> tag lets you use a subset of paragraph formatting properties of the TextFormat class within text fields, including line leading, indentation, margins, and tab stops. You can combine <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;textformat&gt;</code> tags with the built-in HTML tags.</p>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;textformat&gt;</code> tag has the following attributes:</p>
<ul style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px;">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">blockindent</code>: Specifies the block indentation in points; corresponds to<code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.blockIndent</code>.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">indent</code>: Specifies the indentation from the left margin to the first character in the paragraph; corresponds to <code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.indent</code>. Both positive and negative numbers are acceptable.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">leading</code>: Specifies the amount of leading (vertical space) between lines; corresponds to<code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.leading</code>. Both positive and negative numbers are acceptable.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">leftmargin</code>: Specifies the left margin of the paragraph, in points; corresponds to<code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.leftMargin</code>.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">rightmargin</code>: Specifies the right margin of the paragraph, in points; corresponds to<code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.rightMargin</code>.</li>
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; padding: 0px;"><code style="font-size: 1.1em; padding: 0px; margin: 0px;">tabstops</code>: Specifies custom tab stops as an array of non-negative integers; corresponds to<code style="font-size: 1.1em; padding: 0px; margin: 0px;">TextFormat.tabStops</code>.</li>
</ul>
</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">Underline tag</td>
<td style="padding: 0px; margin: 0px;">The <code style="font-size: 1.1em; padding: 0px; margin: 0px;">&lt;u&gt;</code> tag underlines the tagged text.</td>
</tr>
</tbody>
</table>
<p style="margin-top: 13px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding: 0px;">Flash Player supports the following HTML entities:</p>
<table style="padding: 0px; margin: 0px;" border="0">
<tbody style="padding: 0px; margin: 0px;">
<tr style="padding: 0px; margin: 0px;">
<th style="padding: 0px; margin: 0px;">Entity</th>
<th style="padding: 0px; margin: 0px;">Description</th>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">&lt;</td>
<td style="padding: 0px; margin: 0px;">&lt; (less than)</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">&gt;</td>
<td style="padding: 0px; margin: 0px;">&gt; (greater than)</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">&amp;</td>
<td style="padding: 0px; margin: 0px;">&amp; (ampersand)</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">“</td>
<td style="padding: 0px; margin: 0px;">” (double quotes)</td>
</tr>
<tr style="padding: 0px; margin: 0px;">
<td style="padding: 0px; margin: 0px;">‘</td>
<td style="padding: 0px; margin: 0px;">‘ (apostrophe, single quote)</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/08/html-tags-supported-by-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efficient AS3 Programming Practices</title>
		<link>http://www.designscripting.com/2010/08/efficient-as3-programming-practices/</link>
		<comments>http://www.designscripting.com/2010/08/efficient-as3-programming-practices/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 11:49:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.designscripting.com/?p=428</guid>
		<description><![CDATA[Some times our application may consume much memory or resource in runtime, There are ways to control the memory usage or CPU utilization of the application by efficient use of code.
Some of the ways:
1. While creating new Array or Object.
 Never use
new Array();
new Object();
 Always use
var object:Object = {};
var arr:Array = [];
2. Dont use too many dot syntax.
 Never use
outcontainer.inner2.inner1.inner.x = 10;
outcontainer.inner2.inner1.inner.width = 100;
 Always use
var spr:Sprite = outcontainer.inner2.inner1.inner as Sprite
spr.x = 10;
spr.width = 100;
Note: Idea is to hold reference of the Object
3. Use int in for loop
 Example:
for( var ...]]></description>
			<content:encoded><![CDATA[<p>Some times our application may consume much memory or resource in runtime, There are ways to control the memory usage or CPU utilization of the application by efficient use of code.</p>
<p>Some of the ways:</p>
<p>1. While creating new Array or Object.<br />
<span style="color: #993300;"> Never use</span><br />
new Array();<br />
new Object();</p>
<p><span style="color: #008000;"> Always use</span><br />
var object:Object = {};<br />
var arr:Array = [];</p>
<p>2. Dont use too many dot syntax.<br />
<span style="color: #993300;"> Never use</span><br />
outcontainer.inner2.inner1.inner.x = 10;<br />
outcontainer.inner2.inner1.inner.width = 100;</p>
<p><span style="color: #008000;"> Always use</span><br />
var spr:Sprite = outcontainer.inner2.inner1.inner as Sprite<br />
spr.x = 10;<br />
spr.width = 100;</p>
<p>Note: Idea is to hold reference of the Object</p>
<p>3. Use int in for loop</p>
<p><span style="color: #008000;"> Example:</span><br />
for( var count:int=0; count&lt;10;count++){}</p>
<p>4. Hold the length reference in a variable before for loop.</p>
<p><span style="color: #008000;"> Example:</span><br />
var len:Number = arr.length();<br />
for( var count:int=0; count</p>
<p>5. To empty an array.</p>
<p>use arr = []; or arr.length = 0</p>
<p>6. <span style="color: #993300;">Never use</span> setStyles() in Flex. Use of this method makes calls to Framework.</p>
<p>7. Use XOR operator to swap variables without usage of temporary variable.</p>
<p><span style="color: #993300;"> Never use</span><br />
var a:Number = 10;<br />
var b:Number = 20;<br />
var temp:Number;<br />
temp = b;<br />
b = a;<br />
a = temp;</p>
<p><span style="color: #008000;"> Always use</span><br />
var a:Number = 10;<br />
var b:Number = 20;<br />
a = a ^b;<br />
b = a^b;<br />
a = a^b;</p>
<p>8. To declare two or more variable of same type.</p>
<p><span style="color: #993300;"> Never use</span><br />
var a:Number;<br />
var b:Number;<br />
var c:Number;</p>
<p><span style="color: #008000;"> Always use</span><br />
var a:int,b:int,c:int;</p>
<p>More in next post&#8230; Happy coding <img src='http://www.designscripting.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.designscripting.com/2010/08/efficient-as3-programming-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>4</slash:comments>
		</item>
	</channel>
</rss>
