Difficulty of Transferring projects from CS to FD

Subscribe to Difficulty of Transferring projects from CS to FD 3 posts

avatar for BadgeHuntersAnon BadgeHunters... 612 posts
Flag Post

I am still a beginner at Flash despite working at it for at least a few months. (I know it’s not much) I mess stuff up more often when I am using FD so as part of learning I am making everything in CS and then I want to learn how to set up the project in FD and import all the images and everything. Also, I would like to know how instance naming works in FD.

Thanks.

 
avatar for Lucidius Lucidius 180 posts
Flag Post

One of the differences between Flash CS and FD is that in CS it is much less clear the relationships between ‘code blocks’ and the objects – that is it is hard to tell where you as classes are and how they relate to each other. This was probably necessary in their integration of graphics creation and naming etc on the fly.

FlashDevelop on the other hand is pure code – you wont be drawing anything with the mouse for use in your program while in FlashDevelop. There are many other tools out there (GIMP, GraphicsGale for example) that you can use for graphics, and then export them as .PNG to then embed in a class in FlashDevelop.

Since FlashDevelop is pure code, you learn the most programmatically from messing around in there (I would recommend starting with “Hello World!” to get a basic understanding of class and instance relationships) and you know exactly what is going on (rather than in flash cs where you could lose track of where a specific bit of code is)

With instance naming in FlashDevelop, this is done in pure code (which was handled in the background for you in CS without overtly saying so) so say if you want an instance of the Class Spaceship, you would go like


//the syntax to be used, notice that instanceName first letter is NOT capitalized,
//this makes it easier to differentiate instances of classes from classes themselves
private var instanceName:ClassName = new ClassName();
//the syntax in practice. The instance name here is playerShip and it is an instance of Spaceship
private var playerShip:SpaceShip = new SpaceShip();

 
avatar for Senekis93 Senekis93 4090 posts
Flag Post

The difficulty depends on how many bad practices you’ve picked from CS.

If you’re used to timeline code, multiple frames, adding objects to the stage by dragging them with the mouse or using the Paint-like tools to make buttons and textfields, it’ll be a bit harder, as you’ll have to learn to do everything with code.

On the other hand, if you’re already doing everything with code, it’ll be a matter of learning to use the Embed metatag; the rest will be the same.