Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Thursday, February 12, 2009

Blogger Avatar Gadget

One of the ideas behind allowing the graphical assets of an avatar character to function outside of the editor was to make it easy to place the avatar in the context of your website or blog without the extra interface or controls. I quickly made a little Blogger Gadget (a.k.a. Widget) which places your avatar in a sidebar item for your Blogger blog. You should be able to see an example of it on this blog over to the right - yes, that's me, and yes, the beard is new ;)

I did this through the simple blogger post API, not through Google's widget format which meant I just set up a simple html page with a form and hit a button to make it happen. I haven't decided if I wanted to make something link this visible on the site/editor or not, since under the current setup, it would pull the avatar file from myavatareditor.com sucking away precious bandwidth... but maybe it wouldn't be so demanding that my server couldn't handle it, and if it is, I could always stop hosting it!

Note: Feel free to play with the page posted above. To work with your own avatar, you would need to edit the content in the blogger page that appears after hitting the Add Avatar button and replace the avatar code string with your own.

Tuesday, June 3, 2008

Flash Player 10 File Saving

The technology behind My Avatar Editor is Adobe's Flash Player. This is used to render the vector-based character graphics and provide the interactivity to the interface that allows you to dynamically change and adjust those graphics.

One of the features used by the Mii Editor was the ability to save files created within the editor itself to the users hard drive. This feature required a certain version of the Flash Player (version 9) that was not supported on the Wii™. This prevented anyone from being able to use the editor on the Wii™ but the Wii™ already had the Mii™ Channel so it wasn't a big deal (I thought), and the advantages of being able to save an image from the editor to your own computer couldn't be passed up.

One of the limitations of this feature in Flash Player 9 was that it had a server dependency. In other words, to be able to save a file from a Flash Player application, you had to send data from the Flash Player to the server so the server could send it to the browser to invoke a download prompt for the user.


This was not only messy to deal with but also required server bandwidth to maintain. The same also applied to loading or opening files which was even worse since the server had to save the files before bringing them into the player.

The newest version of the Flash Player, currently in beta as of this writing, now supports an enhanced method of saving (and loading) files that bypasses the server altogether.


This greatly simplifies the file process on my end making it a much cleaner process. Additionally, the time to load and save files should be a lot faster. Best of all, you won't even need an active connection to the internet to make use of the load/save features since it's all handled client-side.

I'll be targeting Flash Player 10 for My Avatar Editor. Assuming it gets released before the final version of Flash Player 10, it will require using a beta version of the player to use.