Categories
AS3 FDT

Moving from FlashDevelop to FDT

Yes, its time, I need to…
So how to make the transition from FlashDevelop to FDT as easy as possible?

Let FDT react like FlashDevelop

And I don’t even have to break a sweat: the amazing Steven Sacks (creator of Gaia) wrote an article about it: read here.
The only two thing that I’m using are:
Open Window > Preferences

Under FDT > Editor > Code Assist copy and paste this into Auto activation triggers for AS, and set the delay to 0ms (zero).

abcdefghijklmnopqrstuvwxyz_. :

and

Under Problems > AS3 Problems:
Unresolvable > Unresolvable variable reference in E4X and Unresolvable member reference in dynamic object should both be set to Disabled (from Warning to Disabled).

The shortcuts I just left them as they where: I’m working in another program so I should use the shortcut given by that program.

Update #1: hmmm I noticed that I can’t live without CTRL+ENTER…. explanation here: Using CTRL-ENTER to compile ActionScript code in FDT. So now I have CTRL+ENTER and debug run: CTRL+SHIFT+ENTER πŸ˜€

short explanation (so I can do this quickly if something happens to FDT):

Under Preferences > Run/Debug > Launching at the bottom at Launch Operation: Select “Always launch the previously launched application

then

Under Preferences > General > Keys find (or type in “type filter text” – searchbox: “last”) a command called “Run Last Launched” and click Copy Command. Assign (binding) the shortcut CTRL-ENTER to the copied command and change “when” to Editing ActionScipt Source (no spelling mistake: it really says that) Editing ActionScript Source.
Do the same thing for the “Debug Last Launched” command and assign the shortcut : CTRL-SHIFT-ENTER and change the when to Editing ActionScipt Source.

I’m not sure if the stuff I wrote here is only for FDT4 but the way it was explained on the site previous mentioned didn’t work in FDT4

Some templates/snippets that are very useful

I used this plugin for my trace in FlashDevelop, so how to do this in FDT?

Update #2: I shouldn’t forget to mention CTRL+0 (read the shortcut list for FDT) which is the shortcut for “Quick Trace”. This one I use to trace variable for example and the trace template below for functions.
Update #4: This is really a reminder for myself, but if you need it you know where you can find it in FDT4.
Some minor adjustments like:

Preferences > FDT > Build Path change Source folders to “source” (I like source above src) and Output folder to “deploy” (I like deploy above bin)

Preferences > FDT > Code Style > Code Templates (Misc) to “Override System UserName – ${user}

Preferences > FDT > Editor goto “Folding” and uncheck “Folding enabled” (I like to see everything, comment also)

Preferences > FDT > Tools > Flash/Flash Help to add paths to Flash (in my case: “H:\Program Files\Adobe\Adobe Flash CS4\Flash.exe”) and the Flash help files (in my case: “H:\Program Files\Adobe\Adobe Flash CS4\en\First Run\HelpPanel\Help”)

Preferences > General > Web Browser change to “Use external Web browser” to my favourite browser: Firefox (no Google Chrome there yet)
You can add any browser that you want.

Update #5: visit http://www.rumblingskies.com/blog/?p=75 and add FTP capabilities to ANT.

You have to create a code-template/code-snippet:
go to Preferences > FDT > Editor > Templates

This is a template that resembles the trace I used in FlashDevelop
Trace:

trace ( "+ ${enclosing_type}.${enclosing_method}() - args: " + [ ${enclosing_method_arguments} ] );

and I found some other useful templates

Public method:

public function ${methodName}():${type} {
    trace(">> ${enclosing_type}.${methodName}() args: "+[]);
    ${cursor}
};

for some strange reason there is no shortcut for asdoc πŸ™

ASDoc:

/**
 * ${cursor}	
 * @example	
 * @param		${enclosing_method_arguments}
 * @return	 	
 */	
 */
Update #3: (sadly if there are no param in the function “${enclosing_method_arguments}” will be printed..)

a switch a use a lot with FlashDevelop:

Switch:

switch (${value}) {
	case ${result}:
		trace ("${result}" +${result} );
		${cursor}
		break;
    default:
        trace("case '"+${value}+"':\r\ttrace ('--- "+${value}+"');\r\tbreak;" );
}

and the template for a singleton

Singleton: (from gskinner)

package ${enclosing_package} {

	/**
	* @author ${user}
	*/
	public class ${enclosing_type} {
	
		private static var _instance:${enclosing_type};
		private static var _allowInstantiation:Boolean;

		public static function getInstance():${enclosing_type} {
			if (_instance == null) {
				_allowInstantiation = true;
				_instance = new ${enclosing_type}();
				_allowInstantiation = false;
			}
			return _instance;
		}

		public function ${enclosing_type}():void {
			if (!_allowInstantiation) {
				throw new Error("Error: Instantiation failed: Use ${enclosing_type}.getInstance() instead of new.");
			}
		}
		
		${cursor}
	
	} // end class

} // end package

enough for now, here some other posts about the subject

Source:
http://blog.hydrotik.com/2007/11/19/fdt-30-code-templates/
http://www.breaktrycatch.com/useful-fdt-templates/
http://www.stevensacks.net/2010/04/30/setting-up-fdt-to-look-and-behave-like-flashdevelop/
http://www.gskinner.com/blog/archives/2006/07/as3_singletons.html
http://blog.flashmech.net/2008/08/review-fdt-vs-flashdevelop/
https://fosswiki.liip.ch/display/FLASH/Code+Snippets+for+FDT+and+Flex
http://cote.cc/blog/using-ctrl-enter-to-compile-actionscript-code-in-fdt
http://www.fdt.powerflasher.com/developer-tools/fdt-3/getting-started/shortcuts/
http://blog.flashmech.net/2008/10/fdt-tip-boost-your-code-assist/

Categories
Design Urban papercraft

Straat Papier Holland Klik – Workshop promo

Something that I have been working on:

Straat Papier Holland Klik – Workshop promo from Matthijs Kamstra on Vimeo.

Maarten Janssens create the “Straat Papier Holland Klik”-logo, and did the stop-motion animation. I did the rest

Maarten Janssens (3EyedBear) and me are going to give a papertoy workshop, totally FREE!!
Here more information about the festival:

THE ABC URBAN ARTS FESTIVAL (read more)


A festival where design and crafts go hand in hand.
Saturday 26th, 2010 from 1pm – 6pm the square in front of The American Book Center (Spui 12, Amsterdam, The Netherlands) will be an outdoor atelier, with artists creating work on-site for the public to enjoy.

Maarten Janssens (3EyedBear.com) and Matthijs Kamstra aka [mck] (MatthijsKamstra.nl) will be given a FREE papertoy workshop at ABC treehouse (Voetboogstraat 11, Amsterdam, The Netherlands).

You can meet, greet and craft with the following Dutch Papertoy Artists:

For further information on the ABC URBAN ARTS FESTIVAL please contact :

Rick Lightstone (lightstone45@zonnet.nl) or Donna DuCarme (treehouse@abc.nl)

More info about the festival:
http://www.abc.nl/blog/?p=14118
http://www.facebook.com/event.php?eid=285334500311&ref=ts
http://www.facebook.com/pages/Urban-Arts-Festival/292157415238?ref=ts

Categories
Design Urban papercraft

Papertoy bizz – part 3

I thought I would be finished now, but some random search let me know that I wasn’t finished yet.

So visit my previous post about Papertoy bizz.

But to be short about it: I’m currently working on making that papertoy bizz somewhat official.

And you need a business card and that got me wondering about some other business card related items:

  • Business card stand
  • Business card holder

I couldn’t resist looking for paper versions of these items.

I used my day jobs business card for this: I think they have a common size use in the Netherlands.
The card is 85mm x 55mm (W x H)

In this post I’ll be focusing on the business card holder! (again!)

Business card holder

How to Make a Business Card Holder… From Playing Cards

The fist one is a Business card holder made from playing cards:

How to Make a Business Card Holder... From Playing Cards

Read the craftstylish.com post about that.
Download the template (.PDF) they created here “save as”

I don’t have to vectorize it, but I did it anyway:

Download the template as .SVG (use “Save Link As…”)

Business card holder from Free Patent Online

Here I found another one:
Business card holder

There is only a jpg, so I converted it to the standard size business card and now it’s in vector:

Download the template as .SVG (use “Save Link As…”)

Here the vector files:

How to Make a Business Card Holder… From Playing Cards


Download the template as .SVG (use “Save Link As…”)

Business card holder from Free Patent Online


Download the template as .SVG (use “Save Link As…”)

Categories
Design Misc Urban papercraft

What about SVG files?

Previous post I wrote some vector files but not the kind you are used from me.
Usually I use .PDF but in the case I use .SVG files, and you want to know what that is about…

What is a .SVG file?

Wikipedia on this subject: http://en.wikipedia.org/wiki/Svg

Scalable Vector Graphics (SVG) is a family of specifications of an XML-based file format for describing two-dimensional vector graphics, both static and dynamic (i.e. interactive or animated).

The official info can be found here: http://www.w3.org/Graphics/SVG/

Scalable Vector Graphics (SVG)
XML Graphics for the Web

What is useful about this file?

It’s very small, most modern browsers can show it and vector edit programs like (online) Aviary Raven (press create and file > import files) or offline Inkscape or Illustrator.

Why doesn’t use everybody this in the papertoy scene?

There is no uniform way to show it in a blog post; every browser works different. I haven’t worked with it a lot and there seem to be some problem with fonts embedding (can also be my inexperience). And people are used to .PDF and viewing files in Adobe Reader (or another .PDF viewer). Another “problem” is that WordPress (this blog runs on it) doesn’t recognize a .SVG file as an image (it labels it as a dangerous file!!)

Example

Business holder template

Download the template as .SVG (use “Save Link As…”)

Business stand (simple) template

Download the template as .SVG (use “Save Link As…”)

If you don’t see any images, you probably using old browser.
I have tested this in Firefox 3.6 (OSX and XP), Google Chrome (XP) and Internet Explorer (XP)

How to create or change a .SVG file?

There is a Firefox addon: svg-edit. This can be used for creating files but you can’t open them yet (net version will) so you have to open a .SVG file in a text editor (like notepad++) and copy paste it.
There is an awesome project online called Aviary that also has a vector edit web application: Aviary Raven. You first need op press “create” and then it’s possible to import a file (file > import files). You can also use Inkscape (freeware) or Adobe Illustrator ($$$).

How to download?

Use “save as” on a link or “save this page” if you have clicked on the link.
Make sure that the file you want to save, end with the extension .SVG (Firefox save this file as a .XML file for example)

How to open?

Use Aviary Raven (press create and file>import files), Inkscape or Illustrator.

How to print?

You can print from Firefox: open the link and print.
Are you used to .PDF files? Save the .SVG files (link) to your hard drive and visite www.fileformat.info and convert .SVG to a .PDF (remember to save the file as .PDF : in my case it change the extension to .HTM)

Should everybody start using SVG files?

Yes and no: yes because they are very small and most of the modern browsers can show the image…. but sadly not in a page/post which makes as difficult to use as .PDF.
And .PDF is what people know… It will probably get bigger if Firefox will treat .SVG files as an image file like Google Chrome and Safari does.

Categories
Design Urban papercraft

Papertoy bizz – part 2

Read my previous post about Papertoy bizz – part 1.

But to be short about it: I’m currently working on making that papertoy bizz somewhat official.

And you need a business card and that got me wondering about some other business card related items:

  • Business card stand
  • Business card holder

I couldn’t resist looking for paper versions of these items.

I used my day jobs business card for this: I think they have a common size use in the Netherlands.
The card is 85mm x 55mm (W x H)

In this post I’ll be focusing on the business card holder!

Business card holder

I found two versions that I want to mention.

The Food Box Wallet (can be used as business card holder)

The Food box wallet from replayground.com

Business card holder example

I don’t have to vectorized it, because they have a nice .PDF file for us.
Download the template: “save as”

But I did it anyway because it now fits the standard business card:

Download the template as .SVG (use “Save Link As…”)

Placing the elastic can be somewhat difficult so here some extra instructions

Paint Chip Card Holders!

The other I found at designverb.com
Paint Chip Card Holders
They look awesome don’t they!!
In the Netherlands we don’t have Home Depot or a shop that uses these cards but why don’t use a cereal box or other box made out of carton (or just design one…).

There is a .JPG template
Card holder template
This template can be use to modify it to your own business card dimensions:

To change the size of the template, make ‘a’ the height of your card, and ‘b’ the thickness that you want the card holder to be.

But here is mine vector version:

Download the template as .SVG (use “Save Link As…”)

For building instruction visit designverb.com page about the paint chip card holder.

Here the vector files:

Business wallet template

Download the template as .SVG (use “Save Link As…”)

Business holder template

Download the template as .SVG (use “Save Link As…”)

Categories
Uncategorized

Twitter Weekly Updates for 2010-03-20

Categories
Design Urban papercraft

Papertoy bizz – part 1

I’m currently working on making that papertoy bizz somewhat official.
So I’ve started a business (eMCeeKay.nl <-- not a lot to see there yet) with a officials KvK (Kamer van Koophandel = chamber of commerce) etc….

And you need a business card and that got me wondering about some other business card related items:

  • Business card stand
  • Business card holder

I couldn’t resist looking for paper versions of these items.

I used my day job business card for this: I think they have a common size use in the Netherlands.
The card is 85mm x 55mm (W x H)

In this post I’ll be focussing on the Business card stand!

Business card stand

Simple business card iPhone iPod stand

This one is so simple that I didn’t search further
End result Business card stand from a business card
I found it on instructables.com so visit them for the whole story.

But I need vector files, not just a sketch! So I converted the instructions into a vector file:

And now the download: this is a little experiment so hope it works:
Download the template as .SVG (use “Save Link As…”)
Use the standard functionality from your browser and save it as “.svg” (Firefox will save it as .XML but that file won’t open in Illustrator)

btw: there is even an instruction how to make this stand without a template; just with folding and another business card! Just visit the post and scroll down the comments.

iPhone and iTouch paper stand dock

But then someone pointed me towards this:
iphone-and-itouch-paper-stand-dock
An awesome paper stand from dessinemoiunobjet.com by Julien Madιrou. But I see no reason why we can’t use it for a business card stand.

You can download the original .PDF file here (use “Save Link As…”)

But because we don’t need to have a cord running through, I simplified the template a little bit:

Download the template as .SVG (use “Save Link As…”)

If you are having problem to build it, visit the original post: Iphone and Itouch paper stand / dock or open the original PDF (here).

Here the vector files:

Business stand (simple) template

Download the template as .SVG (use “Save Link As…”)

Business stand template

Download the template as .SVG (use “Save Link As…”)

Categories
Design Urban papercraft

PUMA – States/Suede/Clyde – urban paper sneaker – part2

Today I present: PUMA – States/Suede/Clyde – Urban paper sneaker

Want to read more about the process visit this blog post or this one.

Because a picture says more than a thousand words:

Paperkraft fans will recognise the logo: this is a paper sneaker made for Ron Rementilla from Paperkraft.blogspot.com.
He has written about my PUMA First round papertoy and suggested that people who wanted a template should leave a comment…. And Ron mentioned that he wanted one too…. I’m sure that he didn’t mean this, but I needed to create a skin for this model and thought it would be a nice gesture to thank Ron.

You can download the file for the PUMA – Paperkraft – Urban paper sneaker here:

The .ZIP file contains a .PDF
(You can use freeware like FilZip or 7zip to extract a .ZIP-file and read a .PDF with Acrobat or Foxit)


But I know a lot of people want to customize this PUMA sneaker, so if you are interested in creating a custom paper sneaker you can download the Blank PUMA – States/Suede/Clyde – Urban paper sneaker here:

The .ZIP file contains a .PDF
(You can use freeware like FilZip or 7zip to extract a .ZIP-file and read a .PDF with Acrobat or Foxit)

If you like this, leave a comment. If you build one, show me a picture. If you customize one, … you get the picture ….

Categories
Design Urban papercraft

PUMA – states/suede/clyde – urban paper sneaker

As I mentioned before: I always wanted to do a papertoy sneaker.

When I finished my first PUMA sneakers, and posted it on NPT (Nice Paper Toy), some people mentioned that they liked the model but that there favorite PUMA sneaker is the states/suede/clyde.
I didn’t know that the PUMA states/suede/clyde is a b-boy classic.

So I couldn’t resist to make them too:

I don’t have a download link for this one, and no design yet….
But that will be fixed very soon.

PS.
The excellent Ron Rementilla from Paperkraft.blogspot.com has written about my PUMA First round papertoy (thx for that).
And suggested that readers who wanted a template, leave a comment….

Till now 10 people did and they have received the (WIP) templates…
I call the templates WIP because the instructions are not ready yet.
And because I wanted to make the PUMA clyde first, they are not ready yet.