The FlashChemist!

My Experiments and Thoughts on the Flash Platform

Archive for the ‘flashbuilder’ tag

EGit – Git Client Plugin for Flash Builder / Eclipse

leave a comment

Git is a distributed version control system much like Mercurial and BitKeeper (Commercial) and unlike CVS and Subversion. Git is distributed, that means the complete source repository is distributed across developer machines and server machines, build machines, etc. Most of the commit and diff actions happens locally so they blistering fast compared to SVN’s over-the-network commits and diffs.

I was in search of a Flash Builder plugin for Git and the search was quiet easy: EGit

Installation also pretty easy. Here are the steps.

Go to the download page of Egit : http://www.eclipse.org/egit/download/

Copy the URL of main site from page (which is http://download.eclipse.org/egit/updates)

Go to Flash Builder, click Help >> Install New Software

Add the copied url to the Window which opens (as seen below)

Egit

Make the selections as shown in picture (you dont need to install the source). Complete the wizard and Flash Builder will take some time to install the plaug-in. When the installation is done it will ask you to restart Eclipse/Flash Builder, which you should do.

After restart, go to Window >> Other views. You will be able to find the Git Repositories view from the list.

This is it, and now you can continue and clone an existing Flash/Flex GIT repository and start working.

Written by Vipin

January 3rd, 2011 at 12:32 pm

Posted in Flash

Tagged with , , ,

Creating AS 3.0 AIR Projects in Flex Builder 3.0 /Flash Builder 4.0

leave a comment

While this is an ideal choice of making AIR desktop applications for those who does not want the Flex framework, I am still surprised that Adobe didn’t add this option to its new IDE product, Flash Builder 4.0. Flex/Flash Builder being the best AS 3.0 editor so far, this option is really missing.

There is a bug in the Adobe JIRA – https://bugs.adobe.com/jira/browse/FB-9303 . But honestly, this looks like a natural choice for Adobe (!?)

I was using a hack for making this work with Flex Builder 3.0 and same works for Flash Builder 4.0. Its is a simple method though:

In the Flex/Flash Builder IDE, select ‘New >> Project’ and select ‘Flex Project’ option.

From the Wizard, please select ‘Desktop Application (Runs on AIR)’, give a project name and click ‘Next’ button instead of your usual ‘Finish’ button.

The next screen prompts for defining the folder for debug. Leave it as is, unless you want to, and click on ‘Next’ button.

The next screen is where you have to do some magic. Here it is.

Change the file extension of ‘Main Application file’ from .mxml to .as — nothing else.

Now click your favourite ‘Finish’ button, and you are set. But, if you run your project, it doesnt show up; this is because the visibilty option of your native window is set to ‘false’ by default. So, open up your application XML file (That will be in the root and named ProjectName-app.xml), and uncomment the sub node of the node and set it to true. Here is how it will look like:

Now, you have your AS3 AIR project, and you have access to all the AIR API’s, and your ’stage’ attribute will have the AIR related properties.

Workaround, still works nice. Adobe, we need this option from the wizard.

Written by Vipin

June 1st, 2010 at 2:47 pm

Posted in AIR, Flash

Tagged with , , , ,