Flash Gaming Summit 2011
I will be heading out the flash gaming summit in San Francisco this upcoming February. It looks to be like a fun day of talking shop and get some inspiration for the new year. Let me know if you’ll be up there for the summit. I usually like to take a couple days on either side to enjoy the location a bit more, but since this is just one day I may just go up and back same day.
SourceMate Makes Flash Builder Awesome
I recently discovered a plugin for Flash Builder called Source Mate. I used the 30 day trial and had no issue paying the 80 bucks for the full license. In my opinion Adobe just needs to buy these guys and include their extension with every copy of Flash Builder. They add many things that have been desired by the flash development community like snippets, code generation, and more. I also just got an email from them that they are working on version 2 and they have a really nice set of features they are trying to prioritize.
Speaking at FITC (MAX Unconference)
I was recently confirmed as a speaker for the upcoming unconference at Adobe MAX in Los Angeles. I haven’t been to max since it was in Anaheim and I look forward to going again. It’s always fun to be part of FITC no matter where they are doing their thing. I am doing a session on integrating Facebook with flash. I’ll specifically be covering how to interact with the graph api and handing off some code I use to streamline that process. Look forward to seeing you guys there.
Graph API: issues posting to feed
I have been using the graph api instead of the old REST api when integrating with facebook lately. There have been a couple issues here and there, but for the most part it has been a breeze and an amazing increase in speed. No longer having to make complicated requests and things that is a real blessing. The guys over at big space ship made it even easier by writing a slick oauth bridge that has been really easy to integrate in the websites I have done.
One issue that I ran into lately was I couldn’t get posting to the feed working. I have posted a million things to a users feed before and couldn’t figure out why I kept hitting this roadblock. It only happened when I tried to set the link parameter, and there was nothing I could find to get this thing working. Finally i tried using a simple javascript example provided by facebook to see if it had something to do with flash. Low and behold facebook’s example doesn’t work and in javascript they give you a nice warning that explains the problem. The value of the link parameter MUST equal either your website url or the canvas url that are set in your facebook app settings. I didn’t find any documentation on this and there are no results in the json to explain this error. Luckily the JS SDK does give the error or I’d probably still be trying to fix it.
Installing Adobe AIR woes
I just had a hell of a time getting Adobe AIR installed. this little diddy did the trick:
in Terminal:
cd /Users/USER_NAME/Library/Application\ Support/
sudo chown -R USER_NAME:staff Adobe
After that I could install it just fine.
found this here: http://forums.adobe.com/message/2984830#2984830
FITC San Francisco 2010
This week I was able to attend FITC San Francisco. I haven’t been to a conference in a few years and Pucknell and his crew didn’t disappoint at all. The venue was the perfect size to keep all the sessions close by so there wasn’t much walking between sessions. Free lunch every day that was actually pretty decent. There was a great line up of speakers full of inspiration and ideas on how to make coding fun again. I was also able to catch up with some guys I haven’t seen in a few years.
Favorites:
@jaredrawk did an amazing inspirational session on thinking outside of the box. The guy is a mad scientist and you can tell he just really loves what he does. He was exciting on stage and showed off some really cool experiments that he has done with speakers, corn starch, trash cans, smoke machines, flame tables and more.
Rob Bateman (away3d.com) gave a great introduction to Away 3d. I feel kind of bad I hadn’t look into it more sooner. I have done so much with papervision it just seemed like the natural choice every time. The pv3d team seems to be focused on doing more with unity 3d these days and I think Away 3d has kept things going and really raised the bar.
Rober Hodgin (flight404.com) did an inspirational session on what he has been doing with other things like processing and cinder. He creates some pretty amazing things. I’d love to see a guy like him show off a bit more code, but in general it was really cool stuff and inspiring to jump back into the generative art stuff.
Craig Swann gave a great presentation about doing more with flash than just work. He has definitely inspired me to get back into playing with phidgets and do more with flash outside of the standard platforms we use every day.
The parties were awesome, except the music was unbearably loud both nights and it made talking very difficult. Tycho put on a great show, but would have loved to have the volume just a little lower.
There were a number of other great presentations showing off cool stuff like unity 3d, moock’s union platform, multi user tricks, dispelling myths that flash is dead and son. 4 tracks and the Influxis voodoo lounge gave plenty of time for some great sessions at FITC.
There are a couple of things that I thought were a bit of a bummer though. Some sessions don’t match their descriptions very well. Some sessions that sound like they will be tech talks are nothing more than a basic introduction to a topic that everyone is fully aware of. For instance, I didn’t think social media needed to be explained to the group at FITC, seeing more code in that session would have been fun. I also feel like there are quite a few sessions where people just kind of show off what they can do, but not really how to do it. Most of those things shown off are usually already on blogs somewhere and it can be fairly repetitive when just seeing thing at a conference. It would be cool to have something to walk away with more than “wow that guy does cool stuff”.
I am looking forward to making FITC a regular thing every year and I hope they make it back to san francisco.
LA Flash Facebook Demo Source Files
Last week I spoke at LA Flash and did a demo on using the as3 facebook API with flash. You can download the source files here: http://demos.kineticz.s3.amazonaws.com/laflash/laflashfbdemo.zip.
There is a read me file in there. Please review that to help you get your app setup and compile properly. Enjoy!
*UPDATE: Meeting info was updated on the LA Flash website: http://archive.laflash.org/archives/16
Top 5 Favorite Things about Flash CS5
I have been using the Adobe CS5 for development since it was officially released and I have grown very comfortable in it right away. I plan to write more detailed impressions later with more info on some of the new things, but for now my top 5 favorite things about Flash CS5
1) Performance: I love OSX. I disagree with most things Apple these days, but at this point I am not interested in migrating dev back to windows. Developing with Flash on OSX has been painful over the last few years. CS4 was a pretty nice upgrade, but CS5 has been amazing. Everything just works now. Window management hasn’t seemed to be a problem and performance of the IDE has been great.
2) Font Embedding: In the past, font embedding with flash was a fairly tedious process. Things didn’t work like you’d expect they should. Having to re-embed the same set of fonts in different textfields, etc. In Flash CS5 Font embedding is handled great. There is now just one panel for managing all embedded fonts
3) Code Completion On The Timeline: This has been a request in flash for years and years. It took them awhile to finally get it, but it’s a real nice to have. I hardly ever put code on a timeline, but sometimes an animation needs to dispatch an event or you want to call a function from the timeline after the creative team does their thing. Having code completion for this stuff is great because of the auto importing.
4) Selectable Static Text: Happy to finally be able to select static text in the swf.
5) iPhone compiling: Yah, Yah, I know apple won’t let me submit anything to the store, but sometimes I don’t need things in the store. Sometimes I write small apps that I just use on my phone or a small utility for a friend. Being able to write small things in flash and run them on my phone is a real nice to have. Even prototyping in flash can be fun.
While I do love working with CS5, there a few things left to be desired. I really wish PSD importing was more solid, and I have found a few small bugs in the IDE. Overall though, it’s a great user experience and a significant upgrade!
JSFL command: Get Asset Names
Whenever I code ActionScript projects in FlashBuilder I usually need to disable the option to automatically declare stage instances in the Flash IDE. This is so I can specify the the variable names in the class that a library item is associated with. One irritation with that was going back and forth between the Flash IDE and FlashBuilder to write out all the stage instances and data types. About 2 years ago I wrote this JSFL script to handle outputting all that data so I can copy it into Flash Builder easily. Last year while working with the guys from Blitz Agency they took it and made it even better.
What you get now is a simple command that will get all the assets on stage and will then copy the list to your clipboard for easy pasting into your FlashBuilder class in the following format:
public var {INSTANCE_NAME} : {DATA_TYPE};
It loops through the items and tries to find them in the library, if a class is associated to it then you will get the exact data type, if no class is assigned it will output as MovieClip or TextField.
Download the latest version here:
http://code.kineticz.s3.amazonaws.com/jsfl/Get_Asset_Names.zip
TLF Text breaks swfs Embedded in FlashBuilder
I just spent quite awhile trying to figure out a pretty obnoxious bug I just discovered in CS5. My workflow typically includes a .fla file with all of the assets for a project that I will embed as a byte array in Flash Builder using code like this:
[Embed(source=”assets/PROJECT_library.swf”, mimeType=”application/octet-stream”)]
private var AssetLibrary : Class;
Then in my library I have a MovieClip and the Class set to com.test.TLFText. The mc has just one textfield in it with an instance name of tlf_txt.
If you have a Class assigned to a MovieClip that contains a TLF TextField and try to load that swf into flashbuilder like I explain above, you will not be able to create any classes out of elements in your library.
Open that fla up and change it back to Classic Text and you are good to go.
This all happened because I was importing psds into flash, and all the text is added in as TLF text from PSD if you choose to make it editable.
You can download the project here if you want to see it happen or look more at the code:
http://code.kineticz.s3.amazonaws.com/bug_tlf_embed.zip