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

<channel>
	<title>PK Pixels</title>
	<atom:link href="http://www.pkpixels.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pkpixels.com</link>
	<description>Some pixels for Pakistan</description>
	<lastBuildDate>Sat, 08 Aug 2009 17:01:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Integration of Flash with Web Service of C#</title>
		<link>http://www.pkpixels.com/?p=410</link>
		<comments>http://www.pkpixels.com/?p=410#comments</comments>
		<pubDate>Sat, 08 Aug 2009 17:01:46 +0000</pubDate>
		<dc:creator>emalik</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Data insertion]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Mx]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Action Script]]></category>
		<category><![CDATA[Data Intergarion]]></category>

		<guid isPermaLink="false">http://www.pkpixels.com/?p=410</guid>
		<description><![CDATA[In this article I&#8217;m going to show how to consume a Web service and some of the pros and cons of it. When you&#8217;re done reading you should have an understanding of what data binding is, how to use it in your applications, and how to achieve similar results without using it.
Unfortunately for some, Flash [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I&#8217;m going to show how to consume a Web service and some of the pros and cons of it. When you&#8217;re done reading you should have an understanding of what data binding is, how to use it in your applications, and how to achieve similar results without using it.</p>
<p>Unfortunately for some, Flash Professional is required to follow along with the examples. If you haven&#8217;t upgraded Flash to the Professional version yet, taking advantage of the Web service integration and data binding might just be a good enough reason to.</p>
<p><strong><span style="text-decoration: underline;">What Are Web Services?</span></strong><span style="text-decoration: underline;"><br />
</span>A Web service is, more or less, a remote procedure call wrapped in an<strong> XML</strong> package and typically transmitted over <strong>HTTP</strong>. You make a request to the URL of the Web service, passing in any appropriate parameters, and are greeted with an XML packet containing the result of the function call. The standard XML format for Web service messages is SOAP &#8211; Simple Object Access Protocol.</p>
<p>Web services can be inspected by requesting the WSDL &#8211; Web Services Description Language &#8211; of the service. The WSDL explains how to interact with the service, what methods are available, what their parameters are, etc. The WSDL format isn&#8217;t the easiest to read. Thankfully, Flash will help us out with WSDL interpretation, which we&#8217;ll see a little later.</p>
<p><strong><span style="text-decoration: underline;">What Is Data Binding?</span></strong><span style="text-decoration: underline;"><br />
</span>Now that we have an idea what Web services are, data binding is next on the explanation hit-list. Data binding is&#8230; well, magic. Through data binding you can &#8220;glue&#8221; two separate pieces of a program together. Whenever one piece changes the other piece will automatically notice that change and update itself without any coding necessary. As an added bonus, data binding can be a one- or two-way street.</p>
<p>Data binding is remarkably simple to use and can be done without writing a single line of code. Because of this, it&#8217;s a blessing and a curse at the same time. It eliminates the need for you to program what could be complex interactions, but the &#8220;magical&#8221; aspects of data binding can make it a maintenance nightmare.</p>
<p>In the coming examples, I&#8217;ll show you how to use it, how to avoid using it, and finally make some recommendations for when data binding is appropriate.</p>
<p><strong><span style="text-decoration: underline;">How to bind a Web Service with Flash?</span></strong></p>
<p>1-  First make a simple web service that fetch data from data base like Sql Server 2005 and return data in objects like:-</p>
<blockquote><p>pro[i] = new ProDetail();<br />
pro[i].Pro_name = row[0].ToString();<br />
pro[i].Pro_type = row[1].ToString();<br />
pro[i].Pro_color = row[2].ToString();<br />
pro[i].Price = row[3].ToString();<br />
pro[i].Description = row[4].ToString();</p></blockquote>
<blockquote></blockquote>
<p><img class="alignnone size-medium wp-image-414" title="image1" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image1-300x256.jpg" alt="image1" width="300" height="256" /></p>
<p>2- Then open Flash Professional 8, and goto <span style="color: #ff0000;">Window</span> and select<span style="color: #ff0000;"> Components</span><br />
3- then click on <span style="color: #ff0000;">User interface</span> and drop <span style="color: #ff0000;">Text Area</span> onto the stage.</p>
<p><img class="alignnone size-medium wp-image-415" title="image2" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image2-300x201.jpg" alt="image2" width="300" height="201" /></p>
<p>4- Give <span style="color: #ff0000;">Instance Name</span> to the <span style="color: #ff0000;">Text Area</span> in <span style="color: #ff0000;">Properties panel.<br />
<span style="color: #000000;">5- </span></span>Now go to <span style="color: #ff0000;">Window</span> and click on <span style="color: #ff0000;">Other Panels </span>and select <span style="color: #ff0000;">Web Services</span></p>
<p><span style="color: #ff0000;"><br />
<span style="color: #000000;"><img class="alignnone size-medium wp-image-416" title="image3" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image3-300x212.jpg" alt="image3" width="300" height="212" /></span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">6-</span></span><span style="color: #000000;"> </span>Now click on Glob and give the WSDL address of web service which would be like this.</p>
<blockquote><p><a href="http://localhost/makensell/Service.asmx?WSDL">http://localhost/abc/Service.asmx?WSDL</a></p></blockquote>
<p><img class="alignnone size-medium wp-image-417" title="image4" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image4-300x197.jpg" alt="image4" width="300" height="197" /></p>
<p><img class="alignnone size-medium wp-image-418" title="image5" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image5-300x163.jpg" alt="image5" width="300" height="163" /></p>
<p>7- After giving WSDL address of web service to Glob, Flash will have all the methods, your web service have.</p>
<p><img class="alignnone size-medium wp-image-419" title="image6" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image6-300x194.jpg" alt="image6" width="300" height="194" /></p>
<p>8- the method you want to use just Right click on it and select <span style="color: #ff0000;">Add Method Call</span> (An instance of the Web Service Connector component would be added to the stage) as shown in fig:-</p>
<p><img class="alignnone size-medium wp-image-420" title="image7" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image7-300x208.jpg" alt="image7" width="300" height="208" /></p>
<p><img class="alignnone size-medium wp-image-421" title="image8" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image8-300x231.jpg" alt="image8" width="300" height="231" /></p>
<p><img class="alignnone size-medium wp-image-422" title="image9" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image9-300x202.jpg" alt="image9" width="300" height="202" /></p>
<p>9- Name the <span style="color: #ff0000;">Web Service Connector component</span> from the &#8220;Properties” panel.</p>
<p><strong><span style="text-decoration: underline;">Bind Web Service Result to the UI Component</span><span style="text-decoration: underline;">:</span></strong></p>
<p>10- In order to display the results returned from the web service, you need to bind the   result to  the Text Area component you placed on the stage. Go to<span style="color: #ff0000;"> Window</span> &gt; <span style="color: #ff0000;">Development Panels</span> &gt; <span style="color: #ff0000;">Component Inspector</span>. Select the <span style="color: #ff0000;">Text </span><span style="color: #ff0000;">Area</span> component on the stage  and go to <span style="color: #ff0000;">the &#8220;Bindings&#8221; tab</span> on the &#8220;Component Inspector&#8221; window. Click the<span style="color: #ff0000;"> &#8220;+&#8221; </span> Add  Binding button. Select &#8220;text : String&#8221; from the list and click the OK  button.</p>
<p>11- Now click on<span style="color: #ff0000;"> Bound To</span> in the Component Inspector, a window will open. Click on Web service Connector and at left side<span style="color: #ff0000;"> (Schema Location)</span> select the object you want to bind with Text Area component and click OK.</p>
<p>12- And set Direction <span style="color: #ff0000;">“In”</span>.</p>
<p>13- Now bind the Web Service connector and set its Direction <span style="color: #ff0000;">“out” </span>and click on<span style="color: #ff0000;"> Bound To</span> bind with Text Area in the<span style="color: #ff0000;"> Component Path</span>.</p>
<p><img class="alignnone size-medium wp-image-423" title="image10" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image10-300x190.jpg" alt="image10" width="300" height="190" /></p>
<p>14- Now create another layer and name it “Action’.</p>
<p>15- Now type the following action:-</p>
<blockquote><p>green.trigger();</p></blockquote>
<p>16- Now play your movie and see that what ever in your database, flash displays…</p>
<p><img class="alignnone size-medium wp-image-413" title="image11" src="http://www.pkpixels.com/wp-content/uploads/2009/08/image11-300x226.jpg" alt="image11" width="300" height="226" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkpixels.com/?feed=rss2&amp;p=410</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make audio louder in soundbooth</title>
		<link>http://www.pkpixels.com/?p=373</link>
		<comments>http://www.pkpixels.com/?p=373#comments</comments>
		<pubDate>Thu, 27 Nov 2008 07:47:47 +0000</pubDate>
		<dc:creator>emalik</dc:creator>
				<category><![CDATA[Adobe Soundbooth]]></category>

		<guid isPermaLink="false">http://www.pkpixels.com/?p=373</guid>
		<description><![CDATA[This is my first post relared to adobe soundbooth series, its related to most common issue in sound recording, specially when you are using low quality audio capturing equipment like a normal pc mic with builtin audio card etc.
If you are facing same problem, you only need is to have adobe soundbooth or adobe audition. [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first post relared to adobe soundbooth series, its related to most common issue in sound recording, specially when you are using low quality audio capturing equipment like a normal pc mic with builtin audio card etc.</p>
<p>If you are facing same problem, you only need is to have adobe soundbooth or adobe audition. As for the specific series of post i will use the adobe soundbooth. You can convert these steps to any of the software you want to use.</p>
<p>So Lets get started!.</p>
<p>There are many possible ways in which you can make sound louder in soundbooth like using Normalize function, other is by using amplify, another technique use the hardlimiting.</p>
<p>Here in this tutorial i will use both the Normalize and Amplify to make the sound louder.</p>
<p>First lets see how this can be done using Normalize</p>
<p>First open the file in the soundbooth. In my example it a voice over and you can see how it has much lower waves graph. it really bad sound.</p>
<div id="attachment_376" class="wp-caption alignnone" style="width: 310px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/11/0.jpg"><img class="size-medium wp-image-376" title="0" src="http://www.pkpixels.com/wp-content/uploads/2008/11/0-300x182.jpg" alt="Open the file" width="300" height="182" /></a><p class="wp-caption-text">Open the file</p></div>
<p>Click the Louder button, which is by default in lower right hand side of your screen. What this button does is that it Normalize the sound to -3dB or in other words boost the sound by 3dB each time you click the button.</p>
<div id="attachment_375" class="wp-caption alignnone" style="width: 310px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/11/11.jpg"><img class="size-medium wp-image-375" title="1" src="http://www.pkpixels.com/wp-content/uploads/2008/11/11-300x182.jpg" alt="Click louder button" width="300" height="182" /></a><p class="wp-caption-text">Click louder button</p></div>
<p>As you click the button you could see its effect in the waves graph. The waves are bigger now, that what you need.</p>
<div id="attachment_377" class="wp-caption alignnone" style="width: 310px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/11/2.jpg"><img class="size-medium wp-image-377" title="2" src="http://www.pkpixels.com/wp-content/uploads/2008/11/2-300x182.jpg" alt="Louder sound" width="300" height="182" /></a><p class="wp-caption-text">Louder sound</p></div>
<p>In my case the file has been restored to sound level i want but if its not done in your case please click the lounder button again to nomalize to anther -3dB.</p>
<p>Now i use second way to make it louder that is throught amplification.</p>
<p>Open the file, and click and drag on the increase/decrease the amplitude value<a href="http://www.pkpixels.com/wp-content/uploads/2008/11/3.jpg"><img class="alignnone size-full wp-image-379" title="3" src="http://www.pkpixels.com/wp-content/uploads/2008/11/3.jpg" alt="" width="79" height="33" /></a>, its to the left side of the louder button. As you will do this you will see the changes in the wave graph, just that much simple amplify it to what ever limit you want</p>
<div id="attachment_378" class="wp-caption alignnone" style="width: 310px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/11/4.jpg"><img class="size-medium wp-image-378" title="4" src="http://www.pkpixels.com/wp-content/uploads/2008/11/4-300x182.jpg" alt="Click Amplitude button" width="300" height="182" /></a><p class="wp-caption-text">Click Amplitude button</p></div>
<p>You can also enter the value instead of click and drag just double click the value and put the desired value in the text box.Thats quite easy i think</p>
<p><em><strong>What if you want to increast the volume of just a specific part of sound.</strong></em></p>
<p>Simple! just select any part you want to increase the sound of by just click and drag on that part of sound in main edit panel, as you will select you can see a amplification contols on the top of selectio are appeared just do same click and drag or enter the value by your self,     <em>you got what want</em></p>
<div id="attachment_380" class="wp-caption alignnone" style="width: 310px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/11/5.jpg"><img class="size-medium wp-image-380" title="5" src="http://www.pkpixels.com/wp-content/uploads/2008/11/5-300x218.jpg" alt="Aplification of specific part of sound" width="300" height="218" /></a><p class="wp-caption-text">Amplification of specific part of sound</p></div>
<p>Thats all in this tutorial, next tutorial in this series would be to how we can level off the sound or clip the higher frequecies so that the sound plays smoother. Please be in touch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkpixels.com/?feed=rss2&amp;p=373</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>3DS Max hangs on loading mentalray.dlz- Solution for this problem</title>
		<link>http://www.pkpixels.com/?p=335</link>
		<comments>http://www.pkpixels.com/?p=335#comments</comments>
		<pubDate>Wed, 14 May 2008 06:18:41 +0000</pubDate>
		<dc:creator>emalik</dc:creator>
				<category><![CDATA[3ds Max]]></category>

		<guid isPermaLink="false">http://emalik.wordpress.com/?p=158</guid>
		<description><![CDATA[Problem
3DS max hangs,closes with or without giving any error when loading the plugin mentalray.dlz
Why it Happens.. ?
It happens because some firewall or spyware remover installed on your system block TCP port 7000 that is required by the mental ray to perform some system checks.
Solution 
Disable any firewall or spyware remover permanently means it should not [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>3DS max hangs,closes with or without giving any error when loading the plugin mentalray.dlz</p>
<p><strong>Why it Happens.. ?</strong></p>
<p>It happens because some firewall or spyware remover installed on your system block TCP port 7000 that is required by the mental ray to perform some system checks.</p>
<p><strong>Solution </strong></p>
<p>Disable any firewall or spyware remover permanently means it should not automatically start on system restart, you may have to change some setting in that software when you are done restart your system, then run 3DS max again&#8230; does it work&#8230;.. sometime it works but not all the time like in my case.</p>
<p>Why it happens like that i really dont know may be some other software blocked the port ..so i did some research on that and then i installed a demo version of port explorer on my pc from</p>
<p>http://www.diamondcs.com.au/portexplorer</p>
<p>When i installed it and restarted my system, checked for port 7000 in the software it was open. So i run the 3DS max and  woooooooo it fixed my problem.</p>
<p>I really dont know if it would work or not after the demo version expires but hope it does until i enable firewall again.</p>
<p>I hope this solves your problem but if not then i really cant do anything you must contact Autodesk abt this specific issue.</p>
<p>I think (I believe it really only needs port 7000, and Max needs a few) should allow MR to use the internal ports to do control checking on the system. But what to do when no firewall is installed in the system and mental ray hangs like in my system. May be some other software like spyware remover close some ports. In such a case I installed the demo version of Port Explorer (http://www.diamondcs.com.au/portexplorer) in my system and without doing anything in the software my max loading with mental ray infact after the demo expires. Looks strange but works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkpixels.com/?feed=rss2&amp;p=335</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Dotted line in Photoshop.</title>
		<link>http://www.pkpixels.com/?p=334</link>
		<comments>http://www.pkpixels.com/?p=334#comments</comments>
		<pubDate>Thu, 06 Mar 2008 07:40:32 +0000</pubDate>
		<dc:creator>emalik</dc:creator>
				<category><![CDATA[Adobe Photoshop]]></category>

		<guid isPermaLink="false">http://emalik.wordpress.com/?p=155</guid>
		<description><![CDATA[Photoshop makes the CG Artists Life easier, but not all the time&#8230;. Sometime a simple task like making a dotted line in photoshop is not that much simpler as it should be.  But that does not mean its that much difficult, its easier just follow the tutorial.
Open the Photoshop document where you want to place [...]]]></description>
			<content:encoded><![CDATA[<p>Photoshop makes the CG Artists Life easier, but not all the time&#8230;. Sometime a simple task like making a dotted line in photoshop is not that much simpler as it should be.  But that does not mean its that much difficult, its easier just follow the tutorial.</p>
<p>Open the Photoshop document where you want to place the dotted line</p>
<p>Select the Brush tool, shortcut is &#8216;B&#8217;</p>
<p>Open the Brushes Palette( Window &#8211;&gt; Brushes, or F5)</p>
<p>Click the Brush Presets and select the Brush with some hard edges. You can select the Square brushes or Rounded on the bases of your need.</p>
<div id="attachment_355" class="wp-caption alignnone" style="width: 388px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/10/1.jpg"><img class="size-full wp-image-355" title="1" src="http://www.pkpixels.com/wp-content/uploads/2008/10/1.jpg" alt="Dotted Line - 1" width="378" height="344" /></a><p class="wp-caption-text">Dotted Line - 1</p></div>
<p>After you selected the brush type Click the &#8220;Brush tip shape&#8221;, Now here you can can see spacing slider, Slide it a value greater than 100%, in example i set it to 200%. You can also set the diameter and hardness of the brush here. You can see the Preview of the brush at the bottom</p>
<div id="attachment_357" class="wp-caption alignnone" style="width: 389px"><a href="http://www.pkpixels.com/wp-content/uploads/2008/10/2.jpg"><img class="size-full wp-image-357" title="2" src="http://www.pkpixels.com/wp-content/uploads/2008/10/2.jpg" alt="Dotted Line -2" width="379" height="459" /></a><p class="wp-caption-text">Dotted Line -2</p></div>
<p>Now go to your document again and select the color of the line and then hold down the shift button and Click and drag to draw the dotted line. ( by holding down shift you can draw Straight lines)</p>
<p>If its not giving a desired look, Do it again and this time play with spacing, Hardness, Diameter and the shape of the brush to make a desired look..</p>
<p>There are also many other options available here under the Brushes palette..Do explore them.</p>
<p>Have a good day&#8230; <img src='http://www.pkpixels.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkpixels.com/?feed=rss2&amp;p=334</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A solution to solve blured edges problem in Photoshop.</title>
		<link>http://www.pkpixels.com/?p=333</link>
		<comments>http://www.pkpixels.com/?p=333#comments</comments>
		<pubDate>Tue, 19 Feb 2008 14:02:19 +0000</pubDate>
		<dc:creator>emalik</dc:creator>
				<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[Adobe Photoshop]]></category>

		<guid isPermaLink="false">http://emalik.wordpress.com/?p=154</guid>
		<description><![CDATA[This is not a complete tutorial, but its just a small tip witch is extremely useful in designing process.
As most of you know photoshop is not a Vector Graphics tool, so sometime we get some weired problem like a draw a rectangle shape and its edges are not sharp as they should be.  Or you [...]]]></description>
			<content:encoded><![CDATA[<p>This is not a complete tutorial, but its just a small tip witch is extremely useful in designing process.</p>
<p>As most of you know photoshop is not a Vector Graphics tool, so sometime we get some weired problem like a draw a rectangle shape and its edges are not sharp as they should be.  Or you draw a shape and its got blurred edges.</p>
<p>The solution is that just do not use the shapes where they are not necessary..for example if you want to draw a rectangle as background <strong>dont use shape rather use the </strong><strong>Marquee Tool and the fill it with the color on new layer.</strong></p>
<p>Another solution is that if shapes really makes your work easier do Rasterize them in your design. A common problem could be that if made a shape by using pen toll and given a stroke to it. Some edges get distorted &#8230;.That could be solved by Just Hold down the <strong>Ctrl</strong> Key and <strong>Click the shape layer</strong>. The outer border of the shape should get selected. Now Make a <strong>new layer</strong> and go to <strong>Select&#8212;&gt; Modify &#8212;&gt; Contrac</strong>t, and do a contract it 1px. and now fill the design with the color you want.</p>
<p>In this way the shape edges are sharp rather to use it as the Vector mask.</p>
<p>Well i hope that suggestion is useful.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkpixels.com/?feed=rss2&amp;p=333</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
