<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Believe the Logic</title>
	<atom:link href="http://way2logic.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://way2logic.wordpress.com</link>
	<description>New way 2 reach next generation technology</description>
	<lastBuildDate>Fri, 25 Sep 2009 07:15:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='way2logic.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0f2532de1f51b9ee13eda6903a4b1ebb?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Believe the Logic</title>
		<link>http://way2logic.wordpress.com</link>
	</image>
			<item>
		<title>Flex Borders</title>
		<link>http://way2logic.wordpress.com/2009/09/25/flex-borders/</link>
		<comments>http://way2logic.wordpress.com/2009/09/25/flex-borders/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 06:45:44 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=26</guid>
		<description><![CDATA[hi! readers
Flex Borders
here uses the TileBorder box can show three type of layouts

* Absolute
* Vertical
* Horizantal
  
 
let shows code here
Source code:
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application 
xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8220;
layout=&#8221;absolute&#8221; backgroundColor=&#8221;0xffffff&#8220;
xmlns:ui=&#8221;com.chip.utility.ui.*&#8220;&#62;
&#60;mx:Style&#62;
.blueBorder {
border-color: #0000ff;
background-color: #e0e0e0;
}
.title2 {
color: #aa0000;
font-weight: bold;
}
.title3 {
color: #00aa00;
text-decoration: underline;
}
&#60;/mx:Style&#62;
&#60;ui:TitledBorderBox x=&#8221;10&#8221; y=&#8221;10&#8220;
title=&#8221;Absolute Layout&#8221; layout=&#8221;absolute&#8220;&#62;
&#60;mx:Button label=&#8221;First&#8220;/&#62;
&#60;mx:Button label=&#8221;Second&#8220;/&#62;
&#60;mx:Button label=&#8221;Third&#8220;/&#62;
&#60;/ui:TitledBorderBox&#62;
&#60;ui:TitledBorderBox x=&#8221;150&#8221; y=&#8221;10&#8221; borderDropShadow=&#8221;true&#8220;
title=&#8221;Vertical Layout&#8221; titleStyleName=&#8221;title2&#8221; layout=&#8221;vertical&#8220;&#62;
&#60;mx:Button label=&#8221;First&#8220;/&#62;
&#60;mx:Button label=&#8221;Second&#8220;/&#62;
&#60;mx:Button label=&#8221;Third&#8220;/&#62;
&#60;mx:Label text=&#8221;Drop shadow tool&#8220;/&#62;
&#60;/ui:TitledBorderBox&#62;
&#60;ui:TitledBorderBox x=&#8221;285&#8221; y=&#8221;10&#8221; styleName=&#8221;blueBorder&#8220;
title=&#8221;Horizontal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=26&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>hi! readers</p>
<p>Flex Borders</p>
<p>here uses the TileBorder box can show three type of layouts</p>
<div><span style="color:#3266cc;"><strong><em><br />
* Absolute</em></strong></span></div>
<div><span style="color:#3266cc;"><strong><em>* Vertical</em></strong></span></div>
<div><span style="color:#3266cc;"><strong><em>* Horizantal</em></strong></span></div>
<div><span style="color:#3266cc;"><strong><em> </em></strong></span><span style="color:#3266cc;"><strong><em> </em></strong></span></div>
<p><span style="color:#c0c0c0;"> </span></p>
<div id="attachment_27" class="wp-caption aligncenter" style="width: 494px"><img class="size-full wp-image-27" title="layouts" src="http://way2logic.files.wordpress.com/2009/09/layouts.gif?w=484&#038;h=155" alt="tye list" width="484" height="155" /><p class="wp-caption-text">Layouts</p></div>
<p>let shows code here<br />
<strong>Source code:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p>
<p>&lt;<span style="color:#0000ff;">mx:Application </span></p>
<p>xmlns:mx=&#8221;<span class="style1">http://www.adobe.com/2006/mxml</span>&#8220;</p>
<p>layout=&#8221;<span class="style1">absolute</span>&#8221; backgroundColor=&#8221;<span class="style1">0xffffff</span>&#8220;</p>
<p>xmlns:ui=&#8221;<span class="style1">com.chip.utility.ui.*</span>&#8220;&gt;</p>
<p>&lt;<span class="style3">mx:Style</span>&gt;</p>
<p><span class="style4">.blueBorder</span> {</p>
<p><span class="style5">border-color</span>: <span class="style6">#0000ff</span>;</p>
<p><span class="style5">background-color</span>: <span class="style6">#e0e0e0</span>;</p>
<p>}</p>
<p><span class="style4">.title2</span> {</p>
<p><span class="style5">color</span>: <span class="style6">#aa0000</span>;</p>
<p><span class="style5">font-weight</span>: <span class="style6">bold</span>;</p>
<p>}</p>
<p><span class="style4">.title3</span> {</p>
<p><span class="style5">color</span>: <span class="style6">#00aa00</span>;</p>
<p><span class="style5">text-decoration</span>: <span class="style6">underline</span>;</p>
<p>}</p>
<p>&lt;/<span class="style3">mx:Style</span>&gt;</p>
<p>&lt;<span class="style2">ui:TitledBorderBox</span> x=&#8221;<span class="style1">10</span>&#8221; y=&#8221;<span class="style1">10</span>&#8220;</p>
<p>title=&#8221;<span class="style1">Absolute</span> <span class="style1">Layout</span>&#8221; layout=&#8221;<span class="style1">absolute</span>&#8220;&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">First</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Second</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Third</span>&#8220;/&gt;</p>
<p>&lt;/<span class="style2">ui:TitledBorderBox</span>&gt;</p>
<p>&lt;<span class="style2">ui:TitledBorderBox</span> x=&#8221;<span class="style1">150</span>&#8221; y=&#8221;<span class="style1">10</span>&#8221; borderDropShadow=&#8221;<span class="style1">true</span>&#8220;</p>
<p>title=&#8221;<span class="style1">Vertical Layout</span>&#8221; titleStyleName=&#8221;<span class="style1">title2</span>&#8221; layout=&#8221;<span class="style1">vertical</span>&#8220;&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">First</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Second</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Third</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Label</span> text=&#8221;<span class="style1">Drop shadow tool</span>&#8220;/&gt;</p>
<p>&lt;/<span class="style2">ui:TitledBorderBo</span>x&gt;</p>
<p>&lt;<span class="style2">ui:TitledBorderBox</span> x=&#8221;<span class="style1">285</span>&#8221; y=&#8221;<span class="style1">10</span>&#8221; styleName=&#8221;<span class="style1">blueBorder</span>&#8220;</p>
<p>title=&#8221;<span class="style1">Horizontal Layout</span>&#8221; titleStyleName=&#8221;<span class="style1">title3</span>&#8221; layout=&#8221;<span class="style1">horizontal</span>&#8220;&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">First</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Second</span>&#8220;/&gt;</p>
<p>&lt;<span class="style2">mx:Button</span> label=&#8221;<span class="style1">Third</span>&#8220;/&gt;</p>
<p>&lt;/<span class="style2">ui:TitledBorderBox</span>&gt;</p>
<p>&lt;/<span class="style2">mx:Application</span>&gt;</p>
<p><span style="color:#800000;">TitleBox.as</span><br />
package com.chip.utility.ui<br />
{<br />
import flash.display.DisplayObject;<br />
import flash.display.Graphics;<br />
import flash.events.Event;<br />
import flash.events.TextEvent;<br />
import flash.filters.DropShadowFilter;<br />
import flash.geom.Rectangle;<br />
import flash.text.TextLineMetrics;</p>
<p>import mx.containers.BoxDirection;<br />
import mx.containers.utilityClasses.BoxLayout;<br />
import mx.containers.utilityClasses.CanvasLayout;<br />
import mx.containers.utilityClasses.ConstraintColumn;<br />
import mx.containers.utilityClasses.ConstraintRow;<br />
import mx.containers.utilityClasses.IConstraintLayout;<br />
import mx.containers.utilityClasses.Layout;<br />
import mx.core.Container;<br />
import mx.core.ContainerLayout;<br />
import mx.core.EdgeMetrics;<br />
import mx.core.IFlexModuleFactory;<br />
import mx.core.IFontContextComponent;<br />
import mx.core.IUITextField;<br />
import mx.core.UIComponent;<br />
import mx.core.UITextField;<br />
import mx.core.UITextFormat;<br />
import mx.styles.CSSStyleDeclaration;<br />
import mx.styles.StyleManager;</p>
<p>/**<br />
* Alpha of the title bar, control bar and sides of the Panel.<br />
* The default value is 1.<br />
*/<br />
[Style(name="borderAlpha", type="Number", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the children when a horizontal layout is used.<br />
* @default 8<br />
*/<br />
[Style(name="horizontalGap", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the children when a vertical layout is used.<br />
* @default 6<br />
*/<br />
[Style(name="verticalGap", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the container&#8217;s left border and its content area.<br />
* @default 5<br />
*/<br />
[Style(name="paddingLeft", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the container&#8217;s top border and its content area.<br />
* @default 20<br />
*/<br />
[Style(name="paddingTop", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the container&#8217;s right border and its content area.<br />
* @default 5<br />
*/<br />
[Style(name="paddingRight", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Number of pixels between the container&#8217;s lower border and its content area.<br />
* @default 5<br />
*/<br />
[Style(name="paddingBottom", type="Number", format="Length", inherit="no")]</p>
<p>/**<br />
* Style declaration name for the text in the title border.<br />
* The default value is <code>"windowStyles"</code>,<br />
* which causes the title to have boldface text.<br />
* @default &#8220;windowStyles&#8221;<br />
*/<br />
[Style(name="titleStyleName", type="String", inherit="no")]</p>
<p>[IconFile("TitledBorder.png")]</p>
<p>/**<br />
* This container has a title TextField and draws a border around the container except<br />
* for where the title TextField is located. A lot of this class is copied from the Panel class.<br />
* Like the Panel class it has a title and layout properties.<br />
*<br />
*</p>
<pre>	 *  &lt;ui:TitledBorderBox
 	 *   <strong>Properties</strong>
 	 *   layout="vertical|horizontal|absolute"
	 *   title=""
	 *   borderDropShadow="false"
	 *   <strong>Styles</strong>
	 *   backgroundAlpha="1"
	 *   backgroundColor="NaN"
 	 *   borderAlpha="1"
 	 *   borderColor="#000000"
 	 *   borderThickness="1"
 	 *   cornerRadius="0"
 	 *   horizontalGap="8"
	 *   paddingLeft="5"
	 *   paddingTop="20"
	 *   paddingRight="5"
	 *   paddingTop="5"
	 *   verticalGap="6"
	 *   titleStyleName="windowStyles"
 	 * &gt;
 	 *      ...
 	 *      <em>child tags</em>
 	 *      ...
 	 *  &lt;/ui:TitledBorderBox&gt;
 	 *</pre>
<p>*<br />
* @author Chris Callendar<br />
* @date April 1st, 2009<br />
*/<br />
public class TitledBorderBox extends Container implements IConstraintLayout, IFontContextComponent<br />
{<br />
// setup the default styles<br />
private static var classConstructed:Boolean = classConstruct();<br />
private static function classConstruct():Boolean {<br />
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(&#8220;TitledBorderBox&#8221;);<br />
if (!style) {<br />
style = new CSSStyleDeclaration();<br />
}<br />
style.defaultFactory = function():void {<br />
this.backgroundAlpha = 1;<br />
this.backgroundColor = NaN; // no default<br />
this.borderColor = 0&#215;0;<br />
this.borderThickness = 1;<br />
this.borderAlpha = 1;<br />
this.horizontalGap = 8;<br />
this.paddingLeft = 5;<br />
this.paddingTop = 20;<br />
this.paddingRight = 5;<br />
this.paddingBottom = 5;<br />
this.titleStyleName = &#8220;windowStyles&#8221;;<br />
this.verticalGap = 6;<br />
};<br />
StyleManager.setStyleDeclaration(&#8220;TitledBorderBox&#8221;, style, true);<br />
return true;<br />
};</p>
<p>private var layoutObject:Layout;<br />
private var _title:String;<br />
private var titleTextField:IUITextField;<br />
private var titleChanged:Boolean;<br />
private var border:UIComponent;<br />
private var _borderDropShadow:Boolean;</p>
<p>public function TitledBorderBox() {<br />
super();<br />
layoutObject = new BoxLayout();<br />
layoutObject.target = this;<br />
titleChanged = true;<br />
_borderDropShadow = false;<br />
}</p>
<p>[Bindable("titleChanged")]<br />
[Inspectable(category="General")]<br />
public function get title():String {<br />
return _title;<br />
}</p>
<p>public function set title(t:String):void {<br />
_title = (t != null ? t : &#8220;&#8221;);<br />
if (titleTextField) {<br />
titleTextField.text = _title;<br />
titleTextField.toolTip = _title;<br />
titleTextField.invalidateSize();<br />
titleChanged = true;<br />
invalidateDisplayList();<br />
}<br />
dispatchEvent(new TextEvent(&#8220;titleChanged&#8221;, false, false, _title));<br />
}</p>
<p>[Bindable("borderDropShadowChanged")]<br />
[Inspectable(category="General")]<br />
/** Adds a DropShadowFilter to the border. False by default. */<br />
public function get borderDropShadow():Boolean {<br />
return _borderDropShadow;<br />
}</p>
<p>public function set borderDropShadow(dropShadow:Boolean):void {<br />
if (dropShadow != _borderDropShadow) {<br />
_borderDropShadow = dropShadow;<br />
if (border) {<br />
border.filters = (dropShadow ? [ new DropShadowFilter(2, 45, 0x0, 0.4) ] : []);<br />
}<br />
dispatchEvent(new Event(&#8220;borderDropShadowChanged&#8221;));<br />
}<br />
}</p>
<p>override protected function createChildren():void {<br />
super.createChildren();<br />
createTitleTextField();<br />
}</p>
<p>/**<br />
* Creates the title text field child and adds it as a child of this component.<br />
* @param childIndex The index of where to add the child.<br />
* If -1, the text field is appended to the end of the list.<br />
*/<br />
protected function createTitleTextField(childIndex:int = -1):void {<br />
// Create the titleTextField as a child of the titleBar.<br />
if (!titleTextField) {<br />
titleTextField = IUITextField(createInFontContext(UITextField));<br />
titleTextField.selectable = false;<br />
if (childIndex == -1) {<br />
rawChildren.addChild(DisplayObject(titleTextField));<br />
} else {<br />
rawChildren.addChildAt(DisplayObject(titleTextField), childIndex);<br />
}<br />
var titleStyleName:String = getStyle(&#8220;titleStyleName&#8221;);<br />
titleTextField.styleName = titleStyleName;<br />
titleTextField.text = title;<br />
titleTextField.enabled = enabled;<br />
titleTextField.x = 15;<br />
titleTextField.y = 1;<br />
}<br />
}</p>
<p>override protected function createBorder():void {<br />
if (!border &amp;&amp; isBorderNeeded()) {<br />
border = new UIComponent();<br />
border.filters = (borderDropShadow ? [ new DropShadowFilter(2, 45, 0x0, 0.4) ] : []);<br />
// add first to put below all child components<br />
rawChildren.addChildAt(border, 0);<br />
}<br />
}</p>
<p>private function isBorderNeeded():Boolean {<br />
var bgAlpha:Number = getNumberStyle(&#8220;backgroundAlpha&#8221;, 1);<br />
var bgColor:Number = getStyle(&#8220;backgroundColor&#8221;);<br />
var bt:Number = getNumberStyle(&#8220;borderThickness&#8221;, 1);<br />
var ba:Number = getNumberStyle(&#8220;borderAlpha&#8221;, 1);<br />
return (!isNaN(bgColor) &amp;&amp; (bgAlpha &gt; 0)) || ((bt &gt; 0) &amp;&amp; (ba &gt; 0));<br />
}</p>
<p>/**<br />
* Returns an EdgeMetrics object that has four properties:<br />
* <code>left</code>, <code>top</code>, <code>right</code>,<br />
* and <code>bottom</code> ONLY if the layout is absolute.<br />
* Otherwise the padding is used.<br />
*/<br />
override public function get borderMetrics():EdgeMetrics {<br />
if (border &amp;&amp; (layout == ContainerLayout.ABSOLUTE)) {<br />
var l:Number = getNumberStyle(&#8220;paddingLeft&#8221;, 5);<br />
var t:Number = getNumberStyle(&#8220;paddingTop&#8221;, 20);<br />
var r:Number = getNumberStyle(&#8220;paddingRight&#8221;, 5);<br />
var b:Number = getNumberStyle(&#8220;paddingBottom&#8221;, 5);<br />
return new EdgeMetrics(l, t, r, b);<br />
}<br />
return EdgeMetrics.EMPTY;<br />
}</p>
<p>override public function styleChanged(styleProp:String):void {<br />
var allStyles:Boolean = !styleProp || styleProp == &#8220;styleName&#8221;;<br />
super.styleChanged(styleProp);<br />
if (allStyles || styleProp == &#8220;titleStyleName&#8221;) {<br />
if (titleTextField) {<br />
var titleStyleName:String = getStyle(&#8220;titleStyleName&#8221;);<br />
titleTextField.styleName = titleStyleName;<br />
titleChanged = true;<br />
}<br />
}<br />
}</p>
<p>override protected function measure():void {<br />
super.measure();<br />
layoutObject.measure();</p>
<p>var measuredSize:Rectangle = measureTitleText();<br />
var paddingW:int = 38;<br />
measuredMinWidth = Math.max(measuredSize.width + paddingW, measuredMinWidth);<br />
measuredWidth = Math.max(measuredSize.width + paddingW, measuredWidth);<br />
}</p>
<p>private function measureTitleText():Rectangle {<br />
var textWidth:Number = 20;<br />
var textHeight:Number = 14;<br />
if (titleTextField &amp;&amp; titleTextField.text) {<br />
titleTextField.validateNow();<br />
var textFormat:UITextFormat = titleTextField.getUITextFormat();<br />
var metrics:TextLineMetrics = textFormat.measureText(titleTextField.text, false);<br />
textWidth = metrics.width;<br />
textHeight = metrics.height;<br />
}<br />
return new Rectangle(0, 0, Math.round(textWidth), Math.round(textHeight));<br />
}</p>
<p>/**<br />
* Size the title textfield.<br />
*/<br />
protected function sizeTitleTextField(w:Number, h:Number):void {<br />
if (titleChanged) {<br />
var padding:int = 38;<br />
var measuredW:Number = titleTextField.measuredWidth;<br />
var measuredH:Number = titleTextField.measuredHeight;<br />
var widthWithPadding:Number = measuredW + padding;<br />
if (!isNaN(explicitWidth)) {<br />
// explicit width set &#8211; make the title textfield smaller if necessary<br />
if (explicitWidth &lt; widthWithPadding) { measuredW = Math.max(0, explicitWidth &#8211; padding); } } titleTextField.setActualSize(measuredW, measuredH); titleChanged = false; } } override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); layoutObject.updateDisplayList(unscaledWidth, unscaledHeight); sizeTitleTextField(w, h); drawBorder(w, h); } protected function drawBorder(w:Number, h:Number):void { if (border) { var tfx:Number = titleTextField.x; var tfy:Number = titleTextField.y; var tfw:Number = titleTextField.width; var tfh:Number = titleTextField.height; var hasTitle:Boolean = (titleTextField.text.length &gt; 0);</p>
<p>var bgAlpha:Number = getNumberStyle(&#8220;backgroundAlpha&#8221;, 1);<br />
var bgColor:Number = getStyle(&#8220;backgroundColor&#8221;);<br />
var borderThickness:int = getNumberStyle(&#8220;borderThickness&#8221;, 1);<br />
var borderColor:uint = uint(getNumberStyle(&#8220;borderColor&#8221;, 0&#215;0));<br />
var borderAlpha:Number = getNumberStyle(&#8220;borderAlpha&#8221;, 1);<br />
var cornerRadius:uint = uint(getNumberStyle(&#8220;cornerRadius&#8221;, 0));</p>
<p>var spacing:int = 4; // same as UITextField.TEXT_HEIGHT_PADDING, but it is mx_internal<br />
border.move(0, Math.round(tfh / 2));<br />
border.setActualSize(w, h &#8211; border.y);<br />
var borderW:Number = w &#8211; borderThickness;<br />
var borderH:Number = border.height &#8211; borderThickness;</p>
<p>var g:Graphics = border.graphics;<br />
g.clear();</p>
<p>// draw the background first<br />
if (!isNaN(bgColor) &amp;&amp; (bgAlpha &gt; 0) &amp;&amp; (bgAlpha &lt;= 1)) { g.lineStyle(0, 0, 0, true); g.beginFill(bgColor, bgAlpha); if (cornerRadius &gt; 0) {<br />
g.drawRoundRect(0, 0, borderW, borderH, cornerRadius*2, cornerRadius*2);<br />
} else {<br />
g.drawRect(0, 0, borderW, borderH);<br />
}<br />
g.endFill();<br />
}</p>
<p>// draw the border<br />
if ((borderThickness &gt; 0) &amp;&amp; (borderAlpha &gt; 0) &amp;&amp; (borderAlpha &lt;= 1)) {<br />
g.lineStyle(borderThickness, borderColor, borderAlpha, true);<br />
if (hasTitle) {<br />
g.moveTo(tfx &#8211; spacing, 0);<br />
if ((cornerRadius == 0) || (borderH &lt; cornerRadius) || (borderW &lt; cornerRadius)) {<br />
g.lineTo(0, 0);<br />
g.lineTo(0, borderH);<br />
g.lineTo(borderW, borderH);<br />
g.lineTo(borderW, 0);<br />
g.lineTo(tfx + tfw + spacing, 0);<br />
} else {<br />
g.lineTo(cornerRadius, 0);<br />
g.curveTo(0, 0, 0, cornerRadius);<br />
g.lineTo(0, borderH &#8211; cornerRadius);<br />
g.curveTo(0, borderH, cornerRadius, borderH);<br />
g.lineTo(borderW &#8211; cornerRadius, borderH);<br />
g.curveTo(borderW, borderH, borderW, borderH &#8211; cornerRadius);<br />
g.lineTo(borderW, cornerRadius);<br />
g.curveTo(borderW, 0, borderW &#8211; cornerRadius, 0);<br />
g.lineTo(tfx + tfw + spacing, 0);<br />
}<br />
} else {<br />
if ((cornerRadius == 0) || (borderH &lt; cornerRadius) || (borderW &lt; cornerRadius)) {<br />
g.drawRect(0, 0, borderW, borderH);<br />
} else {<br />
g.drawRoundRect(0, 0, borderW, borderH, cornerRadius*2, cornerRadius*2);<br />
}<br />
}<br />
}<br />
}<br />
}</p>
<p>protected function getNumberStyle(styleName:String, defaultValue:Number):Number {<br />
var num:Number = getStyle(styleName);<br />
if (isNaN(num)) {<br />
num = defaultValue;<br />
}<br />
return num;<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
// layout &#8211; copied from Panel<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>private var _layout:String = ContainerLayout.VERTICAL;</p>
<p>[Bindable("layoutChanged")]<br />
[Inspectable(category="General", enumeration="vertical,horizontal,absolute", defaultValue="vertical")]</p>
<p>/**<br />
* Specifies the layout mechanism used for this container.<br />
* Panel containers can use <code>"vertical"</code>, <code>"horizontal"</code>,<br />
* or <code>"absolute"</code> positioning.<br />
* Vertical positioning lays out the child components vertically from<br />
* the top of the container to the bottom in the specified order.<br />
* Horizontal positioning lays out the child components horizontally<br />
* from the left of the container to the right in the specified order.<br />
* Absolute positioning does no automatic layout and requires you to<br />
* explicitly define the location of each child component.<br />
* @default &#8220;vertical&#8221;<br />
*/<br />
public function get layout():String {<br />
return _layout;<br />
}</p>
<p>/**<br />
* @private<br />
*/<br />
public function set layout(value:String):void {<br />
if (_layout != value) {<br />
_layout = value;<br />
if (layoutObject) {<br />
layoutObject.target = null; // cleanup<br />
}<br />
if (_layout == ContainerLayout.ABSOLUTE) {<br />
layoutObject = new CanvasLayout();<br />
} else {<br />
layoutObject = new BoxLayout();<br />
if (_layout == ContainerLayout.VERTICAL) {<br />
BoxLayout(layoutObject).direction = BoxDirection.VERTICAL;<br />
} else {<br />
BoxLayout(layoutObject).direction = BoxDirection.HORIZONTAL;<br />
}<br />
}<br />
if (layoutObject) {<br />
layoutObject.target = this;<br />
}<br />
invalidateSize();<br />
invalidateDisplayList();<br />
dispatchEvent(new Event(&#8220;layoutChanged&#8221;));<br />
}<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// constraintColumns &#8211; copied from Panel<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>[ArrayElementType("mx.containers.utilityClasses.ConstraintColumn")]<br />
[Inspectable(arrayType="mx.containers.utilityClasses.ConstraintColumn")]</p>
<p>/**<br />
* @private<br />
* Storage for the constraintColumns property.<br />
*/<br />
private var _constraintColumns:Array = [];</p>
<p>/**<br />
* @copy mx.containers.utilityClasses.IConstraintLayout#constraintColumns<br />
*/<br />
public function get constraintColumns():Array {<br />
return _constraintColumns;<br />
}</p>
<p>/**<br />
* @private<br />
*/<br />
public function set constraintColumns(value:Array):void {<br />
if (value != _constraintColumns) {<br />
var n:int = value.length;<br />
for (var i:int = 0; i &lt; n; i++) {<br />
ConstraintColumn(value[i]).container = this;<br />
}<br />
_constraintColumns = value;<br />
invalidateSize();<br />
invalidateDisplayList();<br />
}<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// constraintRows &#8211; copied from Panel<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>[ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]<br />
[Inspectable(arrayType="mx.containers.utilityClasses.ConstraintRow")]</p>
<p>/**<br />
* @private<br />
* Storage for the constraintRows property.<br />
*/<br />
private var _constraintRows:Array = [];</p>
<p>/**<br />
* @copy mx.containers.utilityClasses.IConstraintLayout#constraintRows<br />
*/<br />
public function get constraintRows():Array {<br />
return _constraintRows;<br />
}</p>
<p>/**<br />
* @private<br />
*/<br />
public function set constraintRows(value:Array):void {<br />
if (value != _constraintRows) {<br />
var n:int = value.length;<br />
for (var i:int = 0; i &lt; n; i++) {<br />
ConstraintRow(value[i]).container = this;<br />
}<br />
_constraintRows = value;<br />
invalidateSize();<br />
invalidateDisplayList();<br />
}<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// fontContext &#8211; copied from Panel<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>/**<br />
* @inheritDoc<br />
*/<br />
public function get fontContext():IFlexModuleFactory {<br />
return moduleFactory;<br />
}</p>
<p>/**<br />
* @private<br />
*/<br />
public function set fontContext(moduleFactory:IFlexModuleFactory):void {<br />
this.moduleFactory = moduleFactory;<br />
}</p>
<p>}<br />
}</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=26&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2009/09/25/flex-borders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>

		<media:content url="http://way2logic.files.wordpress.com/2009/09/layouts.gif" medium="image">
			<media:title type="html">layouts</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a simple image gallery with the Flex using TileList control</title>
		<link>http://way2logic.wordpress.com/2008/07/11/creating-a-simple-image-gallery-with-the-flex-using-tilelist-control/</link>
		<comments>http://way2logic.wordpress.com/2008/07/11/creating-a-simple-image-gallery-with-the-flex-using-tilelist-control/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 15:47:13 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=22</guid>
		<description><![CDATA[Creating a simple image gallery with the Flex HorizontalList control” the following example shows how you can create a simple photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.
Source code:
Main.mxml:
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;
        layout=&#8221;vertical&#8221;
        verticalAlign=&#8221;middle&#8221;
        backgroundColor=&#8221;white&#8221;&#62;
    &#60;mx:Style&#62;
        global {
            modal-transparency: 0.9;
            modal-transparency-color: white;
            modal-transparency-blur: 9;
        }
    &#60;/mx:Style&#62;
    &#60;mx:Script&#62;
        &#60;![CDATA[
            import [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=22&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span><strong>Creating a simple image gallery with the Flex HorizontalList control</strong>”</span> the following example shows how you can create a simple photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.</p>
<p><strong>Source code:</strong></p>
<p><span style="color:#800000;"><strong><em>Main.mxml:</em></strong></span></p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
        layout=&#8221;vertical&#8221;<br />
        verticalAlign=&#8221;middle&#8221;<br />
        backgroundColor=&#8221;white&#8221;&gt;</p>
<p>    &lt;mx:Style&gt;<br />
        global {<br />
            modal-transparency: 0.9;<br />
            modal-transparency-color: white;<br />
            modal-transparency-blur: 9;<br />
        }<br />
    &lt;/mx:Style&gt;</p>
<p>    &lt;mx:Script&gt;<br />
        &lt;![CDATA[<br />
            import mx.effects.Resize;<br />
            import mx.events.ResizeEvent;<br />
            import mx.events.ListEvent;<br />
            import mx.controls.Image;<br />
            import mx.events.ItemClickEvent;<br />
            import mx.managers.PopUpManager;</p>
<p>            private var img:Image;</p>
<p>            private function tileList_itemClick(evt:ListEvent):void {<br />
                img = new Image();<br />
                // img.width = 300;<br />
                // img.height = 300;<br />
                img.maintainAspectRatio = true;<br />
                img.addEventListener(Event.COMPLETE, image_complete);<br />
                img.addEventListener(ResizeEvent.RESIZE, image_resize);<br />
                img.addEventListener(MouseEvent.CLICK, image_click);<br />
                img.source = evt.itemRenderer.data.@fullImage;<br />
                img.setStyle("addedEffect", image_addedEffect);<br />
                img.setStyle("removedEffect", image_removedEffect);<br />
                PopUpManager.addPopUp(img, this, true);<br />
            }</p>
<p>            private function image_click(evt:MouseEvent):void {<br />
                PopUpManager.removePopUp(evt.currentTarget as Image);<br />
            }</p>
<p>            private function image_resize(evt:ResizeEvent):void {<br />
                PopUpManager.centerPopUp(evt.currentTarget as Image);<br />
            }</p>
<p>            private function image_complete(evt:Event):void {<br />
                PopUpManager.centerPopUp(evt.currentTarget as Image);<br />
            }<br />
        ]]&gt;<br />
    &lt;/mx:Script&gt;</p>
<p>    &lt;mx:WipeDown id=&#8221;image_addedEffect&#8221; startDelay=&#8221;100&#8243; /&gt;</p>
<p>    &lt;mx:Parallel id=&#8221;image_removedEffect&#8221;&gt;<br />
        &lt;mx:Zoom /&gt;<br />
        &lt;mx:Fade /&gt;<br />
    &lt;/mx:Parallel&gt;</p>
<p>    &lt;mx:XML id=&#8221;xml&#8221; source=&#8221;gallery.xml&#8221; /&gt;<br />
    &lt;mx:XMLListCollection id=&#8221;xmlListColl&#8221; source=&#8221;{xml.image}&#8221; /&gt;</p>
<p>    &lt;mx:TileList id=&#8221;tileList&#8221;<br />
            dataProvider=&#8221;{xmlListColl}&#8221;<br />
            itemRenderer=&#8221;CustomItemRenderer&#8221;<br />
            columnCount=&#8221;4&#8243;<br />
            columnWidth=&#8221;125&#8243;<br />
            rowCount=&#8221;2&#8243;<br />
            rowHeight=&#8221;100&#8243;<br />
            themeColor=&#8221;haloSilver&#8221;<br />
            verticalScrollPolicy=&#8221;on&#8221;<br />
            itemClick=&#8221;tileList_itemClick(event);&#8221; /&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
<p><span style="color:#800000;">View CustomItemRenderer.mxml</span></p>
<blockquote>
<p style="padding-left:60px;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:VBox xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
        horizontalAlign=&#8221;center&#8221;<br />
        verticalAlign=&#8221;middle&#8221;&gt;<br />
    &lt;mx:Image source=&#8221;{data.@thumbnailImage}&#8221; /&gt;<br />
    &lt;mx:Label text=&#8221;{data.@title}&#8221; /&gt;<br />
&lt;/mx:VBox&gt;</p></blockquote>
<p> <span style="color:#800000;">View gallery.xml</span></p>
<p style="padding-left:90px;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211; http://blog.flexexamples.com/2008/03/08/creating-a-simple-image-gallery-with-the-flex-tilelist-control/ &#8211;&gt;<br />
&lt;gallery&gt;<br />
    &lt;image title=&#8221;Flex&#8221;<br />
        thumbnailImage=&#8221;assets/fx_appicon-tn.gif&#8221;<br />
        fullImage=&#8221;assets/fx_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Flash&#8221;<br />
            thumbnailImage=&#8221;assets/fl_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/fl_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Illustrator&#8221;<br />
            thumbnailImage=&#8221;assets/ai_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/ai_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Dreamweaver&#8221;<br />
            thumbnailImage=&#8221;assets/dw_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/dw_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;ColdFusion&#8221;<br />
            thumbnailImage=&#8221;assets/cf_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/cf_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Flash Player&#8221;<br />
            thumbnailImage=&#8221;assets/fl_player_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/fl_player_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Fireworks&#8221;<br />
            thumbnailImage=&#8221;assets/fw_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/fw_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Lightroom&#8221;<br />
            thumbnailImage=&#8221;assets/lr_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/lr_appicon.jpg&#8221; /&gt;<br />
    &lt;image title=&#8221;Photoshop&#8221;<br />
            thumbnailImage=&#8221;assets/ps_appicon-tn.gif&#8221;<br />
            fullImage=&#8221;assets/ps_appicon.jpg&#8221; /&gt;<br />
&lt;/gallery&gt;</p>
<p> </p>
<p>Enjoy the Image Gallery !&#8230;&#8230;&#8230;&#8230;..</p>
<p> </p>
<p><span style="color:#c0c0c0;">Courtersy: flexexamples</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=22&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/07/11/creating-a-simple-image-gallery-with-the-flex-using-tilelist-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting a creation complete effect on a Button  in Flex</title>
		<link>http://way2logic.wordpress.com/2008/07/11/setting-a-creation-complete-effect-on-a-button-in-flex/</link>
		<comments>http://way2logic.wordpress.com/2008/07/11/setting-a-creation-complete-effect-on-a-button-in-flex/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 15:34:41 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=21</guid>
		<description><![CDATA[The following example shows how you can set a creation complete effect on a Flex Button control by setting the creationCompleteEffect style.
 
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;!&#8211; http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ &#8211;&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;
layout=&#8221;vertical&#8221;
verticalAlign=&#8221;middle&#8221;
backgroundColor=&#8221;white&#8221;&#62;
&#60;mx:Button id=&#8221;button&#8221;
label=&#8221;Button&#8221;
creationCompleteEffect=&#8221;Zoom&#8221; /&#62;
&#60;/mx:Application&#62;
 
You can also set the creationCompleteEffect style using an external .CSS file or &#60;mx:Style /&#62; block, as seen in the following snippet: 
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;!&#8211; http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ &#8211;&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;
        [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=21&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following example shows how you can set a creation complete effect on a Flex Button control by setting the <code>creationCompleteEffect</code> style.</p>
<blockquote><p> <br />
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211; http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
layout=&#8221;vertical&#8221;<br />
verticalAlign=&#8221;middle&#8221;<br />
backgroundColor=&#8221;white&#8221;&gt;</p>
<p>&lt;mx:Button id=&#8221;button&#8221;<br />
label=&#8221;Button&#8221;<br />
creationCompleteEffect=&#8221;Zoom&#8221; /&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
<p> </p>
<p>You can also set the <code>creationCompleteEffect</code> style using an external .CSS file or &lt;mx:Style /&gt; block, as seen in the following snippet: </p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211; http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
        layout=&#8221;vertical&#8221;<br />
        verticalAlign=&#8221;middle&#8221;<br />
        backgroundColor=&#8221;white&#8221;&gt;</p>
<p>    &lt;mx:Style&gt;<br />
        Button {<br />
            creationCompleteEffect: Zoom;<br />
        }<br />
    &lt;/mx:Style&gt;</p>
<p>    &lt;mx:Button id=&#8221;button&#8221;<br />
            label=&#8221;Button&#8221; /&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
<p style="padding-left:150px;">or</p>
<p>you can set the <code>creationCompleteEffect</code> style using ActionScript, as seen in the following example:</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211; http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
        layout=&#8221;vertical&#8221;<br />
        verticalAlign=&#8221;middle&#8221;<br />
        backgroundColor=&#8221;white&#8221;<br />
        creationComplete=&#8221;init();&#8221;&gt;</p>
<p>    &lt;mx:Script&gt;<br />
        &lt;![CDATA[<br />
            import mx.controls.Button;<br />
            import mx.effects.Zoom;</p>
<p>            private var button:Button;</p>
<p>            private function init():void {<br />
                button = new Button();<br />
                button.label = "Button";<br />
                button.setStyle("creationCompleteEffect", Zoom);<br />
                addChild(button);<br />
            }<br />
        ]]&gt;<br />
    &lt;/mx:Script&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
<p><span style="color:#c0c0c0;">Courtersy: Blog.flexexamples</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=21&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/07/11/setting-a-creation-complete-effect-on-a-button-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the background alpha on a VideoDisplay control in Flex</title>
		<link>http://way2logic.wordpress.com/2008/07/11/setting-the-background-alpha-on-a-videodisplay-control-in-flex/</link>
		<comments>http://way2logic.wordpress.com/2008/07/11/setting-the-background-alpha-on-a-videodisplay-control-in-flex/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 15:27:31 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=20</guid>
		<description><![CDATA[Here we saw how you could modify the background color of a VideoDisplay control in Flex by setting the backgroundColor style.
The following example shows how you can set the background alpha on a Flex VideoDisplay control by setting the backgroundAlpha style.

&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;
layout=&#8221;vertical&#8221;
verticalAlign=&#8221;middle&#8221;
backgroundColor=&#8221;white&#8221;&#62;
&#60;mx:Script&#62;
&#60;![CDATA[
private function loadButton_click(evt:MouseEvent):void {
var url:String = "http://www.helpexamples.com/flash/video/clouds.flv";
videoDisplay.source = url;
}
private function unloadButton_click(evt:MouseEvent):void {
videoDisplay.close();
videoDisplay.source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=20&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here we saw how you could modify the background color of a VideoDisplay control in Flex by setting the <code>backgroundColor</code> style.</p>
<p>The following example shows how you can set the background alpha on a Flex VideoDisplay control by setting the <code>backgroundAlpha</code> style.</p>
<blockquote>
<p style="text-align:left;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p>
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
layout=&#8221;vertical&#8221;<br />
verticalAlign=&#8221;middle&#8221;<br />
backgroundColor=&#8221;white&#8221;&gt;</p>
<p style="text-align:left;">&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
private function loadButton_click(evt:MouseEvent):void {<br />
var url:String = "http://www.helpexamples.com/flash/video/clouds.flv";<br />
videoDisplay.source = url;<br />
}</p>
<p style="text-align:left;">private function unloadButton_click(evt:MouseEvent):void {<br />
videoDisplay.close();<br />
videoDisplay.source = null;<br />
videoDisplay.mx_internal::videoPlayer.clear();<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p style="text-align:left;">&lt;mx:ApplicationControlBar dock=&#8221;true&#8221;&gt;<br />
&lt;mx:Form styleName=&#8221;plain&#8221;&gt;<br />
&lt;mx:FormItem label=&#8221;backgroundAlpha:&#8221;&gt;<br />
&lt;mx:HSlider id=&#8221;slider&#8221;<br />
minimum=&#8221;0.0&#8243;<br />
maximum=&#8221;1.0&#8243;<br />
value=&#8221;1&#8243;<br />
snapInterval=&#8221;0.01&#8243;<br />
liveDragging=&#8221;true&#8221; /&gt;<br />
&lt;/mx:FormItem&gt;<br />
&lt;mx:FormItem label=&#8221;backgroundColor:&#8221;&gt;<br />
&lt;mx:ColorPicker id=&#8221;colorPicker&#8221; /&gt;<br />
&lt;/mx:FormItem&gt;<br />
&lt;/mx:Form&gt;<br />
&lt;/mx:ApplicationControlBar&gt;</p>
<p style="text-align:left;">&lt;mx:VideoDisplay id=&#8221;videoDisplay&#8221;<br />
backgroundAlpha=&#8221;{slider.value}&#8221;<br />
backgroundColor=&#8221;{colorPicker.selectedColor}&#8221;<br />
width=&#8221;160&#8243;<br />
height=&#8221;120&#8243; /&gt;</p>
<p style="text-align:left;">&lt;mx:ControlBar&gt;<br />
&lt;mx:Button id=&#8221;loadButton&#8221;<br />
label=&#8221;Load&#8221;<br />
click=&#8221;loadButton_click(event);&#8221; /&gt;<br />
&lt;mx:Button id=&#8221;unloadButton&#8221;<br />
label=&#8221;Unload&#8221;<br />
click=&#8221;unloadButton_click(event);&#8221; /&gt;<br />
&lt;/mx:ControlBar&gt;</p>
<pre style="text-align:left;">&lt;/mx:Application&gt;</pre>
</blockquote>
<pre style="text-align:left;"><span style="color:#ffffff;"><span style="color:#c0c0c0;"></span></span></pre>
<pre style="text-align:left;"><span style="color:#ffffff;"><span style="color:#c0c0c0;"></span></span></pre>
<pre style="text-align:left;"><span style="color:#ffffff;"><span style="color:#c0c0c0;"><span style="text-decoration:underline;">courtersy: blog. Flexexamples.</span></span>com</span></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=20&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/07/11/setting-the-background-alpha-on-a-videodisplay-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex- completeEffect with Button</title>
		<link>http://way2logic.wordpress.com/2008/06/21/flex-completeeffect-with-button/</link>
		<comments>http://way2logic.wordpress.com/2008/06/21/flex-completeeffect-with-button/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 14:00:22 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex3]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=18</guid>
		<description><![CDATA[The following example shows how you can set a creation complete effect on a Flex Button control by setting the creationCompleteEffectstyle .
View Source
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&#62;

    &#60;mx:Style&#62;
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=18&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following example shows how you can set a creation complete effect on a Flex Button control by setting the <code>creationCompleteEffect</code>style .</p>
<h2><span style="color:#0000ff;">View Source</span></h2>
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        Button {
            creationCompleteEffect: Zoom;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Button id="button"
            label="Button" /&gt;

&lt;/mx:Application&gt;</pre>
<p><img src="/DOCUME%7E1/Bhuvan/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=18&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/06/21/flex-completeeffect-with-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>

		<media:content url="/DOCUME%7E1/Bhuvan/LOCALS%7E1/Temp/moz-screenshot.jpg" medium="image" />
	</item>
		<item>
		<title>Zoom Effectd</title>
		<link>http://way2logic.wordpress.com/2008/04/08/zoom-effectd/</link>
		<comments>http://way2logic.wordpress.com/2008/04/08/zoom-effectd/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 09:16:48 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=16</guid>
		<description><![CDATA[// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Z O 0 M    F U N C T I O N &#8212;&#8212;&#8212;&#8212;&#8212;-
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-

Code:
 zoomtools ()
function zoomtools ()
{
 // Zoom buttons
 // zoom-In button
 zoomin_mc.onRollOut = function ()
 {
  zoomin_mc.gotoAndStop ('normal');
 };
 zoomin_mc.onRollOver = function ()
 {
  zoomin_mc.gotoAndStop ('over');
 };
 zoomin_mc.onPress = function ()
 {
  zoomin_mc.gotoAndStop ('down');
 };
 zoomin_mc.onRelease = function ()
 {
  zoomin_mc.gotoAndStop ('on');
  //_root.createEmptyMovieClip ('maskes',-2);
  //_root.ImageArea.setMask (_root._parent);
  
  if (_root.ImageArea.Image.image._xscale &#62; 200)
  {
   if (_root.ImageArea.Image.image._yscale &#62; 200)
   {
    _root.zoom = 0;
   }
  }
  else
  {
   _root.zoom = 1;
  }
 };
 // zoom-Out button
 zoomout_mc.onRollOut = function ()
 {
  zoomout_mc.gotoAndStop [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=16&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#c0c0c0;">// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Z O 0 M    F U N C T I O N &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<div style="margin:5px 20px 20px;">
<div style="margin-bottom:2px;"><strong>Code</strong>:</div>
<pre> zoomtools ()
<span style="color:#0000ff;">function</span> zoomtools ()
{</pre>
<pre><span style="color:#c0c0c0;"> // Zoom buttons</span><span style="color:#0000ff;">
<span style="color:#c0c0c0;"> // zoom-In button</span></span></pre>
<pre> zoomin_mc.<span style="color:#3366ff;">onRollOut</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomin_mc.<span style="color:#3366ff;">gotoAndStop</span> (<span style="color:#339966;">'normal'</span>);
 };
 zoomin_mc.<span style="color:#3366ff;">onRollOver</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomin_mc.<span style="color:#3366ff;">gotoAndStop</span> (<span style="color:#339966;">'over'</span>);
 };
 zoomin_mc.<span style="color:#3366ff;">onPress</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomin_mc.<span style="color:#3366ff;">gotoAndStop</span> (<span style="color:#339966;">'down'</span>);
 };
 zoomin_mc.<span style="color:#3366ff;">onRelease</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomin_mc.<span style="color:#3366ff;">gotoAndStop</span> (<span style="color:#339966;">'on'</span>);
 <span style="color:#c0c0c0;"> //_root.createEmptyMovieClip ('maskes',-2);</span>
<span style="color:#c0c0c0;">  //_root.ImageArea.setMask (_root._parent);</span>
  
  <span style="color:#3366ff;">if</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.ImageArea.Image.image._<span style="color:#3366ff;">xscale</span> &gt; 200)
  {
   <span style="color:#3366ff;">if</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.ImageArea.Image.image._<span style="color:#3366ff;">yscale</span> &gt; 200)
   {
    <span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.zoom = 0;
   }
  }
  <span style="color:#3366ff;">else</span>
  {
   _<span style="color:#3366ff;">root</span>.zoom = 1;
  }
 };</pre>
<pre><span style="color:#c0c0c0;"> // zoom-Out button</span></pre>
<pre> zoomout_mc.<span style="color:#3366ff;">onRollOut</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomout_mc.<span style="color:#3366ff;">gotoAndStop</span> ('normal');
 };
 zoomout_mc.<span style="color:#3366ff;">onRollOver</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomout_mc.<span style="color:#3366ff;">gotoAndStop</span> ('over');
 };
 zoomout_mc.<span style="color:#3366ff;">onPress</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomout_mc.<span style="color:#3366ff;">gotoAndStop</span> ('down');
 };
 zoomout_mc.<span style="color:#3366ff;">onRelease</span> = <span style="color:#3366ff;">function</span> ()
 {
  zoomout_mc.<span style="color:#3366ff;">gotoAndStop</span> ('on');
  <span style="color:#3366ff;">if</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">xscale</span> &lt; 35)
  {
  <span style="color:#3366ff;"> if</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root.</span>ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">yscale</span> &lt; 35)
   {
   <span style="color:#3366ff;"> _root</span>.<span style="color:#3366ff;">zoom</span> = 0;
   }
   <span style="color:#c0c0c0;">/*if (_root.ImageArea.Image.image._yscale &lt;= 35)
   {
    _root.ImageArea.Image.image.attachMovie ('limit','limit',12);
    _root.ImageArea.Image.image.limit._x = -_root.ImageArea.Image.image._width / 2;
    _root.ImageArea.Image.image.limit._y = -_root.ImageArea.Image.image._height / 2;
   }
   else if (_root.ImageArea.Image.image._yscale &gt; 35)
   {</span></pre>
<pre><span style="color:#c0c0c0;">    _root.ImageArea.Image.image.removeMovieClip ();
   }*/
</span>
  }
  <span style="color:#3366ff;">else</span>
  {
  <span style="color:#3366ff;"> _root</span>.<span style="color:#3366ff;">zoom</span> = -1;
  }</pre>
<pre> };
<span style="color:#3366ff;"> _root.onLoad</span> = <span style="color:#3366ff;">function</span> ()
 {
<span style="color:#3366ff;">  _root</span>.<span style="color:#3366ff;">zoom</span> = 0;
 };</pre>
<pre> <span style="color:#3366ff;">zoom</span> = 0;
 zoomperclick = 10;
<span style="color:#3366ff;"> _root</span>.<span style="color:#3366ff;">onEnterFrame</span> = <span style="color:#3366ff;">function</span> ()
 {
  <span style="color:#3366ff;">_root</span>.<span style="color:#3366ff;">createEmptyMovieClip</span> (<span style="color:#339966;">'ms'</span>,-23);
  <span style="color:#3366ff;">_root</span>.ms.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">width</span> = <span style="color:#3366ff;">_root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">width</span>;
 <span style="color:#3366ff;"> _root</span>.ms.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">height</span> = <span style="color:#3366ff;">_root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">height</span>;
 <span style="color:#3366ff;"> if</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.zooming &lt; <span style="color:#3366ff;">_root</span>.zoomperclick)
  {
  <span style="color:#3366ff;"> _root</span>.zooming++;
   <span style="color:#3366ff;">_root</span>.ImageArea.Image.image<span style="color:#3366ff;">._xscale</span> = <span style="color:#3366ff;">_root</span>.ImageArea.Image.image._<span style="color:#3366ff;">xscale</span> + <span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.<span style="color:#3366ff;">zoom</span>;
   <span style="color:#3366ff;">_root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">yscale</span> = <span style="color:#3366ff;">_root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">yscale</span> + <span style="color:#3366ff;">_root.zoom</span>;
  }
<span style="color:#c0c0c0;">  //_root.ImageArea.setMask(_root.ms)               
</span>
 };</pre>
<pre> zooming = zoomperclick + 1;
 punct = <span style="color:#3366ff;">new</span> <span style="color:#3366ff;">Object</span> ();
 <span style="color:#3366ff;">_root</span>.speed.restrict = <span style="color:#339966;">"1-9";</span>
 <span style="color:#3366ff;">_root</span>.speed.maxChars = 1;
 zoomers = <span style="color:#3366ff;">new</span> <span style="color:#3366ff;">Object</span> ();
 zoomers.<span style="color:#3366ff;">onMouseDown</span> = <span style="color:#3366ff;">function</span> ()
 {
  pozX = _<span style="color:#3366ff;">root</span>._<span style="color:#3366ff;">xscale</span>;
  pozY = _<span style="color:#3366ff;">root</span>._<span style="color:#3366ff;">yscale</span>;
  <span style="color:#3366ff;">if </span>((_<span style="color:#3366ff;">root</span>.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">xscale</span> &gt; 100) <span style="color:#3366ff;">&amp;&amp;</span> (_root.ImageArea.Image.image.<span style="color:#3366ff;">_</span><span style="color:#3366ff;">yscale</span>&gt; 100) <span style="color:#3366ff;">&amp;&amp;</span> (<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.<span style="color:#3366ff;">zoom</span> &lt; 35))
  {
   <span style="color:#3366ff;">_root.zoom</span> = 0;
  }
 <span style="color:#3366ff;"> else if</span> ((<span style="color:#3366ff;">_</span><span style="color:#3366ff;">root</span>.ImageArea.Image.image._<span style="color:#3366ff;">xscale</span> &lt; 450) <span style="color:#3366ff;">&amp;&amp;</span> (_<span style="color:#3366ff;">root</span>.ImageArea.Image.image._<span style="color:#3366ff;">yscale</span> &lt; 450) <span style="color:#3366ff;">&amp;&amp;</span> (_<span style="color:#3366ff;">root</span>.<span style="color:#3366ff;">zoom</span> &lt; 250))
  {
  <span style="color:#3366ff;"> _root.zoom</span> = 0;
  }
  <span style="color:#3366ff;">if</span> (<span style="color:#3366ff;">!</span>((pozX &gt; 200) <span style="color:#3366ff;">&amp;&amp;</span> (pozY &lt; 200)))
  {
   _<span style="color:#3366ff;">root</span>.zooming = 0;
  }
 };
 <span style="color:#3366ff;">Mouse</span>.<span style="color:#3366ff;">addListener</span> (zoomers);</pre>
<pre>}</pre>
</div>
<p> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=16&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/04/08/zoom-effectd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Rotate a image in center on button click</title>
		<link>http://way2logic.wordpress.com/2008/04/07/rotate-a-image-in-center-on-button-click/</link>
		<comments>http://way2logic.wordpress.com/2008/04/07/rotate-a-image-in-center-on-button-click/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 12:23:31 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=15</guid>
		<description><![CDATA[here the codes&#8230;
To move current movieclip and _parent movieclip
codes:
function rotatez()
{
rotae_btn()
var imhpath =&#8216;images/image15.jpg&#8217;
_root.createEmptyMovieClip(&#8217;sd&#8217;,2)
var cont:MovieClip = _root.ImageArea.Image.image.createEmptyMovieClip (&#8220;container&#8221;, _root.ImageArea.Image.image.getNextHighestDepth ());
var img_mc:MovieClip = cont.createEmptyMovieClip (&#8220;imageContainer&#8221;, cont.getNextHighestDepth ());
img_mc.loadMovie (imhpath);
var che:MovieClip = _root.createEmptyMovieClip (&#8220;chekker&#8221;, _root.getNextHighestDepth ());
che.onEnterFrame = function ()
{
if (img_mc._width &#62; 2)
{
img_mc._x = -img_mc._width /2 ;
img_mc._y = -img_mc._height /2 ;
this.removeMovieClip ();
}
};
function rotae_btn()
{
rotate_mc.onRollOver = function()
{
rotate_mc.gotoAndStop(&#8216;over&#8217;)
}
rotate_mc.onRollOut = function()
{
rotate_mc.gotoAndStop(&#8216;normal&#8217;)
}
rotate_mc.onPress = function()
{
rotate_mc.gotoAndStop(&#8216;down&#8217;)
}
rotate_mc.onRelease = function()
{
trace(&#8216;Rotate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=15&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>here the codes&#8230;</strong></p>
<p>To move current movieclip and _parent movieclip</p>
<p><span style="color:#800000;">codes</span>:<br />
<span style="color:#0000ff;">function </span>rotatez()<br />
{<br />
rotae_btn()<br />
<span style="color:#0000ff;">var </span>imhpath =<span style="color:#99cc00;">&#8216;images/image15.jpg&#8217;</span><br />
_<span style="color:#0000ff;">root</span>.<span style="color:#0000ff;">createEmptyMovieClip</span>(<span style="color:#99cc00;">&#8217;sd&#8217;</span>,2)<br />
<span style="color:#0000ff;">var </span>cont:<span style="color:#0000ff;">MovieClip </span>= _<span style="color:#0000ff;">root</span>.ImageArea.Image.image.<span style="color:#0000ff;">createEmptyMovieClip </span>(&#8220;container&#8221;, _<span style="color:#0000ff;">root</span>.ImageArea.Image.image.<span style="color:#0000ff;">getNextHighestDepth </span>());</p>
<p><span style="color:#0000ff;">var </span>img_mc:MovieClip = cont.<span style="color:#0000ff;">createEmptyMovieClip</span> (&#8220;imageContainer&#8221;, cont.<span style="color:#0000ff;">getNextHighestDepth ()</span>);<br />
img_mc.<span style="color:#0000ff;">loadMovie </span>(imhpath);</p>
<p><span style="color:#0000ff;">var </span>che:<span style="color:#0000ff;">MovieClip </span>= _root.<span style="color:#0000ff;">createEmptyMovieClip </span>(&#8220;chekker&#8221;, <span style="color:#0000ff;">_root.</span><span style="color:#0000ff;">getNextHighestDepth </span>());<br />
che.<span style="color:#0000ff;">onEnterFrame </span>= <span style="color:#0000ff;">function </span>()<br />
{</p>
<p><span style="color:#0000ff;">if </span>(img_mc._<span style="color:#0000ff;">width </span>&gt; 2)<br />
{<br />
img_mc._<span style="color:#0000ff;">x</span> = -img_mc._<span style="color:#0000ff;">width </span>/2 ;<br />
img_mc._<span style="color:#0000ff;">y</span> = -img_mc._<span style="color:#0000ff;">height </span>/2 ;</p>
<p><span style="color:#0000ff;">this</span>.<span style="color:#0000ff;">removeMovieClip </span>();</p>
<p>}<br />
};</p>
<p><span style="color:#0000ff;">function </span>rotae_btn()<br />
{<br />
<span style="color:#000000;">rotate_</span>mc.<span style="color:#0000ff;">onRollOver </span>= <span style="color:#0000ff;">function</span>()<br />
{<br />
rotate_mc.<span style="color:#0000ff;">gotoAndStop</span>(&#8216;over&#8217;)<br />
}<br />
rotate_mc.<span style="color:#0000ff;">onRollOut </span>= <span style="color:#0000ff;">function</span>()<br />
{<br />
rotate_mc.gotoAndStop(&#8216;normal&#8217;)<br />
}<br />
rotate_mc.onPress = function()<br />
{<br />
rotate_mc.gotoAndStop(&#8216;down&#8217;)<br />
}<br />
rotate_mc.onRelease = function()<br />
{<br />
trace(&#8216;Rotate the images&#8217;)<br />
trace(_root.ImageArea.Image.image)<br />
cont._<span style="color:#0000ff;">rotation </span>+= 90;<br />
img_mc._<span style="color:#0000ff;">visible </span>= <span style="color:#0000ff;">true</span>;<br />
trace(&#8216;Rotate&#8217;)<br />
cont._x = <span style="color:#0000ff;">Stage</span>.<span style="color:#0000ff;">width </span>/2 &#8211; cont._x/2<br />
cont._y = <span style="color:#0000ff;">Stage</span>.<span style="color:#0000ff;">height</span>/2 &#8211; cont._y/2<br />
}<br />
}<br />
}</p>
<p>rotatez()</p>
<p class="MsoNormal"><em><strong></strong></em><em><strong><span style="font-size:10pt;color:#000000;font-family:Tahoma;">Thanks &amp; Regards</span></strong></em></p>
<p class="MsoNormal"><em><strong><span style="font-size:10pt;color:#000000;font-family:Tahoma;">BHUVAN</span></strong></em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=15&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/04/07/rotate-a-image-in-center-on-button-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>sending Mails</title>
		<link>http://way2logic.wordpress.com/2008/03/29/sending-mails/</link>
		<comments>http://way2logic.wordpress.com/2008/03/29/sending-mails/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 08:44:16 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=14</guid>
		<description><![CDATA[using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
 
 
namespace emailexample
{
    public partial class _Default : System.Web.UI.Page
    {
 
        #region Declaration
        string eMailId;
        #endregion
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=14&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Data;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Configuration;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Collections;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.Security;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.UI;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.UI.WebControls;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.UI.WebControls.WebParts;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.UI.HtmlControls;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">using</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> System.Web.Mail;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">namespace</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> emailexample</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">{</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    <font color="blue"><span style="color:blue;">public</span></font> <font color="blue"><span style="color:blue;">partial</span></font> <font color="blue"><span style="color:blue;">class</span></font> <font color="#2b91af"><span style="color:#2b91af;">_Default</span></font> : System.Web.UI.<font color="#2b91af"><span style="color:#2b91af;">Page</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    {</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">        #region</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> Declaration</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">string</span></font> eMailId;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">        #endregion</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">protected</span></font> <font color="blue"><span style="color:blue;">void</span></font> Page_Load(<font color="blue"><span style="color:blue;">object</span></font> sender, <font color="#2b91af"><span style="color:#2b91af;">EventArgs</span></font> e)</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        {</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        }</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">protected</span></font> <font color="blue"><span style="color:blue;">void</span></font> Button1_Click(<font color="blue"><span style="color:blue;">object</span></font> sender, <font color="#2b91af"><span style="color:#2b91af;">EventArgs</span></font> e)</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        {</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            eMailId = <font color="#a31515"><span style="color:#a31515;">&#8220;<a href="https://mail.google.com/mail/h/1s442a90wfgxz/?v=b&amp;cs=wh&amp;to=bhala.n@insoft.com" target="_blank">bhala.n@insoft.com</a>&#8220;</span></font>;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            <font color="#2b91af"><span style="color:#2b91af;">MailMessage</span></font> ObjMail = <font color="blue"><span style="color:blue;">new</span></font> <font color="#2b91af"><span style="color:#2b91af;">MailMessage</span></font>();</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.To = txtTofield.Text;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.Cc = TextBox1.Text;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.Bcc = TextBox2.Text;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.From = eMailId.ToString();</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.Body = txtTextArea.Text.ToString();</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            ObjMail.BodyFormat = <font color="#2b91af"><span style="color:#2b91af;">MailFormat</span></font>.Html;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            <font color="#2b91af"><span style="color:#2b91af;">SmtpMail</span></font>.SmtpServer = System.Configuration.<font color="#2b91af"><span style="color:#2b91af;">ConfigurationSettings</span></font>.AppSettings[<font color="#a31515"><span style="color:#a31515;">"SMTPServer"</span></font>].ToString();  </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            <font color="#2b91af"><span style="color:#2b91af;">SmtpMail</span></font>.Send(ObjMail);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            Response.Write(<font color="#a31515"><span style="color:#a31515;">&#8220;The Mail has been sent to: &#8220;</span></font>);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            Response.Write(ObjMail.To);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            Response.Write(ObjMail.Cc);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            Response.Write(ObjMail.Bcc);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        }</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    }</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">}</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<div style="border-style:none none double;border-width:medium medium 2.25pt;padding:0 0 1pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">Html</span></font></div>
<p><font face="Courier New" size="2"><span style="background:yellow none repeat scroll 0 50%;font-size:10pt;">&lt;%</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">@</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> <font color="#a31515"><span style="color:#a31515;">Page</span></font> <font color="red"><span style="color:red;">Language</span></font><font color="blue"><span style="color:blue;">=&#8221;C#&#8221;</span></font> <font color="red"><span style="color:red;">AutoEventWireup</span></font><font color="blue"><span style="color:blue;">=&#8221;true&#8221;</span></font> <font color="red"><span style="color:red;">CodeBehind</span></font><font color="blue"><span style="color:blue;">=&#8221;Default.aspx.cs&#8221;</span></font> <font color="red"><span style="color:red;">Inherits</span></font><font color="blue"><span style="color:blue;">=&#8221;emailexample._Default&#8221;</span></font> <span style="background:yellow none repeat scroll 0 50%;">%&gt;</span></span></font></p>
<p><font face="Courier New" size="2"><span style="background:yellow none repeat scroll 0 50%;font-size:10pt;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;!</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">DOCTYPE</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> <font color="red"><span style="color:red;">html</span></font> <font color="red"><span style="color:red;">PUBLIC</span></font> <font color="blue"><span style="color:blue;">&#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;</span></font> <font color="blue"><span style="color:blue;">&#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">html</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> <font color="red"><span style="color:red;">xmlns</span></font><font color="blue"><span style="color:blue;">=&#8221;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#8220;</span></font> <font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">head</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">title</span></font><font color="blue"><span style="color:blue;">&gt;</span></font>Untitled Page<font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">title</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;/</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">head</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">body</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">form</span></font> <font color="red"><span style="color:red;">id</span></font><font color="blue"><span style="color:blue;">=&#8221;form1&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">div</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">       </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">table</span></font> <font color="red"><span style="color:red;">border</span></font> <font color="blue"><span style="color:blue;">=&#8221;2&#8243;</span></font> <font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <span style="background:yellow none repeat scroll 0 50%;">&lt;%</span><font color="green"><span style="color:green;">&#8211;  &lt;asp:TextBox ID=&#8221;txtTofield&#8221; runat=&#8221;server&#8221; Text=&#8221;<a href="https://mail.google.com/mail/h/1s442a90wfgxz/?v=b&amp;cs=wh&amp;to=bhala.n@insoft.com" target="_blank">bhala.n@insoft.com</a>&#8221; ReadOnly=&#8221;true&#8221;&gt;&lt;/asp:TextBox&gt;&#8211;</span></font><span style="background:yellow none repeat scroll 0 50%;">%&gt;</span></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;lblTo&#8221;</span></font> <font color="red"><span style="color:red;">runat</span></font> <font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;</span></font>To<font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;txtTofield&#8221;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">         <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">         <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;Label1&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font> <font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;</span></font>Cc<font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;TextBox1&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">         <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <span style="background:yellow none repeat scroll 0 50%;">&lt;%</span><font color="green"><span style="color:green;">&#8211;  &lt;asp:TextBox ID=&#8221;txtTofield&#8221; runat=&#8221;server&#8221; Text=&#8221;<a href="https://mail.google.com/mail/h/1s442a90wfgxz/?v=b&amp;cs=wh&amp;to=bhala.n@insoft.com" target="_blank">bhuvanvel@gmail.com</a>&#8221; ReadOnly=&#8221;true&#8221;&gt;&lt;/asp:TextBox&gt;&#8211;</span></font><span style="background:yellow none repeat scroll 0 50%;">%&gt;</span></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;Label2&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font> <font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;</span></font>Bcc<font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Label</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">      <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;TextBox2&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="blue"><span style="color:blue;">&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">         <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;txtTextArea&#8221;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> <font color="red"><span style="color:red;">TextMode</span></font><font color="blue"><span style="color:blue;">=&#8221;MultiLine&#8221;</span></font> <font color="red"><span style="color:red;">Height</span></font><font color="blue"><span style="color:blue;">=&#8221;175px&#8221;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">                                        <font color="red"><span style="color:red;">Width</span></font><font color="blue"><span style="color:blue;">=&#8221;600px&#8221;&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">TextBox</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">                                     <font color="blue"><span style="color:blue;">&lt;</span></font><font color="#a31515"><span style="color:#a31515;">asp</span></font><font color="blue"><span style="color:blue;">:</span></font><font color="#a31515"><span style="color:#a31515;">Button</span></font> <font color="red"><span style="color:red;">ID</span></font><font color="blue"><span style="color:blue;">=&#8221;Button1&#8243;</span></font> <font color="red"><span style="color:red;">runat</span></font><font color="blue"><span style="color:blue;">=&#8221;server&#8221;</span></font> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            <font color="red"><span style="color:red;">Text</span></font><font color="blue"><span style="color:blue;">=&#8221;Send&#8221;</span></font> <font color="red"><span style="color:red;">OnClick</span></font><font color="blue"><span style="color:blue;">=&#8221;Button1_Click&#8221;</span></font> <font color="blue"><span style="color:blue;">/&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">td</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">tr</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">table</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">        </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">       </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">            </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">                                    </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">                                    </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">       <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">div</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">    <font color="blue"><span style="color:blue;">&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">form</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;/</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">body</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></p>
<div style="border-style:none none double;border-width:medium medium 2.25pt;padding:0 0 1pt;"><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;/</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">html</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></div>
<p><font face="Courier New" size="2"><span style="font-size:10pt;">Webconfig</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">appSettings</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">            &lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">add</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font><font color="red" face="Courier New" size="2"><span style="font-size:10pt;color:red;">key</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">=</span></font><font face="Courier New" size="2"><span style="font-size:10pt;">&#8220;<font color="blue"><span style="color:blue;">SMTPServer</span></font>&#8220;<font color="blue"><span style="color:blue;"> </span></font><font color="red"><span style="color:red;">value</span></font><font color="blue"><span style="color:blue;">=</span></font>&#8220;<font color="blue"><span style="color:blue;"><a href="http://mail.insoft.com/" target="_blank">mail.google.com</a></span></font>&#8220;<font color="blue"><span style="color:blue;">&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">add</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">            &lt;</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">add</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;"> </span></font><font color="red" face="Courier New" size="2"><span style="font-size:10pt;color:red;">key</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">=</span></font><font face="Courier New" size="2"><span style="font-size:10pt;">&#8220;<font color="blue"><span style="color:blue;">From</span></font>&#8220;<font color="blue"><span style="color:blue;"> </span></font><font color="red"><span style="color:red;">value</span></font><font color="blue"><span style="color:blue;">=</span></font>&#8220;<font color="blue"><span style="color:blue;"><a href="https://mail.google.com/mail/h/1s442a90wfgxz/?v=b&amp;cs=wh&amp;to=noreply@words-online.com" target="_blank">noreply@words-online.com</a></span></font>&#8220;<font color="blue"><span style="color:blue;">&gt;&lt;/</span></font><font color="#a31515"><span style="color:#a31515;">add</span></font><font color="blue"><span style="color:blue;">&gt;</span></font></span></font></p>
<p><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">      &lt;/</span></font><font color="#a31515" face="Courier New" size="2"><span style="font-size:10pt;color:#a31515;">appSettings</span></font><font color="blue" face="Courier New" size="2"><span style="font-size:10pt;color:blue;">&gt;</span></font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=14&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/03/29/sending-mails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Runtime Circle</title>
		<link>http://way2logic.wordpress.com/2008/03/29/runtime-circle/</link>
		<comments>http://way2logic.wordpress.com/2008/03/29/runtime-circle/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 07:56:46 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/?p=4</guid>
		<description><![CDATA[ Runtime Circle
Creating a method that can be used by all movieclips in a movie
As of Flash MX, the prototype property of the MovieClip class can be used to assign additional functions to the class, which makes them available to all movieclips. Here&#8217;s an example of creating and using a draw circle method:
// r = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=4&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3 class="post-title entry-title"> <a href="http://way2logic.blogspot.com/2008/01/runtime-circle.html">Runtime Circle</a></h3>
<h3><font color="#ff0000">Creating a method that can be used by all movieclips in a movie</font></h3>
<p>As of Flash MX, the prototype property of the MovieClip class can be used to assign additional functions to the class, which makes them available to all movieclips. Here&#8217;s an example of creating and using a draw circle method:</p>
<pre><font color="#c0c0c0">// r = radius of circle

// x, y = center of circle</font>

<font color="#0000ff">MovieClip</font>.<font color="#0000ff">prototype</font>.drawCircle = <font color="#0000ff">function </font>(r, x, y) {

<font color="#0000ff">var </font>TO_RADIANS:Number = <font color="#0000ff">Math</font>.<font color="#0000ff">PI</font>/180;

<font color="#c0c0c0">// begin circle at 0, 0 (its registration point) -- move it when done</font>

<font color="#0000ff">this</font>.<font color="#0000ff">moveTo</font>(0, 0);

<font color="#0000ff">this</font>.<font color="#0000ff">lineTo</font>(r, 0);<font color="#c0c0c0">// draw 12 30-degree segments

// (could do more efficiently with 8 45-degree segments)</font>

<font color="#0000ff">var a</font>:<font color="#0000ff">Number </font>= 0.268;  // tan(15)

<font color="#0000ff">for </font>(<font color="#0000ff">var </font>i=0; i &lt; endx =" r<font color="#0000ff">*Math</font>.<font color="#0000ff">cos</font>((i+1)<font color="#0000ff">*</font>30<font color="#0000ff">*</font>TO_RADIANS);

endy =" r*<font color="#0000ff">Math</font>.<font color="#0000ff">sin</font>((i+1)<font color="#0000ff">*</font>30<font color="#0000ff">*</font>TO_RADIANS);

ax = endx + r *<font color="#0000ff"> a</font> *<font color="#0000ff">Math</font>.<font color="#0000ff">cos</font>(((i+1)*30-90)<font color="#0000ff">*</font>TO_RADIANS);

ay = endy + r <font color="#0000ff">* a </font>*<font color="#0000ff">Math</font>.<font color="#0000ff">sin</font>(((i+1)*30-90)<font color="#0000ff">*</font>TO_RADIANS);

_x = x;

_y = y;

x=100;

y= 100;

To draw a shape with a part of it cut out, like a donut eg, simply put <b>all  </b>

<b>the commands</b> to draw both the initial object (big circle) and the

cutout (smaller circle) <b>between the beginFill and endFill</b>

statements. Here's how the donut on the left (ok, more like a bagel but still delicious)

was created:
<pre><font color="#c0c0c0">// r1 = radius of outer circle

// r2 = radius of inner circle (cutout)

// x, y = center of donut

// This creates a donut shape (circle with a cutout circle)</font>

<font color="#0000ff">MovieClip</font>.<font color="#0000ff">prototype</font>.drawDonut1 = <font color="#0000ff">function </font>(r1, r2, x, y) {

<font color="#0000ff">var </font>TO_RADIANS:Number = <font color="#0000ff">Math</font>.<font color="#0000ff">PI</font>/180;

<font color="#0000ff">this</font>.<font color="#0000ff">moveTo</font>(0, 0);

<font color="#0000ff">this</font>.<font color="#0000ff">lineTo</font>(r1, 0);// draw the 30-degree segments

var a:Number = 0.268;  // tan(15)

for (var i=0; i &lt; endx =" r1*Math.cos((i+1)*30*TO_RADIANS);" endy =" r1*Math.sin((i+1)*30*TO_RADIANS);" ax =" endx+r1*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r1*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" i="0;" endx =" r2*Math.cos((i+1)*30*TO_RADIANS);" endy =" r2*Math.sin((i+1)*30*TO_RADIANS);" ax =" endx+r2*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r2*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" _x =" x;" _y =" y;" array =" [0," array =" [100," array =" [0," object =" {a:300,"&gt;  <a title="cutoutmask" name="cutoutmask"></a>
<h3>Using a shape with a cutout as a mask</h3>

If a shape containing a cutout is to be used as a mask, as the donut on the      right above, care must be taken to <b>draw the cutout in the opposite      direction</b> from that in which the original shape was drawn. (If you      don't, there will be no cutout in the mask). Here's the code for the donut      mask on the right, in which a big circle is drawn in a clockwise direction      and a smaller circle drawn in the opposite direction (all before the endFill      is applied). pic is a movieclip containing the flower graphic.
<pre>// r1 = radius of outer circle

// r2 = radius of inner circle (cutout)

// x, y = center of donut

// This creates a donut shape that can be used as a mask

<font color="#0000ff">MovieClip</font>.<font color="#0000ff">prototype</font>.drawDonut2 = function (r1, r2, x, y) {

<font color="#0000ff">var </font>TO_RADIANS:Number = <font color="#0000ff">Math</font>.<font color="#0000ff">PI</font>/180;

<font color="#0000ff">this</font>.<font color="#0000ff">moveTo</font>(0, 0);

<font color="#0000ff">this</font>.<font color="#0000ff">lineTo</font>(r1, 0);// draw the 30-degree segments

var a:Number = 0.268;  // tan(15)

<font color="#0000ff">for </font>(<font color="#0000ff">var </font>i=0; i &lt; endx =" r1*<font color="#0000ff">Math</font>.<font color="#0000ff">cos</font>((i+1)*30*TO_RADIANS);" endy =" r1*<font color="#0000ff">Math.sin</font>((i+1)*30*TO_RADIANS);" ax =" endx+r1*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r1*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" i="12;"&gt; 0; i--) {

  <font color="#0000ff">var </font>endx = r2*<font color="#0000ff">Math</font>.<font color="#0000ff">cos</font>((i-1)*30*TO_RADIANS);

  <font color="#0000ff">var </font>endy = r2*<font color="#0000ff">Math</font>.<font color="#0000ff">sin</font>((i-1)*30*TO_RADIANS);

  <font color="#0000ff">var </font>ax = endx+r2*(0-a)*Math.cos(((i-1)*30-90)*TO_RADIANS);

  <font color="#0000ff">var </font>ay = endy+r2*(0-a)*Math.sin(((i-1)*30-90)*TO_RADIANS);

  <font color="#0000ff">this</font>.<font color="#0000ff">curveTo</font>(ax, ay, endx, endy);

}

<font color="#0000ff">this</font>._x = x;

<font color="#0000ff">this</font>._y = y;

}

<font color="#0000ff">createEmptyMovieClip</font>("d2", 2);

d2.<font color="#0000ff">beginFill</font>(0xaa0000, 60);

d2.drawDonut2(86, 36, 300, 94);

d2.<font color="#0000ff">endFill</font>();

pic.<font color="#0000ff">setMask</font>(d2);

<font color="#ff0000"><b>courtesy </b></font>:   Flash-Creation</pre>
</pre>
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=4&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/03/29/runtime-circle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
		<item>
		<title>Effects Blur Filter</title>
		<link>http://way2logic.wordpress.com/2008/01/09/effects-blur-filter/</link>
		<comments>http://way2logic.wordpress.com/2008/01/09/effects-blur-filter/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 04:22:00 +0000</pubDate>
		<dc:creator>bhuvanvel</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>

		<guid isPermaLink="false">http://way2logic.wordpress.com/2008/01/09/effects-blur-filter/</guid>
		<description><![CDATA[Blur Filter:
Now, we see the blur Filter Examples&#8230;
Now we have create a movie clip and give instance name as reflec&#8230;
Main screen
1: Movie Clip
2: 2 input textfiled for Blur x and Blur y
3: Update button
Let, before open
import the filters
import mx.transitions.Tween;
import flash.filters.BlurFilter;
import mx.transitions.easing.*;
After, apply the effect to the movie
on Enterframe event
Here, the complete Code&#8230;
import mx.transitions.Tween;
import flash.filters.BlurFilter;
import flash.filters.*;
import [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=13&subd=way2logic&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-weight:bold;">Blur Filter:</span></p>
<p>Now, we see the blur Filter Examples&#8230;</p>
<p>Now we have create a movie clip and give instance name as reflec&#8230;</p>
<p>Main screen</p>
<p>1: Movie Clip<br />
2: 2 input textfiled for Blur x and Blur y<br />
3: Update button</p>
<p>Let, before open</p>
<p>import the filters</p>
<p>import mx.transitions.Tween;<br />
import flash.filters.BlurFilter;<br />
import mx.transitions.easing.*;</p>
<p>After, apply the effect to the movie<br />
on Enterframe event</p>
<p>Here, the complete Code&#8230;</p>
<p>import mx.transitions.Tween;<br />
import flash.filters.BlurFilter;<br />
import flash.filters.*;<br />
import mx.transitions.easing.*;</p>
<p>function update()<br />
{<br />
updatebtn.onPress = function()<br />
{<br />
applyfilter()<br />
var s = new Tween(_root.reflec,&#8221;_x&#8221;,null,0,350,5,true)<br />
s.onMotionFinished = function()<br />
{<br />
s.yoyo()<br />
}<br />
}</p>
<p>}<br />
update()</p>
<p>function applyfilter()<br />
{<br />
var blur_X = Number(_root.blurx.text)<br />
var blur_Y = Number(_root.blury.text)<br />
var quality = 3</p>
<p>var filter = new BlurFilter(blur_X,blur_Y,quality)<br />
var filterarr =  new Array()<br />
filterarr[0] = filter<br />
reflec.filter = filterarr</p>
<p>_root.onEnterFrame = function()<br />
{<br />
if(reflec.hitTest(_xmouse,_ymouse,true))<br />
{<br />
if(reflec.filters[0].blurX != 0)<br />
{<br />
blur_X -= 1;<br />
blur_Y -= 1;</p>
<p>filter = new BlurFilter(blur_X, blur_Y, quality);<br />
filterarr = new Array();<br />
filterarr[0] = filter<br />
reflec.filters = filterarr;<br />
}<br />
}<br />
else<br />
{<br />
if(reflec.filters[0].blurX != 10)<br />
{<br />
blur_X += 1;<br />
blur_Y += 1;</p>
<p>filter = new BlurFilter(blur_X, blur_Y, quality);<br />
filterarr = new Array();<br />
filterarr[0] = filter<br />
reflec.filters = filterarr;<br />
}<br />
}<br />
}<br />
}</p>
<p>Have!,  a  gr8 effect&#8230;<br />
Thanks&#8230;.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/way2logic.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/way2logic.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/way2logic.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/way2logic.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/way2logic.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/way2logic.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/way2logic.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/way2logic.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/way2logic.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/way2logic.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/way2logic.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/way2logic.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=way2logic.wordpress.com&blog=3310576&post=13&subd=way2logic&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://way2logic.wordpress.com/2008/01/09/effects-blur-filter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/699725450ac1716a9cf2e1d34877e1e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bhuvanvel</media:title>
		</media:content>
	</item>
	</channel>
</rss>