AS2 Video NetConnection stays paused from within a Class

I hate these little gotchyas...

Haven't done AS2 in a while, and have been trying to get a Video object streaming an FLV. The following code worked from the timeline:

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
_stream_ns = new NetStream(connection_nc);
_owner.videoContainer.attachVideo(_stream_ns);
stream_ns.play("temp.flv");

But when put into a class, the video stayed paused.

Turns out if I move the _stream_ns.play("temp.flv"); line to it's own function within the class, and call it separately, it works fine. Having it in the same function I guess was just too fast for AS2.

So annoying. Let me know if anyone has found another reason/solution.Read more


Finished filming Mantracker episode

Non-Flash related post today. Just got back from filming my Mantracker episode. Not allowed to say much about it until it airs on OLN (In Canada) next year sometime. But rest assured, it's going to be a great episode!

Mantracker Crew


FDT Preferences Backup

I'm a backup freak. And it pleases me to announce that I finally found where the FDT preferences and custom templates are stored so I can back them up in case of disaster.

The first time I set up FDT, I spent a few hours making custom templates, and setting things up the way I wanted - Only to have it all disappear a few days later for some unknown reason.

Then it happened again last night.

But I found a commonality. I had deleted the default Workspace folder which I thought was empty. Turns out there are a bunch of invisible files in there which I found with OnyX.

I pulled the folder back using Time Machine, and my templates magically restored.

Wish it was a bit more obvious to find.


FDT Tip

Just switched over to FDT from FlashDevelop because I was sick of using Windows on my Mac. So far I'm preferring FlashDevelop, but as I get around the little differences, FDT is slowly winning me over.

One thing that was annoying me was it wouldn't auto-fill my local variable names without typing "this." first. But a post I found Flash Mech gave a great tip to set up FDT's Code Assist to act more like I am used to in FlashDevelop.

Essentially, change your Auto activation triggers for AS in your Code Assist Preferences to:

abcdefghijklmnopqrstuvwxyz_$.:

This covers you for:
_ : property names
. : after every dot notation
: : data typing

I have also added in $ because I like to name my method scoped variables starting with a dollar sign.


LocalConnection bug with Flash Player 10.0.32.18

So it turns out after cursing the Ad Server for an hour, I figured out that the cause of my LocalConnection issues was in fact the recently downloaded security release of the Flash Player. No idea why yet - possible new security requirement. But it does seem to be the source of the problem.

Just FYI in case any others out there were having the same issue.


Nemesis

Well, I met my arch nemesis in person finally last night...

This guy has been a Freelance Flash Developer in Toronto for about the same amount of time as me (but a bit longer), travels as much as I do (but a bit more), works for the same agencies that I do (but for more money) ...

I hear his name all the time at meetings with PM's, I hear about how similar him and I are both in skill and personality, I hear how he and I go back and forth between who gets the better jobs...

Now that I have a face to the name I always hear, time for me to step up my game.

Must defeat evil at all costs!


Ad Servers are the thorns in my bits n' pieces

Have I ever told you about how much I really hate Ad Servers? Each on claiming to have the most perfect, most simple, and of course, propriety system of doing rich media banners. And each time a new one comes along, it's yet another way of uploading, approving, and setting up. And each time, it's learning new ways to code expandables, syncing videos, setting Shared Objects, and setting clickTags.

And it's always far from perfect. Either they don't support AS3, or you cannot preview locally and their upload system always crashes, or you cannot open more then one file at once (or worse, you have to open ALL files at once), or Safari doesn't show TLAs, or the they don't have their code set up in classes, or they never answer your emails when you come up with a question that they can't answer.

Do I blame Adobe for not having a system to make all this work in one way? Or do I continue to blame crappy Ad Servers for having such large egos?

End of rant.


Lucky Charms - Keep Me Mini gone live!

My final project with Fjord has finally gone live after a 3 month development cycle.

Lucky Charms - Keep Me Mini

Seemed like a simple concept at first, but ended up taking some creative code with bitmap data objects in order to get things moving at a decent speed. One bitmap, continuously re-drawn, was used for displaying all the items in the cave, and the other (kept invisible) was used for hit testing when the cave slice got to a certain scale.

Check it out >


Back to fulltime freelancing!

Well, after a year and a half in the political mess that is full-time Agency work, I'm finally back at my roots freelance Flash development. It's exciting to be able to work whenever I want again, but I'm finding it more difficult then I remember to motivate myself. Lets hope that it's like riding a bike...


Came across one hell of a Flash app today.

Wish I had the time to develop something like this. But alas, I have work to do...

Sumo Paint