Archives by Month

October

2010

Easy Screen Management in Corona

I have been messing around with the Corona SDK for a while. My goal is to have a game on the app store and the android market before then end of the year.

A small hang up that I was having was screen management. On the surface lua is really easy to learn but nothing is said about any good practices at all. As more of an OOP programmer it is essential that I am able to write my projects in a very modular way. Well luckily jonbeebe wrote a post about this very thing. Not so much a good OOP article as it is more of a way to organize your Corona projects into screens, so for me this is a good start. I am half way through my first game and the main.lua file was getting pretty large.

You can download the template that Jon has created below and I encourage you to take a look at the full article. It’s not to long and very helpful

The Corona Project Template

I created an example that contains three files:

  • main.lua
  • screen1.lua
  • cheat-sheet.txt

You can download the project template here. It contains your main project file, an example screen template that you can duplicate for as many screens (or “scenes”) you need in your app, and a “cheat sheet” text file that’ll walk you through all the steps that need to be accomplished to add a new screen to your app (only 5 steps).

Intro to PureMVC Talk for Dublin Flash UG

This is my talk that I gave to the Dublin Flash UG. If you have been looking for a practical intro to PureMVC then take the time to watch and shoot me any questions in the comments below. The screencast looks great if you take it fullscreen mode.

Also you will notice that I am using FDT 4 and I go over some of the shortcuts that it provides to allow for faster coding in my projects.

Keeping Dreamweaver for global find and replace? Hell No…

I found that over time I stopped using Dreamweaver. It was a great program to go from MS Frontpage when I was learning HTML back in 2000. The program just got to be a bit too slow and packed with way too many things that I didn’t need.

One thing that I always found myself using it for no matter what was it’s global find and replace. From time to time I would run across someone else’s project that was full of static html that I needed to globally change. Dreamweaver is always great at doing this for you. However I always felt a bit pissed about having to install Dreamweaver just to have this one feature. Well no more my friend. 

I have been a supporter and user of Textmate for a wile but never had to do the old global find an replace. That’s because I don’t spend a lot of time in html projects. I am currently on a project where I am again editing a tone of static html files. Well after a little searching you can find that Textmate has global find and replace. Yay!

Here is the step by step

(on a side note a Windows user, and friend of mine Andy Matthews says that EditPlus is great for this as well)

1. Make sure you have all your project files open in a Textmate project. Then choose Shift>Command>F

2. Then type some text or code in that you are wanting to replace. You will notice that replace all is grayed out and not selectable. That’s ok > enter step 3.

3. Click Find (This will find all the instances of the text or code within all your project files.

4. Now you can choose replace all or you can choose to select the results one by one below and only do the replace on the files that you want.

5. After preforming the replace all you will notice that all the files that textmate preformed replace on will be gray in the project. This means they need to be saved. You can choose to save one by one or you can go to the menue and Save All.

Screencast of Reflex with creator Ben Stucki

Screencast about Reflex

If you use the Flex framework at all then you owe it to yourself to check out this great project. What is Reflex you as ? Well Check out the introduction straight from the web site.

Hi, I’m Reflex

I’m a light-weight component framework being built for the Flash Platform. I haven’t been released yet, but if you’re feeling adventurous you can grab my latest code here. You can also see my roadmap and progress here.

Components

Reflex components are incredibly customizable, light-weight and easy to use. Try them in an AS3 projects to get started and move to an MXML workflow when you need to create data intensive applications.

Layouts

Reflex layouts are versatile and light-weight. They provide advanced measurement and invalidation when you need it and stay out of your way when you don’t.

Skins

Reflex skins allow you to control every aspect of a component’s visual appearance. From custom classes to animated MovieClips – or event just PNGs, we’ve got a solution to fit your workflow.

Behaviors

Reflex behaviors control how a component responds to user input. With behaviors you can customize existing functionality without breaking or rewriting the parts that already work.

Get to it – Developing for iOS using Flash

I have still not jumped and created an app for Android yet. After the big Apple vs. Flash thing I kept my iphone. Mainly because I didn’t want to drop $300 for another phone at the time. Like all the other Flash developers I was excited that I was going to be able to develop apps using flash. I am in the middle of building a game that I plan on putting on the app store and android market.

For you guys that have not given it a try or are just getting started here are some great resources for ios development with Flash

Check out this series of articles to help you learn more about developing for iOS using Flash Professional:

Here’s a recap of related resources to check out on Adobe Labs: