<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-7017297504410570290</id><updated>2009-10-13T21:23:57.451-07:00</updated><title type='text'>OpenFlash</title><subtitle type='html'>Free Flash Source Code.</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/index.php'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flash.aliseya.com/atom.xml'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-4306959533386718940</id><published>2009-10-13T20:56:00.001-07:00</published><updated>2009-10-13T21:14:23.759-07:00</updated><title type='text'>Firefox creating a new profile on each start</title><content type='html'>So I was having a problem with Firefox. First, the problem was it wouldn't open. Every time I tried to open it, it said, only one instance can be running at a time. Or something like that. However, Firefox wasn't running. &lt;br /&gt;&lt;br /&gt;Being lazy, I took my machine to IT and let them deal with it. &lt;br /&gt;&lt;br /&gt;Don't get me wrong, IT has a hard hard job. troubleshoot my system. and god knows what i've installed or what settings i've changed, or what system properties i've mucked up. but i'm sure you'll figure it out. &lt;br /&gt;&lt;br /&gt;so, this is not an IT sucks post. &lt;br /&gt;&lt;br /&gt;So anyhow, they told me something about profiles being corrupted. At which point my eyes glazed over and i stopped listening. &lt;br /&gt;&lt;br /&gt;So, turns out the "fix" for this was to delete my profiles.ini file. &lt;br /&gt;&lt;br /&gt;So, now, my problem was different. Firefox would open, woo hoo! But victory was declared too soon. Each time, a new profile was created. So what? you lose your bookmarks, boo hoo. Also, you eat up your memory pretty quickly. And that is what forced me to fix the problem. It was non-trival to solve blindly, but easy once you know what to do. So, I'll share it with you. &lt;br /&gt;&lt;br /&gt;1. run the profile manager. open a terminal window and run this:&lt;br /&gt;/Applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager&lt;br /&gt;  &lt;br /&gt;Create a new profile. Remember the name you used. I used my name, to differentiate it from "Default User". &lt;br /&gt;&lt;br /&gt;Make sure the folder used for this is &lt;br /&gt;/Users/&amp;lt;user name&gt;/Library/Application Support/Firefox/Profiles &lt;br /&gt;&lt;br /&gt;if that dir doesn't exist, create it. That was part of my problem. It should have existed, but did not. &lt;br /&gt;&lt;br /&gt;Once you create your profile. Start firefox. Then exit fire fox. Go into the Profiles dir, and delete every profile except this one. this step may not be necessary. But I did it for clarity. &lt;br /&gt;&lt;br /&gt;2. Make sure you have a Profiles.ini file. &lt;br /&gt;&lt;br /&gt;On the mac, this should be in /Users/&amp;lt;user name&gt;/Library/Application Support/Firefox/&lt;br /&gt;&lt;br /&gt;if you don't have it, make it.&lt;br /&gt;&lt;br /&gt;this file should look like this:&lt;br /&gt;&lt;br /&gt;[General]&lt;br /&gt;StartWithLastProfile=0&lt;br /&gt;[Profile0]&lt;br /&gt;Name=default&lt;br /&gt;IsRelative=1&lt;br /&gt;Path=Profiles/qioxtndq.default&lt;br /&gt;&lt;br /&gt;change the Name and Path to match the profile you just created. &lt;br /&gt;&lt;br /&gt;More details on this can be found on these pages. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://kb.mozillazine.org/Profiles.ini_file"&gt;http://kb.mozillazine.org/Profiles.ini_file&lt;/a&gt;&lt;br /&gt;&lt;a href="http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=420023&amp;forumId=1"&gt;http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=420023&amp;forumId=1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://support.mozilla.com/en-US/kb/Backing+up+your+information"&gt;http://support.mozilla.com/en-US/kb/Backing+up+your+information&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;save the file. &lt;br /&gt;&lt;br /&gt;you might need to chmod 755 this file. I did it, but I'm not sure if it's a necessary step. &lt;br /&gt;&lt;br /&gt;3. Now, run the profile manager again. &lt;br /&gt;/Applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager&lt;br /&gt;&lt;br /&gt;you should see your profile. choose that one and open fire fox. You can open firefox normally after that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-4306959533386718940?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/4306959533386718940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=4306959533386718940&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/4306959533386718940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/4306959533386718940'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2009/10/firefox-creating-new-profile-on-each.html' title='Firefox creating a new profile on each start'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-5552786059541054540</id><published>2009-09-14T12:50:00.000-07:00</published><updated>2009-09-14T13:03:12.267-07:00</updated><title type='text'>another flash killer?</title><content type='html'>first, before you start a company to take a hit out on flash, check to make sure someone will hire you, and pay you, to take out said hit. someone other than microsoft. &lt;br /&gt;&lt;br /&gt;call me a skeptic, call me a hater, but i'm not sure that i'm buying the premise of &lt;a href="http://www.techcrunch.com/2009/09/14/tc50-fluidhtml-wants-to-rewrite-the-web-with-flash-like-html/"&gt;this company&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;now i will admit. i've missed the boat with frameworks and their popularity. i'm a roll your own javascripter. mainly because i started doing it back in 1999 when your choice of editors was pretty much frontpage or notepad. mainly because i did it in the hard days when browers had little incentive to adhere to standards. so i remember the days when it was hard. now it is easy. and, i've trained myself to effectivley debug using charles, firebug and everyone's favorite, the alert. it's become second nature. so i'm not looking for a way to make javascript eaiser. 10 years later, it is easy. &lt;br /&gt;&lt;br /&gt;so, i was a late and begrudging adopter of frameworks like jquery or even yui. talk about not eating my own dogfood. they are great tools, and very useful, but like i said, i like to nerd out and roll my own javascript. &lt;br /&gt;&lt;br /&gt;so anyhoo...back to this company. they are aiming to take a hit out on flash. one small problem. for every flash hater, there are two flash lovers. that love it with an intense burning passion and remember the glory days of 2001 when it snatched the web back from hard core nerds and gave an entry point into coding to visually minded folks who had no interest in writing applets. no one missed the grey boxes did they? &lt;br /&gt;&lt;br /&gt;so anyhow, while frameworks and things to make html and javascript easier are interesting, flash killers are not. it can't be killed. it won't be killed. it's too useful. try creating curved animation in javascript. it's totally possible. but ffs, why do it? or runtime graphic effects. until the browsers integrate this functionality, flash will continue to enjoy it's run as queen of web animation. &lt;br /&gt;&lt;br /&gt;so next time, i'll discuss what i see as potential competition for flash. standards based video widgets. and why i think firefox 3.5 and silverlight will get it wrong as long as they don't play nicely together.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-5552786059541054540?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/5552786059541054540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=5552786059541054540&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/5552786059541054540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/5552786059541054540'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2009/09/another-flash-killer.html' title='another flash killer?'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-3540804091985171098</id><published>2009-07-02T20:06:00.000-07:00</published><updated>2009-07-02T20:16:42.609-07:00</updated><title type='text'>RSS Blogroll - AS2</title><content type='html'>It's been a long time...but i've got more for you... &lt;br /&gt;&lt;br /&gt;This is done in AS2. It's a modified RSS Reader. What it does is, it pulls in the latest story from multiple feeds (as many as you like), and then cycles through them. You can see an example of this on my personal blog at &lt;a href="http://www.aliseya.com"&gt;www.aliseya.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://flash.aliseya.com/download.php?id=19827167"&gt;download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-3540804091985171098?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/3540804091985171098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=3540804091985171098&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/3540804091985171098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/3540804091985171098'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2009/07/rss-blogroll-as2.html' title='RSS Blogroll - AS2'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-7587322355902721528</id><published>2008-10-22T18:22:00.001-07:00</published><updated>2008-10-22T18:33:20.678-07:00</updated><title type='text'>MP3 Player - AS3 Version</title><content type='html'>Okay, I've updated the MP3 player. it's in AS3 now. &lt;br /&gt;&lt;br /&gt;the functionality is pretty much the same, although I did change how the EQ bars work. &lt;br /&gt;&lt;br /&gt;As before, I haven't included any sample MP3 files, so &lt;span style="font-weight:bold;"&gt;you'll have to put some in a "tracks" directory and update the XML file with the path to your songs&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://flash.aliseya.com/uploaded_images/Picture-9-745080.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 78px;" src="http://flash.aliseya.com/uploaded_images/Picture-9-745074.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://flash.aliseya.com/download.php?id=19827166"&gt;Download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-7587322355902721528?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='related' href='http://flash.aliseya.com/download.php?id=19827166' title='MP3 Player - AS3 Version'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/7587322355902721528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=7587322355902721528&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/7587322355902721528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/7587322355902721528'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2008/10/mp3-player-as3-version.html' title='MP3 Player - AS3 Version'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-347828117161647368</id><published>2008-10-21T17:36:00.000-07:00</published><updated>2009-07-02T20:22:07.354-07:00</updated><title type='text'>RSS Reader - AS3</title><content type='html'>Here's an RSS reader that displays the first item in the feed. &lt;br /&gt;&lt;br /&gt;You can extend it show more items. All of the text is written out in action script, so you can change the size of the textFields as well as the colors used. &lt;br /&gt;&lt;br /&gt;&lt;del&gt;You can see it in action on the homepage of my blog&lt;/del&gt; &lt;a href="http://flash.aliseya.com/2009/07/rss-blogroll-as2.html"&gt;A modified AS2 version&lt;/a&gt; is on my blog (&lt;a href="http://www.aliseya.com"&gt;www.aliseya.com&lt;/a&gt;). It's on the lefthand side, underneath "Latest Post on OpenFlashForum.com". It gets the RSS feed from &lt;a href="http://www.openflashforum.com"&gt;OpenFlashForum.com&lt;/a&gt;, but you can replace it with any feed you like. &lt;br /&gt;&lt;br /&gt;&lt;A href="http://flash.aliseya.com/download.php?id=19827165"&gt;Download&lt;/A&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-347828117161647368?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='related' href='http://flash.aliseya.com/download.php?id=19827165' title='RSS Reader - AS3'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/347828117161647368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=347828117161647368&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/347828117161647368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/347828117161647368'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2008/10/rss-reader-as3.html' title='RSS Reader - AS3'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-7910902117678556909</id><published>2008-10-14T17:44:00.000-07:00</published><updated>2008-10-14T18:16:14.499-07:00</updated><title type='text'>Slider Puzzle</title><content type='html'>New Source has finally been added. &lt;br /&gt;&lt;br /&gt;Okay, it's been a while since I put up some new code but here's a slider game, that demonstrates how to copy an image at runtime (that's how the individual pieces are made), using Bitmap.draw() and Matrix.translate() &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://flash.aliseya.com/uploaded_images/Picture-5-747690.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://flash.aliseya.com/uploaded_images/Picture-5-747373.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So while the game is not really that interesting, once you're aware of using Bitmap.draw() to copy sections of the screen, you can use this knowledge to manipulate your images in other ways... &lt;br /&gt;&lt;br /&gt;Also, you can swap out the image with your own, or if you're familiar with file uploads, you can build an application to take user supplied files. &lt;br /&gt;&lt;br /&gt;At some point, I'll put up and AS3 version...but no promises about when &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;A href="http://flash.aliseya.com/download.php?id=198743"&gt;Download&lt;/A&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-7910902117678556909?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/7910902117678556909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=7910902117678556909&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/7910902117678556909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/7910902117678556909'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2008/10/slider-puzzle.html' title='Slider Puzzle'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-8524732373240952772</id><published>2007-11-08T16:39:00.001-08:00</published><updated>2007-11-08T22:21:35.430-08:00</updated><title type='text'>Tutorial: Loading and Resizing images</title><content type='html'>Knowing how to dynamically load, resize and position images in Flash is the key to making a good flash slide show. I'll show you how to do it here. For free even. &lt;br /&gt;&lt;br /&gt;For this tutorial, I'm not going to cover how to get the URL to the image into flash. I'll put it in a variable to keep things simple. If you want to see how to load URLs to multiple images from an XML file, check out the source for my Flash Photo Album &lt;a href="http://flash.aliseya.com/2007/10/photo-album-1.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1 - Load the images &lt;/span&gt; &lt;br /&gt;First let's create a MovieClip to hold the image, and then load the image into it. We're going to use a MovieClipLoader for this so that we can add a listener later. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;//create the MovieClipLoader &lt;br /&gt;var mcLoader:MovieClipLoader = new MovieClipLoader();&lt;br /&gt;&lt;br /&gt;//create the MovieClip to hold the image&lt;br /&gt;var photoHolder:MovieClip = _root.createEmptyMovieClip("photoHolder", 1); &lt;br /&gt;&lt;br /&gt;//load the image&lt;br /&gt;var nextPhoto:String = "Photos/photo1.jpg";&lt;br /&gt;mcLoader.loadClip(nextPhoto, photoHolder); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Step 2 - Add a listener object to the MovieClipLoader&lt;/span&gt;&lt;br /&gt;Next, we're going to add a listener object to the MovieClipLoader, so that we can be notified when the image has loaded. In this case, we are going to listen for the onLoadInit event. &lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;//create the listener object&lt;br /&gt;var loadListener:Object = new Object();&lt;br /&gt;&lt;br /&gt;//create a function that will be called when the onLoadInit event is fired &lt;br /&gt;loadListener.onLoadInit = function(mc:MovieClip){&lt;br /&gt;     //resize code will go here&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//add the listener to the MovieClipLoader&lt;br /&gt;var mcLoader:MovieClipLoader = new MovieClipLoader();&lt;br /&gt;mcLoader.addListener(loadListener); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3 - Resize and Center the image &lt;/span&gt;&lt;br /&gt;Now lets add the code to resize and center the image. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;//make the image half the width of the Stage&lt;br /&gt;mc._width = Stage.width/2; &lt;br /&gt;//keep the proportions the same&lt;br /&gt;mc._yscale = mc._xscale; &lt;br /&gt;&lt;br /&gt;//center the image &lt;br /&gt;mc._x = (Stage.width/2) - (mc._width/2);&lt;br /&gt;mc._y = (Stage.height/2) - (mc._height/2); &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Step 4 - Putting it all together. &lt;/span&gt;&lt;br /&gt;Now that we've gone through all of the steps, here is what all of the code looks like together. As an extension, you may want to add a Tween so that the image fades in, or resizes slowly, or slides in from the side!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;var loadListener:Object = new Object(); &lt;br /&gt;loadListener.onLoadInit = function(mc:MovieClip){&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; mc._width = Stage.width/2; &lt;br /&gt; mc._yscale = mc._xscale; &lt;br /&gt; &lt;br /&gt; mc._x = (Stage.width/2) - (mc._width/2);&lt;br /&gt; mc._y = (Stage.height/2) - (mc._height/2); &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;var mcLoader:MovieClipLoader = new MovieClipLoader();&lt;br /&gt;mcLoader.addListener(loadListener); &lt;br /&gt;&lt;br /&gt;var nextPhoto:String = "Photos/photo1.jpg";&lt;br /&gt;var photoHolder:MovieClip = _root.createEmptyMovieClip("photoHolder", 1); &lt;br /&gt;mcLoader.loadClip(nextPhoto, photoHolder); &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-8524732373240952772?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/8524732373240952772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=8524732373240952772&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/8524732373240952772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/8524732373240952772'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2007/11/tutorial-loading-and-resizing-images.html' title='Tutorial: Loading and Resizing images'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-5816811842579043442</id><published>2007-11-01T14:09:00.000-07:00</published><updated>2008-10-19T13:06:22.447-07:00</updated><title type='text'>Great Flash Developer Forums</title><content type='html'>Here's a short list of flash developer forums that I like. It's by no means a comprehensive list, so if you have others that you like, add a link to it in the comments! &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.openflashforum.com"&gt;www.OpenFlashForum.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kirupa.com"&gt;www.kirupa.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.actionscript.org"&gt;www.actionscript.org&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.flashmove.com"&gt;www.flashmove.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-5816811842579043442?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/5816811842579043442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=5816811842579043442&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/5816811842579043442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/5816811842579043442'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2007/11/great-flash-developer-forums.html' title='Great Flash Developer Forums'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-9085157695039615382</id><published>2007-10-31T16:54:00.000-07:00</published><updated>2007-11-01T14:13:49.088-07:00</updated><title type='text'>Photo Album 1</title><content type='html'>&lt;a href="http://flash.aliseya.com/uploaded_images/PhotoAlbum1-712948.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://flash.aliseya.com/uploaded_images/PhotoAlbum1-712942.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This photo viewer is like a slide show. You can change out the background image to be whatever you want. You can also add a mask so that only part of the photo is displayed. &lt;br /&gt;&lt;br /&gt;If you've got some basic actionscripting skills you can resize the images or change the transition effects. I'll post a variation on this in a few days that will let you select the photo that you want to view in addition to watching the automatic slide show.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;**note** Photos are not included with the download, so you have to add some of your own to the Photos directory and update the xml file &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flash.aliseya.com/download.php?id=19827164"&gt;Download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-9085157695039615382?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='related' href='http://www.flash.aliseya.com/download.php?id=19827164' title='Photo Album 1'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/9085157695039615382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=9085157695039615382&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/9085157695039615382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/9085157695039615382'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2007/10/photo-album-1.html' title='Photo Album 1'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7017297504410570290.post-6848364044935821516</id><published>2007-10-29T21:02:00.000-07:00</published><updated>2008-07-02T14:06:00.203-07:00</updated><title type='text'>Flash MP3 Player</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://flash.aliseya.com/uploaded_images/MP3Player-773707.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://flash.aliseya.com/uploaded_images/MP3Player-773704.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This component is skinnable, so that you can modify it to match your site. Just edit the existing buttons, or create your own.&lt;br /&gt;&lt;br /&gt;The playlist is XML driven, so you can easily update the songs. Or if you're an advanced user, you can have the playlist created dynamically by a server side script. &lt;br /&gt;&lt;br /&gt;This MP3 player can be used on it's own, or loaded into an existing flash movie. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;**note** MP3 files are not included with the download, so you have to add some of your own to the tracks directory and update the xml file &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;enjoy!&lt;br /&gt;&lt;br /&gt;&lt;A href="http://flash.aliseya.com/download.php?id=12329362"&gt;Download&lt;/A&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7017297504410570290-6848364044935821516?l=flash.aliseya.com%2Findex.php'/&gt;&lt;/div&gt;</content><link rel='related' href='http://flash.aliseya.com/download.php?id=12329362' title='Flash MP3 Player'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/6848364044935821516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7017297504410570290&amp;postID=6848364044935821516&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/6848364044935821516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7017297504410570290/posts/default/6848364044935821516'/><link rel='alternate' type='text/html' href='http://flash.aliseya.com/2007/10/flash-mp3-player.html' title='Flash MP3 Player'/><author><name>techdiva</name><uri>http://www.blogger.com/profile/13725401239421024296</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05198534780550421518'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry></feed>