<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Web Consultant - Flex/ ColdFusion/ SQL</title>
	<atom:link href="http://philipbedi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://philipbedi.wordpress.com</link>
	<description>My experience in web development</description>
	<lastBuildDate>Sun, 18 Dec 2011 19:36:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='philipbedi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/cfe6e1cebb7236fff94fc3899bb89258?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Web Consultant - Flex/ ColdFusion/ SQL</title>
		<link>http://philipbedi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://philipbedi.wordpress.com/osd.xml" title="Web Consultant - Flex/ ColdFusion/ SQL" />
	<atom:link rel='hub' href='http://philipbedi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Write long tweets/post on Twitter or Facebook</title>
		<link>http://philipbedi.wordpress.com/2011/12/18/write-long-tweetspost-on-twitter-or-facebook/</link>
		<comments>http://philipbedi.wordpress.com/2011/12/18/write-long-tweetspost-on-twitter-or-facebook/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 19:33:34 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=256</guid>
		<description><![CDATA[Launched a web site TweetFace TweetFace helps you add rich content &#8211; text, photos, &#38; videos to your tweets and facebook. It will hyperbolize your posts by adding visuals and simplifies the process by auto publishing to your account. Content limit won&#8217;t stop you from expressing yourself anymore.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=256&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Launched a web site <a title="Write long tweets" href="http://www.tweetface.co" target="_blank">TweetFace</a></p>
<p>TweetFace helps you add rich content &#8211; text, photos, &amp; videos to your tweets and facebook. It will hyperbolize your posts by adding visuals and simplifies the process by auto publishing to your account. Content limit won&#8217;t stop you from expressing yourself anymore.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=256&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/12/18/write-long-tweetspost-on-twitter-or-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips for Better use of JavaScript</title>
		<link>http://philipbedi.wordpress.com/2011/09/18/tips-for-better-use-of-javascript/</link>
		<comments>http://philipbedi.wordpress.com/2011/09/18/tips-for-better-use-of-javascript/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 14:10:27 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=245</guid>
		<description><![CDATA[Variables notation and initialization Object    var oObject = null; Array    var aArray = []; Number    var nNumber = -1; String    var sString = &#8221;; Boolean    var bBoolean = false; jQuery    $object Cache results of DOM search Twice the same DOM request, not efficient: document.getElementById(&#8216;tal&#8217;).style.display = &#8216;block&#8217;; document.getElementById(&#8216;tal&#8217;).value = &#8216;Could be cached&#8217;; Better, save the element [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=245&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Variables notation and initialization</strong></p>
<p>Object    var oObject = null;<br />
Array    var aArray = [];<br />
Number    var nNumber = -1;<br />
String    var sString = &#8221;;<br />
Boolean    var bBoolean = false;<br />
jQuery    $object</p>
<p><strong>Cache results of DOM search</strong></p>
<p><span style="text-decoration:underline;">Twice the same DOM request, not efficient:</span></p>
<p>document.getElementById(&#8216;tal&#8217;).style.display = &#8216;block&#8217;;<br />
document.getElementById(&#8216;tal&#8217;).value = &#8216;Could be cached&#8217;;</p>
<p><span style="text-decoration:underline;">Better, save the element into a variable:</span><br />
var oTal = document.getElementById(&#8216;tal&#8217;);</p>
<p>oTal.style.display = &#8216;block&#8217;;<br />
oTal.value = &#8216;Is cached&#8217;;</p>
<p><strong>Example of a commented method</strong></p>
<p>/**<br />
* This method does stuff, talk about it here.<br />
* @author Author<br />
* @member ClassName.prototype<br />
* @param {type} oParam Describe the parameter.<br />
* @returns {type} Describe the return value.<br />
*/<br />
ClassName.prototype.aFunction = function(oParam){}</p>
<p><strong>Reference</strong>: <a title="Java Script Toolkit" href="http://code.google.com/p/jsdoc-toolkit/wiki/TagReference" target="_blank">jsdoc-toolkit</a></p>
<p><strong>jQuery to Native snippets</strong></p>
<table width="100%">
<tbody>
<tr>
<th width="30%">jQuery</th>
<th width="60%">Native</th>
<th width="10%">&nbsp;</th>
</tr>
<tr>
<td>$(&#8216;#idElement&#8217;);</td>
<td>document.getElementById(&#8216;idElement&#8217;);</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>$(&#8216;#idElement&#8217;).jQueryMethod();</td>
<td>$(document.getElementById(&#8216;idElement&#8217;)).jQueryMethod()  ;</td>
<td></td>
</tr>
<tr>
<td>$(&#8216;#idElement&#8217;).click(function(){});</td>
<td>$(document.getElementById(&#8216;idElement&#8217;)).bind(&#8216;click&#8217;, function(){});</td>
<td></td>
</tr>
<tr>
<td>$(&#8216;.className&#8217;);</td>
<td><strong>more than one element:</strong>var aArray = $.makeArray($(&#8216;.className&#8217;)) // turns a jQuery collection into an array of DOM elements;<strong>only one element:</strong></p>
<p>$(&#8216;.className&#8217;)[0] // returns the DOM element only;</td>
<td></td>
</tr>
<tr>
<td>$object.val()</td>
<td>oObject.value;</td>
<td></td>
</tr>
<tr>
<td>$object.attr(&#8216;name&#8217;)</td>
<td>oObject.name <strong>// Works for most the attributes of an element</strong></td>
<td></td>
</tr>
<tr>
<td>$object.css(&#8216;styleName&#8217;, &#8216;value&#8217;)</td>
<td>oObject.style.[styleName] = &#8216;value&#8217;</td>
<td></td>
</tr>
<tr>
<td>$(&#8216;.className&#8217;).each();</td>
<td>var aArray = $.makeArray($(&#8216;.className&#8217;));var nArrayLen = aArray.length;var nCounter = 0; <strong>// Here initialized at 0 rather than -1!;</strong></p>
<p>for(; nCounter &lt; nArrayLen ; nCounter++){}</td>
<td></td>
</tr>
<tr>
<td>$object.addClass(&#8216;className&#8217;);</td>
<td>oObject.className += &#8216; className&#8217;;</td>
<td></td>
</tr>
<tr>
<td>$object.removeClass(&#8216;className&#8217;);</td>
<td>oObject.className = oObject.className.replace(&#8216;className&#8217;, &#8221;);</td>
<td></td>
</tr>
<tr>
<td>$object.html(&#8216;tal&#8217;);</td>
<td>oObject.innerHTML = &#8216;tal&#8217;;</td>
<td></td>
</tr>
<tr>
<td>$object.append(&#8221;);</td>
<td>oObject.innerHTML = &#8221;;oroObject.appendChild(oChild);</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=245&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/09/18/tips-for-better-use-of-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Hand Cursor to Flex Tab Navigator</title>
		<link>http://philipbedi.wordpress.com/2011/08/25/add-hand-cursor-to-flex-tab-navigator/</link>
		<comments>http://philipbedi.wordpress.com/2011/08/25/add-hand-cursor-to-flex-tab-navigator/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 15:34:36 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=242</guid>
		<description><![CDATA[In Flex Tab Navigator, you can&#8217;t have Hand Cursor when you mouse over the tab&#8217;s, I had to do little hack to achieve this. Created two functions and linked them with mouse over and mouse out events. Say your Tab Navigator&#8217;s id is &#8220;myTabNav&#8221;: Here are the functions which would do the trick: private function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=242&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Flex Tab Navigator, you can&#8217;t have Hand Cursor when you mouse over the tab&#8217;s, I had to do little hack to achieve this.</p>
<p>Created two functions and linked them with mouse over and mouse out events.</p>
<p>Say your Tab Navigator&#8217;s id is &#8220;myTabNav&#8221;:</p>
<p>Here are the functions which would do the trick:</p>
<p>private function setHandCursor(event:MouseEvent):void<br />
{<br />
var classInfo:XML = describeType(event.target);<br />
var cn:String = classInfo.@name.toString();<br />
if(cn == &#8220;mx.controls.tabBarClasses::Tab&#8221;)<br />
{<br />
//this will bring the hand cursor</p>
<p>this.myTabNav.buttonMode = true;<br />
this.myTabNav.useHandCursor = true;<br />
}<br />
}<br />
private function removeHandCursor(event:MouseEvent):void<br />
{<br />
var classInfo:XML = describeType(event.target);<br />
var cn:String = classInfo.@name.toString();<br />
if(cn == &#8220;mx.controls.tabBarClasses::Tab&#8221;)<br />
{<br />
// this will remove the hand cusror</p>
<p>this.myTabNav.buttonMode = false;<br />
this.myTabNav.useHandCursor = false;<br />
}<br />
}</p>
<p>&nbsp;</p>
<p>you need to do as above otherwise the hand cursor will either show on complete Tab Navigator</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=242&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/08/25/add-hand-cursor-to-flex-tab-navigator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Read an Image from Local using Flex app</title>
		<link>http://philipbedi.wordpress.com/2011/08/04/read-an-image-from-local-using-flex-app/</link>
		<comments>http://philipbedi.wordpress.com/2011/08/04/read-an-image-from-local-using-flex-app/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 12:32:01 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=237</guid>
		<description><![CDATA[I was working on one small requirement to read an image from local machine and see how it can display if you change size of canvas on fly. I found an article on this and changed the code a bit to make it work as I wanted it to work. you need to create a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=237&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was working on one small requirement to read an image from local machine and see how it can display if you change size of canvas on fly. I found an article on this and changed the code a bit to make it work as I wanted it to work. you need to create a Flex project to run it in Flash Player 10 or above otherwise it won&#8217;t compile.</p>
<p>I have removed the save option in this code but you can change it back by changing visible property of the button.</p>
<p>Thanks to following article <a title="Load Or Modify and save local images with flash player 10" href="http://techblog.floorplanner.com/2009/05/04/load-modify-and-save-local-images-with-flash-player-10/" target="_blank">Load Or Modify and save local images with flash player 10</a></p>
<p>Here is the modified code:</p>
<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; layout=&#8221;vertical&#8221; backgroundGradientColors=&#8221;[0xFFFFFF,0xFFFFFF]&#8221; backgroundColor=&#8221;0xFFFFFF&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.graphics.codec.JPEGEncoder;<br />
import mx.binding.utils.BindingUtils;<br />
import mx.core.UIComponent;</p>
<p>import flash.net.FileReference;<br />
import flash.net.FileFilter;<br />
import flash.events.IOErrorEvent;<br />
import flash.events.Event;<br />
import flash.utils.ByteArray;<br />
// From http://techblog.floorplanner.com/2009/05/04/load-modify-and-save-local-images-with-flash-player-10/<br />
private var loadFileRef:FileReference;</p>
<p>private static const FILE_TYPES:Array = [new FileFilter("Image Files", "*.jpg;*.jpeg;*.gif;*.png;*.JPG;*.JPEG;*.GIF;*.PNG")];<br />
private var THUMB_WIDTH:uint = 240;<br />
private var THUMB_HEIGHT:uint = 180;</p>
<p>private function loadFile():void {<br />
imageView.visible = false;<br />
loadFileRef = new FileReference();<br />
loadFileRef.addEventListener(Event.SELECT, onFileSelect);<br />
loadFileRef.browse();<br />
}</p>
<p>private function saveFile():void {<br />
var bitmapData:BitmapData = new BitmapData(THUMB_WIDTH, THUMB_HEIGHT);<br />
bitmapData.draw(imageView);</p>
<p>var encoder:JPEGEncoder = new JPEGEncoder();<br />
var rawBytes:ByteArray = encoder.encode(bitmapData);</p>
<p>var saveFileRef:FileReference = new FileReference();<br />
saveFileRef.save(rawBytes);<br />
}</p>
<p>private function onFileSelect(e:Event):void {<br />
loadFileRef.addEventListener(Event.COMPLETE, onFileLoadComplete);<br />
loadFileRef.load();<br />
}</p>
<p>private function onFileLoadComplete(e:Event):void {<br />
var loader:Loader = new Loader();<br />
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onDataLoadComplete);<br />
loader.loadBytes(loadFileRef.data);</p>
<p>loadFileRef = null;<br />
}</p>
<p>private function onDataLoadComplete(e:Event):void {<br />
var bitmapData:BitmapData = Bitmap(e.target.content).bitmapData;<br />
imageView.height = Number(heightTxt.text);<br />
imageView.width = Number(widthTxt.text);<br />
var matrix:Matrix = new Matrix();<br />
matrix.scale(Number(widthTxt.text)/bitmapData.width, Number(heightTxt.text)/bitmapData.height);</p>
<p>imageView.graphics.clear();<br />
imageView.graphics.beginBitmapFill(bitmapData, matrix, false);<br />
imageView.graphics.drawRect(0, 0, Number(widthTxt.text), Number(heightTxt.text));<br />
imageView.graphics.endFill();<br />
imageView.visible = true;<br />
if (saveButton.visible) saveButton.enabled = true;<br />
}</p>
<p>]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:Panel title=&#8221;Read image&#8221; paddingBottom=&#8221;5&#8243; paddingLeft=&#8221;5&#8243; paddingRight=&#8221;5&#8243; paddingTop=&#8221;5&#8243;&gt;<br />
&lt;mx:VBox&gt;<br />
&lt;mx:HBox paddingTop=&#8221;5&#8243; borderThickness=&#8221;1&#8243;&gt;<br />
&lt;mx:Label text=&#8221;Height&#8221; width=&#8221;42&#8243;/&gt;&lt;mx:Label text=&#8221;Width&#8221; width=&#8221;50&#8243;/&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;mx:HBox paddingTop=&#8221;5&#8243; borderThickness=&#8221;1&#8243;&gt;<br />
&lt;mx:TextInput id=&#8221;heightTxt&#8221; width=&#8221;40&#8243; text=&#8221;180&#8243; restrict=&#8221;0-9&#8243; /&gt;&lt;mx:TextInput id=&#8221;widthTxt&#8221; text=&#8221;240&#8243; width=&#8221;40&#8243; restrict=&#8221;0-9&#8243; /&gt;<br />
&lt;mx:Button label=&#8221;Load image&#8221; click=&#8221;loadFile()&#8221;/&gt;<br />
&lt;mx:Button label=&#8221;Save image&#8221; visible=&#8221;false&#8221; click=&#8221;saveFile()&#8221; id=&#8221;saveButton&#8221; enabled=&#8221;false&#8221;/&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;/mx:VBox&gt;<br />
&lt;/mx:Panel&gt;<br />
&lt;mx:Canvas id=&#8221;imageView&#8221; width=&#8221;240&#8243; height=&#8221;180&#8243; visible=&#8221;false&#8221; borderThickness=&#8221;1&#8243; borderColor=&#8221;#CCCCCC&#8221; borderStyle=&#8221;solid&#8221;/&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=237&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/08/04/read-an-image-from-local-using-flex-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Flex Project for Flash Player 10 and above</title>
		<link>http://philipbedi.wordpress.com/2011/08/04/setting-up-flex-project-for-flash-player-10-and-above/</link>
		<comments>http://philipbedi.wordpress.com/2011/08/04/setting-up-flex-project-for-flash-player-10-and-above/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 12:21:20 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex SDK]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=235</guid>
		<description><![CDATA[I had a requirement in my new Flex project to use flash player 10.0 or up when using SDK 3.5 I found few tips from one article (but it was based on Flash Player 10 beta). Here are the modified steps I took to sort the issue. 1) – Modify FLEX_SDK/frameworks/flex-config.xml. Edit , replacing 9.0.124 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=235&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a requirement in my new Flex project to use flash player 10.0 or up when using SDK 3.5</p>
<p>I found few tips from one article (but it was based on Flash Player 10 beta).</p>
<p>Here are the modified steps I took to sort the issue.</p>
<p>1) – Modify FLEX_SDK/frameworks/flex-config.xml.<br />
Edit , replacing 9.0.124 with 10.0.0:<br />
2) Create new Flex Project<br />
2) Right click on your project in Flex Builder 3 and opt for properties<br />
click on Flex Compiler and make sure Required Flash Player version has<br />
10.0.0</p>
<p>The above steps should let you create your Flex app for Flash Player 10.0 and above</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=235&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/08/04/setting-up-flex-project-for-flash-player-10-and-above/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>How to set width of close button icon (Flex)</title>
		<link>http://philipbedi.wordpress.com/2011/07/19/how-to-set-width-of-close-button-icon-flex/</link>
		<comments>http://philipbedi.wordpress.com/2011/07/19/how-to-set-width-of-close-button-icon-flex/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 15:22:13 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=231</guid>
		<description><![CDATA[Here is how you can set close button icon width and height of the TitleWindow: &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62; &#60;mx:TitleWindow xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; width=&#8221;400&#8243; height=&#8221;300&#8243; creationComplete=&#8221;init()&#8221;&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.core.mx_internal; private function init():void { use namespace mx_internal; if(mx_internal::closeButton!=null) { mx_internal::closeButton.buttonMode = true; closeButton.$width  = 14; //Change the button width to 14 pixels closeButton.$height = 14; //Change the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=231&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is how you can set close button icon width and height of the TitleWindow:</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:TitleWindow xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; width=&#8221;400&#8243; height=&#8221;300&#8243;<br />
creationComplete=&#8221;init()&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>import mx.core.mx_internal;</p>
<p>private function init():void<br />
{<br />
use namespace mx_internal;<br />
if(mx_internal::closeButton!=null)<br />
{<br />
mx_internal::closeButton.buttonMode = true;<br />
closeButton.$width  = 14; //Change the button width to 14 pixels<br />
closeButton.$height = 14; //Change the button height to 14 pixels<br />
}<br />
}</p>
<p>]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:Style&gt;<br />
TitleWindow{<br />
border-color: #FFFFFF;<br />
corner-radius: 10;<br />
closeButtonUpSkin=Embed(source=&#8221;/com/test/skin/assets.swf&#8221;, symbol=&#8221;ButtonUp&#8221;);<br />
closeButtonDownSkin=Embed(source=&#8221;/com/test/skin/assets.swf&#8221;, symbol=&#8221;ButtonUp&#8221;);<br />
closeButtonOverSkin=Embed(source=&#8221;/com/test/skin/assets.swf&#8221;, symbol=&#8221;ButtonDown&#8221;);<br />
}</p>
<p>&lt;/mx:Style&gt;</p>
<p>&lt;/mx:TitleWindow&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=231&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/07/19/how-to-set-width-of-close-button-icon-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Browser Web Tools Tutorials</title>
		<link>http://philipbedi.wordpress.com/2011/06/04/browser-web-tools-tutorials/</link>
		<comments>http://philipbedi.wordpress.com/2011/06/04/browser-web-tools-tutorials/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 09:24:13 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=221</guid>
		<description><![CDATA[I was going through few blogs to learn jQuery features and come across couple of cool browser developer tools tutorials. 1) This one coves all browsers: Browser Dev tool tutorial &#8211; All Browsers 2) This one is from Google Chrome dev tools section by Paul Irish: Introduction to The Chrome Developer Tools/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=221&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was going through few blogs to learn jQuery features and come across couple of cool browser developer tools tutorials.</p>
<p>1) This one coves all browsers:</p>
<p><a title="Browser Dev tool tutorial - All Browsers" href="http://jqueryfordesigners.com/video.php?f=debuggers.mp4" target="_blank">Browser Dev tool tutorial &#8211; All Browsers</a><br />
2) This one is from Google Chrome dev tools section by Paul Irish:<br />
<a title="Introduction to The Chrome Developer Tools" href="http://paulirish.com/2011/a-re-introduction-to-the-chrome-developer-tools/" target="_blank">Introduction to The Chrome Developer Tools/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=221&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/06/04/browser-web-tools-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>View Generated ActionScript of Flex Project</title>
		<link>http://philipbedi.wordpress.com/2011/03/13/view-generated-actionscript-of-flex-project/</link>
		<comments>http://philipbedi.wordpress.com/2011/03/13/view-generated-actionscript-of-flex-project/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 12:57:16 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=219</guid>
		<description><![CDATA[I found it very interesting to view how and what Flex Compiler does when it generates a SWF file of your project. To see the ActionScript created by your complier, you can add a compiler argument in Flash Builder . Navigate to Project &#62; Properties &#62; Flex Compiler &#62; Additional compiler arguments, and add -keep-generated-actionscript [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=219&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found it very interesting to view how and what Flex Compiler does when it generates a SWF file of your project.</p>
<p>To see the ActionScript created by your complier, you can add a compiler argument in Flash Builder .</p>
<p>Navigate to Project &gt; Properties &gt; Flex Compiler &gt; Additional compiler arguments,</p>
<p>and add <strong>-keep-generated-actionscript</strong> to the end of the existing arguments .</p>
<p>A folder named <strong>bin-debug/generated</strong> will be created automatically in your project, and many ActionScript files will be placed there .</p>
<p>Your application files will be in the form <em>Name-generated .as</em> .</p>
<p><span style="text-decoration:underline;">Don’t forget to remove</span> the compiler argument when you’ve finished exploring.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=219&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/03/13/view-generated-actionscript-of-flex-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>ColdFusion &#8211; Cross Site Scripting</title>
		<link>http://philipbedi.wordpress.com/2011/03/08/coldfusion-cross-site-scripting/</link>
		<comments>http://philipbedi.wordpress.com/2011/03/08/coldfusion-cross-site-scripting/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 15:21:48 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Secure]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=214</guid>
		<description><![CDATA[I had to fix one site which was sharing server with other sites to be PCI compliant for Cross Site Scripting and DB Injections. Here are the few things I did to accomplish this. In Application.cfc, I have added following: &#60;cfset this.scriptProtect = &#8220;all&#8221; &#62; Note: If you are passing object/script or any html  etc [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=214&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had to fix one site which was sharing server with other sites to be PCI compliant for Cross Site Scripting and DB Injections.</p>
<p>Here are the few things I did to accomplish this.</p>
<p>In Application.cfc, I have added following:</p>
<p>&lt;cfset this.scriptProtect = &#8220;all&#8221; &gt;</p>
<p>Note: If you are passing object/script or any html  etc tags in form or query variable, this will break your code</p>
<p>Make sure you have following section in your cfusion/lib/neo-security.xml:</p>
<p>&lt;var name=&#8221;CrossSiteScriptPatterns&#8221;&gt;<br />
&lt;struct type=&#8221;coldfusion.server.ConfigMap&#8221;&gt;&lt;!&#8211; this one is for site cripting &#8211;&gt;<br />
&lt;var name=&#8221;&amp;lt;\s*(object|embed|script|applet|meta|iframe|style|img|form|xss|body|html|head|title|input|layer|br|bgsound|link|xml|frameset|table|div|hr|base|a%20href|a href)&#8221;&gt;<br />
&lt;string&gt;&amp;lt;InvalidTag&lt;/string&gt;<br />
&lt;/var&gt;&lt;!&#8211; following is for SQL injections &#8211;&gt;<br />
&lt;var name=&#8221;;.*(select|insert|update|delete|drop|alter|create)&#8221;&gt;<br />
&lt;string&gt;SQL_INJECTION_ATTEMPT&lt;/string&gt;<br />
&lt;/var&gt;<br />
&lt;/struct&gt;<br />
&lt;/var&gt;</p>
<p>Now all you need to do is find the respective string in your out-put and display the (send user to) appropriate error/ message page</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=214&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/03/08/coldfusion-cross-site-scripting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex- TitleWindow Close Button Hand Cursor</title>
		<link>http://philipbedi.wordpress.com/2011/03/07/flex-titlewindow-close-button-hand-cursor/</link>
		<comments>http://philipbedi.wordpress.com/2011/03/07/flex-titlewindow-close-button-hand-cursor/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:46:16 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://philipbedi.wordpress.com/?p=210</guid>
		<description><![CDATA[I had requirement to bring the hand pointer on title window (Flex) close button when I am using an image to show the close button and here is the code (function) you need to write and call it on creationComplete Event. private function init():void { if(mx_internal::closeButton!=null) mx_internal::closeButton.buttonMode = true; }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=210&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had requirement to bring the hand pointer on title window (Flex) close button when I am using an image to show the close button and here is the code (function) you need to write and call it on creationComplete Event.</p>
<p>private function init():void</p>
<p>{<br />
if(mx_internal::closeButton!=null)<br />
mx_internal::closeButton.buttonMode = true;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/philipbedi.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/philipbedi.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/philipbedi.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=philipbedi.wordpress.com&amp;blog=14818761&amp;post=210&amp;subd=philipbedi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://philipbedi.wordpress.com/2011/03/07/flex-titlewindow-close-button-hand-cursor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7215245e274c49bb1aabe2ea859eb142?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philipbedi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
