<?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>Flassari.is &#187; swf</title>
	<atom:link href="http://flassari.is/tag/swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://flassari.is</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 08:17:03 +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>Preloader without a loader-swf in AS3</title>
		<link>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/</link>
		<comments>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 16:08:26 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[factory]]></category>
		<category><![CDATA[factoryclass]]></category>
		<category><![CDATA[flex sdk]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[loader-swf]]></category>
		<category><![CDATA[preloader]]></category>
		<category><![CDATA[single swf]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=359</guid>
		<description><![CDATA[Here&#8217;s one method of loading your AS3 movie, using a preloader class that loads before all other classes. The flex compiler can actually split up the code for you so one class loads before all others. Even though we&#8217;re using the flex compiler to do this we do not have to have a Flex project, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one method of loading your AS3 movie, using a preloader class that loads before all other classes.</p>
<p>The flex compiler can actually split up the code for you so one class loads before all others. Even though we&#8217;re using the flex compiler to do this we do not have to have a Flex project, it can be a Flash project or a pure actionscript project. If we&#8217;re using a Flash project we do have to set the flex compiler path though.</p>
<p>Anyways, the way it works is that in your main class you add the Frame metadata, like this:</p>
<pre class="brush:as3">package com.flassari {
// Preloader meta tag
[Frame(factoryClass="com.flassari.Preloader")]
// Start of our own application code
[SWF(backgroundColor="#FFFFFF", frameRate="24", width="800", height="600", pageTitle="My preloaded project")]
public class Main extends Sprite
{</pre>
<p>The preloader has to extend movieClip, because behind the scenes it is using frames for its magic.<br />
In your preloader class, when it is done loading (by checking if it is at the last frame), your have to instantiate the main class with no strict typing. If you were to use strict typing, the whole application would have to load before the preloader can be shown so that would defeat the purpose of a preloader:</p>
<pre class="brush:as3">private function onEnterFrame(e:Event):void {
	if (currentFrame == totalFrames) { // If we're at the frame where Main is ready
		// Stop and clean up
		stop();
		removeEventListener(Event.ENTER_FRAME, onEnterFrame);
		// Create the main application and add it to the display list
		var mainClass:Class = getDefinitionByName("com.flassari.Main") as Class;
		addChild(new mainClass() as DisplayObject);
	}
}</pre>
<p>Just remember, everything that the preloader references will be loaded before the preloader can be shown, so keep it to a minimum.<br />
Also, because the main class is created before it is put on the stage, be sure not to reference the stage in the constructor.</p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash focus border in Firefox</title>
		<link>http://flassari.is/2010/03/flash-focus-border-in-firefox/</link>
		<comments>http://flassari.is/2010/03/flash-focus-border-in-firefox/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:44:23 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[1 pixel]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[dotted]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[flashcomguru]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=280</guid>
		<description><![CDATA[I've noticed recently that Firefox has started showing a 1px dotted border around flash objects when I click on them. It didn't bother me enough to look for a solution, but today the solution found me [...] ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed recently that Firefox has started showing a 1px dotted border around flash objects when I click on them. It didn&#8217;t bother me enough to look for a solution, but today the solution found me.<br />
In my rss reader a <a href="http://www.flashcomguru.com/index.cfm/2010/3/22/prevent-swf-border-firefox">blog post</a> from <a href="http://www.flashcomguru.com">FlashComGuru</a> pops up, showing how to get rid of this annoyance, pasted here for your convenience:</p>
<p><i>Simply add this to your page&#8217;s stylesheet:</i></p>
<pre class="brush: html">
a:focus, object:focus { outline: none; -moz-outline-style: none; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/03/flash-focus-border-in-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

