Blog

  • FAME Chronicles #1: Long Classpaths & Local Var Declarations

    Was testing out MTASC yesterday morning to see how fast it would compile our project at work, which has about 98 classes. It takes roughly 30 to 46 seconds to compile the main FLA in Flash. After 20 minutes of code modifications, I managed to get just warnings (but it’ll still compile).

    It takes under 2 seconds.

    The warnings kind of suck because basically, some of my classes had to have their symbolName properties be the same to work. Why? It sounds to me, after talking to Darron about it, like Flash’s internal Object.registerClass doesn’t like long names. One warning, however, I couldn’t get rid of; this was because the classpath was longer than 64 characters, and Flash doesn’t allow you to have linkageID’s longer than that. So, for the time being, unless I can find out why MTASC can’t inject the class into the existing SWF correctly, I’ll just have to refactor it to get it to compile without warnings.

    The 20 minutes of code changes were local variable definition changes. Basically, this is the ONLY THING I have found different to coding for MTASC vs. for Flash. It doesn’t like inner defined local variables (like in nested loops and if then statements), nor does it like the same variable name typed twice in the same function. Naturally, I thought this was bs, but before communicating such, I asked a co-worker who was more experienced, and asked what he thought. After explaning on how other languages don’t allow you to do both of those things, and why it is ambiguous, and leads to errors where a function is dependent on a variable to be set (which is really bad for Flash since currently, it won’t throw exceptions for such things), so I understand why it’s bad to code that way, and it makes sense. Thus, I believe it’s a good thing why MTASC doesn’t support this bad practice, and I have no problems adjusting my coding style for it.

    Still, though, I wish we could get more official reports on the integrity of SWF’s MTASC generates. I am not sure what I mean by official, but I guess like real-world projects that have been deployed to big clients, thus giving me faith in the quality of SWF that MTASC can produce on it’s own vs. SWF’s created in Flash that it just injects classes into.

  • GameTap: Broadband Games On Demand

    The press release for GameTap from Turner makes it sound like GameSpy, except you can actually download games and play them vs. just having GameSpy facilitate collaboration. XBox Live does this pretty well for a v1. Sounds like old titles are included; I’m hoping some of the old skool classics from SNES make it. I know I’d pay to play Final Fantasy 3 again legally.

    Another quote from AJC (username: cow | email: cow@mailinator.com | password: cowcow):

    Turner Broadcasting enters the video game industry today, announcing a new broadband Web site called GameTap that gives users access to hundreds of titles – from classic gobbler Pac-Man to the frenetic skateboarder Tony Hawk.

    More info @ Kenny’s site.

    Via Kenny B.

  • Google Wants You to Blog During the Weekdays

    Google ads pay squat over the weekends. I’ve noticed spikes in my earnings when I post entries either regulary, or when I post an entry that has a higher than normal click-through during the weekdays.

    I had 2 such entries over the weekend… but Google paid me squat. This isn’t the first time this has happened, but this is the first time a seriously clicked through set of entries did not contribute to earnings.

    I take that to indirectly mean Google advertisers don’t pay Google much for weekend ads, and thus Google only wants to you blog during the week.

    I don’t need Google ad revenue to run my site, but I can’t help but be influenced since it pays not only for my hosting costs, but my other 2 hosting costs beyond this site (dev site for hosting files, and Flashcom hosting).

    I’m kind of irritated by this too; I feel like I’m being bullied by a big company, having them influence my blogging behavior. Because the service is opt-in, free, and all I have to do is what I’ve been doing, blogging, many may argue I shouldn’t complain.

    However, wanting to maximize my earnings is a good thing, and I guess I don’t understand why blogging on the weekend doesn’t contribute to that.

    Weird. What if I don’t want to blog during the weekdays? Does that lessen the value of my entries because they are on the weekend? No! In fact, I’d argue that is the slowest blogging time, and I want to give people something interesting to check out if they are bored on the weekend; I should be rewarded for that if a reward structure is already in place.

    Not sure why this irritates me so, but it does.

  • Image Slideshow Using FAME

    Her majesty suggested I put my money where my mouth is, and show an example created using the technologies talked about in my previous post. Therefore, I created a dynamic image slideshow using FAME (Flashout + ActionScript Development Tool + MTASC + Eclipse). I did not use the Flash IDE in any way; I coded and tested all within Eclipse.

    Click Here

    FAME Slideshow Source – ZIP

    This is awesome!

    However, one thing is abundantly clear; even with the ability to utilize Flash MX 2004 components… we need an open source component architecture.