<?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>Xguiden</title>
	<atom:link href="http://xguiden.dk/feed/" rel="self" type="application/rss+xml" />
	<link>http://xguiden.dk</link>
	<description>Dine guides findes her</description>
	<lastBuildDate>Sat, 13 Mar 2010 16:37:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extend your Flash Application Using the Context Menu</title>
		<link>http://xguiden.dk/2010/03/13/extend-your-flash-application-using-the-context-menu/</link>
		<comments>http://xguiden.dk/2010/03/13/extend-your-flash-application-using-the-context-menu/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 16:37:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5625</guid>
		<description><![CDATA[A Context Menu is a menu in a graphical user interface that appears upon user interaction, such as a right-mouse click. The Flash Player context menu allows you to add custom menu items, control the display of the built-in context menu items (for example, Zoom In and Print) and create copies of menus.
In this tutorial, [...]]]></description>
			<content:encoded><![CDATA[<p>A Context Menu is a menu in a graphical user interface that appears upon user interaction, such as a right-mouse click. The Flash Player context menu allows you to add custom menu items, control the display of the built-in context menu items (for example, Zoom In and Print) and create copies of menus.</p>
<p>In this tutorial, we’ll learn how to take advantage of these items.</p>
<p><span> </span></p>
<hr />
<h2>Final Result Preview</h2>
<p>Let’s take a look at the final result we will be working towards:</p>
<div>
<p>Right-click on the different areas of the SWF to see how the context menu changes.</p>
</div>
<hr />
<h2><span>Step 1:</span> Brief Overview</h2>
<p>We’ll make use of the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/ContextMenu.html">ContextMenu</a> class to create an application showing the different methods and properties of this class.</p>
<hr />
<h2><span>Step 2:</span> Create New Document</h2>
<p>Open Flash and create a new Flash File (ActionScript 3.0).</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/1.jpg" alt="" /></div>
<p>Set the stage size to 600×300 and add a black radial background (#555555 to #252525).</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/2.jpg" alt="" /></div>
<hr />
<h2><span>Step 3:</span> Add Target MovieClips</h2>
<p>We will create four MovieClips that will each show a different context menu when right-clicked.</p>
<p>Select the Rectangle Tool (R) and create four squares of 100×100 px each, with some writing inside. Convert them to separate MovieClip symbols and align them to the corners of the stage; use the image below as a guide. The instance names are in italics.</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/3.jpg" alt="" /></div>
<hr />
<h2><span>Step 4:</span> Add Simple Instructions</h2>
<p>Add some text to the stage to indicate to the user what action to perform.</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/4.jpg" alt="" /></div>
<hr />
<h2><span>Step 5:</span> Create the Document Class</h2>
<p>Create a new ActionScript Document and save it as <em>Main.as</em>. This will form our document class. If you are not sure how to use a document class, please read <a href="http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/">this Quick Tip</a>.</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/5.jpg" alt="" /></div>
<hr />
<h2><span>Step 6:</span> Start Writing the Document Class</h2>
<p>The package keyword allows you to organize your code into groups that can be imported by other scripts, it’s recommended to name them starting with a lowercase letter and use intercaps for subsequent words – for example: <em>myClasses</em>.</p>
<p>If you don’t want to group your files in a package or you have only one class you can use it right from your source folder.</p>
<pre>package
{</pre>
<hr />
<h2><span>Step 7:</span> Import Required Classes</h2>
<p>We’ll make use of the following classes, so import them in the document class:</p>
<pre>import flash.display.Sprite;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
import flash.events.ContextMenuEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;</pre>
<hr />
<h2><span>Step 8:</span> Extend MovieClip</h2>
<p>We’re going to use MovieClip-specific methods and properties so we extend that class.</p>
<pre>public class Main extends MovieClip
{</pre>
<hr />
<h2><span>Step 9:</span> Define Variables</h2>
<p>These are the variables we’ll use. They are basically ContextMenu and ContextMenuItem instances.</p>
<pre>/* When a ContextMenu item is created you can specify: the name of the item, whether to use a separator line,
   whether the item should be enabled by default, and whether it is visible to the user */

var builtInItems:ContextMenu = new ContextMenu();
var customItemEnabled:ContextMenu = new ContextMenu();
var customEnabled:ContextMenuItem = new ContextMenuItem('ActiveTuts+');
var customItemDisabled:ContextMenu = new ContextMenu();
var customDisabled:ContextMenuItem = new ContextMenuItem('Disabled Item', false, false);
var linkedItem:ContextMenu = new ContextMenu();
var linkText:ContextMenuItem = new ContextMenuItem('Go to TutsPlus.com', true);
var textCM:ContextMenu = new ContextMenu();</pre>
<hr />
<h2><span>Step 10:</span> Write Main() Constructor Function</h2>
<p>This function is executed when the class is loaded. It calls the functions that will handle the ContextMenu elements.</p>
<pre>public function Main():void
{
	handleBuiltIn();
	handleCustom();
	handleDisabled();
	handleLink();
	handleClipboard();
}</pre>
<p>We’ll write these functions in the next steps.</p>
<hr />
<h2><span>Step 11:</span> Write handleBuiltIn() Function</h2>
<p>This is the function that handles the built-in items. Here we take builtInItems, a ContextMenu we defined earlier, remove the built-in items, and set it as the context menu for the builtIn square symbol.</p>
<pre>private function handleBuiltIn():void
{
	builtInItems.hideBuiltInItems(); //Hides all built-in menu items (except Settings)
	builtIn.contextMenu = builtInItems;
}</pre>
<p>You can see a list of the built-in menu items <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/ContextMenuBuiltInItems.html">here</a>.</p>
<p>Alternatively, you can enable/disable specific menu items using the builtInItems property as shown in the following code:</p>
<pre>var defaultItems:ContextMenuBuiltInItems = myContextMenu.builtInItems;
defaultItems.print = true; //You can replace "print" with a valid default context menu item</pre>
<p>Again, visit <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/ContextMenuBuiltInItems.html">livedocs.adobe.com</a> for a list of such items.</p>
<hr />
<h2><span>Step 12:</span> Add a Custom Item</h2>
<p>To add a custom item to the context menu, we’ll make use of two of the variables we created.</p>
<pre>private function handleCustom():void
{
	customItemEnabled.customItems.push(customEnabled); // Adds the customItemEnabled ContextMenuItem value to the ContextMenu instance
	custom.contextMenu = customItemEnabled; // Sets the ContextMenu instance to the MovieClip
}</pre>
<p>As you can see, we can push() a ContextMenuItem onto a context menu’s <em>customItems</em> property, because it is an array.</p>
<hr />
<h2><span>Step 13:</span> Add a Disabled Item</h2>
<p>The same action is performed by this function, but using the <em>customItemDisabled</em> parameter in the ContextMenuItem.</p>
<pre>private function handleDisabled():void
{
	customItemDisabled.customItems.push(customDisabled);
	disabled.contextMenu = customItemDisabled;
}</pre>
<p>This makes the item look grayed-out and unclickable.</p>
<hr />
<h2><span>Step 14:</span> Add an Action</h2>
<p>We know how to add a custom item to the context menu list, so far it can be used as a message or a notice but it will be more useful if an action can be performed when clicked. Let’s see how to do it.</p>
<pre>//A webpage will be opened when the menu is clicked

private function handleLink():void
{
	linkedItem.customItems.push(linkText);	//remember we set the text of this link earlier
	linkText.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onMenuSelect);
	link.contextMenu = linkedItem;
}

private function onMenuSelect(e:ContextMenuEvent):void
{
	navigateToURL(new URLRequest('http://tutsplus.com'))
}</pre>
<hr />
<h2><span>Step 15:</span> Alter the Clipboard Context Menu</h2>
<p>The ContextMenuClipboardItems class determines which items are enabled or disabled on the clipboard context menu. These settings are used when ContextMenu.clipboardMenu = true and when the object with focus is not a TextField.</p>
<pre>private function handleClipboard():void
{
	textCM.clipboardMenu = true;
	textCM.clipboardItems.selectAll = false;
	contextMenu = textCM;
}</pre>
<p>Note that these settings only apply in Flash Player 10, so cannot be used in Flash CS3 (they will cause a compiler error if you try to use them).</p>
<hr />
<h2><span>Step 16:</span> Document Class</h2>
<p>Go back to the .fla file and in the Properties Panel set the Class field to ‘Main’ to make this the Document Class.</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/077_contextMenus/Tutorial/10.jpg" alt="" /></div>
<hr />
<h2>Conclusion</h2>
<p>Customizing the Context Menu in your movies or applications can extend its functionality in a very usable way, try it!</p>
<p><img src="http://feeds.feedburner.com/~r/Flashtuts/~4/jdDhXFDFrGo" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/13/extend-your-flash-application-using-the-context-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create a Steel Wristwatch in Corel Draw</title>
		<link>http://xguiden.dk/2010/03/13/how-to-create-a-steel-wristwatch-in-corel-draw/</link>
		<comments>http://xguiden.dk/2010/03/13/how-to-create-a-steel-wristwatch-in-corel-draw/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 16:37:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[Illustrator]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5627</guid>
		<description><![CDATA[In this tutorial we will learn how to create a steel wristwatch using Corel Draw. The basic technique used in this tutorial is the x, y coordinates position. The x, y coordinates position is very important to obtain symmetrical results. We will also use some gradients to create the steel effect. We’ll work with simple [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will learn how to create a steel wristwatch using Corel Draw. The basic technique used in this tutorial is the x, y coordinates position. The x, y coordinates position is very important to obtain symmetrical results. We will also use some gradients to create the steel effect. We’ll work with simple technique to achieve great results.</p>
<p><span> </span></p>
<h3>Step 1</h3>
<p>Open a new document. On the toolbar, change Units to pixels. Create a 1001px circle using the Ellipse Tool (F7). Put the x, y coordinates position at (0, 0).</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/1a.jpg" border="0" alt="" /></div>
<p>Make sure all this toolbars have been checked.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/1b.jpg" border="0" alt="" /></div>
<p>Fill the circle with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to -90°, and the Edge pad to 9%. Then, add one slider in the Gradient Slider. Set the color and position, Start Point at white, Added slider at 30% black; Position at 92%, and End Point at 40% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/1c.jpg" border="0" alt="" /></div>
<h3>Step 2</h3>
<p>Duplicate the circle using copy and paste. I suggest you do not use Command + D (Duplicate command). This is because we need the object position to remain at 0, 0. Change the circle size to 941px. Clear the Outline Color. Now fill the object with a Linear Gradient using the Fountain Fill Dialog (F11), change the Edge pad to 22%. Add a slider in the Gradient Slider. Now set the color and position, Start point at 20% black, Added slider at 70% black; position at 90%, and End point at 10% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/2.jpg" border="0" alt="" /></div>
<h3>Step 3</h3>
<p>Duplicate the outer circle. Change the size to 921px, then fill with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Edge pad to 22%. Add two sliders in the Gradient Slider. Set the color and position, Start point at white, First slider at 10% black; position at 8%, Second slider at 70% black; position at 90%, and End point at 10% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/3.jpg" border="0" alt="" /></div>
<h3>Step 4</h3>
<p>Duplicate the outer circle again. Change the size to 750px. Then fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Edge pad to 4%, then add three sliders. Set the color and position, Start point at white, First slider at 10% black; position at 37%, Second slider at 80% black; position at 50%, Third slider at 20% black; position at 76%, End point at 10% black. Open the Outline Color and change its thickness to 1 pt and fill it with a black color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/4.jpg" border="0" alt="" /></div>
<h3>Step 5</h3>
<p>Duplicate the latest circle, change the size to 720px, and fill it with a black color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/5.jpg" border="0" alt="" /></div>
<h3>Step 6</h3>
<p>Duplicate the latest circle, change the size to 700px, and replace the Outline Color with a white color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/6.jpg" border="0" alt="" /></div>
<h3>Step 7</h3>
<p>Use the Pen Tool to draw a vertical line in the middle of the circle. Then change the outline thickness to 1 pt, and fill it with a white color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/7a.jpg" border="0" alt="" /></div>
<p>Duplicate the line, then rotate to 6°.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/7b.jpg" border="0" alt="" /></div>
<p>Repeat it again and again, but now rotate each line to 12°, 18°, 24°, 30°, 36°, 42°, 48°, 54°, 60°, 66°, 72°, 78°, 84°, and 90°. The result should look like that shown below.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/7c.jpg" border="0" alt="" /></div>
<h3>Step 8</h3>
<p>Select all lines, then duplicate them. Flip horizontally by clicking on Mirror. Delete the lines at 0°, 30°, 60°, 90°, 120°, and 150°.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/8.jpg" border="0" alt="" /></div>
<h3>Step 9</h3>
<p>Duplicate the latest circle and change the size to 650px.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/9.jpg" border="0" alt="" /></div>
<h3>Step 10</h3>
<p>Create a 20px circle, put the coordinate position at 0, 338. Fill with cyan color, then remove the Outline Color. Duplicate the circle, put the coordinate position at 0, -338. Fill with white color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/10a.jpg" border="0" alt="" /></div>
<p>Now select both of them. Duplicate, then rotate to 90°. Change the cyan circle to a white color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/10b.jpg" border="0" alt="" /></div>
<p>Duplicate again, rotate to 30°, then change the size to 15px.<br />
Do the same, now rotate to 60°, 120°, and 150°.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/10c.jpg" border="0" alt="" /></div>
<h3>Step 11</h3>
<p>Now let’s put the numbers. To obtain a symmetrical result, duplicate the latest circle, change the size to 610px. Use the circle as a boundary and start typing your numbers. Type the numbers “1-12″ except number “3″. I used Kozuka Gothic Pro B for my font, but you can use your favorite font. For number “12,” “6,” and number “9,” the font size is 24, and the rest is 16.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/11a.jpg" border="0" alt="" /></div>
<p>Since each number has a different width, but the the same height, let’s set the y coordinate position for each number, so the numbers will have the same value with their opposite side. See the picture below, number “10″ and number “2″ have the same y coordinate position, ie 140px. Also, with the number “7″ and the number “5,” the y coordinate position is at -230px. Delete the boundary circle.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/11b.jpg" border="0" alt="" /></div>
<h3>Step 12</h3>
<p>On the empty field, create an 80 px by 60 px rectangle using the Rectangle Tool (F6). Draw a rounded rectangle using the Shape Tool (F10).</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/12a.jpg" border="0" alt="" /></div>
<p>Put the rounded rectangle to the number three position, then fill with a black color. Open the Outline Pen Dialog by double-clicking on the Outline Color and set the width to 2 pt with the option Behind Fill checked, then fill with a white color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/12b.jpg" border="0" alt="" /></div>
<h3>Step 13</h3>
<p>Duplicate the rounded rectangle and scale it to 90%. Remove the Outline Color, then fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 90°, then add one slider in the Gradient Slider. Set the color and position, Start point at 30% black, Added slider at white; position at 51%, End point at 30% black. Next type the number in the middle. We’re done with the numbers.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/13.jpg" border="0" alt="" /></div>
<h3>Step 14</h3>
<p>Let’s make the analog stopwatch. Duplicate the two latest circles and lines at 0°, 36°, 72°, 108°, and 144° (you need to redraw the line at 0° because it was deleted before), by holding down the Shift key and click the object one by one, use copy and paste. Select them all, then resize to 160px and change the Outline width to 0,5 pt. Resize the inner circle to 126px. Put it to a position shown below.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/14.jpg" border="0" alt="" /></div>
<h3>Step 15</h3>
<p>Do the same now with the lines at 0°, 12°, 24°, 36°, 48°, 60°, 72°, 84°, 96°, 108°, 120°, 132°, 144°, 156°, and 168°. Always remember to use the x, y coordinates position to obtain symmetrical result. Put it to a position like pictured below.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/15.jpg" border="0" alt="" /></div>
<h3>Step 16</h3>
<p>Now let’s make the stopwatch hand. In the empty field, create a rectangle using the Rectangle Tool (F6). Now right-click the object, choose Convert to Curves (Command + Q). Change the shape using the Shape Tool (F10). Create a circle and place it under the rectangle as shown. To combine the two objects, select them, then click Weld in the toolbar. Add a small black circle.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/16a.jpg" border="0" alt="" /></div>
<p>Place it in the middle of stopwatch. Size it to fit the stopwatch circle. Then, type the numbers.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/16b.jpg" border="0" alt="" /></div>
<h3>Step 17</h3>
<p>Create the Vertortuts logo under number twelve. It’s very easy, I know you can create the logo just by seeing it. Type “VECTORTUTS” under the logo. But you can use your own logo here if preferred.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/17.jpg" border="0" alt="" /></div>
<h3>Step 18</h3>
<p>Let’s draw the hand hour. In the empty field, create a rectangle using the Rectangle Tool (F6). Then right-click the object, choose Convert to Curves (Command + Q). Change the shape using the Shape Tool (F10).</p>
<p>Create a circle and place it under the rectangle as shown. To combine the two objects, select them, then click Weld in the toolbar. Add a rectangle in the middle, using the Shape Tool (F10) to create the rounded rectangle, then fill it with a 40% black color. Group (Command + G) them all.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/18a.jpg" border="0" alt="" /></div>
<p>Place it in the middle of watch, rotate to 85°. Use guidelines to help you arrange the object position.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/18b.jpg" border="0" alt="" /></div>
<h3>Step 19</h3>
<p>Draw the minute hand. See Step 18, but now make it slimmer and longer than the hour hand. Fill it with a 30% black color.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/19a.jpg" border="0" alt="" /></div>
<p>Place it in the middle of the watch, rotate it to 310°. Use guidelines to help you arrange the object position.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/19b.jpg" border="0" alt="" /></div>
<h3>Step 20</h3>
<p>Last, draw the second hand. In the empty field, create a rectangle using the Rectangle Tool (F6). Then right-click the object, choose Convert to Curves (Command + Q). Change the shape using the Shape Tool (F10).</p>
<p>Create a circle and place it under the rectangle as shown. To combine the two objects, select them, then click Weld in the toolbar. Fill it with a red color, change the Outline Color with a red color too. Now add a small black circle.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/20a.jpg" border="0" alt="" /></div>
<p>Place it in the middle of the watch, rotate it to 192°. Use guidelines to help you arrange the object position.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/20b.jpg" border="0" alt="" /></div>
<h3>Step 21</h3>
<p>Now let’s make the steel strap. Create a 179 px by 291 px rectangle using the Rectangle Tool (F6). Then right-click the object, choose Convert to Curves (Command +Q). Change the shape using the Shape Tool (F10), shape the rectangle as shown. Fill with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to -90°.</p>
<p>Add seven sliders in the Gradient Slider. Set the color and position, Start point at 40% black, First slider at white; position at 3%, Second slider at 20% black; position at 11%, Third slider at white; position at 17%, Fourth slider at 20% black; position at 24%, Fifth slider at 50% black; position at 42%, Sixth slider at 20% black; position at 83%, Seventh slider at 20% black; position at 94%, End point at 30% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/21a.jpg" border="0" alt="" /></div>
<p>Place it at the top of the watch.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/21b.jpg" border="0" alt="" /></div>
<p>Fix it using the Shape Tool(F10).</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/21c.jpg" border="0" alt="" /></div>
<h3>Step 22</h3>
<p>Duplicate it three times and put it to the position shown. For the first one, flip horizontally using Mirror, place the coordinate position at -296, 465. For the second one, flip vertically using Mirror, place the coordinate position at 296, -465. For the last one, flip vertically and horizontally using Mirror, place the coordinate position at -296, -465.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/22.jpg" border="0" alt="" /></div>
<h3>Step 23</h3>
<p>Create a 411 px by 279 px rectangle using the Rectangle tool (F6), make sure the width is fit with the last object (see picture below). Draw a rounded rectangle using the Shape Tool (F10). Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 90°.</p>
<p>Add six sliders in Gradient Slider. Set the color and position, Start point at 50% black, First slider at 40% black; position at 48%, Second slider at white; position at 68%, Third slider at 20% black; position at 75%, Fourth slider at white; position at 86%, Fifth slider at 50% black; position at 93%, Sixth slider at 20% black; position at 99%, End point at 80% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/23.jpg" border="0" alt="" /></div>
<h3>Step 24</h3>
<p>Duplicate the rounded rectangle, modify the Linear Gradient. Change the Angle to -90°. Add seven sliders in the Gradient Slider. Set the color and position, Start point at 40% black, First slider at 20% black; position at 12%, Second slider at 10% black; position at 23%, Third slider at white; position at 43%, Fourth slider at 10% black; position at 68%, Fifth slider at 20% black; position at 79%, Sixth slider at 30% black; position at 93%, Seventh slider at 50% black; position at 99%, End point at 50% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/24.jpg" border="0" alt="" /></div>
<h3>Step 25</h3>
<p>Create a 202 px by 162 px rectangle using the Rectangle tool (F6), but now smaller by about 50% from before. Draw a rounded rectangle using the Shape Tool (F10). Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to -90°.</p>
<p>Add six sliders in the Gradient Slider. Set the color and position, Start point at 50% black, First slider at 30% black; position at 7%, Second slider at 10% black; position at 15%, Third slider at 10% black; position at 28%, Fourth slider at white; position at 39%, Fifth slider at 10% black; position at 70%, Sixth slider at 30% black; position at 89%, End point at 10% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/25.jpg" border="0" alt="" /></div>
<h3>Step 26</h3>
<p>Arrange the position like shown below. Remember to use x,y coordinates position to get symmetric result. Order the large rounded rectangles to the back of page (Command + End).</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26a.jpg" border="0" alt="" /></div>
<p>Select them all. Use the Simplify command in the toolbar. The small rounded rectangle will trim the large one.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26b.jpg" border="0" alt="" /></div>
<p>Select the small rounded rectangle, change the height scale to 95%, place it at the center between the two large rectangles. The result should be like this:</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26c.jpg" border="0" alt="" /></div>
<p>Place it at the top of the watch.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26d.jpg" border="0" alt="" /></div>
<p>Fix it using the Shape Tool (F10). Do not use the Simplify command. The Simplify command will change the gradient.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26e.jpg" border="0" alt="" /></div>
<p>You can Group (Command + G) the steel strap, then duplicate it. Flip it vertically using Mirror and place it at the bottom of the watch as shown.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/26f.jpg" border="0" alt="" /></div>
<h3>Step 27</h3>
<p>In the empty field, create a rectangle using the Rectangle Tool (F6), use the Shape Tool (F10) to create the rounded rectangle. Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 90°.</p>
<p>Add two sliders in Gradient Slider. Set the color and position, Start point at black, First slider at 90% black; position at 26%, Second slider at white; position at 63%, End point at 90% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/27a.jpg" border="0" alt="" /></div>
<p>Duplicate the rounded rectangle seven times. For each rounded rectangle, modify the gradient randomly. Group (Command + G) them.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/27b.jpg" border="0" alt="" /></div>
<h3>Step 28</h3>
<p>Create a rectangle using the Rectangle Tool (F6). Then right-click the object, choose Convert to Curves (Command + Q). Change the shape using the Shape Tool (F10) as shown. Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 230° and Edge pad to 5%.</p>
<p>Add three sliders in Gradient Slider. Set the color and position, Start point at white, First slider at 20% black; position at 30%, Second slider at white; position at 50%, Third slider at 10% black; position at 70%, End point at 60% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/28a.jpg" border="0" alt="" /></div>
<p>Arrange the object with the rounded rectangle.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/28b.jpg" border="0" alt="" /></div>
<p>Order the object to the back of page (Command + End). Select them all and use the Simplify command in the toolbar.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/28c.jpg" border="0" alt="" /></div>
<p>The result should be like this:</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/28d.jpg" border="0" alt="" /></div>
<p>Place it at the right side of the watch, order it to back of page (Command + End). Select the object and the outer circle of the watch, then use the Simplify command in the toolbar.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/28e.jpg" border="0" alt="" /></div>
<h3>Step 29</h3>
<p>Next create a rectangle using the Rectangle Tool (F6). Then right-click the object, choose Convert to Curves (Command + Q). Change the shape using the Shape Tool (F10) as shown. Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 5° and the Edge pad to 3%.</p>
<p>Add three sliders in the Gradient Slider. Set the color and position, Start point at 50% black, First slider at 30% black; position at 47%, Second slider at 10% black; position at 61%, Third slider at white; position at 69%, End point at 10% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/29a.jpg" border="0" alt="" /></div>
<p>Place it like shown below. Fix it and Order it to back of page (Command + End). Select the object and the outer circle of the watch, use the Simplify command in the toolbar. Duplicate the object and flip vertically.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/29b.jpg" border="0" alt="" /></div>
<p>The result should be like this:</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/29c.jpg" border="0" alt="" /></div>
<h3>Step 30</h3>
<p>Now create a 38 px by 74 px rectangle using the Rectangle Tool (F6). Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to -90°. Add six sliders in the Gradient Slider. Set the color and position, Start point at 40% black, First slider at 10% black; position at 11%, Second slider at 20% black; position at 24%, Third slider at 90% black; position at 42%, Fourth slider at 20% black; position at 61%, Fifth slider at white; position at 77%, Sixth slider at 10% black; position at 90%, End point at 50% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/30.jpg" border="0" alt="" /></div>
<h3>Step 31</h3>
<p>Now create a 47 px by 103 px rectangle using the Rectangle Tool (F6). Draw a rounded rectangle using the Shape Tool (F10). Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to -90°.</p>
<p>Add six sliders in the Gradient Slider. Set the color and position, Start point at 40% black, First slider at 10% black; position at 11%, Second slider at 50% black; position at 28%, Third slider at 90% black; position at 37%, Fourth slider at 50% black; position at 47%, Fifth slider at white; position at 77%, Sixth slider at 10% black; position at 90%, End point at 50% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/31.jpg" border="0" alt="" /></div>
<h3>Step 32</h3>
<p>Create a 96 px vertical line with three point (see the picture below) using the Pen Tool. Modify the object using the Shape Tool (F10). Fill it with a Linear Gradient using the Fountain Fill Dialog (F11). Change the Angle to 50°.</p>
<p>Add three sliders in the Gradient Slider. Set the color and position, Start point at black, First slider at 40% black; position at 29%, Second slider at 10% black; position at 58%, Third slider at 70% black; position at 78%, End point at 80% black.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/32.jpg" border="0" alt="" /></div>
<h3>Step 33</h3>
<p>Put the three of them at the same y coordinate position, arrange them as shown. Then rotate about 25° and Group (Command + G) them.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/33a.jpg" border="0" alt="" /></div>
<p>Place it at the right side of the watch like shown below. Order the object to the back of page (Command + End). Select the object and the outer circle of the watch, use the Simplify command in the toolbar. Duplicate the object and flip it vertically.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/33b.jpg" border="0" alt="" /></div>
<p>The result should be like this:</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/33c.jpg" border="0" alt="" /></div>
<p>Your wristwatch is done.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/33d.jpg" border="0" alt="" /></div>
<h3>Final Image</h3>
<p>After adding a simple gradient background he final image is below. Use coordinates positioning and other simple techniques to create great results.</p>
<div><img src="http://vectortuts.s3.cdn.plus.org/tuts/000_2010/275_Steel_Wristwatch/final.jpg" alt="final" /></div>
<p> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/hmM1sHbyNN2NTz6iOjhJZyGiYnE/0/da"><img src="http://feedads.g.doubleclick.net/~a/hmM1sHbyNN2NTz6iOjhJZyGiYnE/0/di" border="0" alt="" /></a><br />
<a href="http://feedads.g.doubleclick.net/~a/hmM1sHbyNN2NTz6iOjhJZyGiYnE/1/da"><img src="http://feedads.g.doubleclick.net/~a/hmM1sHbyNN2NTz6iOjhJZyGiYnE/1/di" border="0" alt="" /></a></p>
<div><a href="http://feeds.feedburner.com/~ff/vectortuts?a=bDDWIjKaI1I:U0lbw7OUldA:yIl2AUoC8zA"></a> <a href="http://feeds.feedburner.com/~ff/vectortuts?a=bDDWIjKaI1I:U0lbw7OUldA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/vectortuts?i=bDDWIjKaI1I:U0lbw7OUldA:D7DqB2pKExk" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/vectortuts?a=bDDWIjKaI1I:U0lbw7OUldA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vectortuts?i=bDDWIjKaI1I:U0lbw7OUldA:F7zBnMyn0Lo" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/vectortuts?a=bDDWIjKaI1I:U0lbw7OUldA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vectortuts?i=bDDWIjKaI1I:U0lbw7OUldA:V_sGLiPBpWU" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/vectortuts?a=bDDWIjKaI1I:U0lbw7OUldA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vectortuts?i=bDDWIjKaI1I:U0lbw7OUldA:gIN9vFwOqvQ" border="0" alt="" /></a></div>
<p><img src="http://feeds.feedburner.com/~r/vectortuts/~4/bDDWIjKaI1I" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/13/how-to-create-a-steel-wristwatch-in-corel-draw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: HTML5 Video with a Fallback to Flash</title>
		<link>http://xguiden.dk/2010/03/13/quick-tip-html5-video-with-a-fallback-to-flash/</link>
		<comments>http://xguiden.dk/2010/03/13/quick-tip-html5-video-with-a-fallback-to-flash/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 16:34:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5630</guid>
		<description><![CDATA[In this video quick tip, we’ll review how to work with HTML 5 video in your own projects. Because older browsers and Internet Explorer do not understand the &#60;video&#62; element, we must also find a way to serve a Flash file to viewers who are utilizing those browsers.
 
Unfortunately, much like HTML 5 audio, Firefox and [...]]]></description>
			<content:encoded><![CDATA[<p>In this video quick tip, we’ll review how to work with HTML 5 video in your own projects. Because older browsers and Internet Explorer do not understand the &lt;video&gt; element, we must also find a way to serve a Flash file to viewers who are utilizing those browsers.</p>
<p><span> </span></p>
<p>Unfortunately, <a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-the-html-5-audio-element/">much like HTML 5 audio</a>, Firefox and Safari/Chrome don’t quite agree when it comes to the file format for videos. As such, if you wish to take advantage of HTML 5 video at this time, you’ll need to create three versions of your video.</p>
<ul>
<li><strong>.OGG</strong>: This will make Firefox happy. You can use <a href="http://www.videolan.org/vlc/">VLC</a> (File -&gt; Streaming/Export Wizard) to convert your video to this format easily.</li>
<li><strong>.MP4</strong>: Many screencasting tools automatically export to Mp4; so you can use that file for Safari and Chrome.</li>
<li><strong>.FLV/.SWF</strong>: Not all browsers support HTML 5 video, of course. To compensate, make sure that you add a fallback Flash version as well.</li>
</ul>
<pre>&lt;!DOCTYPE html&gt;

&lt;html lang="en"&gt;
&lt;head&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
	&lt;title&gt;untitled&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;video controls width="500"&gt;
	&lt;!-- if Firefox --&gt;
	&lt;source src="video.ogg" type="video/ogg" /&gt;
	&lt;!-- if Safari/Chrome--&gt;
	&lt;source src="video.mp4" type="video/mp4" /&gt;
	&lt;!-- If the browser doesn't understand the &lt;video&gt; element, then reference a Flash file. You could also write something like "Use a Better Browser!" if you're feeling nasty. (Better to use a Flash file though.) --&gt;
	&lt;embed src="http://blip.tv/play/gcMVgcmBAgA%2Em4v" type="application/x-shockwave-flash" width="1024" height="798" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;
&lt;/video&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>There are a handful of attributes available to the &lt;video&gt; element.</p>
<ul>
<li><strong>Controls: </strong>Display the play/stop buttons?</li>
<li><strong>Poster: </strong>The value can be a path to an image, that will serve as the display of the video before it is played.</li>
<li><strong>AutoPlay: </strong>Immediately play the video when the page is loaded?</li>
<li><strong>Width: </strong>The desired width of the video. By default, the browser will automatically detect the dimensions of the supplied video.</li>
<li><strong>Height: </strong>The desired height of the video.</li>
<li><strong>Src: </strong>The path to the video file. It’s better to use the &lt;source&gt; child element instead for this task.</li>
</ul>
<h3>Dos and Don’ts of HTML 5 Video</h3>
<ol>
<li><strong>DO </strong>create three version of your video to make Firefox, Safari/Chrome, and IE happy. (.ogg, .mp4, .flv/.swf)</li>
<li><strong>DO NOT </strong>omit one of these formats. Unfortunately, you can’t easily choose to serve HTML 5 video to Firefox, and the Flash fallback to Safari. Safari understands the &lt;video&gt; element, and will expect to find a suitable video format to load. If one is not found, it will display an empty player.</li>
<li><strong>DO </strong>keep in mind that full-screen support will not work in Safari and Chrome. However, with the release of Firefox 3.6, you can right-click, and view in full screen.</li>
<li><strong>DO</strong> remember that the reason why IE loads the Flash file instead is because it does not understand what the &lt;video&gt; element is. However, if a browser DOES understand that element, it will expect to find a suitable file to load.</li>
</ol>
<p><em>Please note that, if I can find a suitable work-around for the full-screen problem, we’ll be using this method on Nettuts+ in the near future! </em></p>
<p><a href="http://feedads.g.doubleclick.net/~a/7R1XQkicybqQErKovxjyEd9xJwo/0/da"><img src="http://feedads.g.doubleclick.net/~a/7R1XQkicybqQErKovxjyEd9xJwo/0/di" border="0" alt="" /></a><br />
<a href="http://feedads.g.doubleclick.net/~a/7R1XQkicybqQErKovxjyEd9xJwo/1/da"><img src="http://feedads.g.doubleclick.net/~a/7R1XQkicybqQErKovxjyEd9xJwo/1/di" border="0" alt="" /></a></p>
<div><a href="http://feeds.feedburner.com/~ff/nettuts?a=YtSdhZaIP0s:XtwtXFfXmgo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/nettuts?d=yIl2AUoC8zA" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/nettuts?a=YtSdhZaIP0s:XtwtXFfXmgo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/nettuts?i=YtSdhZaIP0s:XtwtXFfXmgo:F7zBnMyn0Lo" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/nettuts?a=YtSdhZaIP0s:XtwtXFfXmgo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/nettuts?i=YtSdhZaIP0s:XtwtXFfXmgo:V_sGLiPBpWU" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/nettuts?a=YtSdhZaIP0s:XtwtXFfXmgo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/nettuts?i=YtSdhZaIP0s:XtwtXFfXmgo:gIN9vFwOqvQ" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/nettuts?a=YtSdhZaIP0s:XtwtXFfXmgo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/nettuts?d=TzevzKxY174" border="0" alt="" /></a></div>
<p><img src="http://feeds.feedburner.com/~r/nettuts/~4/YtSdhZaIP0s" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/13/quick-tip-html5-video-with-a-fallback-to-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: How to Communicate Between Flash and HTML</title>
		<link>http://xguiden.dk/2010/03/12/quick-tip-how-to-communicate-between-flash-and-html/</link>
		<comments>http://xguiden.dk/2010/03/12/quick-tip-how-to-communicate-between-flash-and-html/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:45:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5595</guid>
		<description><![CDATA[In this Quick Tip, we’ll look at how to use the ExternalInterface class. This allows us to write AS3 which can run JavaScript code, and vice-versa. That means you can use Flash to alter parts of the webpage in which it’s running!
 

Step 1: Set up the Flash Document
Create a new Flash ActionScript 3 document. Resize [...]]]></description>
			<content:encoded><![CDATA[<p>In this Quick Tip, we’ll look at how to use the ExternalInterface class. This allows us to write AS3 which can run JavaScript code, and vice-versa. That means you can use Flash to alter parts of the webpage in which it’s running!</p>
<p><span> </span></p>
<hr />
<h2><span>Step 1:</span> Set up the Flash Document</h2>
<p>Create a new Flash ActionScript 3 document. Resize the stage to be 600×300. With the rectangle tool, draw out a rectangle that is the size of the stage. Give it a color of #CCCCCC. Also, give it a black stroke of 2px.</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/079_QTexternalInterface/Tutorial/1.jpg" alt="" /></div>
<hr />
<h2><span>Step 2:</span> Set up the Flash UI</h2>
<p>Here’s the layout we’ll be working towards:</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/079_QTexternalInterface/Tutorial/2.jpg" alt="" /></div>
<p>Open the Components Panel (Window &gt; Components) and, from the User Interface folder, drag a ColorPicker component onto the stage. Give it an instance name of ‘cp’.</p>
<p>Next create a dynamic text field called ‘resizeText’; place and size it however you please (you can’t see the one in my image; it’s empty, and in the top-right of the stage.)</p>
<p>Now, create another dynamic text field. Give it an instance name of ‘jsText’. Then create a button symbol and give it an instance name of ‘prompt’. After that, create another button and give it an instance name of ‘change’.</p>
<p>Finally, create two input text fields. Place one next to your ‘prompt’ button, and give it a name of ‘promptText’. Take the second text field, move it next to your ‘change’ button and name it ‘changeText’.</p>
<p>Also, add any labels you want; refer to my image to see how I set it up.</p>
<hr />
<h2><span>Step 3:</span> Set up the HTML UI</h2>
<p>In order for the ExternalInterface to work, the document has to be on the internet. First, create a new text file, and save it as ‘externalInterface.html’. Next, open a text editor and add all the code below. Save the HTML file.</p>
<pre>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;externalInterface&lt;/title&gt;
&lt;style type="text/css"&gt;

body {
	font-family:Arial;
}

#asSend {
	padding-top:20px;
	font-size:12px;
}
#htmlWrap {
	margin-top:10px;
	width:578px;
	padding-left:20px;
	border-width:1px;
	border-style:solid;
}
#sender {
	margin-top:10px;
}
#textChange {
	font-size:13px;
	font-weight:bold;
	padding-top:10px;
	padding-bottom:20px;
}

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="600" height="300" id="externalInterface" align="middle"&gt;
  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
  &lt;param name="allowFullScreen" value="false" /&gt;
  &lt;param name="movie" value="externalInterface.swf" /&gt;
  &lt;param name="quality" value="high" /&gt;
  &lt;param name="bgcolor" value="#ffffff" /&gt;
  &lt;embed src="externalInterface.swf" quality="high" bgcolor="#ffffff" width="600" height="300" name="externalInterface" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;
&lt;div id="htmlWrap"&gt;
&lt;div id="asSend"&gt;
  &lt;label for="textArea"&gt;Send to actionscript:&lt;/label&gt;&lt;br /&gt;
  &lt;textarea cols="50" rows="4" id="textArea" name="textArea"&gt;&lt;/textarea&gt;
  &lt;br /&gt;
  &lt;button id="sender" name="sender"&gt;Send&lt;/button&gt;
&lt;/div&gt;
&lt;div id="textChange"&gt;Use Actionscript to change me!&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The key areas are:</p>
<ul>
<li>The &lt;object&gt; section, which embeds the SWF you’ll create from the Flash file.</li>
<li>The &lt;div&gt;s and &lt;textarea&gt;, which have <em>id</em> properties so that we can access them from the SWF.</li>
</ul>
<p>Your HTML should appear as below:</p>
<div><img src="http://activetuts.s3.cdn.plus.org/tuts/079_QTexternalInterface/Tutorial/3.jpg" alt="" /></div>
<p>When the code has been replaced, upload the file to your webserver, so we can get started with the ActionScript.</p>
<hr />
<h2><span>Step 4:</span> Set up a Document Class</h2>
<p>Create a document class for your Flash file; call it externalInterface.as. If you’re not familiar with document classes, read <a href="http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/">this Quick Tip</a>.</p>
<pre>package
{
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {

		}
	}
}</pre>
<hr />
<h2><span>Step 5:</span> Calling JavaScript Functions from Flash</h2>
<p>The first thing we’ll do with the ExternalInterface is call a JavaScript function that will change the background color of our webpage. So, attach an event listener to our ColorPicker component. When the color changes, it will send the hex value to a javascript function called receiveColor():</p>
<pre>package
{
	import fl.events.ColorPickerEvent;
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {
			cp.addEventListener(ColorPickerEvent.CHANGE, colorChange);
		}

		public function colorChange(event:ColorPickerEvent):void {
			ExternalInterface.call("receiveColor", event.target.hexValue);	//calls receiveColor(event.target.hexValue) in the javascript
		}
	}
}</pre>
<p>Now we have to write this receiveColor() function. In the head of our HTML document, we start the javascript by defining this function. It simply takes the value sent to it from Flash and changes the background color.</p>
<p>Put that right after &lt;head&gt; in your HTML file. If all’s well, when you run the HTML page in a browser and change the color in the ColorPicker, it should change the background color of the webpage.</p>
<hr />
<h2><span>Step 6:</span> Calling ActionScript Functions from JavaScript</h2>
<p>The next example will be to send data from JavaScript to Flash. In the HTML document, paste the following code within the &lt;script&gt; tag you added in the last step:</p>
<pre>window.onload = function() {
	var sender = document.getElementById("sender");		//getElementById finds an element according to its "id" property
	sender.onclick = function() {
		var ta = document.getElementById("textArea");
		document['externalInterface'].receiveText(ta.value);
		ta.value = "";
	};
};</pre>
<p>Here’s what this does: after the document is loaded, we get the ’sender’ button and attach an event listener to it. When the ’sender’ button is clicked, it will call the receiveText() function in Flash that we will set up now.</p>
<p>Back in Flash, we tell the ExteralInterface to register the ActionScript function so that it can be called from JavaScript. Then we set up our receiveText() function:</p>
<pre>package
{
	import fl.events.ColorPickerEvent;
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {
			cp.addEventListener(ColorPickerEvent.CHANGE, colorChange);
			ExternalInterface.addCallback("receiveText", receiveText);	//allows JavaScript to access the receiveText() function.
		}

		public function colorChange(event:ColorPickerEvent):void {
			ExternalInterface.call("receiveColor", event.target.hexValue);
		}

		//this is the new receiveText function
		public function receiveText(value:String):void {
			jsText.text = value;
		}
	}
}</pre>
<p>(New lines are 8 and 15-18.)</p>
<hr />
<h2><span>Step 7:</span> Calling JavaScript Alerts, Confirms and Prompts from ActionScript</h2>
<p>We can also call alerts very easily from ActionScript. Here we simply tell the ExternalInterface to call a ‘prompt’. We can also use the ExternalInterface to pass parameters to functions. Here we tell the ‘prompt’ function to ask the user his or her name. When our user enters the info, it’s passed back to the ‘promptText’ text field.</p>
<pre>package
{
	import fl.events.ColorPickerEvent;
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {
			cp.addEventListener(ColorPickerEvent.CHANGE, colorChange);
			ExternalInterface.addCallback("receiveText", receiveText);
			prompt.addEventListener(MouseEvent.CLICK, promptClick);	//makes promptClick() run when prompt button is clicked
		}

		public function colorChange(event:ColorPickerEvent):void {
			ExternalInterface.call("receiveColor", event.target.hexValue);
		}

		public function receiveText(value:String):void {
			jsText.text = value;
		}

		//function to be called when prompt button is clicked. Will ask for user's name using a JS prompt.
		public function promptClick(event:MouseEvent):void {
			promptText.text = "You said your name is: " + ExternalInterface.call("prompt", "What is your name?");
		}
	}
}</pre>
<p>(New lines are 9 and 20-23.)</p>
<hr />
<h2><span>Step 8:</span> Calling Anonymous JavaScript Functions</h2>
<p>Another thing we can do is write our own JavaScript functions as strings, then call them from the ExternalInterface. Here we create a JavaScript function that receives a parameter. We take that parameter and assign its value to the innerHTML attribute of our ‘textChange’ div in the HTML document. You’ll notice that there are no external JavaScript functions being called – it is all contained within the ActionScript.</p>
<pre>package
{
	import fl.events.ColorPickerEvent;
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {
			cp.addEventListener(ColorPickerEvent.CHANGE, colorChange);
			ExternalInterface.addCallback("receiveText", receiveText);
			prompt.addEventListener(MouseEvent.CLICK, promptClick);
			change.addEventListener(MouseEvent.CLICK, changeClick);	//makes changeClick() run when change button is clicked
		}

		public function colorChange(event:ColorPickerEvent):void {
			ExternalInterface.call("receiveColor", event.target.hexValue);
		}

		public function receiveText(value:String):void {
			jsText.text = value;
		}

		public function promptClick(event:MouseEvent):void {
			promptText.text = "You said your name is: " + ExternalInterface.call("prompt", "What is your name?");
		}

		//changes text inside the HTML to match text field inside Flash
		public function changeClick(event:MouseEvent):void {
			ExternalInterface.call("function(param){ document.getElementById('textChange').innerHTML = param; }", changeText.text);
			changeText.text = "";
		}
	}
}</pre>
<p>(New lines are 10 and 25-29.)</p>
<hr />
<h2><span>Step 9:</span> Calling Anonymous JavaScript and ActionScript Functions</h2>
<p>Finally, we can call anonymous functions on both sides. In the ‘anonymous’ function, we register an anonymous ActionScript function with the ExternalInterface. The function fills in some text, then starts a timer. Next, we call an anonymous JavaScript function. This function tells the window, when it’s been resized, it must call back to our anonymous ActionScript function.</p>
<pre>package
{
	import fl.events.ColorPickerEvent;
	import flash.display.MovieClip;
	public class Main extends MovieClip {
		public function Main() {
			cp.addEventListener(ColorPickerEvent.CHANGE, colorChange);
			ExternalInterface.addCallback("receiveText", receiveText);
			prompt.addEventListener(MouseEvent.CLICK, promptClick);
			change.addEventListener(MouseEvent.CLICK, changeClick);

			//create a new timer with a one second tick, and add an event listener
			var timer:Timer = new Timer(1000);
			timer.addEventListener(TimerEvent.TIMER, onTimer);
		}

		public function colorChange(event:ColorPickerEvent):void {
			ExternalInterface.call("receiveColor", event.target.hexValue);
		}

		public function receiveText(value:String):void {
			jsText.text = value;
		}

		public function promptClick(event:MouseEvent):void {
			promptText.text = "You said your name is: " + ExternalInterface.call("prompt", "What is your name?");
		}

		public function changeClick(event:MouseEvent):void {
			ExternalInterface.call("function(param){ document.getElementById('textChange').innerHTML = param; }", changeText.text);
			changeText.text = "";
		}

		//clear the text after one second has passed
		public function onTimer(event:TimerEvent):void {
			resizeText.text = "";
			timer.stop();
		}

		public function anonymous():void {
			//see how we're defining a function inside another function?
			ExternalInterface.addCallback("anon", function(){
				resizeText.text = "The window has been resized.";
				timer.start();
			});

			//same applies here
			ExternalInterface.call("function(){ window.onresize = function(){ document['externalInterface'].anon(); }; }");
		}
	}
}</pre>
<p>(New lines are 12-14 and 34-49.)</p>
<hr /><span><img src="http://feeds.feedburner.com/~r/Flashtuts/~4/8JhY4HVKU0s" alt="" width="1" height="1" /></p>
<p></span></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/quick-tip-how-to-communicate-between-flash-and-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing Random Posts In WordPress</title>
		<link>http://xguiden.dk/2010/03/12/showing-random-posts-in-wordpress/</link>
		<comments>http://xguiden.dk/2010/03/12/showing-random-posts-in-wordpress/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:43:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[PHP/Mysql]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5590</guid>
		<description><![CDATA[Solution
Place the code bellow in functions.php file inside your theme’s folder.
function randomPosts($numPosts = 5){

	query_posts(array('orderby' =&#62; 'rand', 'showposts' =&#62; $numPosts));
	if (have_posts()) : while (have_posts()) : the_post();

	?&#62;
		&#60;ul&#62;
			&#60;li&#62;&#60;a title="Permanent Link to &#60;?php the_title(); ?&#62;" href="&#60;?php the_permalink(); ?&#62;"&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/li&#62;
		&#60;/ul&#62;
		&#60;?php

	endwhile;
	endif;

	wp_reset_query();

}
Change the layout to fit your needs.
Calling randomPosts(); will show 5 random posts and if you want a different amount [...]]]></description>
			<content:encoded><![CDATA[<h2>Solution</h2>
<p>Place the code bellow in <strong>functions.php</strong> file inside your theme’s folder.</p>
<pre>function randomPosts($numPosts = 5){

	query_posts(array('orderby' =&gt; 'rand', 'showposts' =&gt; $numPosts));
	if (have_posts()) : while (have_posts()) : the_post();

	?&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a title="Permanent Link to &lt;?php the_title(); ?&gt;" href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;?php

	endwhile;
	endif;

	wp_reset_query();

}</pre>
<p>Change the layout to fit your needs.</p>
<p>Calling <strong>randomPosts();</strong> will show 5 random posts and if you want a different amount then call it like <strong>randomPosts(number);</strong></p>
<p><img src="http://feeds.feedburner.com/~r/wpcanyon/~4/iY9xdF9d0I4" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/showing-random-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an Organic Spring Lettering Illustration – Vector Plus Tutorial</title>
		<link>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-plus-tutorial/</link>
		<comments>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-plus-tutorial/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:41:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[Illustrator]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5596</guid>
		<description><![CDATA[This Tutorial is Filled with Creative Techniques
Warm up your illustration skills with this spring-inspired tutorial for creating organic letters. Use of a Wacom tablet is recommended but not required.
This is a Detailed and Professional Tutorial





No tags for this post.
	Related posts
	
	No related posts.
	

]]></description>
			<content:encoded><![CDATA[<p>This Tutorial is Filled with Creative Techniques</p>
<p>Warm up your illustration skills with this spring-inspired tutorial for creating organic letters. Use of a Wacom tablet is recommended but not required.</p>
<h3>This is a Detailed and Professional Tutorial</h3>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-3.jpg" alt="Picture-3" width="336" height="1470" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-10.jpg" alt="Picture-10" width="600" height="482" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-16.jpg" alt="Picture-16" width="348" height="499" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-33.jpg" alt="Picture-33" width="379" height="385" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-46.jpg" alt="Picture-46" width="415" height="421" /></div>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-plus-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Separate Count For Comments Trackbacks And Pingbacks In WordPress</title>
		<link>http://xguiden.dk/2010/03/12/get-separate-count-for-comments-trackbacks-and-pingbacks-in-wordpress/</link>
		<comments>http://xguiden.dk/2010/03/12/get-separate-count-for-comments-trackbacks-and-pingbacks-in-wordpress/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:38:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[PHP/Mysql]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5602</guid>
		<description><![CDATA[The code
Place the code bellow in your theme’s functions.php file.
function commentCount($type = 'comments'){

	if($type == 'comments'):

		$typeSql = 'comment_type = ""';
		$oneText = 'One comment';
		$moreText = '% comments';
		$noneText = 'No Comments';

	elseif($type == 'pings'):

		$typeSql = 'comment_type != ""';
		$oneText = 'One pingback/trackback';
		$moreText = '% pingbacks/trackbacks';
		$noneText = 'No pinbacks/trackbacks';

	elseif($type == 'trackbacks'):

		$typeSql = 'comment_type = "trackback"';
		$oneText = 'One trackback';
		$moreText = '% trackbacks';
		$noneText [...]]]></description>
			<content:encoded><![CDATA[<h2>The code</h2>
<p>Place the code bellow in your theme’s <strong>functions.php</strong> file.</p>
<pre>function commentCount($type = 'comments'){

	if($type == 'comments'):

		$typeSql = 'comment_type = ""';
		$oneText = 'One comment';
		$moreText = '% comments';
		$noneText = 'No Comments';

	elseif($type == 'pings'):

		$typeSql = 'comment_type != ""';
		$oneText = 'One pingback/trackback';
		$moreText = '% pingbacks/trackbacks';
		$noneText = 'No pinbacks/trackbacks';

	elseif($type == 'trackbacks'):

		$typeSql = 'comment_type = "trackback"';
		$oneText = 'One trackback';
		$moreText = '% trackbacks';
		$noneText = 'No trackbacks';

	elseif($type == 'pingbacks'):

		$typeSql = 'comment_type = "pingback"';
		$oneText = 'One pingback';
		$moreText = '% pingbacks';
		$noneText = 'No pingbacks';

	endif;

	global $wpdb;

    $result = $wpdb-&gt;get_var('
        SELECT
            COUNT(comment_ID)
        FROM
            '.$wpdb-&gt;comments.'
        WHERE
            '.$typeSql.' AND
            comment_approved="1" AND
            comment_post_ID= '.get_the_ID()
    );

	if($result == 0):

		echo str_replace('%', $result, $noneText);

	elseif($result == 1): 

		echo str_replace('%', $result, $oneText);

	elseif($result &gt; 1): 

		echo str_replace('%', $result, $moreText);

	endif;

}</pre>
<p>Change the <strong>$oneText</strong>, <strong>$moreText</strong>, <strong>$noneText</strong> variable values to suit your needs. The percentage character (<strong>%</strong>) can be used in all of the variables and will be replaced with the number.</p>
<h2>Using the code</h2>
<pre>commentCount(); //echoes the comment count

commentCount('comments'); //same as the example on top

commentCount('pings'); //echoes number of trackbacks and pingbacks

commentCount('trackbacks'); //echoes number of trackbacks

commentCount('pingbacks'); //echoes number of pingbacks</pre>
<p>If you know a simpler way to do this let me and the readers know in the comments. Thanks.</p>
<p><img src="http://feeds.feedburner.com/~r/wpcanyon/~4/wkgrp-EPTyY" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/get-separate-count-for-comments-trackbacks-and-pingbacks-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canvas Texture Imitation</title>
		<link>http://xguiden.dk/2010/03/12/canvas-texture-imitation/</link>
		<comments>http://xguiden.dk/2010/03/12/canvas-texture-imitation/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:37:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5601</guid>
		<description><![CDATA[
One more interesting tutorial how to create canvas texture imitation from the photography. Here I’ll show you the method how to simulate the maximum texture of canvas.
 
Before starting this tutorial you should find the suitable photography to work with. You can try to find it by using Google Images or feel free to use mine. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.photoshopstar.com/photo-effects/canvas-texture-imitation/"><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_19.jpg" alt="Canvas Texture Imitation" /></a></p>
<p>One more interesting tutorial how to create canvas texture imitation from the photography. Here I’ll show you the method how to simulate the maximum texture of canvas.</p>
<p><span> </span></p>
<p>Before starting this tutorial you should find the suitable photography to work with. You can try to find it by using Google Images or feel free to use mine. Open up the photography and duplicate layer with <strong>Ctrl+J </strong>at first. After that desaturate copied layer with <strong>Image &gt; Adjustments &gt; Desaturate</strong> and set up opacity to 70%.</p>
<p>Merge two of these layers in one and apply <strong>Filter &gt; Noise &gt; Add Noise</strong> to the new layer.</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_02.jpg" alt="Canvas Texture Imitation 02" /></p>
<p>The result should be next:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_03.jpg" alt="Canvas Texture Imitation 03" /></p>
<p>After that apply <strong>Filter &gt; Blur &gt; Gaussian Blur </strong>with next presets:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_04.jpg" alt="Canvas Texture Imitation 04" /></p>
<p>Hope, your result looks the same as mine on the picture below:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_05.jpg" alt="Canvas Texture Imitation 05" /></p>
<p>Ok, move to the next step. On this step you should stylize the photography a little bit with <strong>Filter &gt; Sharpen &gt; Smart Sharpen</strong> by using following presets:</p>
<p><a href="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_06big.jpg"><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_06.jpg" alt="Canvas Texture Imitation 06" /></a></p>
<p>See the difference below:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_07.jpg" alt="Canvas Texture Imitation 07" /></p>
<p>Ok, now create a new layer and fill it with black color. Then <strong>Filter &gt; Noise &gt; Add Noise</strong> to add the noise a little bit on this layer.</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_08.jpg" alt="Canvas Texture Imitation 08" /></p>
<p>Then mess with the layer mode &amp; opacity/fill. I tried Screen with opacity of 50%.</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_09.jpg" alt="Canvas Texture Imitation 09" /></p>
<p>Now, duplicate noise layer with <strong>Ctrl+J</strong> and hide the copy (click on the eye, which indicates layer visibility). Go to lower layer and apply <strong>Filter &gt; Blur &gt; Motion Blur</strong> with next parameters:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_10.jpg" alt="Canvas Texture Imitation 10" /></p>
<p>Your effect should be the next:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_11.jpg" alt="Canvas Texture Imitation 11" /></p>
<p>Now, apply <strong>Filter &gt; Sharpen &gt; Sharpen</strong> to this layer two times.</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_12.jpg" alt="Canvas Texture Imitation 12" /></p>
<p>After that go back to the hidden copy of layer and make it visible again. Apply <strong>Filter &gt; Blur &gt; Motion Blur </strong>with following parameters:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_13.jpg" alt="Canvas Texture Imitation 13" /></p>
<p>See the difference now?</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_14.jpg" alt="Canvas Texture Imitation 14" /></p>
<p>Ok, now apply <strong>Filter &gt; Sharpen &gt; Sharpen</strong> two times for this layer also.</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_15.jpg" alt="Canvas Texture Imitation 15" /></p>
<p>Then adjust brightness and contrast a little bit with <strong>Image &gt; Adjustments &gt; Brightness/Contrast</strong>. Use next parameters:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_16.jpg" alt="Canvas Texture Imitation 16" /></p>
<p>Your picture should look the same as mine:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_17.jpg" alt="Canvas Texture Imitation 17" /></p>
<p>And the last one thing that we need to do before finishing this tutorial to increase the sharpness with <strong>Filter &gt; Sharpen &gt; Sharpen</strong>:</p>
<p><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_18.jpg" alt="Canvas Texture Imitation 18" /></p>
<p>On this step we are done. The final picture has nice canvas texture imitation effect isn’t it?</p>
<p><a href="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_19full.jpg"><img class="aligncenter size-full" src="http://www.photoshopstar.com/wp-content/uploads/2010/03/canvas_texture_lmitation_19.jpg" alt="Canvas Texture Imitation 19" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/OPkvdSf_WTeQFtSr7N8peE1H4yM/0/da"><img src="http://feedads.g.doubleclick.net/~a/OPkvdSf_WTeQFtSr7N8peE1H4yM/0/di" border="0" alt="" /></a><br />
<a href="http://feedads.g.doubleclick.net/~a/OPkvdSf_WTeQFtSr7N8peE1H4yM/1/da"><img src="http://feedads.g.doubleclick.net/~a/OPkvdSf_WTeQFtSr7N8peE1H4yM/1/di" border="0" alt="" /></a></p>
<p><img src="http://feeds.feedburner.com/~r/photoshopstarcom/~4/giLHXjnc5FY" alt="" width="1" height="1" /></p>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/canvas-texture-imitation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an Organic Spring Lettering Illustration – Vector Premium Tutorial</title>
		<link>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-premium-tutorial/</link>
		<comments>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-premium-tutorial/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:35:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[Illustrator]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5600</guid>
		<description><![CDATA[We have another great Vector Premium tutorial available exclusively for Premium members today. If you want to learn how to create organic lettering, with digitally drawn lettering, then we have an awesome tutorial for you. This tutorial covers all the techniques in creating this lettering illustration and gives advanced coloring and compositional tips.
 
This Tutorial is [...]]]></description>
			<content:encoded><![CDATA[<p>We have another great <a href="http://tutsplus.com/plus-program/vector-plus/">Vector Premium</a> tutorial available exclusively for <a href="http://tutsplus.com/">Premium members</a> today. If you want to learn how to create organic lettering, with digitally drawn lettering, then we have an awesome tutorial for you. This tutorial covers all the techniques in creating this lettering illustration and gives advanced coloring and compositional tips.</p>
<p><span> </span></p>
<h3>This Tutorial is Filled with Creative Techniques</h3>
<p>Warm up your illustration skills with this spring-inspired tutorial for creating organic letters. Use of a Wacom tablet is recommended but not required.</p>
<h3>This is a Detailed and Professional Tutorial</h3>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-3.jpg" alt="Picture-3" width="336" height="1470" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-10.jpg" alt="Picture-10" width="600" height="482" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-16.jpg" alt="Picture-16" width="348" height="499" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-33.jpg" alt="Picture-33" width="379" height="385" /></div>
<div><img src="http://vectortuts.s3.cdn.plus.org/articles/2010/news_2010_02_23/Picture-46.jpg" alt="Picture-46" width="415" height="421" /></div>
No tags for this post.
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/12/create-an-organic-spring-lettering-illustration-%e2%80%93-vector-premium-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert Element Every nth Loop</title>
		<link>http://xguiden.dk/2010/03/10/insert-element-every-nth%c2%a0loop/</link>
		<comments>http://xguiden.dk/2010/03/10/insert-element-every-nth%c2%a0loop/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 19:42:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Engelske guides]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://xguiden.dk/?p=5580</guid>
		<description><![CDATA[When inside of a loop, you can keep track of the iteration number of the loop (shown below is a simple for loop). Using that iteration number, you can calculate it’s modulus of some number (number left over after an even division). If that modulus is zero, you are at an even division of whatever [...]]]></description>
			<content:encoded><![CDATA[<p>When inside of a loop, you can keep track of the iteration number of the loop (shown below is a simple for loop). Using that iteration number, you can calculate it’s modulus of some number (number left over after an even division). If that modulus is zero, you are at an even division of whatever that number was.</p>
<p>So in this simple loop below, it will output something every third time through the loop:</p>
<pre><code>&lt;?php for ($counter = 1; $counter &lt; 100; $counter++ ) { if ($counter % 3 == 0) { echo "&lt;p&gt;Every third!&lt;/p&gt;"; } }
?&gt;</code></pre>
<p><img src="http://feeds.feedburner.com/~r/CSS-TricksSnippets/~4/c7AgLqDsyoo" alt="" width="1" height="1" /></p>

	Tags: <a href="http://xguiden.dk/tag/code/" title="code" rel="tag">code</a>, <a href="http://xguiden.dk/tag/counter/" title="counter" rel="tag">counter</a>, <a href="http://xguiden.dk/tag/css/" title="CSS" rel="tag">CSS</a>, <a href="http://xguiden.dk/tag/element/" title="element" rel="tag">element</a>, <a href="http://xguiden.dk/tag/php/" title="php" rel="tag">php</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://xguiden.dk/2010/02/25/php-and-mysql-file-download-counter/" title="PHP and MySQL File Download Counter (25/02/2010)">PHP and MySQL File Download Counter</a> (0)</li>
	<li><a href="http://xguiden.dk/2010/03/10/making-a-mosaic-slideshow-with-jquery-and-css/" title="Making a Mosaic Slideshow With jQuery and CSS (10/03/2010)">Making a Mosaic Slideshow With jQuery and CSS</a> (0)</li>
	<li><a href="http://xguiden.dk/2010/02/18/make-your-mootools-code-shorter-faster-and-stronger/" title="Make your MooTools Code Shorter, Faster, and Stronger (18/02/2010)">Make your MooTools Code Shorter, Faster, and Stronger</a> (0)</li>
	<li><a href="http://xguiden.dk/2010/03/10/awesome-cssjs-form-styling/" title="Awesome CSS+JS form styling (10/03/2010)">Awesome CSS+JS form styling</a> (0)</li>
	<li><a href="http://xguiden.dk/2010/03/09/2-different-ways-for-getting-twitter-status-php-and-jquery/" title="2 Different Ways For Getting Twitter Status / PHP and jQuery (09/03/2010)">2 Different Ways For Getting Twitter Status / PHP and jQuery</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://xguiden.dk/2010/03/10/insert-element-every-nth%c2%a0loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
