<?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>SWiSHzone.com Official Blog</title>
	<atom:link href="http://blog.swishzone.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.swishzone.com</link>
	<description>Flash and SWiSH, News, Resources and more!</description>
	<lastBuildDate>Tue, 15 May 2012 03:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Tutorial: Stereo Mix device</title>
		<link>http://blog.swishzone.com/?p=9351</link>
		<comments>http://blog.swishzone.com/?p=9351#comments</comments>
		<pubDate>Mon, 14 May 2012 23:01:38 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[midi]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[Stereo Mix]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=9351</guid>
		<description><![CDATA[The Stereo Mix device captures all sounds from the computer and presents them as an input to other audio applications. SWiSH Max4 requires this device during the export to AVI process to capture sound track audio. In addition, the Stereo Mix device can be used with Windows Media player and audacity to convert midi files to mp3 [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>Stereo Mix</strong> device captures all sounds from the computer and presents them as an input to other audio applications. SWiSH Max4 requires this device during the export to AVI process to capture sound track audio. In addition, the Stereo Mix device can be used with Windows Media player and <a title="audacity website" href="http://audacity.sourceforge.net/" target="_blank">audacity</a> to convert midi files to mp3 or wav files which can then be imported into SWiSH Max. Unfortunately, the <strong>Stereo Mix</strong> device facilitates the potentially unauthorized recording of any streaming audio received by the computer. I suspect that for this reason, its existence is being phased out or hidden. This blog article provides some suggestions on how to gain access to the device and alternate work arounds that allow a soundtrack to be added to an exported avi movie if the device is not available.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/StereoMix2.png"><img class="alignnone size-full wp-image-9352" title="StereoMix2" src="http://blog.swishzone.com/wp-content/uploads/2012/05/StereoMix2.png" alt="" width="414" height="461" /></a></p>
<p>&nbsp;</p>
<p><span id="more-9351"></span></p>
<p>Availability of the Stereo Mix device relies on the following:</p>
<ol>
<li>It is not disabled.</li>
<li>It is supported by the software driver.</li>
<li>It is supported by the sound card.</li>
</ol>
<h2>Disabled device</h2>
<p>By default the <strong>Stereo Mix</strong> device is disabled. To enable the device:</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/cap06-2012-05-141.bmp"><img class="alignright size-full wp-image-9354" title="cap06 2012-05-14" src="http://blog.swishzone.com/wp-content/uploads/2012/05/cap06-2012-05-141.bmp" alt="" /></a>Open the Sound  Recording devices by right clicking on the speaker icon in the task bar and select <strong>Recording devices</strong>.</p>
<p>The panel can also be accessed from the control panel.</p>
<p>Once the panel is opened, right click in the middle of the panel and select the Show Disabled Devices option.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/cap03-2012-05-14.png"><img class="alignnone size-full wp-image-9358" title="cap03 2012-05-14" src="http://blog.swishzone.com/wp-content/uploads/2012/05/cap03-2012-05-14.png" alt="" width="411" height="458" /></a></p>
<p>Any available disabled devices will be displayed.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/stereomixdisabled.png"><img class="alignnone size-full wp-image-9362" title="stereomixdisabled" src="http://blog.swishzone.com/wp-content/uploads/2012/05/stereomixdisabled.png" alt="" width="414" height="461" /></a></p>
<p>Right click on the Stereo Mix device to display the context menu and enable the device.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/cap04-2012-05-14.png"><img class="alignnone size-full wp-image-9363" title="cap04 2012-05-14" src="http://blog.swishzone.com/wp-content/uploads/2012/05/cap04-2012-05-14.png" alt="" width="352" height="196" /></a></p>
<p>Once enabled, the device should be visible in the Max <strong>Export Settings | AVI Movie</strong> panel.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/05/cap07-2012-05-15.png"><img class="alignnone size-full wp-image-9375" title="cap07 2012-05-15" src="http://blog.swishzone.com/wp-content/uploads/2012/05/cap07-2012-05-15.png" alt="" width="290" height="119" /></a></p>
<p>Where it should be selected as the sound capture driver.</p>
<p>If the previous steps do not display the Stereo Mix device, it is possible that it is disabled or not supported by the currently installed driver.</p>
<h2>Not Supported by Software Driver</h2>
<p>It is possible that the default operating system driver does not support the Stereo Mix device. In this case, a driver from the card / computer / hardware manufacturer may fix the problem.</p>
<p>Try installing appropriate drivers from the manufacturer site and repeat the disabled device sequence described above.</p>
<p>Note that as drivers have full access to your computer system, we recommend that you only download drivers from a trusted source such as your computer manufacturer or a recognised hardware vendor. Driver installation files should normally be <a title="blog article about digital signatures" href="http://blog.swishzone.com/?p=6915" target="_blank">digitally signed</a>, although there are some exceptions (Realtek).</p>
<p>If after installing a new driver your system fails to respond correctly, you should be able to <a title="Microsoft instructions on how to rollback a driver. " href="http://windows.microsoft.com/en-US/windows-vista/Restore-a-driver-to-its-previous-version" target="_blank">rollback </a>the driver to the previous version.</p>
<h2>Not  Supported by Sound Card</h2>
<p>Finally it is possible that the Sound Card / driver combination does not support the Stereo Mix device. If the above suggestions do not display the Stereo Mix device, this is the most likely cause of the problem.</p>
<p>As a workaround, export to AVI without sound capture.  The sound capture feature is enabled or disabled using the <strong>Export Settings | AVI Movie</strong> panel. On completion of the export process, sound can be added to the AVI using a 3rd party application such as <strong>Windows Live Movie Maker</strong>. One advantage of this approach is that the export to AVI process is significantly faster if the sound capture is disabled.</p>
<h2>Midi to mp3/wav Conversion</h2>
<p>If the Stereo Mix device is available, it can be used with <a title="audacity website" href="http://audacity.sourceforge.net/" target="_blank">audacity</a> and windows media player to convert midi files to mp3. In audacity, select Stereo Mix as the recording device, play the midi file in media player and record the result. The resulting mp3 or wav file can be imported into Max4.</p>
<h2>Notes</h2>
<p>The screen captures are from a Windows 7 system. A similar sequence should apply to Vista.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=9351</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: Authoring Custom Effects</title>
		<link>http://blog.swishzone.com/?p=9148</link>
		<comments>http://blog.swishzone.com/?p=9148#comments</comments>
		<pubDate>Sun, 29 Apr 2012 22:11:08 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[.sfx]]></category>
		<category><![CDATA[Author]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[rainbow]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=9148</guid>
		<description><![CDATA[Many users may not be aware that it is possible to use SWiSH Max4 to author custom effects such as the one shown below. A custom effect can be based on any of the ten core effects. Custom effects use a Custom interface to offer a specialized user interface that is easier to use than the underlying core effect [...]]]></description>
			<content:encoded><![CDATA[<p>Many users may not be aware that it is possible to use SWiSH Max4 to author custom effects such as the one shown below. A custom effect can be based on any of the ten core effects. Custom effects use a <strong>Custom</strong> interface to offer a specialized user interface that is easier to use than the underlying core effect interface tabs.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_0" width="450" height="200" align="none">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/04/Ranbowbulge.swf" />
      <param name="align" value="none" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/04/Ranbowbulge.swf" width="450" height="200" align="none">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>The Custom interface for the &#8220;Rainbow bulge&#8221; effect is shown below. This exposes five parameters instead of the 30+ parameters associated with the underlying Transform effect.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgeparams.png"><img class="alignleft  wp-image-9164" title="rainbowbulgeparams" src="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgeparams.png" alt="" width="195" height="174" /></a>An authored effect can  support up to nine Custom parameters. If more control is needed, the original parameters associated with the core effect can be presented in additional tabs.</p>
<p>The sample effect, &#8220;Rainbow bulge&#8221;, has five custom parameters. In this example, the parameters associated with the core effect (Transform) have been hidden from the end user.</p>
<p>The remainder of this article demonstrates how the above effect was authored. Once understood, the technique can be applied to allow authoring of a virtually unlimited number of custom effects. <span id="more-9148"></span></p>
<h2>Enable Authoring</h2>
<p>By default, effect authoring is not enabled. To enable effect authoring use the Preferences panel (menu item <strong>Tools | Preferences | Effects</strong>) and set the checkbox <strong>Allow effect authoring</strong>. Note that effect authoring is not possible with the SWiSH miniMax range of products.<br />
<a href="http://blog.swishzone.com/wp-content/uploads/2012/04/cap01-2012-04-23.jpg"><img class="alignnone size-full wp-image-9183" title="cap01 2012-04-23" src="http://blog.swishzone.com/wp-content/uploads/2012/04/cap01-2012-04-23.jpg" alt="" width="461" height="214" /></a></p>
<p>While the panel is open use the <strong>Specify additional folder</strong> option to specify the folder where you intend to save the authored effects. This option allows the specified folder to be searched for effect files (.sfx). Effect files and any sub folders containing effect files will be listed in the various effect menus when this option is enabled.</p>
<p>The additional folder option is provided as it is not possible to save authored effects directly to the main effects folder in Vista and Windows 7.</p>
<p>The main effects folder is normally located in <strong>C:\Program Files\SWiSH Max4\effects</strong> or <strong>C:\Program Files (x86)\SWiSH Max4\effects</strong> on 64 bit systems. Administrator permission is required to save files to those folders.</p>
<h2>Author Effect</h2>
<p>To author an effect, follow the normal process of applying an effect ot an object. Select an effect that you want to modify (re-author) or choose one of the core effects. A custom effect can be based on any of the ten core effects. Many of the core effects will cause multiple tabs to be displayed in the Effects panel. The tabs associated with each of the core effects is shown in italics.</p>
<ul>
<li><strong>Transform</strong>: <em>Transforms, Cascade</em></li>
<li><strong>Squeeze</strong>: <em>Squeeze, Transforms, Cascade</em></li>
<li><strong>Alternate</strong>: <em>Alternate, Transforms, Cascade</em></li>
<li><strong>Snake</strong>: <em>Snake, Transforms, Cascade</em></li>
<li><strong>Explode</strong>: <em>Explode, Camera, Cascade</em></li>
<li><strong>3D Spin</strong>: <em>3D Spin, Camera, Cascade</em></li>
<li><strong>3D Wave</strong>: <em>3D Wave, Camera, Cascade</em></li>
<li><strong>Vortex</strong>: <em>Vortex, Camera, Cascade</em></li>
<li><strong>Wave</strong>: <em>Wave</em></li>
<li><strong>Typewriter</strong>: <em>Typewriter</em></li>
</ul>
<p><strong>Motion</strong> and <strong>Easing</strong> tabs are available for all effects. These tabs can be hidden or displayed by using the <strong>&lt;&lt;</strong> or <strong>&gt;&gt;</strong> button.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/04/Authorpanel.png"><img class="alignright  wp-image-9188" title="Authorpanel" src="http://blog.swishzone.com/wp-content/uploads/2012/04/Authorpanel.png" alt="" width="186" height="286" /></a>To author a new effect, rename the effect (<em>New Effect</em> in the sample image) and check the Author checkbox. This will cause the additional tabs to be displayed including the <strong>Author</strong> and<strong> Custom</strong> tabs. If desired, the default number of frames can also be altered to better suit the final effect that is authored.</p>
<p>The <strong>Author</strong> tab allows up to nine user configurable parameters to be defined. Once defined these parameters appear within the <strong>Custom</strong> tab. The columns used by each parameter are described below:</p>
<p><strong>Prompt</strong>: Defines the description that is presented to the end user in the <strong>Custom</strong> tab.</p>
<p><strong>Variable</strong>: The end user enters values for each prompt shown in the <strong>Custom</strong> tab. The value entered is saved to the associated variable. The variable is then used to calculate values that are used in other effect tabs.</p>
<p><strong>Type</strong>: One of  <strong>Edit</strong>, <strong>Check</strong>, <strong>Slider</strong> or <strong>Color</strong>. This defines the type of interface that is presented to the user in the <strong>Custom</strong> tab. <strong>Edit</strong> is a standard edit box, <strong>Check</strong> is a checkbox that returns a value of 0 for false or 1 for true. <strong>Slider</strong> allows the user to select a value using the slider or associated edit box. <strong>Color</strong> allows the user to select a color using a color swatch.</p>
<p><strong>Min/Max</strong>: These columns allow maximum and minimum values to be defined if the <strong>Slider</strong> type is chosen.</p>
<p>The <strong>Only show the &#8220;Custom&#8221; page</strong> checkbox will cause the underlying core effect and associated tabs to be hidden when the <strong>Author</strong> checkbox is unchecked. Using this option will minimize the parameters that are presented to the user. When this option is selected, the <strong>Custom</strong> tab will appear as a single page or as a tab if the <strong>Motion</strong> and <strong>Easing</strong> tabs have been enabled with the <strong>&gt;&gt;</strong> button.</p>
<p>Once the <strong>Author</strong> tab has been filled out, select the <strong>Custom</strong> tab and enter reasonable values for the parameters that are presented. When the effect is saved, these values become the default effect values.</p>
<p>Formulas based on the defined variables can then be entered into any field assoicated with the underlying core effect. All fields in the core effect tabs can be configured to have a calculated value. A calculated value is a value derived from a formula consiting of numerical constants, variables and standard mathematical symbols + &#8211; / * etc.</p>
<p><strong>Note</strong>: the  <strong>Motion</strong> and <strong>Easing</strong> tabs cannot have formulas entered as these are not &#8220;core effect&#8221; tabs.</p>
<p>To use a calculated value, instead a numeric value, <strong>right click</strong> on the field and enter the forumla to be calculated. In the case of the image below, the formula entered was the single variable &#8220;<strong><em>mz</em></strong>&#8220;. <a href="http://blog.swishzone.com/wp-content/uploads/2012/04/cap05-2012-04-24.jpg"><img title="cap05 2012-04-24" src="http://blog.swishzone.com/wp-content/uploads/2012/04/cap05-2012-04-24.jpg" alt="" width="189" height="26" /></a><strong></strong></p>
<p><strong>Note</strong>: forumlas can only be entered if the <strong>Author</strong> checkbox is checked and the user<strong> right clicks</strong> on the edit box for the item. Once the forumla has been enterd, the item will display the current calculated value. The calcuated value is shown in gray indicating that direct user entry is not possible. If the forumula contains an error (invalid symbol, undefined variable etc) it will evaluate as 0.</p>
<p>For example: <em><strong>100+mz/2</strong></em> is a valid formula. If <strong>mz</strong> is set to 50 in the <strong>Custom</strong> panel, then the formula would result in a calculated value of 125 (100+50/2). To enter the formula, right click on the desired edit box then enter <strong>100+mz/2</strong>.</p>
<h2>Example</h2>
<p>Using the Rainbow bulge effect as an example, the <strong>Author</strong>, <strong>Custom</strong>, <strong>Transforms</strong> and <strong>Cascade </strong>tabs are shown below:</p>
<table>
<tbody>
<tr>
<td> <a href="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgeauthor.png"><img class="alignnone  wp-image-9194" title="rainbowbulgeauthor" src="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgeauthor.png" alt="" width="212" height="326" /></a></td>
<td><a href="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgecustom.png"><img class="alignnone  wp-image-9198" title="rainbowbulgecustom" src="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgecustom.png" alt="" width="212" height="326" /></a></td>
</tr>
<tr>
<td><a href="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgetransform.png"><img class="alignnone  wp-image-9202" title="rainbowbulgetransform" src="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgetransform.png" alt="" width="212" height="326" /></a></td>
<td> <a href="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgecascade.png"><img class="alignnone  wp-image-9201" title="rainbowbulgecascade" src="http://blog.swishzone.com/wp-content/uploads/2012/04/rainbowbulgecascade.png" alt="" width="212" height="326" /></a></td>
</tr>
</tbody>
</table>
<p>As the Rainbow bulge effect is based on the <strong>Transform</strong> core effect, the <strong>Transforms</strong> and <strong>Cascade</strong> tabs are shown. Custom effects based on a different core effect will show a different tabs depending on the chosen effect.</p>
<p>As can be seen from the images above, the <strong>Custom</strong> tab displays the parameters that are defined within the <strong>Author</strong> tab.  The <strong>Custom</strong> tab becomes the primary user interface for the effect. Values entered by a user in the <strong>Custom</strong> tab are written to the variables defined with the <strong>Author</strong> tab. For example, if the user enters a value for &#8220;Zoom&#8221; in the custom tab, the value is saved in the variable &#8220;mz&#8221;.</p>
<p>The <strong>Transforms</strong> tab has some items grayed out. The grayed items have had formulas entered in place of normal numeric values. The formulas entered for each of the items is shown below in italics:</p>
<ul>
<li>Middle Spacing: <em>ms</em></li>
<li>Middle Scale: <em>mz</em></li>
<li>Start Color: <em>c1</em></li>
<li>Middle Color: <em>c2</em></li>
<li>End Color:<em> c3</em></li>
</ul>
<p>The <strong>Cascade</strong> tab has had the <strong>At start</strong> and <strong>At end</strong> values changed from the default values to <strong>Repeating</strong>. If desired, calculated values could be entered for any item in the <strong>Cascade</strong> tab. However, in this example, no calculated values were used in this tab.</p>
<p>Once the effect has been authored and tested, it can be saved for re-use.</p>
<h2>Saving the Authored Effect</h2>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/04/effectspanel.png"><img class="alignleft size-full wp-image-9221" title="effectspanel" src="http://blog.swishzone.com/wp-content/uploads/2012/04/effectspanel.png" alt="" width="198" height="443" /></a>Consider where the Authored Effect is to be saved.</p>
<p>As stated previously, Authored effects cannot be saved directly to the main effect folder. However, a second effects location can be defined in the Preferences panel. Once defined, the this location is searched and listed in the <a title="Blog article about the effects browser panel" href="http://blog.swishzone.com/?p=5918" target="_blank">effects browser panel</a> and other effect menus.</p>
<p>Personally, I divide my authored effects into category sub folders similar to those used by Max. My categories are: Appear, Disappear, Looping, One off and Return to start.</p>
<p>The category sub folders are located in a folder named Authored which is a sub folder of the folder specified in the Preferences panel.</p>
<p>This allows all of my effects to be grouped in the one location and still be sorted according to category. (See the effects panel image). Note that sub folders or only listed if they containing .sfx files.</p>
<p>For example, if the folder defined in the preferences panel is:</p>
<pre>C:\Users\jon\AppData\Roaming\SWiSH Max4\effects</pre>
<p>I create my category sub folders in</p>
<pre>C:\Users\jon\AppData\Roaming\SWiSH Max4\effects\Authored</pre>
<p>Once the save location is known, use the <a href="http://blog.swishzone.com/wp-content/uploads/2012/04/cap06-2012-04-24.jpg"><img src="http://blog.swishzone.com/wp-content/uploads/2012/04/cap06-2012-04-24.jpg" alt="" width="15" height="15" /></a> button to save the effect file. This causes a .sfx file to be created with the name specified in the Effect panel.</p>
<p>For example, &#8220;Rainbow bulge.sfx&#8221;</p>
<p>For a preview of the effect to appear when the <a title="Blog article about the effects browser panel" href="http://blog.swishzone.com/?p=5918" target="_blank">effects browser panel</a> is used, create a movie that demonstrates the effect and save the correponding .swf file using <strong>File |  Export | SWF&#8230;</strong></p>
<p>Save the .swf file with the exact same name as the effect. Save the .swf file  in the same folder as the .sfx file.</p>
<p>For example, &#8220;Rainbow bulge.swf&#8221;</p>
<p>After saving the files, select the effects browser panel and press the <strong>F5</strong> button to refresh the tree structure.</p>
<h2>Downloads</h2>
<p>The sample effect Rainbow bulge can be downloaded from <a title="zip file containing .swf, .swi and .sfx files" href="http://blog.swishzone.com/wp-content/uploads/2012/04/Rainbowbulge.zip" target="_blank">here</a>. If you wish to use this effect with the effects that are currently supplied with Max4 (or miniMax4) , copy the .sfx and .swf files in the zip file to: <strong>C:\Program Files\SWiSH Max4\effects\Looping continuously</strong> or <strong>C:\Program Files (x86)\SWiSH Max4\effects\Looping continuously</strong> on 64 bit systems. You will need administrator permission to copy this file.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=9148</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Component: Map_Europe</title>
		<link>http://blog.swishzone.com/?p=9122</link>
		<comments>http://blog.swishzone.com/?p=9122#comments</comments>
		<pubDate>Mon, 23 Apr 2012 22:23:31 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[Filters]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[miniMax4]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[Map_EUROPE]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=9122</guid>
		<description><![CDATA[Our Polish friends have created a component map of the European Union in their blog. This map was based on the Map_USA component. They have kindly given us permission to re-publish their work and include their component in future releases of SWiSH Max4. I have modified their supplied component slightly to include support for the additional colors [...]]]></description>
			<content:encoded><![CDATA[<p>Our Polish friends have created a component map of the <a title="Wikipedia article on EU." href="http://en.wikipedia.org/wiki/European_Union" target="_blank">European Union</a> in <a title="Polish blog article with Europe map" href="http://flashblog.swish.pl/komponentyflash/komponent-mapa-panstw-unii-europejskiej-european-union-member-states-map/" target="_blank">their blog</a>. This map was based on the <a title="Map USA blog article" href="http://blog.swishzone.com/?p=9028" target="_blank">Map_USA</a> component. They have kindly given us permission to re-publish their work and include their component in future releases of SWiSH Max4.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_1" width="450" height="450" align="none">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/04/europe_map_example1.swf" />
      <param name="align" value="none" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/04/europe_map_example1.swf" width="450" height="450" align="none">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p><span id="more-9122"></span></p>
<p>I have modified their supplied component slightly to include support for the additional colors that have been used.</p>
<h2>Downloads</h2>
<p>The <strong></strong>component will work with SWiSH Max4 and miniMax4 with build dates of 20110620 or later, although the component is not included with the 20110620 build’s installer, it can be downloaded <a title="zip file containg component" href="http://blog.swishzone.com/wp-content/uploads/2012/04/Map_EUROPE.zip">here</a>. After downloading, extract the files within the zip file to:</p>
<p><strong>C:\Program Files\SWiSH Max4\Components\Shapes\2D\Shapes and Icons</strong></p>
<p>Note that the exact location may be different depending on where you installed Max4, or miniMax4. We intend including the component in future releases of Max4 and miniMax4. On x64 systems, Max4 and miniMax4 are by default installed into <strong>C:\Program Files (x86)\…</strong></p>
<h2>Use</h2>
<p>Use of the component is similar to that described for <a title="Map_USA blog article" href="http://blog.swishzone.com/?p=9028" target="_blank">Map_USA</a>.</p>
<h2>Example</h2>
<p>The swi for the example shown above can be downloaded <a title="zip file containing example and published files" href="http://blog.swishzone.com/wp-content/uploads/2012/04/Map_Europe_example.zip">here</a>. Click on a country to see a summary of its details.</p>
<h2>But wait, there&#8217;s more&#8230;</h2>
<p>A polish map can also be otained from their blog <a href="http://flashblog.swish.pl/komponentyflash/komponet-wojewodztwa-regiony-polski-mapa/" target="_blank">here</a>.</p>
<p>Our thanks go to Grzegorz Samborski of Dreamsoft for allowing us to re-publish their work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=9122</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: Radio Buttons</title>
		<link>http://blog.swishzone.com/?p=8943</link>
		<comments>http://blog.swishzone.com/?p=8943#comments</comments>
		<pubDate>Mon, 16 Apr 2012 01:44:43 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Max2]]></category>
		<category><![CDATA[Max3]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[miniMax2]]></category>
		<category><![CDATA[miniMax3]]></category>
		<category><![CDATA[miniMax4]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=8943</guid>
		<description><![CDATA[Radio buttons, along with Check boxes and Combo controls are some of the most familiar interfaces on the web. Every component enabled version of SWiSH Max and SWiSH miniMax (versions 2, 3 and 4), come with a radio button component: Buttons &#124; Radiobutton &#124; Radiobutton. Knowing how to use this component could save you a [...]]]></description>
			<content:encoded><![CDATA[<p>Radio buttons, along with <a title="Blog article describing the checkbox component" href="http://blog.swishzone.com/?p=8332" target="_blank">Check boxes</a> and <a title="Blog article describing the combo component. " href="http://blog.swishzone.com/?p=1485" target="_blank">Combo</a> controls are some of the most familiar interfaces on the web. Every component enabled version of SWiSH Max and SWiSH miniMax (versions 2, 3 and 4), come with a radio button component: <strong>Buttons | Radiobutton | Radiobutton</strong>. Knowing how to use this component could save you a considerable amount of time when creating your movie.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_2" width="450" height="150">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/rb_ex1.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/rb_ex1.swf" width="450" height="150">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p><span id="more-8943"></span></p>
<h2>Fundamentals</h2>
<p>A fundamental principle of radio button operation is that exactly one button within a group can be selected. Operation is analogous to a radio that allows channel selection by pressing one of a number of push button channel presets.</p>
<p>In the example above, there are two defined groups: radio_Red for Radio Buttons 1, 2 and 3 and radio_Blue for Radio Buttons 4, 5 and 6.</p>
<p>It is important to understand that each radio button must be assigned to a group. Buttons in different groups can work independently of each other. Within a specific group only one button can be selected at the one time. If multiple simultaneous selections are necessary, consider using the <a title="Blog article describing the checkbox component" href="http://blog.swishzone.com/?p=8332" target="_blank">Check box</a> component instead.</p>
<h2>Use</h2>
<p>To use the component, drag one onto the stage from the <strong>Components</strong> panel / <strong>Buttons | Radiobutton | Radiobutton</strong>. <strong>Max4</strong> and <strong>miniMax4</strong> users can use the <a title="Blog article on component search filter" href="http://blog.swishzone.com/?p=6865" target="_blank">search filter</a> in the Components panel to rapidly find the component.</p>
<p>Look at the parameters for the radio button in the Parameters panel and adjust to your requirements before duplicating the button. If the Parameters panel is not visible it can be enabled using the Main menu option: <strong>Window</strong>.</p>
<p>Using this method, the initial button becomes a &#8220;prototype&#8221; button for the remaining buttons in the group. The remaining buttons should be copied from the prototype button. Using a &#8220;prototype&#8221; button will minimize the number of parameters that need to be altered for each individual button.</p>
<p>The parameters are described in detail below:</p>
<h2><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_05.png"><img class="alignright size-full wp-image-8970" title="cap 2012-03-20_05" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_05.png" alt="" width="238" height="223" /></a>Parameters</h2>
<h3>On Left?</h3>
<p>Default false. This defines the position of the radio button. Generally radio buttons appear on the left as this simplifies alignment. In most cases, this parameter should be set to true.</p>
<h3>Label</h3>
<p>This is the text that appears beside the radio button. If you add additional text it is possible that the text will split into two lines. See the section &#8220;<strong>Text Properties</strong>&#8221; for tips on how to correct this. As a guide, insert your longest text field in the prototype button as you will get a better idea of how the overall layout will look.</p>
<h3>Group Name</h3>
<p>This defines the name of the group of radio buttons. In the example shown above, the group names were radio_Red and radio_Blue. The name can be anything you choose however it should be a valid Action Script 2.0 variable name. (ie no spaces, no reserved words).</p>
<h3>Value</h3>
<p>This is the value that identifies the button within the group. Each button within the same group must have a different value.</p>
<h3>Alignment</h3>
<p>This defines how the radio button is aligned with multi line text.</p>
<h3>Check Color</h3>
<p>The color of the check circle. Typically all buttons in the same group should use the same check color. Black, Green, Red and Blue are popular choices.</p>
<h3>OnClick</h3>
<p>This defines the name of the function that is called when the button is pressed. Generally all buttons within the same group should call the same function. Buttons in different groups could, if desired, also call the same function.</p>
<p>The function is called with two parameters: <strong><em>n</em></strong> and <strong><em>v</em></strong></p>
<p><em><strong>n</strong></em> is the name of the group that the button belongs.</p>
<p><em><strong>v</strong></em> is the value of the button which is defined by the value parameter.</p>
<p>The function is expected to reside in the parent object. For example: if the radio buttons are placed in the main movie then the <strong>OnClick</strong> function is expected to exist in the main movie.</p>
<h3>Text Properties</h3>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_08.png"><img class="alignright size-full wp-image-8953" title="cap 2012-03-20_08" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_08.png" alt="" width="121" height="34" /></a>The text properties for the label field can be adjusted by expanding the radio button then selecting the Label object in the Outline panel. The <strong>Properties</strong> panel can then be used to adjust the Text Properties of the Label.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_06.png"><img class="alignleft size-full wp-image-8972" title="cap 2012-03-20_06" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_06.png" alt="" width="146" height="143" /></a>Properties that may require adjustment include Font, Font Size, Color, Justification, Enabling / Disabling of margins indent and manually adjusting the width and height of the text field.</p>
<p>The chosen justification will often depend on the chosen value for the parameter <strong>On Left?</strong></p>
<h2>Example</h2>
<p>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_3" width="150" height="100" align="right">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/rb_square_circle_star.swf" />
      <param name="align" value="right" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/rb_square_circle_star.swf" width="150" height="100" align="right">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
 Consider the creation of a movie clip similar to the one shown to the right.</p>
<p>Drag a radio button onto the stage and adjust its parameters:</p>
<ol>
<li><strong>On Left?</strong>: true</li>
<li><strong>Label</strong>: Square</li>
</ol>
<p>Leave the other parameters in their default configuration.</p>
<h3>Creating Multiple Buttons</h3>
<p>Once the parameters are set, duplicate the button by selecting it in the layout panel and using <strong>Edit | Copy Object</strong>, <strong>Edit | Paste Object</strong>.</p>
<p>In the new radio button, modify the <strong>Label</strong> to be &#8220;Circle&#8221; and the <strong>Value</strong> to be 2. Position this button below the first. Use <strong>Edit | Paste</strong> <strong>Object</strong> to paste a third radio button. <strong>Modify</strong> the Label to be &#8220;Star&#8221; and <strong>Value</strong> to be 3. Position this button under the second button.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_04.png"><img class="alignright size-full wp-image-8969" title="cap 2012-03-20_04" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-20_04.png" alt="" width="136" height="69" /></a>After pasting the buttons it is good practice to rename them so that they end with _1, _2 etc. This is much tidier than the automatically assigned names RadioButton__Copy, RadioButton__Copy_2 or RadioButton __Copy__Copy etc.</p>
<p>After creating 3 buttons and renaming the outline panel should look like the one above.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-22_01.png"><img class="alignleft size-full wp-image-8975" title="cap 2012-03-22_01" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-22_01.png" alt="" width="103" height="82" /></a>Once all of the required buttons have been created, final alignment can be done by selecting all of the buttons (select RadioButton_3 in the outline panel then select RadioButton_1 while pressing the Shift button). Once selected, right click and select <strong>Align | Left. </strong>Then right click and select <strong>Align | Space Evenly | Vertically</strong>.</p>
<h3>Default Button</h3>
<p>The <strong>RadioButton</strong> component does not have an option to define which of the buttons is the default button. The default button is determined by the order of creation when the movie is played. In the above example <strong>RadioButton_1</strong> will be the default button as it is lowest in the outline panel. Re-order the buttons in the outline panel if a different default button is required.</p>
<h3>Add Movie Clips to hold the objects</h3>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-23_03.png"><img class="alignleft size-full wp-image-8985" title="cap 2012-03-23_03" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-23_03.png" alt="" width="140" height="215" /></a>Add 3 movie clips <strong>mc1</strong>, <strong>mc2</strong> and <strong>mc3</strong> to hold the objects that are to be displayed when a radio button is selected. In the example, <strong>mc1</strong> holds a shape (square) and some text &#8220;Square&#8221;, <strong>mc2</strong> holds a shape (circle) and text: &#8220;Circle&#8221;. <strong>mc3</strong> holds an autoshape (star) and text: &#8220;Star&#8221;.</p>
<p>Grouping multiple items within a movie clip allows the grouped items to be displayed or hidden using a single line of script:</p>
<p><em><strong>mcN._visible = true; </strong></em>// Displays the items, <em><strong></strong></em></p>
<p><em><strong><em><strong>mcN._visible = false; </strong></em></strong></em>// Hides the items.</p>
<p>In this case <strong>mcN</strong> is the name of the movie clip.</p>
<h3>Add an Events (OnClick) Function</h3>
<p>When any of the buttons are clicked, the Events function defined by the <strong>OnClick</strong> parameter is called. This allows actions to be implemented in response to the user event.</p>
<p>The function is assumed to reside in the parent object. In the case of the above example, this will be <strong>Scene_1</strong>. The function has two parameters, n and v as described above.</p>
<p>An example script is shown below:</p>
<pre>function Events(n,v) {
    if ("radio1" == n) {
        // the group name of the radio button matches, process it

        // the movie clips mc1, mc2 and mc3 contain objects
        // that are to be made visible when
        // a specific radio button is selected.
        mc1._visible = false;
        mc2._visible = false;
        mc3._visible = false;
        switch (v) {
            case 1:
                // perform action for radio button 1
                mc1._visible = true;
                break;
            case 2:
                // perform action for radio button 2
                mc2._visible = true;
                break;
            case 3:
                // perform action for radio button 3
                mc3._visible = true;
                break;
        }
    }
}</pre>
<h3>Default Condition</h3>
<p>It should be noted that the Events function is only called after one of the radio buttons is pressed. It is therefore necessary to setup other screen elements to match the default selection. In the above example, <strong>RadioButton_1</strong> is the default. Therefore it is necessary to make <strong>mc1</strong> visible and <strong>mc2</strong>, and <strong>mc3</strong> not visible. This is easily achieved by adding the following script to <strong>mc2</strong> and <strong>mc3</strong>:</p>
<pre>onSelfEvent (load) {
    _visible = false;
}</pre>
<p><strong>Note:</strong> As the <strong>onSelfEvent</strong> script is within the movie clip. The name of the movie clip is implied when accessing a property such as <strong>_visible</strong>. The alternate script:</p>
<p><em><strong>this._visible = false;</strong></em></p>
<p>could have also been used.</p>
<h2>Downloads</h2>
<p>Both of the example files were authored in Max4. They are contained in <a title="Zip file containing example .swi files." href="http://blog.swishzone.com/wp-content/uploads/2012/03/radiobutton_examples.zip" target="_blank">this zip file</a>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=8943</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard animation from midi file</title>
		<link>http://blog.swishzone.com/?p=8929</link>
		<comments>http://blog.swishzone.com/?p=8929#comments</comments>
		<pubDate>Tue, 10 Apr 2012 04:38:48 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Max3]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[Swishscript]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[midi]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=8929</guid>
		<description><![CDATA[A keen SWiSH Max user, Lagnajeet Pradhan, has created a novel animated keyboard in SWiSH Max3. He has also authored tools (php or .exe file) that can analyze a dual channel midi file and create Max script to animate the keys. Once the script is created, it can be pasted directly into the script panel. [...]]]></description>
			<content:encoded><![CDATA[<p>A keen SWiSH Max user, Lagnajeet Pradhan, has created a novel animated keyboard in SWiSH Max3. He has also authored tools (php or .exe file) that can analyze a dual channel midi file and create Max script to animate the keys. Once the script is created, it can be pasted directly into the script panel. Check it out!</p>
<p><iframe src="http://www.youtube.com/embed/ihAvadbzkac" frameborder="0" width="420" height="315"></iframe></p>
<p>The SWiSH Max .swi file as well as the tools to create the script from the midi file can be found on his website: <a href="http://www.logicalside.com/MIDI_based_animation_2D" target="_blank">http://www.logicalside.com/MIDI_based_animation_2D</a>.</p>
<p>The c++ script authoring program can be downloaded from: <a href="http://www.logicalside.com/sites/default/files/documents/SWiSH-2D-Anim.zip">http://www.logicalside.com/sites/default/files/documents/SWiSH-2D-Anim.zip</a></p>
<p>A more detailed video showing the steps can be <a title="Link to a detailed step by step video" href="http://www.youtube.com/watch?v=2GWNRPpRROM" target="_blank">found here</a> including splitting a midi file into left and right channels (assumes that you have Cakewalk).</p>
<p>I hope the midi enthusiasts among you enjoy this novel approach in animating your files.</p>
<p>Our thanks to Lagnajeet who has given us permission to publish this article.</p>
<h2><span id="more-8929"></span>Notes</h2>
<p>The php script assumes a frame rate of 25fps.</p>
<p>The midi file is assumed to be split into left and right channels. If this is not the case the detail movie demonstrates how this can be done using Cakewalk (A commonly used proprietary midi editor / recorder).</p>
<p>If using the php tool, the SWiSH Max script is written to a file Script.txt that is created on the server.</p>
<p>I have seen that the script sometimes becomes un-synchronized with the music. I assume this may be due to multiple time signatures in the midi file.</p>
<p>If you copy / paste the script directly from the php page instead of downloading the Script.txt file, you must insert line feeds before pasting into SWiSH Max.</p>
<p>As the generated script can be very large, you may experience performance issues when editing the script in Max3 / Max4.</p>
<p>You can convert a midi file to a mp3 file by playing the midi file in Windows Media player and recording the output using <a href="http://audacity.sourceforge.net/" target="_blank">Audacity</a> (2.0 or later) and its Stereo Mix input. Remember to turn off applications that can make sounds e.g.  email, skype. Otherwise, these noises may appear in your recording.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=8929</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Component: Map_USA</title>
		<link>http://blog.swishzone.com/?p=9028</link>
		<comments>http://blog.swishzone.com/?p=9028#comments</comments>
		<pubDate>Tue, 03 Apr 2012 21:54:30 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[components]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[miniMax4]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[Map_USA]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=9028</guid>
		<description><![CDATA[Following on from previous articles: World Map and Import .svg, we have released a versatile component that depicts a map of the USA. The component allows user selection of the 4 map colors and border color. It also allows the user to adjust settings for the filter that is used during mouse over events. User [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from previous articles: <a href="http://blog.swishzone.com/?p=8850" target="_blank">World Map</a> and <a href="http://blog.swishzone.com/?p=8727" target="_blank">Import .svg</a>, we have released a versatile component that depicts a map of the USA. The component allows user selection of the 4 map colors and border color. It also allows the user to adjust settings for the filter that is used during mouse over events.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_4" width="450" height="320">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_ex1orange.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_ex1orange.swf" width="450" height="320">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>User configurable stub scripting functions are provided to handle mouse events. These allow the map to be used as a selection tool. For example, to select a local dealership. The supplied sample mouse over script causes an inner glow filter to be enabled while the mouse is positioned over a specific state.</p>
<p><span id="more-9028"></span></p>
<p>The map was derived from a <a title="Blog article showing how to import .svg files" href="http://blog.swishzone.com/?p=8727" target="_blank">.svg</a> map in <a href="http://commons.wikimedia.org/wiki/File:Electoral_map.svg" target="_blank">wikimedia commons</a> and is shown as being free of copyright.</p>
<h2>Downloads</h2>
<p>The <strong></strong>component will work with SWiSH Max4 and miniMax4 with build dates of 20110620 or later, although the component is not included with the 20110620 build’s installer, it can be downloaded <a title="Zip file containing the Map_USA component" href="http://blog.swishzone.com/wp-content/uploads/2012/03/Map_USA.zip" target="_blank">here</a>. After downloading, extract the files within the zip file to:</p>
<p><strong>C:\Program Files\SWiSH Max4\Components\Shapes\2D\Shapes and Icons</strong></p>
<p>Note that the exact location may be different depending on where you installed Max4, or miniMax4. We intend including the component in future releases of Max4 and miniMax4. On x64 systems, Max4 and miniMax4 are by default installed into <strong>C:\Program Files (x86)\…</strong></p>
<h2>Use</h2>
<p>To use the component, drag it onto the stage and configure the parameters to your requirements. Additional functionality can be obtained by added script to the mouse stub functions. See the Stub Functions section below.</p>
<h2><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_parameters.png"><img class="alignright size-full wp-image-9033" title="map_usa_parameters" src="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_parameters.png" alt="" width="168" height="496" /></a>Parameters</h2>
<h3>Filter Settings</h3>
<h4>Filter Color</h4>
<p>This defines the color of the inner glow filter that is applied when the mouse is over a specific state.</p>
<h4>Blur</h4>
<p>A filter parameter that defines the size of the glow area</p>
<h4>Strength</h4>
<p>A filter parameter that defines how strong the effect is</p>
<h3>Colors</h3>
<h4>Restore</h4>
<p>Restores the map to its default colors. (See below).</p>
<p><a><img class="size-full wp-image-9034 alignnone" title="cap 2012-03-27_11" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-27_11.png" alt="" width="225" height="160" /></a></p>
<h4>Color 1 .. Color 5</h4>
<p>These define the 5 map colors. <strong>Color 2</strong> defines the color of the borders.</p>
<h4>Spare Colors</h4>
<p>This group contains unused color swatches. Generally there is no need to use this group.</p>
<h4>Advanced</h4>
<p>This group contains advanced settings. Generally this section need not be modified. The Remap colors button allows the colors to be re-assigned. Use this button if you have recolored some of the states with a new color. The new color swatches will appear in the Spare Colors group.</p>
<h2>Stub Functions</h2>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_outline.png"><img class="alignleft size-full wp-image-9068" title="map_usa_outline" src="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_outline.png" alt="" width="111" height="122" /></a>The map consists of individual shape objects that represent each state. A section of the outline tree is shown on the left. As spaces cannot be included in object names, states that have a name that includes a space such as &#8220;North Dakota&#8221; are named &#8220;North_Dakota&#8221; etc.</p>
<p>A function,  <strong>getDisplayName(s)</strong> converts the underscores to spaces for display.</p>
<p>For example, getDisplayNames(&#8220;North_Dakota&#8221;) returns the string &#8220;North Dakota&#8221;.</p>
<p>Each shape object has the following script:</p>
<pre>onSelfEvent (load) {
    _parent.eventOnLoad(this);
}
onSelfEvent (rollOver) {
    _parent.eventOnRollOver(this);
}
onSelfEvent (rollOut) {
    _parent.eventOnRollOut(this);
}
onSelfEvent (press) {
    _parent.eventOnPress(this);
}
onSelfEvent (release) {
    _parent.eventOnRelease(this);
}
onSelfEvent (dragOver) {
    _parent.eventOnDragOver(this);
}
onSelfEvent (dragOut) {
    _parent.eventOnDragOut(this);
}</pre>
<p>As can be seen, the script calls stub functions in the parent object (Map_USA).</p>
<p>The stub functions for the main movie clip are shown below:</p>
<pre>function eventOnLoad(p) {
    // called by each of the state objects during the load event.
    // p is a reference to the calling object.
}
function eventOnRollOver(p) {
    // called by each of the state objects during a mouse over event.
    // p is a reference to the calling object.
    p.filters = [overfilter];    // show mouse is over the object by assigning the filter
}
function eventOnRollOut(p) {
    // called by each of the state objects during roll out event.
    // p is a reference to the calling object.
    p.filters = []; // show mouse no longer over by clearing the filter
}
function eventOnPress(p) {
    // called by each of the state objects during mouse click event.
    // p is a reference to the calling object.
}
function eventOnRelease(p) {
    // called by each of the state objects during mouse release event.
    // p is a reference to the calling object.
}
function eventOnDragOver(p) {
    // called by each of the state objects during the mouse drag over event.
    // p is a reference to the calling object.
}
function eventOnDragOut(p) {
    // called by each of the state objects during the mouse drag out event.
    // p is a reference to the calling object.
    p.filters = []; // show mouse no longer over by clearing the filter
}
function getDisplayName(s) {
    // remove the "_" from  any two word state names
    var i;
    var words = s.split("_");
    if (words.length == 1)
        return s;
    var ret = words[0];
    for (i=1; i&lt;words.length; i++) {
        ret = ret add " " add words[i];
    }
    return ret;
}

import flash.filters.GlowFilter
onSelfEvent (load) {
    // create glow filter. This is used to indciate mouse over
    // events.
    var filtercolor = parameters.FilterColor &amp; 0xFFFFFF;
    var filteralpha = parameters.FilterColor &gt;&gt;= 24;
    filteralpha &amp;= 0xFF;
    filteralpha /= 255;    // should create a value 0..1
    var overfilter = new GlowFilter(filtercolor, filteralpha,
    parameters.Blur, parameters.Blur,
    parameters.Strength/100, 3, true, false);
}</pre>
<p>The <strong>onSelfEvent (load)</strong> function is used to define the glow filter that is used in the mouseover event. The settings for the filter are obtained from the component parameters.</p>
<p>The stub function have the general format <strong>eventOn<em>EventName</em>(p)</strong> where <strong><em>EventName</em></strong> is the name of the event: <strong>Load, RollOver, RollOut, Press, Release, DragOver</strong> and <strong>DragOut</strong>. The user is free to modify these functions as needed.</p>
<p>The parameter <strong>p</strong> is a reference to the calling object. The object name can be obtained using <strong>p._name</strong>. This can be conveniently converted into a displayable string using the script: <strong>getDisplayName(p._name);</strong></p>
<p>In a similar way other properties of the calling object are also available: <strong>p._x, p._y, p._xscale, p._rotation, p._visibility</strong> etc.</p>
<p>Sample script is supplied in the <strong>eventOnRollOver()</strong>, <strong>eventOnRollOut()</strong> and  <strong>eventOnDragOut()</strong>. This script adds or removes the inner glow filter according to email roll over status.</p>
<h2>Example 1</h2>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-30_03.png"><img class="alignright size-full wp-image-9078" title="cap 2012-03-30_03" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-30_03.png" alt="" width="128" height="90" /></a>The map shown at the beginning of this article displays the state names during the mouse over event.</p>
<p>The component was added to a blank movie and a dynamic text object was added named <strong>statename</strong>. The target checkbox was ticked.</p>
<p>The <strong>eventOnRollOver()</strong> stub function was modified to show the state name. The modified lines are shown in <span style="color: #ff0000;">red</span>:</p>
<pre>function eventOnRollOver(p) {
    // called by each of the state objects during a mouse over event.
    // p is a reference to the calling object.
    p.filters = [overfilter];    // show mouse is over the object by assigning the filter
    <span style="color: #ff0000;">_parent.statename.text = getDisplayName(p._name);</span>
}</pre>
<p>The <strong>eventOnRollOut()</strong> and <strong>eventOnDragOut()</strong> stub functions were modified to clear the displayed name.</p>
<pre>function eventOnRollOut(p) {
    // called by each of the state objects during roll out event.
    // p is a reference to the calling object.
    p.filters = []; // show mouse no longer over by clearing the filter
    <span style="color: #ff0000;">_parent.statename.text = "";</span>
}

function eventOnDragOut(p) {
    // called by each of the state objects during the mouse drag out event.
    // p is a reference to the calling object.
    p.filters = []; // show mouse no longer over by clearing the filter
    <span style="color: #ff0000;">_parent.statename.text = "";</span>
}</pre>
<p>The colors in the parameters panel were modified as follows:</p>
<ul>
<li><strong>Filter Color</strong>: 0xFFFF00</li>
<li><strong>Color 1</strong>: 0xFF9900</li>
<li><strong>Color 2</strong>: 0xFFFFFF</li>
<li><strong>Color 3</strong>: 0xFFCC00</li>
<li><strong>Color 4</strong>: 0xFFCC99</li>
<li><strong>Color 5</strong>: 0xFF9966</li>
</ul>
<h2>Example 2</h2>
<p>This example demonstrates modification of the eventOnPress() stub function. Clicking on any state will cause a draggable text box to be displayed that shows additional information about the state.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_5" width="450" height="320">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_example2.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_example2.swf" width="450" height="320">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_ex2_outline.png"><img class="alignright size-full wp-image-9069" title="map_usa_ex2_outline" src="http://blog.swishzone.com/wp-content/uploads/2012/03/map_usa_ex2_outline.png" alt="" width="173" height="116" /></a>The Outline panel for the example is shown to the right.<br />
The <strong>infonote</strong> movie clip contains a dynamic text object (<strong>info</strong>), a background shape (<strong>Rectangle_rounded</strong>) and an animated cross component (<strong>closenote</strong>) that is used as a close button.<br />
In its default state the movie clip has its visibility set to false.<br />
The infonote movie clip contains a function <strong>ShowInfo(s)</strong>. This function displays the <strong>infonote</strong> movie clip, formats and displays data in the dynamic text object (info) based on the state name passed in the parameter <strong>s</strong>.<br />
The ShowInfo() function is called by the line:<br />
<strong><em>_parent.infonote.ShowInfo(getDisplayName(p._name));</em></strong><br />
In the <strong>eventOnRelease()</strong> stub function in Map_USA</p>
<p>The script for the infonote movie clip is shown below.</p>
<pre>function ShowInfo(s) {
    // copies information from the parent data array to the note text
    if ("DC" == s) {
        info.text = "&lt;b&gt;Washington, D.C.&lt;/b&gt;";
    } else {
        // fill in the state data
        var p = _parent.data[s.toUpperCase()]; // p is shortcut to data

        info.text = "&lt;b&gt;" add s.toUpperCase() add "&lt;/b&gt; (" add p.abbrev add ")";
        info.text = info.text add newline add "&lt;b&gt;Capital:&lt;/b&gt; " add p.capital;
        info.text = info.text add newline add "&lt;b&gt;Most populous city:&lt;/b&gt; " add p.mostpop;
        info.text = info.text add newline add "&lt;b&gt;Population:&lt;/b&gt; " add p.pop;
        info.text = info.text add newline add "&lt;b&gt;Size:&lt;/b&gt; " add p.size add " sqmiles";
    }
    this._visible = true;
}
onSelfEvent (load) {
    this._visible = false;
}
onSelfEvent (press) {
    this.startDrag(false);
}
onSelfEvent (release) {
    this.stopDrag();
}</pre>
<p>The <strong>onSelfEvent</strong> functions are used to set the movie clip to invisible and support dragging.</p>
<p>The information that is displayed is defined in the <strong>onSelfEvent (load)</strong> function of the main movie. This information is saved in the array &#8220;data&#8221;.<br />
The data was obtained in spread sheet format from: <a href="http://www.tellingmachine.com/post/all-50-states-as-xml-json-csv-xls-files.aspx" target="_blank">http://www.tellingmachine.com/post/all-50-states-as-xml-json-csv-xls-files.aspx</a></p>
<p><strong>Sheet 2</strong> of the spreadsheet was modified to display the data as action script. The modified spreadsheet can be downloaded <a title="Zip file containing spread sheet data. " href="http://blog.swishzone.com/wp-content/uploads/2012/03/States.zip" target="_blank">from here</a>. The spread sheet demonstrates the useful technique of generating script from spread sheet data using spread sheet formulas. The line below shows the formula that was duplicated for all cells to create one line of code for each spread sheet entry.</p>
<pre>="data["""&amp;Sheet1!A2&amp;"""]={abbrev:"""&amp;Sheet1!B2&amp;""",capital:"""&amp;Sheet1!C2&amp;""",mostpop:"""&amp;Sheet1!D2&amp;""",pop:"&amp;Sheet1!E2&amp;",size:"&amp;Sheet1!F2&amp;"};"</pre>
<p>Once duplicated within the spread sheet, the following script is created:</p>
<pre>data["ALABAMA"]={abbrev:"AL",capital:"Montgomery",mostpop:"Birmingham",pop:4708708,size:52423};
data["ALASKA"]={abbrev:"AK",capital:"Juneau",mostpop:"Anchorage",pop:698473,size:656425};
data["ARIZONA"]={abbrev:"AZ",capital:"Phoenix",mostpop:"Phoenix",pop:6595778,size:114006};
data["ARKANSAS"]={abbrev:"AR",capital:"Little Rock",mostpop:"Little Rock",pop:2889450,size:53182};
data["CALIFORNIA"]={abbrev:"CA",capital:"Sacramento",mostpop:"Los Angeles",pop:36961664,size:163707};
...
data["WASHINGTON"]={abbrev:"WA",capital:"Olympia",mostpop:"Seattle",pop:6664195,size:71303};
data["WEST VIRGINIA"]={abbrev:"WV",capital:"Charleston",mostpop:"Charleston",pop:1819777,size:24231};
data["WISCONSIN"]={abbrev:"WI",capital:"Madison",mostpop:"Milwaukee",pop:5654774,size:65503};
data["WYOMING"]={abbrev:"WY",capital:"Cheyenne",mostpop:"Cheyenne",pop:544270,size:97818};</pre>
<p>This script is then copied / pasted into the <strong>onSelfEvent (load)</strong> function of the main movie. With minor script changes it could have been pasted into the <strong>onSelfEvent (load)</strong> function of <strong>infonote</strong> which is probably a better place for the data.</p>
<h2>Downloads</h2>
<p>Both of the example files can be downloaded in <a title="Map_USA example .swi files" href="http://blog.swishzone.com/wp-content/uploads/2012/03/Map_USA_examples.zip" target="_blank">this zip file</a>.</p>
<p>I hope you enjoy using this new component.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=9028</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free .flv to DVD conversion</title>
		<link>http://blog.swishzone.com/?p=9001</link>
		<comments>http://blog.swishzone.com/?p=9001#comments</comments>
		<pubDate>Sun, 01 Apr 2012 22:36:40 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[flv2dvd]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=9001</guid>
		<description><![CDATA[Windows DVD Maker is a DVD authoring program that is included with Vista and Windows 7. It works well but is unable to convert .flv movies to DVD format. The .flv video format is used by many websites including Youtube. In addition, flv is the preferred video format exported by Flash and SWiSH Max. This tutorial explains [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Windows DVD Maker</strong> is a DVD authoring program that is included with Vista and Windows 7. It works well but is unable to convert .flv movies to DVD format. The .flv video format is used by many websites including Youtube. In addition, flv is the preferred video format exported by Flash and SWiSH Max. This tutorial explains how to author a DVD comprising of flv videos using <strong>VLC</strong> (a free download) and <strong>Windows DVD Maker</strong>.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/dvd.jpg"><img class="alignnone size-full wp-image-9018" title="dvd" src="http://blog.swishzone.com/wp-content/uploads/2012/03/dvd.jpg" alt="" width="450" height="398" /></a></p>
<p><span id="more-9001"></span></p>
<h2>Step 1 &#8211; Download VLC</h2>
<p>VLC is a great program. It can be obtained free of charge from <a href="http://www.videolan.org/vlc/" target="_blank">http://www.videolan.org/vlc/</a>. The screen captures below were made from version 2.0.1. Later or earlier versions may look slightly different.</p>
<p>After downloading, run the installation .exe to install the program. You may see a dialog similar to the one below. Although the installer is not signed, I continue with this specific installation. For more about digital signature see <a href="http://blog.swishzone.com/?p=6915" target="_blank">this blog article</a>.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/installwarning.png"><img class="alignnone size-full wp-image-9002" title="installwarning" src="http://blog.swishzone.com/wp-content/uploads/2012/03/installwarning.png" alt="" width="414" height="310" /></a></p>
<p>After using VLC, please consider donating via the donation links on the VLC page. Contributions help keep great tools like this free for us all.</p>
<h2>Step 2 &#8211; Convert flv file to avi</h2>
<p>As Windows DVD Maker does not recognize .flv files it is necessary to convert it to a .avi file for processing.</p>
<p>After installing run <strong>VLC</strong> and select <strong>Media | Convert / Save&#8230;</strong></p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_05.png"><img class="alignnone size-full wp-image-9003" title="cap 2012-03-26_05" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_05.png" alt="" width="389" height="447" /></a></p>
<p>This will open the following dialog:</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/convertsave1.png"><img class="alignnone size-full wp-image-9004" title="convertsave1" src="http://blog.swishzone.com/wp-content/uploads/2012/03/convertsave1-e1332741734208.png" alt="" width="450" height="362" /></a></p>
<p>Use the <strong>Add</strong> button to browse for the source .flv file</p>
<p>Then use the<strong> Convert / Save</strong> button to open the <strong>Convert / Save</strong> dialog.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/convertsave2.png"><img class="alignnone size-full wp-image-9012" title="Convert / Save dialog" src="http://blog.swishzone.com/wp-content/uploads/2012/03/convertsave2-e1332744207772.png" alt="" width="450" height="308" /></a></p>
<p>In the profile area use the (<a href="http://blog.swishzone.com/wp-content/uploads/2012/03/newprofile.png"><img class="alignnone size-full wp-image-9006" title="newprofile" src="http://blog.swishzone.com/wp-content/uploads/2012/03/newprofile.png" alt="" width="21" height="20" /></a>) button to create a new profile.</p>
<p>Enter a name for the profile such as &#8220;<strong>flv2dvd</strong>&#8221;</p>
<p>For the <strong>Encapsulation</strong> tab use <strong>AVI</strong>.</p>
<p>For the <strong>Video</strong> and <strong>Audio</strong> codec tabs, use the settings shown below:</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_08.png"><img class="alignnone size-full wp-image-9008" title="cap 2012-03-26_08" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_08-e1332743612526.png" alt="" width="450" height="283" /></a></p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_09.png"><img class="alignnone size-full wp-image-9009" title="cap 2012-03-26_09" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_09-e1332743739278.png" alt="" width="450" height="283" /></a></p>
<p>No changes are required for the <strong>Subtitles</strong> tab.</p>
<p>Press the <strong>Save</strong> button to save the new Profile.</p>
<h2>Step 3 &#8211; Do the conversion.</h2>
<p>Select the new Profile (<strong>flv2dvd</strong>) in the <strong>Convert / Save</strong> dialog.</p>
<p>Use the <strong>Browse</strong> button to select a destination file. Name the file so that it ends with .avi</p>
<p>Press the <strong>Start</strong> button to start the conversion. The VLC progress bar will show the progress.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_10.png"><img class="alignnone size-full wp-image-9014" title="cap 2012-03-26_10" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-26_10.png" alt="" width="289" height="68" /></a></p>
<p>Note that the chosen settings will normally create a file that is larger than the original. This is to keep any quality loss to a minimum before conversion to DVD. The Video and Audio formats (divx3 and mp3) have been chosen to correspond with codecs that are supported by DVD Maker.</p>
<h2>Step 4 &#8211; Author the DVD</h2>
<p>Insert a blank DVD into your DVD burner and run <strong>Windows DVD Maker</strong>. If you are unsure of how to start Windows DVD Maker, type DVD into the search box of the Start button. It should be shown as one of the programs.</p>
<p>Use the <strong>Add items</strong> button to add the .avi movies that you have converted. They can also be dragged into the window. I have not done screen captures of Windows DVD Maker as its use is quite intuitive. The following tips may however help:</p>
<ul>
<li>Enter a title into the <strong>DVD title:</strong> window.</li>
<li>Check the settings defined in the options link. That link defines some important parameters such as Menu playback options, aspect ration, PAL / NTSC etc.</li>
<li>For initial testing, use a DVD-RW disc so that you can view the final result.</li>
<li>If all is OK, select a menu template and press the <strong>Burn</strong> button.</li>
</ul>
<p><strong>Note:</strong> Video conversion is a CPU intensive process. It can take a while on slower computers.</p>
<h2>Footnote</h2>
<p>Since writing this article I have found that Microsoft DVD Maker may introduce aspect ratio issues if a 16:9 format is used. There are a number of forums discussing this issue and no apparent solution other than to convert the avi file to a wmf file using Microsoft Movie Maker with an aspect ratio of 16:9 and then using the .wmf file in DVD Maker.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=9001</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Component: World_map_animated</title>
		<link>http://blog.swishzone.com/?p=8850</link>
		<comments>http://blog.swishzone.com/?p=8850#comments</comments>
		<pubDate>Sun, 25 Mar 2012 23:09:57 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[3D Models]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[miniMax4]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[Globe]]></category>
		<category><![CDATA[lens]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[World]]></category>
		<category><![CDATA[World Map]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=8850</guid>
		<description><![CDATA[This component allows you to easily add a rotating map of the world to your website. Downloads The component will work with SWiSH Max4 and miniMax4 with build dates of 20110620 or later, although the component is not included with the 20110620 build’s installer, it can be downloaded here. After downloading, extract the files within [...]]]></description>
			<content:encoded><![CDATA[<p>This component allows you to easily add a rotating map of the world to your website.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_6" width="450" height="450" align="none">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/World_map_example.swf" />
      <param name="align" value="none" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/World_map_example.swf" width="450" height="450" align="none">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p><span id="more-8850"></span></p>
<h2>Downloads</h2>
<p>The <strong></strong>component will work with SWiSH Max4 and miniMax4 with build dates of 20110620 or later, although the component is not included with the 20110620 build’s installer, it can be downloaded <a title="Zip file containing the World_map_animated component. " href="http://blog.swishzone.com/wp-content/uploads/2012/03/World_map_animated.zip" target="_blank">here</a>. After downloading, extract the files within the zip file to:</p>
<p><strong>C:\Program Files\SWiSH Max4\Components\Shapes\3D<br />
</strong></p>
<p>Note that the exact location may be different depending on where you installed Max4, or miniMax4. We intend including the component in future releases of Max4 and miniMax4. On x64 systems, Max4 and miniMax4 are by default installed into <strong>C:\Program Files (x86)\…</strong></p>
<h2>Use</h2>
<p>To use the component, drag it onto the stage and configure the parameters to your requirements.</p>
<h2>Parameters</h2>
<p>The component is based on the <a title="Blog article: Lens component" href="http://blog.swishzone.com/?p=2972" target="_blank">Lens component.</a> Most of the complex parameters for the Lens component have been moved to the <strong>Advanced Group</strong> leaving the user with six main parameters: <strong>Diameter</strong>, <strong>Speed,</strong> S<strong>tart Paused</strong>, three <strong>Colors</strong> and an option to <strong>Disable Color Mapping</strong>. The use of most of the parameters should be self explanatory.</p>
<p>User chosen colors are set using an internal (scripted) color matrix filter. The filter maps the three map colors, Red, Green and Blue to the user chosen colors. If more than three colors are required, a custom colored map along with the <strong>Disable Color Mapping</strong> option should be used. See the section <strong>Custom Maps</strong> below for more information.</p>
<p>The parameters in the <strong>Advanced Group</strong> will work in the same way as described for the <a title="Blog article: Lens component" href="http://blog.swishzone.com/?p=2972" target="_blank">Lens component</a>. However for use as a rotating map, those parameters generally need not be modified. For small diameter maps, less than 100pixels, it may be necessary to reduce the value of the <strong>Strength</strong> parameter.</p>
<p>The map rotation can be manually started or paused using the script:</p>
<p><strong><em>world_map_animated</em>.stop()</strong> and <strong><em>world_map_animated</em>.play()</strong> where <strong><em>world_map_animated</em></strong> is the name of the component in your movie. (The default name is assumed).</p>
<h2>Example</h2>
<p>The example shown above, World_map_example.swi, is included in <a title="Zip file containing example .swi files. " href="http://blog.swishzone.com/wp-content/uploads/2012/03/WorldMap_Examples.zip" target="_blank">this zip file</a>. In addition to the <strong>world_map_animated</strong> component, the example file uses an inner glow filter to apply a blue halo around the inside edge. To increase contrast an outer glow filter is used to create the black shadow. Without the use of these filters, the map can appear flat and the edges pixelated as shown in the image below.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-19_01.png"><img class="alignnone size-full wp-image-8899" title="cap 2012-03-19_01" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-19_01.png" alt="" width="419" height="98" /></a></p>
<p>As the component uses a color matrix filter internally to map the user chosen colors, it is necessary to wrap the component in a movie clip before applying additional filters. Filters applied directly to the component, will have their color altered by the internal color matrix filter.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-19_03.png"><img class="alignright size-full wp-image-8900" title="cap 2012-03-19_03" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-19_03.png" alt="" width="200" height="98" /></a>The Outline panel for the example movie is shown to the right. The inner glow filter is applied to the movie clip &#8220;<strong>inner</strong>&#8221; and the outer glow filter is applied to the movie clip &#8220;<strong>outer</strong>&#8220;. More information about Filters can be found in <a title="Blog article on filters" href="http://blog.swishzone.com/?p=5000" target="_blank">this blog article</a>.</p>
<p>The Component button, <strong>Button_pause</strong> is grouped within the <strong>outer</strong> movie clip so that it also has the outer glow filter applied to it.</p>
<p>The button is used to start and stop the rotation with the following script that is also located within the outer movie clip.</p>
<pre>function Events(n,v) {
    if ("Button_pause" == n) {
        // event caused by pause button
        if (v) {
            inner.world_map_animated.stop();
        } else {
            inner.world_map_animated.play();
        }
    }
}</pre>
<p>The component is accessed as <strong>inner.world_map_animated</strong> as it is contained within the <strong>inner</strong> movie clip.</p>
<h2>Analysis</h2>
<p>The description below summarizes how the component works. A basic understanding is required if you intend to use the <strong>Custom Maps</strong> described below.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_7" width="450" height="120">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/World_map_analyse.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/World_map_analyse.swf" width="450" height="120">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>The movie shown above shows the component without masking. As can be seen, two copies of the world map are moved under the lens. To minimize load times, a single copy of the map is saved to the <a title="Blog post about the content library" href="http://blog.swishzone.com/?p=1854" target="_blank">Content Library</a> and two instances of the map are placed side by side in the <strong>container</strong> movie clip. Two copies of the map are used to give a continuous display. Once the maps have been moved by the length of a single map, the container movie clip is returned to its original position.</p>
<p>The map is colored using only Red (0xFF0000), Green (0x00FF00) and Blue (0x0000FF). Red is used for the borders, Green for the land and Blue for the ocean. The use of the three primary colors allows the three regions to be mapped to user chosen colors using the internal color matrix filter.</p>
<h2>Custom Maps</h2>
<p>By altering the default map it is possible  to increase the number of available colors or change the assignment of the Red, Green and Blue colors.</p>
<p>The component uses a copyright free world map obtained from <a href="http://commons.wikimedia.org/wiki/File:BlankMap-FlatWorld6.svg" target="_blank">wikipedia</a>. This map in <a title="Blog article on importing svg files" href="http://blog.swishzone.com/?p=8727" target="_blank">.svg</a> format was edited in <a title="Link to inkscape site. - A free SVG drawing tool. " href="http://inkscape.org/" target="_blank"><strong>Inkscape</strong> </a>to color the outlines (borders) to be Red, Land to be Green and the Ocean (background) to be Blue. The modified file was then saved as a .png file.</p>
<p>Once saved as a png file, further editing was required in <strong>Microsoft Paint</strong> to fill in the frame lines that were introduced during the export to png. The image was then re sized to be 1183&#215;600 which is the map size expected by the component.</p>
<p>The resulting file was then imported into Max.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_01.png"><img class="alignright size-full wp-image-8880" title="cap 2012-03-13_01" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_01.png" alt="" width="140" height="106" /></a>If required, a custom color map could be created using Inkscape and the source .svg file described above.</p>
<p>To import a different map, go to the content panel select the Library radio button. To open the content editor, double click on the <strong>world_map</strong> shape.</p>
<p>In the Properties panel, select the fill icon (<a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_02.png"><img class="alignnone size-full wp-image-8881" title="cap 2012-03-13_02" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_02.png" alt="" width="25" height="23" /></a>) then choose the open image icon (<a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_03.png"><img class="alignnone size-full wp-image-8878" title="cap 2012-03-13_03" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_03.png" alt="" width="23" height="22" /></a>) to load a different image.</p>
<p>Take care to ensure that the new image is 1183&#215;600 in size.</p>
<p>If a line is visible where the images join, it is possible that the frame line has not been correctly removed from the image. If this is the case, re-open the image in paint and examine in detail the color of the pixels around the edge.</p>
<p>Once the image has been loaded, close the content editor using the close button (<a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_04.png"><img class="alignnone size-full wp-image-8879" title="cap 2012-03-13_04" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-13_04.png" alt="" width="18" height="18" /></a>).</p>
<p>Sample maps are included in <a title="Zip file containing alternate world map .png files" href="http://blog.swishzone.com/wp-content/uploads/2012/03/worldmaps.zip" target="_blank">this zip file</a>:</p>
<ul>
<li><strong>world_map_redborders_1183x600.png</strong>: This is the map included with the component. Land areas are colored Green, 0x00FF00. Ocean areas are colored Blue, 0x0000FF and borders are colored Red, 0xFF0000. This map allows the land, ocean and borders to be colored according to user choices.<br />
<strong></strong></li>
<li><strong>world_map_rgb2_1183x600.png:</strong> This alternate map has the land areas and borders colored 0x00FF00 (100% green), the ocean colored 0x0000FF (100% blue) and Antarctica colored 0xFF0000 (100% Red). This allows Antarctica to be colored differently from a normal land mass (eg. white).</li>
</ul>
<h2>Other Effects</h2>
<p>By selecting a transparent sea and / or border color, some interesting effects can be obtained with the use of filters and alternate backgrounds. Some of those are shown in the example below.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_8" width="450" height="450">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/WorldMap_Example2.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/WorldMap_Example2.swf" width="450" height="450">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>The Example file, WorldMap_Example2.swi, is included with the main example zip file (link is in the Example section).</p>
<h2>Notes</h2>
<p>The content library and filters are not available in mini Max. Users of that products will be unable to alter the filter settings or modify the background map.</p>
<p>Do not alter the Transform / Reference point of the component. If the point is altered, the lens filter will be applied to the wrong position of the world map. This will cause the map to appear flat.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=8850</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial: Creating a Flag</title>
		<link>http://blog.swishzone.com/?p=8782</link>
		<comments>http://blog.swishzone.com/?p=8782#comments</comments>
		<pubDate>Thu, 15 Mar 2012 23:09:51 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Max2]]></category>
		<category><![CDATA[Max3]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[Swishmax]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Flag]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Waving]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=8782</guid>
		<description><![CDATA[We have had a few requests recently asking how to create a flag. There is currently a USA flag provided with our components (see Shapes &#124; 2D &#124; Artwork &#124; Flag_USA). However if you want to create a flag for a different country, this tutorial will guide you through the steps. Step 1 &#8211; Get [...]]]></description>
			<content:encoded><![CDATA[<p>We have had a few requests recently asking how to create a flag. There is currently a USA flag provided with our components (see <strong>Shapes | 2D | Artwork</strong> | <strong>Flag_USA</strong>). However if you want to create a flag for a different country, this tutorial will guide you through the steps.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_9" width="450" height="410">
      <param name="movie" value="http://blog.swishzone.com/wp-content/uploads/2012/03/Flag_of_Australia_example.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://blog.swishzone.com/wp-content/uploads/2012/03/Flag_of_Australia_example.swf" width="450" height="410">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p><span id="more-8782"></span></p>
<h2>Step 1 &#8211; Get the flag design</h2>
<p><a href="http://www.wikipedia.org/">Wikipedia</a> documents most, if not all, of the worlds flags. Search for the flag using the term &#8220;Flag of <em>COUNTRY</em>&#8221; where <em>COUNTRY</em> is the name of the countries flag you wish to reproduce.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_13.png"><img class="alignnone  wp-image-8786" title="cap 2012-03-05_13" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_13.png" alt="" width="450" height="300" /></a></p>
<p>Click on the image of the flag you wish to reproduce. This will take you to a page that details information about the graphic.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_14.png"><img class="alignnone  wp-image-8789" title="cap 2012-03-05_14" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_14.png" alt="" width="450" height="304" /></a></p>
<p>Check the copyright information associated with the graphic and if appropriate, download the .svg file and convert it to a .emf file as outlined in <a title="Import .svg blog article" href="http://blog.swishzone.com/?p=8727" target="_blank">this blog article</a>.</p>
<h2>Step 2 &#8211; Import into Max</h2>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/maxemfimportmerge.png"><img class="alignright size-full wp-image-8799" title="maxemfimportmerge" src="http://blog.swishzone.com/wp-content/uploads/2012/03/maxemfimportmerge.png" alt="" width="295" height="153" /></a>In Max use <strong>Insert | Import Vector</strong> and set the checkboxes on the import EMF / WMF dialog as shown.</p>
<p>Press the Import button to start the import. The flag will be imported as a single shape as shown in the Outline panel below. <a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_16.png"><img class="size-full wp-image-8800 alignnone" title="Single shape in outline panel" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_16.png" alt="" width="163" height="38" /></a></p>
<p>Resize the flag as required using the Transform or Reshape panels. It is advisable to lock the aspect ratio padlock to ensure symmetrical scaling.</p>
<p>As the image was created from a vector graphic file, it should scale very well.</p>
<h2>Step 3 &#8211; Add Animation</h2>
<p>This optional step demonstrates how to add the familiar flag waving animation.</p>
<p>Right click on the flag in the Layout or Outline panels and select <strong>Break | Break into Pieces</strong>.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/breakintopieces.png"><img class="alignright  wp-image-8805" title="breakintopieces" src="http://blog.swishzone.com/wp-content/uploads/2012/03/breakintopieces.png" alt="" width="145" height="196" /></a>The suggested settings for a 500 x 250 flag are shown in the image to the right (Click on the image to see it full size). You may have to experiment with these settings to get the best results. It is a good idea to save the imported flag under a different name before proceeding. The pixel overlap value may need alteration for different flag sizes.</p>
<p>The suggested settings will break the flag into 30*15 = 450 triangular pieces.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_17.png"><img class="alignleft size-full wp-image-8809" title="cap 2012-03-05_17" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_17.png" alt="" width="155" height="91" /></a>Part of the resulting <strong>Outline</strong> panel is shown to the left. (Only the first 4 of the 450 shape are displayed).</p>
<p>Right click in frame 1 of the <strong>Timeline</strong> panel of the flag object to display the context menu.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_18.png"><img class="alignnone size-full wp-image-8818" title="cap 2012-03-05_18" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_18.png" alt="" width="450" height="106" /></a></p>
<p>Select: <strong>Looping Continuously | Flag Waving</strong>. This applies the <strong>Flag Waving</strong> effect to the grouped flag object, <strong>Flag_of_Australia</strong>.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/effectsettings.png"><img class="alignright size-full wp-image-8816" title="effectsettings" src="http://blog.swishzone.com/wp-content/uploads/2012/03/effectsettings.png" alt="" width="265" height="203" /></a>In the <strong>Effect</strong> panel, alter the default effect settings to the ones shown to the right.</p>
<p>Negative undulations will cause the ripples to extend from the top left to the bottom right.</p>
<p>Positive values will cause the ripples to extend top right to bottom left.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/transformadddroop.png"><img class="alignleft size-full wp-image-8820" title="transformadddroop" src="http://blog.swishzone.com/wp-content/uploads/2012/03/transformadddroop.png" alt="" width="265" height="177" /></a>Select the grouped object. In the <strong>Transform</strong> panel add a 10 deg rotation and a -10 deg skew. This gives the flag its characteristic &#8220;droop&#8221;.</p>
<p>Finally, to allow the flag to wave independently of the main timeline, wrap it in a movie clip by selecting the grouped object, then using right click to display the context menu. Select <strong>Grouping | Group as Movie Clip</strong>.</p>
<p>Once grouped, name the Movie Clip appropriately via the <strong>Properties</strong> or <strong>Outline</strong> panels.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_19.png"><img class="alignright size-full wp-image-8832" title="cap 2012-03-05_19" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_19.png" alt="" width="171" height="106" /></a>The final Outline panel should look like the one to the right.</p>
<h2>Example</h2>
<p>The example shown at the beginning of this article can be downloaded from <a title="zip file containing sample swi file" href="http://blog.swishzone.com/wp-content/uploads/2012/03/Flag_of_Australia_example.zip" target="_blank">here</a>. In addition to the flag described above the following changes were made:</p>
<ul>
<li>Added a flag pole (rectangle, 7 x 375 with linear gradient light gray, dark gray fill)</li>
<li>Resized flag movie clip</li>
<li>Used Shadow component to create the shadow on the ground. To do this, the pole and flag were added to the component and the sample objects were deleted. The shadowHeight parameter was set to 0 and the updateShadow parameter was set to true to cause the shadow to be re-created.</li>
</ul>
<h2>Use</h2>
<p>Due to the symbolic importance of a flag, it is highly likely that there are restrictions placed on its use by its country of origin. Even in the absence of such restrictions, it is suggested that all  flags be depicted in a dignified way.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=8782</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Tutorial: Import .svg</title>
		<link>http://blog.swishzone.com/?p=8727</link>
		<comments>http://blog.swishzone.com/?p=8727#comments</comments>
		<pubDate>Mon, 12 Mar 2012 00:54:30 +0000</pubDate>
		<dc:creator>jonh</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Max2]]></category>
		<category><![CDATA[Max3]]></category>
		<category><![CDATA[Max4]]></category>
		<category><![CDATA[Swishmax]]></category>
		<category><![CDATA[Swishmax 4]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://blog.swishzone.com/?p=8727</guid>
		<description><![CDATA[SVG (Scalable Vector Graphics), a W3C standard, is a XML file format that defines two dimensional vector graphics. Wikipedia and Wikimedia commons contain a vast amount of images, much of which is available in SVG format without copyright restrictions. For example, this map of the USA. Although SWiSH Max cannot import this format directly, a free application, Inkscape, can [...]]]></description>
			<content:encoded><![CDATA[<p title="wikipedia electrol region map"><strong>SVG</strong> (Scalable Vector Graphics), a W3C standard, is a XML file format that defines two dimensional vector graphics. <a href="http://www.wikipedia.org/" target="_blank">Wikipedia</a> and <a title="wikimedia commons" href="http://commons.wikimedia.org/wiki/Main_Page" target="_blank">Wikimedia commons</a> contain a vast amount of images, much of which is available in <strong>SVG</strong> format without copyright restrictions. For example, this <a title="wikipedia electrol region map" href="http://commons.wikimedia.org/wiki/File:Electoral_map.svg" target="_blank">map of the USA</a>. Although SWiSH Max cannot import this format directly, a free application, <a href="http://inkscape.org/" target="_blank"><strong>Inkscape</strong></a>, can be used to open these images and re-export as .emf files which Max can import.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/exportpath.png"><img class="alignnone size-full wp-image-8730" title="exportpath" src="http://blog.swishzone.com/wp-content/uploads/2012/03/exportpath.png" alt="" width="450" height="200" /></a></p>
<h2><span id="more-8727"></span></h2>
<h2>Why Vector Graphics?</h2>
<p>Vector graphics provide a number of advantages when compared to bitmap formats such as bmp, png, jpeg and gif. The advantages include:</p>
<ul>
<li>Scaleability. As the representation consists of line drawing commands, the graphic can be scaled without individual pixels becoming visible.</li>
<li>The different objects that make up the graphic are normally accessible and editable as individual objects. For example, in the case of the USA map, each state is represented as a separate object.</li>
</ul>
<h2>Example: Import USA svg map into Max4</h2>
<h3>Step 1 &#8211; Download the .svg file</h3>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_06.png"><img class="alignleft  wp-image-8735" title="cap 2012-03-05_06" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_06.png" alt="" width="41" height="43" /></a>Before proceeding check that the item is copyright free. See the licensing information section associated with the item if you are downloading it from wikipedia or wikimedia commons. If the item is not copyright free, please respect the displayed licensing conditions.</p>
<p>Visit <a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_04.png"><img class=" wp-image-8733 alignright" title="cap 2012-03-05_04" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_04.png" alt="" width="181" height="104" /></a><a title="webpage containing copyright free example map in .svg format. " href="http://commons.wikimedia.org/wiki/File:Electoral_map.svg" target="_blank">this wikimedia.org webpage</a>. Right click on the Full Resolution link and use <strong>Save Link As</strong> to save the .svg file to your local computer.</p>
<h3>Step 2 &#8211; Install Inkscape</h3>
<p>Download and install Inkscape from the <a href="http://inkscape.org/" target="_blank">Inkscape website</a>.</p>
<h3>Step 3 &#8211; Open in Inkscape</h3>
<p>Open <strong>Inkscape</strong> then open the svg file using <strong>File | Open</strong></p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/openinkscape.png"><img class="alignnone  wp-image-8740" title="openinkscape" src="http://blog.swishzone.com/wp-content/uploads/2012/03/openinkscape.png" alt="" width="433" height="265" /></a></p>
<h3>Step 4 &#8211; Resave as .emf</h3>
<p>Use <strong>File | Save As</strong> to resave the file in .emf format.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_07.png"><img class="alignnone size-full wp-image-8744" title="cap 2012-03-05_07" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_07.png" alt="" width="410" height="267" /></a></p>
<p>Change the Save as type: from <strong>*.svg</strong> to <strong>Enhanced Metafile (*.emf)</strong></p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_08.png"><img class="alignnone size-full wp-image-8745" title="cap 2012-03-05_08" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_08.png" alt="" width="458" height="57" /></a></p>
<p>If asked to convert texts to paths, reset the checkbox. This simplifies editing in Max.</p>
<h2>Step 5 &#8211; Import into Max</h2>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/maxemfimport.png"><img class="alignright  wp-image-8746" title="maxemfimport" src="http://blog.swishzone.com/wp-content/uploads/2012/03/maxemfimport.png" alt="" width="177" height="92" /></a>In Max use <strong>Insert | Import Vector</strong> and reset all checkboxes on the import EMF / WMF dialog. Press the Import button to start the Import.</p>
<p><a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_09.png"><img class="alignleft size-full wp-image-8749" title="cap 2012-03-05_09" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_09.png" alt="" width="137" height="201" /></a>The Item will be imported as a grouped item. The individual shapes within the group represent the individual objects from the original graphic.</p>
<p>Depending on your exact needs, you can clean up the item by deleting elements that are not required. For example, the numbers and the colored borders. The colored borders can be identified by selecting the item in the Outline panel then viewing the properties in the Properties panel. The borders will either be a line or a shape with empty fill.</p>
<p>A line is indicated by a greyed out fill icon (<a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_10.bmp"><img title="cap 2012-03-05_10" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_10.bmp" alt="" /></a>).</p>
<p>A shape with empty fill will have its Fill Color set to <strong>None</strong>. <a href="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_11.png"><img class="size-full wp-image-8753 alignright" title="cap 2012-03-05_11" src="http://blog.swishzone.com/wp-content/uploads/2012/03/cap-2012-03-05_11.png" alt="" width="177" height="79" /></a></p>
<p>Border colors if needed, can then be added by setting a line color for each of the state shapes.</p>
<p>It is possible to set all items to have the same line and fill properties by selecting all of the items in the Outline panel then adjusting the fill and line properties in the Properties panel.</p>
<h2>Finally</h2>
<p>If using one of the copyright free images from wikipedia has saved you some time, please consider making a <a title="wikipedia donation site" href="http://wikimediafoundation.org/w/index.php?title=WMFJA085/en&amp;utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=20101204SB002&amp;language=en&amp;uselang=en&amp;country=AU&amp;referrer=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDonate" target="_blank">donation to wikipedia</a>. It is a great resource, but it can only continue to operate if people support it.</p>
<p>In a similar way, if you find Inkscape useful, please consider donating to that community effort.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swishzone.com/?feed=rss2&#038;p=8727</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.397 seconds -->
<!-- Cached page served by WP-Cache -->

