Category Archives: Flash

Everything about Macromedia / Adobe flash

From AS2 to AS3 – Where did it go – swapDepths

Where did swapDepths () go in AS3? This is what the ActionScript 2.0 Migration has to say about this: ActionScript 2.0  ActionScript 3.0  Comments swapDepths() Method Removed In ActionScript 3.0, you can achieve similar functionality by using the methods of the DisplayObjectContainer class, such as the addChildAt(), setChildIndex(), swapChildren(), and swapChildrenAt() methods. Removed… bummer, so with what [...]

Custmm Grumm – AI 2 Array

Another experiment towards Custmm Grumm. This time my task was to export/import an Illustrator file to Flash… Yeah, yeah; I know: you say “import to stage” … correct! But what I need is the shape converted to code (coordinates in the x-direction and y-direction).. Ha, you stopped grinning! Well the first part is correct. You [...]

Object 2 Layer jsfl

For a project of mine: Custmm Grumm I needed to change a shape into an array (explained in this post shape 2 array jsfl ). To make this happen I imported the .AI file (Illustrator) to the stage. But it will place everything on one layer, every shape it’s own ‘group’ and the script I [...]

Shape 2 Array jsfl

For a project of mine: Custmm Grumm I needed to change a shape into an array, you could say that I needed to change a Illustrator/vector file into code. As far as I know there is no other method then the one I created here with jsfl. To make this happen I imported the .AI [...]

From AS2 to AS3 – Where did it go – attachMovie

Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0  ActionScript 3.0  Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed… wtf? and you can read the documentation [...]

From AS2 to AS3 – Where did it go – setRGB

Update #1: It seems that .setRGB () has been deprecated in favor of the flash.geom.ColorTransform class. So a little as2 update. In some cases I can’t help thinking that AS3 hasn’t made our live easier. The same happened with the change that happened from the AS2 setRGB to AS3. Specifies an RGB color for a [...]

Lite components from BIT-101: Minimalcomps

Update #1: there has been another update New MinimalComp: WheelNav, but I’m pretty sure I won’t been using this one very much… I’m using this for some time now, and it’s time to share this with you all: Minimalcomps from BIT-101. This lite-weight components set is great, I can see what the code is doing, [...]

ActionScript syntax highlighting

I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I’ve used this in combination with the pre tag But that’s doesn’t show nice code highlighting or line numbers… Syntax highlighting is a feature of some text editors that [...]

Print 2 PDF

I have been using this for some time now: sometimes you need to export something generated in Flash to a (vector) file. Another name for this post could be: Flash2PDF, Flash to PDF, SWF2PDF, SWF to PDF, Export2PDF, Export to PDF….. you catch my drift And the solution is very simple: just print a .PDF! [...]

Custmm Grumm – Selection tool

Custmm Grumm is a project that I will be working on in my spare time. I will try to build a online tool for creating custom skins and modifying a Grumm. It’s will be created in Flash (AS3). The first research I did is selection, and how it works with shapes. What it does: select [...]