<?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>Nobien &#187; ActionScript 2</title>
	<atom:link href="http://blog.nobien.net/category/actionscript_2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nobien.net</link>
	<description>A nerd blog about nerdy things by ... nerdy guys?</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:27:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SWFAddress 2.1 &amp; SWFObject 2 Work Together.</title>
		<link>http://blog.nobien.net/2008/04/26/swfaddress-21-swfobject-2-work-together/</link>
		<comments>http://blog.nobien.net/2008/04/26/swfaddress-21-swfobject-2-work-together/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 12:24:48 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.nobien.net/?p=56</guid>
		<description><![CDATA[I spent a good hour yesterday trying to get SWFAddress 2.1 and SWFObject 2 to work together. First off, they do work together. Second, there's nothing to it. Then why did it take me an hour? Because I'm a dummy and I had the order in which each JavaScript set was called. In hindsight, this [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a good hour yesterday trying to get <a href="http://www.asual.com/swfaddress/">SWFAddress 2.1</a> and <a href="http://code.google.com/p/swfobject/">SWFObject 2</a> to work together. First off, they do work together. Second, there's nothing to it. Then why did it take me an hour? Because I'm a dummy and I had the order in which each JavaScript set was called. In hindsight, this is common sense, but the golden ticket here is calling SWFAddress javascript BEFORE declaring the SWFObject. This more applies to people using the dynamic way of embedding the SWFObject. ie:</p>
<pre>&nbsp;
&lt;head&gt;
    &lt;title&gt;SWFObject v2.0 - step 3&lt;/title&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/swfobject.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/swfaddress.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
                swfobject.embedSWF('website.swf', 'website', '100%', '100%', '9.0.45', 
                'swfobject/expressinstall.swf', {}, {bgcolor: '#CCCCCC', menu: 'false'}, {id: 'website'});
    &lt;/script&gt;
&lt;/head&gt;
&nbsp;</pre>
<p>Silly right? I saw a couple of posts out there of people having a hard time getting this going. Once I flipped the JS declaration, it worked. And I felt kinda dumb. But hey ... That's life. </p>
<p>BTW: both SWFAddress and SWFObject 2 are pretty amazing and should be worked into your site/app flow if they aren't already.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobien.net/2008/04/26/swfaddress-21-swfobject-2-work-together/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>AVM1 Content in AS3?</title>
		<link>http://blog.nobien.net/2007/10/04/avm1-content-in-as3/</link>
		<comments>http://blog.nobien.net/2007/10/04/avm1-content-in-as3/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 12:46:37 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[ActionScript 3]]></category>

		<guid isPermaLink="false">http://blog.nobien.net/2007/10/04/avm1-content-in-as3/</guid>
		<description><![CDATA[So this is a pseudo rant/question for the masses. I've been trying to load up some legacy content in CS3/AS3. I've read all of the liveDocs on this subject and have figured out that you ... A. AVM1 content is contained in a AVM1Movie class which you cannot extend B. AVM1 content can only communicate [...]]]></description>
			<content:encoded><![CDATA[<p>So this is a pseudo rant/question for the masses.  </p>
<p>I've been trying to load up some legacy content in CS3/AS3.<br />
I've read all of the liveDocs on this subject and have figured out that you ...<br />
   A. AVM1 content is contained in a AVM1Movie class which you cannot extend<br />
   B. AVM1 content can only communicate over LocalConnection<br />
   C. AVM1 content cannot user loadMovie to load in additional SWFs.  </p>
<p>So what we're talking about here is that AVM1 content is really only good for animating crap when someone in your office only has Flash 8.  Here's why .. You <em>could</em> use LocalConnection to do some cross-scripting, but that would require you to have the FLA for the legacy content ... and this isn't always possible.  At this point, should you have the FLA, the LocalConnection hack is like using the ExternalInterface class to communicate with JavaScript.  It's not bad, but not ideal for cross-scripting between Flash content. </p>
<p>If you have access to the original FLA, why not just make it a CS3 doc.  I know, I know, you don't want to recode everything .. but apparently you can't use LoadMovie, and I have all but 1 project in my whole career that didn't LoadMovie for something. Apparently you can use LoadMovieNum .. or something .. but at that point you're recoding ... and why not just set up a Loader() to do the deed.  </p>
<p>Why the rant?  Well ... I'm trying to load legacy content into a Flash 9 swf.  However, I do not have access to the original FLAs.  No big deal.  I can load them in and play with them .. etc .. which is about as useful as loading in an animated GIF.  The problem is, each SWF is expecting a variable on _root that would typically be assigned through the HTML EMBED tag or swfObject.  Now if SWFs can get variables from the parent that embedded them, why can't legacy content receive data through the parent (Flash 9) SWF that loaded it?</p>
<p>I know it breaks the whole coding standards of AS3, but would it be too much to be able to assign dynamic variables to that magical AVM1Movie wrapper?  or something?   or do I have no idea what I'm talking about?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobien.net/2007/10/04/avm1-content-in-as3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>AS2/OOP OSX Editors?</title>
		<link>http://blog.nobien.net/2007/08/28/as2oop-osx-editors/</link>
		<comments>http://blog.nobien.net/2007/08/28/as2oop-osx-editors/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 23:34:54 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>

		<guid isPermaLink="false">http://blog.nobien.net/2007/08/28/as2oop-osx-editors/</guid>
		<description><![CDATA[It's been a while since I've written a post on here .. mostly because I just changed jobs. I was at Schematic in Boston before Monday. I'm at Almighty (also in Boston) now. Almighty seems like an awesome fit. Everyone there is pretty cool and they do excellent work. I could go into more detail [...]]]></description>
			<content:encoded><![CDATA[<p>It's been a while since I've written a post on here .. mostly because I just changed jobs.  I was at Schematic in Boston before Monday.  I'm at <a href="http://www.almightyboston.com" target="new">Almighty </a>(also in Boston) now.  Almighty seems like an awesome fit.  Everyone there is pretty cool and they do excellent work.  I <em>could</em> go into more detail about everything like why Almighty is better than Schematic, etc ... but that's for another discussion.</p>
<p>What is really bothering me is the fact that I'm on a Mac now.  No, I don't hate Macs.  I actually love OSX, and when I sold my Mac three years ago, I really missed OSX.  Given that... my gripe is with the Flash community and the lack of a good ActionScript editor.</p>
<p>In the past two days, I've tried TextMate, SE|PY, and FDT for Eclipse.  FDT seems like the best answer for what I'm looking to do, except I can't get code-hinting to work.  TextMate is better than SE|PY in that it doesn't crash. However, SE|PY has code-hinting.</p>
<p>Now here's where the real issue comes from, I've been developing in FlexBuilder or FlashDevelop for the past year (FlashDevelop even longer).  FlexBuilder is awesome for AS3.  Code and class lookups, etc... and FlashDevelop has many of the same features.  However, Builder doesn't like AS2 (am I wrong?) and FlashDevelop runs on .NET so kiss that idea good-bye.  </p>
<p>Does anyone know of any good editors for OSX that are perfect for ActionScript 2/OOP editing, or should I keep trying to get FDT to work?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobien.net/2007/08/28/as2oop-osx-editors/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>FlashForward &amp; Books</title>
		<link>http://blog.nobien.net/2007/06/13/flashforward-books/</link>
		<comments>http://blog.nobien.net/2007/06/13/flashforward-books/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 15:21:24 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.nobien.net/2007/06/13/flashforward-books/</guid>
		<description><![CDATA[We've been wickedly busy over the past couple of months. Outside of rocking our day jobs ( at Schematic &#038; Rokkan ), we've been co-authoring a book on Adobe AIR with Todd Anderson ( of Schematic ). On top of this, we're presenting at FlashForward, Boston in September. Our presentation is entitled, "Designers vs. Developers: [...]]]></description>
			<content:encoded><![CDATA[<p>We've been wickedly busy over the past couple of months.  Outside of rocking our day jobs ( at Schematic & Rokkan ), we've been co-authoring a book on Adobe AIR with <a href="http://www.custardbelly.com/blog/">Todd Anderson</a> ( of Schematic ).</p>
<p>On top of this, we're presenting at <a href="http://www.flashforwardconference.com/">FlashForward</a>, Boston in September.  Our presentation is entitled, "Designers vs. Developers: How to Avoid Fights on the Playground."  As the name implies, it's going to be focusing on how Designers and Developers can work together better by understanding some helpful tips and tricks of each of the disciplines.  Matt & I are originally from a design education, but as it turns out, we've both weaseled our ways into programming/development roles in our respective companies.  As such, we constantly rack our brains on how the two different sides of the office can work together better, or how designers could learn the basics of programming easier.  </p>
<p>We'll hopefully talk more about these things in the upcoming months, as we get closer to launch dates. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobien.net/2007/06/13/flashforward-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crummy Freelancers, Coding Guidelines and Actionscript Libraries</title>
		<link>http://blog.nobien.net/2007/03/08/crummy-freelancers-coding-guidelines-and-actionscript-libraries/</link>
		<comments>http://blog.nobien.net/2007/03/08/crummy-freelancers-coding-guidelines-and-actionscript-libraries/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 15:52:31 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.nobien.net/2007/03/08/crummy-freelancers-coding-guidelines-and-actionscript-libraries/</guid>
		<description><![CDATA[As of late I've been thinking about just how important it may be to have some structure for fellow Flash Developers at Rokkan. Naturally, this means two things: 1) A coding standards/guidelines document, and 2) some sort of "company" Actionscript library to pull from to support the guidelines and techniques. I really like the idea [...]]]></description>
			<content:encoded><![CDATA[<p>As of late I've been thinking about just how important it may be to have some structure for fellow Flash Developers at Rokkan. Naturally, this means two things: 1) A coding standards/guidelines document, and 2) some sort of  "company" Actionscript library to pull from to support the guidelines and techniques. I really like the idea of these two things, especially after a little incident that happened recently when we hired a freelance Flash guy to help out during a busy spell.</p>
<p><span id="more-14"></span></p>
<p>Unfortunately I had no part in hiring the guy so I couldn't give him a quick quiz or anything like that. But while he was working with us he took care of a few small things that we're pretty much just busy work. I didn't work with him directly, but I had once overheard him say to a designer that he felt like he was behind in his skills and wanted to "redo" the code he had written for a small project. I thought that was a good thing. But to my dismay, when I had to make a change to the work he did when he was not available,  I had one hell of a time trying to figure out the approach, let alone all the code. I didn't think people still put code on movieclip instances! So what should have been a simple promo manager was turned into a complete and utter mess of illogical variable names, horrible encapsulation and bizarre XML techniques. It took me over three hours to make a change that should have taken 20 minutes. This is what sparked my concern.</p>
<p>Its probably like this with most other types of projects and other programming languages, but I almost feel like Flash projects need <em>extra </em>attention in order for multiple people to be involved and have everyone understand just exactly whats going on, where to find code, where to put code, where to save assets, etc. So far it seems that every shop, every freelancer, has there own way of doing the same things. Thats the beauty of Flash, right? Yeah, I guess so. Is it bad that I'm finding it annoying when you can't look at someone elses code and immediately  understand it? I often find myself going through someones source code and restyling it, and sometimes changing routines to my liking.</p>
<p>At any rate, over the past week or so I've been writing a guidelines document to try and prevent things like this from happening again.  At first the idea was a bit daunting, but luckily a developer at dClick <a href="http://blog.dclick.com.br/2007/02/13/adobe_flex_coding_guidelines_english/" target="_blank">posted his guidelines doc</a> on the company blog. This was specifically for MXML and AS3, so I just used the AS3 section as reference for my AS2 guidelines. I also added a bunch of other stuff, like our preferred project folder structure and library folder structure. Forcing myself to create this document was a good exercise is self evaluation too. I started to realize just how lazy I can get sometimes with my code, especially with techniques (I'm pretty anal about my style). So while it was one really tedious project, I'm actually <em>very</em> happy that I forced myself to do it.</p>
<p>Now that I'm happy with the state of the guidelines doc, I've started to move on to working on compiling an AS library that supports the techniques and what not. The first thing that came to mind was an events package. After getting into AS3, I discovered the advantages of event types. I'll never go back to generic event objects. The second thing that came to mind was a utils package. I started organizing a bunch of utility classes that we had created over the course of a few projects into one package. These included StringUtil, ArrayUtil, Timer, LoadQueue, HTMLFormat and DateUtil. I hope to keep adding to this package. The third thing, which I'm moving onto now, is a UI package. This is a bit more complicated, as a lot of UI controls that we created were somewhat custom, and often do not include a substantial amount of flexibility for use in a different context. This will definitely take some time, but I'm up for it!</p>
<p>I'm pretty stoked on the idea of having all this available for contractors, freelancers, and other employees. Although, at times I almost think its total overkill. I'd like to hear some opinions about this type of stuff. In all your experiences, is a guidelines document necessary? Is it good to force people to use a standard code library for things like utils, events, etc? Am I overreacting? Do I need to take things further?</p>
<p>Also, if you'd like to download and critique my guidelines: <a href="http://www.nobien.net/blog/wp-content/uploads/2007/03/rokkanactionscript2codingguidelines.pdf" title="Rokkan Flash and Actionscript Coding Guidelines">.PDF</a> or <a href="http://www.nobien.net/blog/wp-content/uploads/2007/03/rokkanactionscript2codingguidelines.doc" title="Rokkan Flash and Actionscript Coding Guidelines">.DOC</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobien.net/2007/03/08/crummy-freelancers-coding-guidelines-and-actionscript-libraries/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
