<?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>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; Tips</title>
	<atom:link href="http://www.webstylepress.com/category/adobe-flash/flash-tips-adobe-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash Mouse Effects</title>
		<link>http://www.webstylepress.com/flash-mouse-effects/</link>
		<comments>http://www.webstylepress.com/flash-mouse-effects/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 16:39:39 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[pointer]]></category>
		<category><![CDATA[trailers]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=288</guid>
		<description><![CDATA[In this section lets play with mouse cursor in Flash. You can do the following: Mouse hide, show in Flash Mouse Trailers in Flash Creating Custom Mouse Pointer in Flash Mouse hide, show You can show or hide mouse by using following scripts. Mouse.show&#40;&#41;; Mouse.hide&#40;&#41;; Mouse Trailers Name Trailer At blank stage place this action [...]<p><a href="http://www.webstylepress.com/flash-mouse-effects/">Flash Mouse Effects</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In this section lets play with mouse cursor in Flash. You can do the following:</p>
<ul>
<li>Mouse hide, show in Flash</li>
<li>Mouse Trailers in Flash</li>
<li>Creating Custom Mouse Pointer in Flash</li>
</ul>
<p><span id="more-288"></span></p>
<h4>Mouse hide, show</h4>
<p>You can show or hide mouse by using following scripts.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">Mouse</span>.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">Mouse</span>.<span style="color: #0066CC;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h4>Mouse Trailers</h4>
<h5>Name Trailer</h5>
<p>At blank stage place this action script.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">Text</span> = <span style="color: #ff0000;">&quot;Javed Khalil Hiroshi&quot;</span>;
letters = <span style="color: #0066CC;">Text</span>.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
letterformat = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
letterformat.<span style="color: #0066CC;">font</span> = <span style="color: #ff0000;">&quot;Verdana&quot;</span>;
letterformat.<span style="color: #0066CC;">align</span> = <span style="color: #ff0000;">&quot;center&quot;</span>;
letterformat.<span style="color: #0066CC;">size</span> = <span style="color: #ff0000;">&quot;10&quot;</span>;
spacing = <span style="color: #cc66cc;">8</span>;
speed = <span style="color: #cc66cc;">3</span>;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> LTR = <span style="color: #cc66cc;">0</span>; LTR<span style="color: #66cc66;">&lt;</span>letters.<span style="color: #0066CC;">length</span>; LTR++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
mc = <span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">createEmptyMovieClip</span><span style="color: #66cc66;">&#40;</span>LTR+<span style="color: #ff0000;">&quot;l&quot;</span>, LTR<span style="color: #66cc66;">&#41;</span>;
mc.<span style="color: #0066CC;">createTextField</span><span style="color: #66cc66;">&#40;</span>letters<span style="color: #66cc66;">&#91;</span>LTR<span style="color: #66cc66;">&#93;</span>+<span style="color: #ff0000;">&quot;t&quot;</span>, LTR, LTR<span style="color: #66cc66;">*</span>spacing, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">with</span> <span style="color: #66cc66;">&#40;</span>mc<span style="color: #66cc66;">&#91;</span>letters<span style="color: #66cc66;">&#91;</span>LTR<span style="color: #66cc66;">&#93;</span>+<span style="color: #ff0000;">&quot;t&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">text</span> = letters<span style="color: #66cc66;">&#91;</span>LTR<span style="color: #66cc66;">&#93;</span>;
<span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span>letterformat<span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">selectable</span> = <span style="color: #000000; font-weight: bold;">false</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>LTR<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
mc.<span style="color: #006600;">prevClip</span> = <span style="color: #0066CC;">_root</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#40;</span>LTR-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;l&quot;</span><span style="color: #66cc66;">&#93;</span>;
mc.<span style="color: #0066CC;">onEnterFrame</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_x</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">prevClip</span>._x-<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_x</span>+<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">/</span>speed;
<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_y</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">prevClip</span>._y-<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_y</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">/</span>speed;
<span style="color: #66cc66;">&#125;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
mc.<span style="color: #0066CC;">onEnterFrame</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_x</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>._xmouse-<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_x</span>+<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">/</span>speed;
<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_y</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>._ymouse-<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_y</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">/</span>speed;
<span style="color: #66cc66;">&#125;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h4>Creating Custom Mouse Pointer</h4>
<h6>Action on first frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">startDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/my mouse&quot;</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">Mouse</span>.<span style="color: #0066CC;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h6>Action on Mouse movieclip</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">onClipEvent</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">Mouse</span>.<span style="color: #0066CC;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>While my mouse is mouse pointer movieclip name.</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/making-mouse-pointer.rar'>Download Custom Mouse Pointer Example</a></span></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/trailers.rar'>Download Mouse Trailers</a></span></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/mouse-follow.rar'>Mouse Following Objects &#8211; Download Examples</a></span></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/duplicate-movieclip-example.rar'>Download Duplicate Movieclip Example</a></span></p>
<p><a href="http://www.webstylepress.com/flash-mouse-effects/">Flash Mouse Effects</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li><li><a href="http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/" title="Flash Window or Movie Move &#8211; Dragable Content Using ActionScript">Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-login-system/" title="Create Flash Login System using ActionScript">Create Flash Login System using ActionScript</a></li><li><a href="http://www.webstylepress.com/counting-in-flash-flash-counter/" title="Counting In Flash &#8211; Flash Counter">Counting In Flash &#8211; Flash Counter</a></li><li><a href="http://www.webstylepress.com/flash-go-to-frame-actionscript/" title="Flash &#8211; Go To Frame ActionScript">Flash &#8211; Go To Frame ActionScript</a></li><li><a href="http://www.webstylepress.com/date-and-time-in-flash/" title="Date and Time In Flash">Date and Time In Flash</a></li><li><a href="http://www.webstylepress.com/image-transitions-effects-and-particle-systems-in-adobe-flash/" title="Image Transitions &#8211; Effects and Particle Systems In Adobe Flash">Image Transitions &#8211; Effects and Particle Systems In Adobe Flash</a></li><li><a href="http://www.webstylepress.com/flash-tooltips/" title="Flash Tooltips &#8211; Tutorial and Example Download">Flash Tooltips &#8211; Tutorial and Example Download</a></li><li><a href="http://www.webstylepress.com/buttons-control-in-flash/" title="Buttons Control In Flash">Buttons Control In Flash</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/flash-mouse-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Search From Flash Using ActionScript</title>
		<link>http://www.webstylepress.com/google-search-from-flash/</link>
		<comments>http://www.webstylepress.com/google-search-from-flash/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 15:57:22 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=284</guid>
		<description><![CDATA[Here is a method to search Google from flash. AdSense users can also use this script. Download Google Search From Flash Example Google Search From Flash Using ActionScript is a post from: Web Style Press, Best Practices from all the Web, Build Better Websites Related PostsCreate Random Bubble Animation In FlashCreate Flash Random 3D Text [...]<p><a href="http://www.webstylepress.com/google-search-from-flash/">Google Search From Flash Using ActionScript</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Here is a method to search Google from flash. AdSense users can also use this script. </p>
<p><span id="more-284"></span></p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/g-search.gif" alt="" title="g-search" width="300" height="84" class="alignnone size-full wp-image-285" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/search-google-from-flash.rar'>Download Google Search From Flash Example</a></span></p>
<p><a href="http://www.webstylepress.com/google-search-from-flash/">Google Search From Flash Using ActionScript</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/random-bubble-animation-in-flash/" title="Create Random Bubble Animation In Flash">Create Random Bubble Animation In Flash</a></li><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-resources-and-tutorials/" title="Flash Resources and Tutorials">Flash Resources and Tutorials</a></li><li><a href="http://www.webstylepress.com/scrollbars-in-flash-flash-content-scroll/" title="Scrollbars In flash &#8211; Flash Content Scroll">Scrollbars In flash &#8211; Flash Content Scroll</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/swap-depth-in-flash/" title="Swap Depth In Flash">Swap Depth In Flash</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li><li><a href="http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/" title="Flash Window or Movie Move &#8211; Dragable Content Using ActionScript">Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-login-system/" title="Create Flash Login System using ActionScript">Create Flash Login System using ActionScript</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/google-search-from-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</title>
		<link>http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/</link>
		<comments>http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 10:53:39 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Drag]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=265</guid>
		<description><![CDATA[Drag-able content is flash looks very sexy. Suppose you created a movie clip that had all the sound controls in it. You can enable it to drag freely across the main movie or within fixed parameters. I used it once at sound control panel. I had to create a movie clip that is able to [...]<p><a href="http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/">Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Drag-able content is flash looks very sexy. Suppose you created a movie clip that had all the sound controls in it. You can enable it to drag freely across the main movie or within fixed parameters. I used it once at sound control panel. I had to create a movie clip that is able to appear and disappear and also it was able to move within fixed parameters. Its so cool.</p>
<p><span id="more-265"></span></p>
<h4>Simple Movie Drag</h4>
<p>Create a movieclip and name it <strong>d</strong> or whatever you like. In movie clip create a button and put actionscript on it.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>press<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">startDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/d&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">stopDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/drag-and-stop.rar'>Download Drag Script</a></span></p>
<h4>Drag with Parameters and Control</h4>
<p>To apply restrictions for specific area in which movie clip is drag able consider this example.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>press<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">startDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;_root.window&quot;</span>, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">92</span>, <span style="color: #cc66cc;">92</span>, <span style="color: #cc66cc;">458</span>, <span style="color: #cc66cc;">308</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">stopDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>92, 92, 458, 308 are left, right, top and bottom parameters boundries window cant cross. Window is movie clip name which is concerned.</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/menu-dragable.rar'>Download Script</a></span></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/2drag2.rar'>Multiple Objects Drag Example</a></span></p>
<h4>Movie Properties Control</h4>
<p>Move movie clip right, left, up, down, resize, rotate, brightness, contrast etc</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/movie_properties.rar'>Download Movie Properties Control Example</a></span></p>
<p><a href="http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/">Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li><li><a href="http://www.webstylepress.com/flash-login-system/" title="Create Flash Login System using ActionScript">Create Flash Login System using ActionScript</a></li><li><a href="http://www.webstylepress.com/counting-in-flash-flash-counter/" title="Counting In Flash &#8211; Flash Counter">Counting In Flash &#8211; Flash Counter</a></li><li><a href="http://www.webstylepress.com/flash-go-to-frame-actionscript/" title="Flash &#8211; Go To Frame ActionScript">Flash &#8211; Go To Frame ActionScript</a></li><li><a href="http://www.webstylepress.com/date-and-time-in-flash/" title="Date and Time In Flash">Date and Time In Flash</a></li><li><a href="http://www.webstylepress.com/image-transitions-effects-and-particle-systems-in-adobe-flash/" title="Image Transitions &#8211; Effects and Particle Systems In Adobe Flash">Image Transitions &#8211; Effects and Particle Systems In Adobe Flash</a></li><li><a href="http://www.webstylepress.com/flash-tooltips/" title="Flash Tooltips &#8211; Tutorial and Example Download">Flash Tooltips &#8211; Tutorial and Example Download</a></li><li><a href="http://www.webstylepress.com/buttons-control-in-flash/" title="Buttons Control In Flash">Buttons Control In Flash</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting In Flash &#8211; Flash Counter</title>
		<link>http://www.webstylepress.com/counting-in-flash-flash-counter/</link>
		<comments>http://www.webstylepress.com/counting-in-flash-flash-counter/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 10:28:39 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[counting]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=255</guid>
		<description><![CDATA[What is the point of counting in flash? Well if there is any point, then You can make count downs or count ups and then trigger some action on its completion. Following tutorials will guide you about how to create counters in flash using ActionScript. Counting Up Till 100 Take a dynamic text field and [...]<p><a href="http://www.webstylepress.com/counting-in-flash-flash-counter/">Counting In Flash &#8211; Flash Counter</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>What is the point of counting in flash? Well if there is any point, then You can make count downs or count ups and then trigger some action on its completion. Following tutorials will guide you about how to create counters in flash using ActionScript.</p>
<p><span id="more-255"></span></p>
<h4>Counting Up Till 100</h4>
<p>Take a dynamic text field and name it a or txt etc.Here i took a. Its defining a variable. First frame must be empty. At second frame take that dynamic field and at another layer place actionscript sequence in frames as following:</p>
<h6>First Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=<span style="color: #cc66cc;">1</span>;</pre></div></div>

<h6>Second Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=a+<span style="color: #cc66cc;">1</span>;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>a==<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h6>Third Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">gotoAndPlay</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h6>Fourth Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=<span style="color: #cc66cc;">100</span>;</pre></div></div>

<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/counting.rar'>Download Counting Script</a></span></p>
<h4>Unlimited Counting Up</h4>
<p>Same dynamic field but actionscript will be:</p>
<h6>First Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=<span style="color: #cc66cc;">1</span>;</pre></div></div>

<h6>Second Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=a+<span style="color: #cc66cc;">1</span>;</pre></div></div>

<h6>Third Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">gotoAndPlay</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/counting2.rar'>Download Script</a></span></p>
<h4>Counting Down 100 to 1</h4>
<p>Same dynamic field but actionscript will be:</p>
<h6>First Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=<span style="color: #cc66cc;">100</span>;</pre></div></div>

<h6>Second Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=a-<span style="color: #cc66cc;">1</span>;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>a==<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h6>Third Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">gotoAndPlay</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h6>Fourth Frame</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">a=<span style="color: #cc66cc;">1</span>;</pre></div></div>

<p><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/counting-down-flash.rar'>Download Counting Down In Flash</a></p>
<p><a href="http://www.webstylepress.com/counting-in-flash-flash-counter/">Counting In Flash &#8211; Flash Counter</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li><li><a href="http://www.webstylepress.com/flash-window-or-movie-move-dragable-content/" title="Flash Window or Movie Move &#8211; Dragable Content Using ActionScript">Flash Window or Movie Move &#8211; Dragable Content Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-login-system/" title="Create Flash Login System using ActionScript">Create Flash Login System using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-go-to-frame-actionscript/" title="Flash &#8211; Go To Frame ActionScript">Flash &#8211; Go To Frame ActionScript</a></li><li><a href="http://www.webstylepress.com/date-and-time-in-flash/" title="Date and Time In Flash">Date and Time In Flash</a></li><li><a href="http://www.webstylepress.com/image-transitions-effects-and-particle-systems-in-adobe-flash/" title="Image Transitions &#8211; Effects and Particle Systems In Adobe Flash">Image Transitions &#8211; Effects and Particle Systems In Adobe Flash</a></li><li><a href="http://www.webstylepress.com/flash-tooltips/" title="Flash Tooltips &#8211; Tutorial and Example Download">Flash Tooltips &#8211; Tutorial and Example Download</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/counting-in-flash-flash-counter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Browser Control From Flash</title>
		<link>http://www.webstylepress.com/browser-control-from-flash/</link>
		<comments>http://www.webstylepress.com/browser-control-from-flash/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 09:41:20 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash tips]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=249</guid>
		<description><![CDATA[In this section you will learn how to do the following in Flash using ActionScript. Close Browser From Flash Without POPUP Alert (browser close) With POPUP Alert (browser close) With POPUP Alert (browser close) Print From Flash Add to Favourites From Flash Launch Popup or Fullscreen Window From Flash For Full Screen in Html Page [...]<p><a href="http://www.webstylepress.com/browser-control-from-flash/">Browser Control From Flash</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In this section you will learn how to do the following in Flash using ActionScript.</p>
<ul>
<li>Close Browser From Flash</li>
<li>Without POPUP Alert (browser close)</li>
<li>With POPUP Alert (browser close)</li>
<li>With POPUP Alert (browser close)</li>
<li>Print From Flash</li>
<li>Add to Favourites From Flash</li>
<li>Launch Popup or Fullscreen Window From Flash</li>
<li>For Full Screen in Html Page Containing Swf</li>
<li>Open Many Popups From Flash (if u have many buttons and which indicate different windows to open)</li>
</ul>
<p>and more&#8230;</p>
<p><span id="more-249"></span></p>
<h4>Close Browser From Flash</h4>
<h5>With POPUP Alert (swf close)</h5>
<p>fscommands will do the task. Write the following script on button in flash and you are done.<br />
This script will close the swf and not the browser page.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">fscommand</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;quit&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h5>Without POPUP Alert (browser close)</h5>
<p>Write the following script on button in flash and you are done.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;javascript:window.opener=self;window.close(); &quot;</span>, <span style="color: #ff0000;">&quot;_self&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h5>With POPUP Alert (browser close)</h5>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;javascript:window.close()&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h5>With POPUP Alert (browser close)</h5>
<h6>On Flash Button</h6>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JavaScript:close();&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>In that webpage in body section write the following anywhere.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=JavaScript:close();&gt;&lt;/a&gt;</pre></div></div>

<h4>Print From Flash</h4>
<p>There is print function in flash under printing action script menu, you can use that.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>, <span style="color: #ff0000;">&quot;bmax&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>It will print the whole _root timeline. If you want to specify frames (like one frame only put a label on the frame that says #p (hash sign + p) everything else will be excluded.</p>
<p>OR</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">printAsBitmapNum</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #ff0000;">&quot;bmovie&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Printing can be customised and you can define area and other options for that i.e.</p>
<p><a rel="nofollow" target="_blank" href="http://www.flashkit.com/tutorials/Getting_Started/Customis-Eddie_Ca-31/index.php" target="_blank">Check out following instructions</a></p>
<h4>Add to Favourites From Flash</h4>
<p>Following is the example of how to add to favorites from flash movie. You will have to add some actionscript at some button in flash and also some javascript code in webpage head section inwhich that flash movie is beingcalled.</p>
<h5>On Flash Button</h5>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;javascript:AjoutFavo()&quot;</span>, <span style="color: #ff0000;">&quot;_self&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h5>In Webpage Head Section</h5>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>SCRIPT LANGUAGE<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span> 
<span style="color: #003366; font-weight: bold;">function</span> AjoutFavo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>parseInt<span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
window.<span style="color: #660066;">external</span>.<span style="color: #660066;">AddFavorite</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://www.websiteurl.com&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;web site name&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> 
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>SCRIPT<span style="color: #339933;">&gt;</span></pre></div></div>

<h4>Launch Popup or Fullscreen Window From Flash</h4>
<h4>Popup From Flash</h4>
<h5>Script For Flash Button</h5>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> 
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;javascript:openWin();&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h5>For Html Page that Contain Swf with Button</h5>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> openWin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://yahoo.com'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'win_ranking'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'width=320,height=400,toolbar=0,menubar=0,location=0,left=0,top=113,screenX=0,screenY=100,scrollbars=no'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<h5>For Full Screen in Html Page Containing Swf</h5>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> openWin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://yahoo.com'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'win_ranking'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'toolbar=0,menubar=0,location=0,left=0,top=113,screenX=0,screenY=100,scrollbars=no,fullscreen=yes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<h6>Open Many Popups From Flash (if u have many buttons and which indicate different windows to open)</h6>
<p>Add following scripts to your flash buttons.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JavaScript: OpenWin('1.htm');&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JavaScript: OpenWin2('2.htm');&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">on</span> <span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JavaScript: OpenWin3('3.htm');&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>and so on&#8230;</p>
<p>Add this script in the head of your page inwhich this swf is embedded.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>Script Language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #003366; font-weight: bold;">function</span> OpenWin<span style="color: #009900;">&#40;</span>fileName<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>fileName<span style="color: #339933;">,</span><span style="color: #3366CC;">'mNew'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;width=270,height=179,toolbar=0,menubar=0,location=0,left=0,top=113,screenX=0,screenY=100,scrollbars=no&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> OpenWin2<span style="color: #009900;">&#40;</span>fileName<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>fileName<span style="color: #339933;">,</span><span style="color: #3366CC;">'mNew2'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;width=172,height=268,toolbar=0,menubar=0,location=0,left=0,top=113,screenX=0,screenY=100,scrollbars=no&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span> <span style="color: #003366; font-weight: bold;">function</span> OpenWin3<span style="color: #009900;">&#40;</span>fileName<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>fileName<span style="color: #339933;">,</span><span style="color: #3366CC;">'mNew3'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;width=411,height=270,toolbar=0,menubar=0,location=0,left=0,top=113,screenX=0,screenY=100,scrollbars=no&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">// and so on ................................</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><a href="http://www.webstylepress.com/browser-control-from-flash/">Browser Control From Flash</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/" title="Embed SWF Files Via Javascript &#8211; Active Content Script">Embed SWF Files Via Javascript &#8211; Active Content Script</a></li><li><a href="http://www.webstylepress.com/random-bubble-animation-in-flash/" title="Create Random Bubble Animation In Flash">Create Random Bubble Animation In Flash</a></li><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-resources-and-tutorials/" title="Flash Resources and Tutorials">Flash Resources and Tutorials</a></li><li><a href="http://www.webstylepress.com/scrollbars-in-flash-flash-content-scroll/" title="Scrollbars In flash &#8211; Flash Content Scroll">Scrollbars In flash &#8211; Flash Content Scroll</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/google-search-from-flash/" title="Google Search From Flash Using ActionScript">Google Search From Flash Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/swap-depth-in-flash/" title="Swap Depth In Flash">Swap Depth In Flash</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/browser-control-from-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transition Between Sections of a Flash Movie</title>
		<link>http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/</link>
		<comments>http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 06:36:25 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[smooth]]></category>
		<category><![CDATA[transition]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=178</guid>
		<description><![CDATA[By just looking at the image, I think you will not get the whole idea about the function. You will have to download it to see working example. This is an explanation of how to animate different sections of a movie smoothly. When some button is clicked, the previous animation restores its original state or [...]<p><a href="http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/">Transition Between Sections of a Flash Movie</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/trans-sections.jpg" alt="" title="trans-sections" width="300" height="133" class="alignnone size-full wp-image-179" /></p>
<p>By just looking at the image, I think you will not get the whole idea about the function. You will have to download it to see working example. This is an explanation of how to animate different sections of a movie smoothly. When some button is clicked, the previous animation restores its original state or disappears in a smooth way and after that new movie appears or gains the new position.</p>
<p><span id="more-178"></span></p>
<p>For example we have two movies, lets say a and b.<br />
these are at states 1.<br />
When we click at button a for movie a, it animate in some way and goes to state 2.<br />
When we click now at button b for movie b, then two actions are performed.<br />
Firstly animation state of movie a which is 2, will be back to 1.<br />
Secondly after first move, animation state of movie b which is 1, will be changed to 2.</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/smooth.rar'>Download Smooth Transition Example</a></span></p>
<p><a href="http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/">Transition Between Sections of a Flash Movie</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/load-external-swfs-with-smooth-transition/" title="Load External SWFs With Smooth Transition">Load External SWFs With Smooth Transition</a></li><li><a href="http://www.webstylepress.com/buttons-control-in-flash/" title="Buttons Control In Flash">Buttons Control In Flash</a></li><li><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/" title="How to Control Font Size in Percentage">How to Control Font Size in Percentage</a></li><li><a href="http://www.webstylepress.com/random-bubble-animation-in-flash/" title="Create Random Bubble Animation In Flash">Create Random Bubble Animation In Flash</a></li><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-resources-and-tutorials/" title="Flash Resources and Tutorials">Flash Resources and Tutorials</a></li><li><a href="http://www.webstylepress.com/scrollbars-in-flash-flash-content-scroll/" title="Scrollbars In flash &#8211; Flash Content Scroll">Scrollbars In flash &#8211; Flash Content Scroll</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/google-search-from-flash/" title="Google Search From Flash Using ActionScript">Google Search From Flash Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed SWF Files Via Javascript &#8211; Active Content Script</title>
		<link>http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/</link>
		<comments>http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 17:54:25 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Web Guidelines]]></category>
		<category><![CDATA[Web Tips]]></category>
		<category><![CDATA[active content]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash tips]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=156</guid>
		<description><![CDATA[Previously We used to embed flash files in web pages via simple embed method which pops up flash settings alert or Flash Settings Manager. Following way is to embed Flash movie (swf file) in web page using Javascript which will play for all browsers and will not alert you for flash settings. Old Way Of [...]<p><a href="http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/">Embed SWF Files Via Javascript &#8211; Active Content Script</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Previously We used to embed flash files in web pages via simple embed method which pops up flash settings alert or <a rel="nofollow" target="_blank" href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html">Flash Settings Manager</a>. Following way is to embed Flash movie (swf file) in web page using Javascript which will play for all browsers and will not alert you for flash settings.</p>
<p><span id="more-156"></span></p>
<h5>Old Way Of Embeding SWF In Web Pages</h5>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0&quot; width=&quot;200&quot; height=&quot;100&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;mymovie.swf&quot;&gt;
&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
&lt;param name=&quot;menu&quot; value=&quot;false&quot;&gt;
&lt;embed src=&quot;mymovie.swf&quot; width=&quot;200&quot; height=&quot;100&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot; menu=&quot;false&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre></div></div>

<p>We had to go to <a rel="nofollow" target="_blank" href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html" target="_blank">Flash Global Settings Manager</a> to set settings to stop that pop up window.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/flash-settings-panel.gif" alt="" title="flash-settings-panel" width="397" height="272" class="alignnone size-full wp-image-158" /></p>
<p><strong>New Adobe Dreamweaver CS3</strong> provides a way to embed flash files in web pages via javascript by using <strong>AC_RunActiveContent.js</strong> file.</p>
<p>Suppose I have swf movie named as <strong>mymovie.swf</strong>. I will embed it in web page by using following method. You will need <strong>AC_RunActiveContent.js</strong> file which Adobe Dreamweaver provides while you embed swf in web pages.</p>
<h5>For Head Section Of Page</h5>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;AC_RunActiveContent.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<h5>Embeding SWF Via Javascript</h5>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot;&gt;
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','200','height','100','src','mymovie','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','mymovie' ); //end AC code
&lt;/script&gt;&lt;noscript&gt;&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0&quot; width=&quot;200&quot; height=&quot;100&quot;&gt;
  &lt;param name=&quot;movie&quot; value=&quot;mymovie.swf&quot;&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
  &lt;embed src=&quot;mymovie.swf&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;200&quot; height=&quot;100&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;&lt;/noscript&gt;</pre></div></div>

<p>* For above example, you will have to change the movie name at four places. Two times it appears as <strong>mymovie.swf</strong> and two times as <strong>mymovie</strong> in code above and movie&#8217;s height and width three times too.</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/embed-flash-via-new-script.rar'>Download Full Script</a></span></p>
<p><a href="http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/">Embed SWF Files Via Javascript &#8211; Active Content Script</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/browser-control-from-flash/" title="Browser Control From Flash">Browser Control From Flash</a></li><li><a href="http://www.webstylepress.com/random-bubble-animation-in-flash/" title="Create Random Bubble Animation In Flash">Create Random Bubble Animation In Flash</a></li><li><a href="http://www.webstylepress.com/flash-random-text-animation/" title="Create Flash Random 3D Text Animation">Create Flash Random 3D Text Animation</a></li><li><a href="http://www.webstylepress.com/flash-resources-and-tutorials/" title="Flash Resources and Tutorials">Flash Resources and Tutorials</a></li><li><a href="http://www.webstylepress.com/scrollbars-in-flash-flash-content-scroll/" title="Scrollbars In flash &#8211; Flash Content Scroll">Scrollbars In flash &#8211; Flash Content Scroll</a></li><li><a href="http://www.webstylepress.com/flash-mouse-effects/" title="Flash Mouse Effects">Flash Mouse Effects</a></li><li><a href="http://www.webstylepress.com/google-search-from-flash/" title="Google Search From Flash Using ActionScript">Google Search From Flash Using ActionScript</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/swap-depth-in-flash/" title="Swap Depth In Flash">Swap Depth In Flash</a></li><li><a href="http://www.webstylepress.com/flash-slide-shows/" title="Create Flash Slide Shows Using ActionScript &#8211; Example Downloads">Create Flash Slide Shows Using ActionScript &#8211; Example Downloads</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/embed-swf-files-javascript-run-active-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

