<?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>Flash banner rotator and animations &#187; Tutorials</title>
	<atom:link href="http://flash-banner-rotator.com/category/flash-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://flash-banner-rotator.com</link>
	<description>Flash banner rotator, applications, animations and more...</description>
	<lastBuildDate>Wed, 06 Jul 2011 06:51:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>How to get GPS coordinates from Google Maps</title>
		<link>http://flash-banner-rotator.com/2010/07/how-to-get-gps-coordinates-from-google-maps/</link>
		<comments>http://flash-banner-rotator.com/2010/07/how-to-get-gps-coordinates-from-google-maps/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 19:30:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[as3 google maps]]></category>
		<category><![CDATA[flash google maps]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google api]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[google maps flash api]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://flash-banner-rotator.com/?p=647</guid>
		<description><![CDATA[In previous tutorial we made a simple google map in Flash. But how do we get desired coordinates of our location? You probably would like to show location of your company and set it as default map location. Getting coordinates is actually pretty simple. Go to Google Maps and find the desired location. Now use ]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>In previous tutorial we made a simple google map in Flash. But how do we get desired coordinates of our location? You probably would like to show location of your company and set it as default map location. Getting coordinates is actually pretty simple.</p>
<p>Go to Google Maps and find the desired location. Now use right click and then select &#8220;center map here&#8221;. Now paste following code into browser URL:<br />
<code><br />
javascript:void(prompt('',gApplication.getMap().getCenter()));<br />
</code></p>
<p>A pop up window with coordinates will appear. Just copy this coordinates and paste them to flash code:<br />
<code></p>
<p>map.setCenter(new LatLng(37.77114, -122.40159), 18, MapType.SATELLITE_MAP_TYPE);<br />
var m:Marker = new Marker(new LatLng(37.77114, -122.40159),<br />
</code></p>
<p>coordinates for marker define exactly where marker of your location is placed.<br />
And we&#8217;re done. Good luck using it in your projects.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://flash-banner-rotator.com/2010/07/how-to-get-gps-coordinates-from-google-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reading Google Maps API to Flash AS3</title>
		<link>http://flash-banner-rotator.com/2010/07/reading-google-maps-api-to-flash-as3/</link>
		<comments>http://flash-banner-rotator.com/2010/07/reading-google-maps-api-to-flash-as3/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 18:56:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[as3 google maps]]></category>
		<category><![CDATA[flash google maps]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google api]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[google maps flash api]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://flash-banner-rotator.com/?p=642</guid>
		<description><![CDATA[The use of google maps in flash AS3 is simple and straightforward. First go to Google Maps API for Flash and download the zip file. Now extract the files and copy flash component file under lib directory to where you have flash installed (under component dir). Usually path is: C:\Program Files\Adobe\Adobe Flash CS4\language\Configuration\Components. Now open ]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>The use of google maps in flash AS3 is simple and straightforward.<br />
First go to <a href="http://maps.googleapis.com/maps/flash/release/sdk.zip">Google Maps API for Flash</a> and download the zip file. Now extract the files and copy flash component file under lib directory to where you have flash installed (under component dir). Usually path is: C:\Program Files\Adobe\Adobe Flash CS4\language\Configuration\Components.<br />
Now open Flash and go to components (window/components). You will see GoogleMapsLibrary under Google Maps API. Drag it to your library on stage.</p>
<p>Next you have to import neccessary classes:<br />
<code><br />
import com.google.maps.*;<br />
import com.google.maps.overlays.*;<br />
import com.google.maps.controls.*;<br />
</code></p>
<p>Next step is definition of variables needed for map creation:<br />
<code><br />
var map:Map = new Map();<br />
map.key =<br />
"ABQIAAAAqHHCopGV2FznT8V5ph6ELxShFIAhFb89IoGWiehHpBPf2E8vHxQ2wvPhcSdLLuc<br />
6JxXYONuPAmqLRA";<br />
map.setSize(new Point(stage.stageWidth, stage.stageHeight));<br />
map.x = 0;<br />
map.y = 0;<br />
map.addEventListener(MapEvent.MAP_READY, onMapReady);<br />
</code></p>
<p>map.key defines the starting location of the map and can be found on google pages.<br />
map.setSize defines the size of the map (in our case it is the size of the stage).<br />
map.x and map.y define the position of map on stage.<br />
Finally we add an event listener that will start a function to draw a map when map is ready.<br />
In the end we add following code:<br />
<code></p>
<p>function onMapReady(e:Event):void<br />
{<br />
		map.addControl(new ZoomControl());<br />
		map.addControl(new MapTypeControl());<br />
		map.setCenter(new LatLng(37.77114, -122.40159), 18, MapType.SATELLITE_MAP_TYPE);<br />
		var m:Marker = new Marker(new LatLng(37.77114, -122.40159),<br />
									new MarkerOptions({icon:new marker()}));<br />
		map.addOverlay(m);</p>
<p>}<br />
</code></p>
<p>All we have to do now is add map to the stage:<br />
<code><br />
this.addChild(map);<br />
</code></p>
<p>Save and export movie and map with marker on Adobe location should appear.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://flash-banner-rotator.com/2010/07/reading-google-maps-api-to-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS trick &#8211; how to trick browser to print backgrounds</title>
		<link>http://flash-banner-rotator.com/2010/04/css-trick-how-to-trick-browser-to-print-backgrounds/</link>
		<comments>http://flash-banner-rotator.com/2010/04/css-trick-how-to-trick-browser-to-print-backgrounds/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 07:29:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css trick]]></category>
		<category><![CDATA[how to print backgrounds]]></category>
		<category><![CDATA[print background in browser]]></category>
		<category><![CDATA[print backgrounds]]></category>

		<guid isPermaLink="false">http://flash-banner-rotator.com/?p=602</guid>
		<description><![CDATA[Most of you that work with CSS and HTML are aware that you have no control over printing backgrounds and images, that is totally up to user to decide and there is no way to force printing. There is however a trick you can use to display what appears to be a background but it ]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>Most of you that work with CSS  and HTML are aware that you have no control over printing backgrounds and images, that is totally up to user to decide and there is no way to force printing. There is however a trick you can use to display what appears to be a background but it really isn&#8217;t.<br />
<span id="more-602"></span><br />
Let&#8217;s say you want to make a square 100px wide and 50 px high. Normally you would use following code:</p>
<p><code><br />
.square{<br />
    width:100px;<br />
    height:50px;<br />
    background-color:#D1DCEB;<br />
}<br />
</code></p>
<p>You will get a square that looks like this:<br />
<a href="http://flash-banner-rotator.com/wp-content/uploads/2010/04/square.jpg" rel="shadowbox[post-602];player=img;"><img src="http://flash-banner-rotator.com/wp-content/uploads/2010/04/square.jpg" alt="" title="square" width="95" height="48" class="aligncenter size-full wp-image-603" /></a></p>
<p>But if you go to file/print preview on your browser you will notice that by default printing images and backgrounds is disabled. And since many users do not know about this, some of your reports might not look like you would like. So you are forced to design it differently or you can use the following trick. Change the code to:</p>
<p><code><br />
   .square{<br />
    width:100px;<br />
    height:0px;<br />
    border-top:50px solid #D1DCEB;<br />
}<br />
</code><br />
As you will note square looks the same and will now also appear in print preview and printing itself.<br />
Hope you enjoyed reading about this CSS trick.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://flash-banner-rotator.com/2010/04/css-trick-how-to-trick-browser-to-print-backgrounds/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Loading several external SWF files</title>
		<link>http://flash-banner-rotator.com/2010/01/loading-several-external-swf-files/</link>
		<comments>http://flash-banner-rotator.com/2010/01/loading-several-external-swf-files/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 08:45:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[external swf]]></category>
		<category><![CDATA[load more swf files]]></category>
		<category><![CDATA[load several swf]]></category>

		<guid isPermaLink="false">http://flash-banner-rotator.com/?p=253</guid>
		<description><![CDATA[In this tutorial I will show you how to load several external swf files and then move between them with forward and backward button. First we have to import UILoader. Add following code at the beginning: import fl.containers.UILoader; Next we will define an array of external swf files. Add following code: var externalSWF:Array = ["test.swf", ]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>In this tutorial I will show you how to load several external swf files and then move between them with forward and backward button. First we have to import UILoader. Add following code at the beginning:</p>
<p><code><br />
import fl.containers.UILoader;<br />
</code></p>
<p>Next we will define an array of external swf files. Add following code:</p>
<p><code><br />
var externalSWF:Array = ["test.swf",<br />
		             "test1.swf",<br />
		             "test2.swf",<br />
			  "test3.swf"<br />
		            ];<br />
</code><br />
Please note that in my case external swf files are in the same directory as the fla file we are creating. If your files are in subdirectories you have to provide a full path (&#8220;dir/test.swf&#8221;). Next we will define a variable that will tell which swf is current one.</p>
<p><code><br />
var i:int = 0;<br />
</code></p>
<p>Value is set to 0 as that is our first swf file. Now we will define UIloader, sprite that will hold our swf&#8217;s and a movieclip that will hold current swf file that is on the stage.</p>
<p><code><br />
var thisUILoader:UILoader = new UILoader();<br />
thisUILoader.addEventListener(Event.INIT, loadFinish);<br />
var theLoaderContext:LoaderContext;</p>
<p>var slideshow:Sprite = new Sprite();<br />
var MC:MovieClip = new MovieClip();<br />
</code></p>
<p>After load is finished we will call function loadFinish. But first we have to put our sprite and movieclip to the stage.</p>
<p><code><br />
addChild(slideshow);<br />
slideshow.addChild(thisMC);<br />
</code></p>
<p>Now we can add function loadFinish.</p>
<p><code><br />
function loadFinish(e:Event):void {<br />
   MC = MovieClip(thisUILoader.content);<br />
   thisUILoader.unload();<br />
   slideshow.addChild(thisMC);<br />
   setChildIndex(slideshow, 0);<br />
   backward.addEventListener(MouseEvent.CLICK, backwardF);<br />
   forward.addEventListener(MouseEvent.CLICK, forwardF);<br />
}<br />
</code><br />
First we load content of swf file then we add it to slideshow and set index to 0. Now create two simple movieclips named backward and forward. Don&#8217;t forget to set instance names of these movieclips to backward and forward. We will use these buttons to move between swf files.</p>
<p>Now we need to add functions for moving forward and backward and we have to add another variable that will count swf files. Add following code to the start of the file where variables are.</p>
<p><code><br />
var counter:int = 0;<br />
</code></p>
<p>Now add functions for forward and backward.</p>
<p><code><br />
function backwardF(e:MouseEvent){<br />
	i--;<br />
	if (i < 0)<br />
		i = 5;<br />
	nextSWF();<br />
	counter++;<br />
}<br />
function forwardF(e:MouseEvent){<br />
	if (i == 5)<br />
		i = -1;<br />
	i++;<br />
	nextSWF();<br />
	counter++;<br />
}<br />
</code></p>
<p>Now we only have to add function nextSWF.</p>
<p><code><br />
function nextClip():void {<br />
	theLoaderContext = new LoaderContext();<br />
	theLoaderContext.applicationDomain = new ApplicationDomain();<br />
	thisUILoader.load( new URLRequest(clips[i]),theLoaderContext);<br />
}<br />
</code></p>
<p>This function loads the current swf file. Starting value of i is 0 (first swf in array).<br />
Now add following code at the end to start loading.</p>
<p><code><br />
nextClip();<br />
</code></p>
<p>And we are finished. You can now load as many swf files as you wish and move between them.<br />
Thank you for reading</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://flash-banner-rotator.com/2010/01/loading-several-external-swf-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash blurry movement</title>
		<link>http://flash-banner-rotator.com/2009/12/flash-blurry-movement/</link>
		<comments>http://flash-banner-rotator.com/2009/12/flash-blurry-movement/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 17:59:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blur effect]]></category>
		<category><![CDATA[blur movement]]></category>
		<category><![CDATA[flash blur]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://flash-banner-rotator.com/?p=249</guid>
		<description><![CDATA[Ever wanted to move your movie clip in a way that it would look like it is moving really fast? In this tutorial I will show you how to add a simple blur filter to enhance movement effect. First add some movie clip to the stage. I simply made a circle, converted it to movie ]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>Ever wanted to move your movie clip in a way that it would look like it is moving really fast? In this tutorial I will show you how to add a simple blur filter to enhance movement effect. First add some movie clip to the stage. I simply made a circle, converted it to movie clip and named it circle.<br />
<span id="more-249"></span><br />
Now to coding part.<br />
First import all needed libraries:<br />
<code><br />
import fl.transitions.Tween;<br />
import fl.transitions.easing.*;<br />
import fl.transitions.TweenEvent;<br />
</code></p>
<p>Now we need to define a tween to which we can add an event listener. Add following line:<br />
<code><br />
var OurTween:Tween;<br />
</code><br />
Now it is time to add our blurry movement function:<br />
<code><br />
function blurEffect(e:MouseEvent):void{OurTween = new Tween(circle, "x", Strong.easeInOut, circle.x, circle.x + 400, 0.75, true);<br />
OurTween.addEventListener(TweenEvent.MOTION_CHANGE, blurOn);<br />
OurTween.addEventListener(TweenEvent.MOTION_FINISH, blurOff);</p>
<p>function blurOn(event:TweenEvent):void{<br />
var blur:BlurFilter = new BlurFilter();<br />
blur.blurX = 15;<br />
blur.blurY = 0;<br />
blur.quality = BitmapFilterQuality.HIGH;<br />
circle.filters = [blur];<br />
}<br />
function blurOff(event:TweenEvent):void{<br />
circle.filters = [];<br />
}<br />
}</p>
<p></code></p>
<p>We assign movement along X axis to our tween variable. Now we add two event listeners. First will start blur effect on motion change and second will stop blur effect after movement is finished. BlurOn defines a blur filter which will apply a blur filter along x axis (because movement is along x axis). If you would like to move movie clip along y axis, you would apply blur to y. BlurOff function simply remove all filters from movie clip. In a preview shown below I also used a simple movie clip that acts as a button:</p>
<p><code><br />
ourButton.buttonMode = true;<br />
ourButton.useHandCursor = true;<br />
ourButton.mouseChildren = false;<br />
ourButton.addEventListener(MouseEvent.CLICK, blurEffect);<br />
</code><br />
Note that you also have to put this button on stage (just make a simple rectangle, convert it to movie clip and name it ourButton). And we are done. Thank your for reading this tutorial.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_blur_1808249231"
			class="flashmovie"
			width="550"
			height="250">
	<param name="movie" value="http://flash-banner-rotator.com/Tutorials/blur.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://flash-banner-rotator.com/Tutorials/blur.swf"
			name="fm_blur_1808249231"
			width="550"
			height="250">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://flash-banner-rotator.com/2009/12/flash-blurry-movement/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
