Category 'Flash CS3'


How to apply the technique of chroma key in Adobe Flash

The technique of the chroma key , ie the replacement of a given color with another (or a different source), has exploded once again in the last decade with considerable arrogance, thanks to the increasingly widespread technology present in the film and in the treatment of digital images.

More ...

Adobe Flash CS4: Create an Ajax Loader or Activity Indicator

Create an Ajax Loader (or Activity indicator for those accustomed to using the Apple iPhone) for the Web is not a difficult thing: there are services that generate animated gif images of all types. However, the GIF format has the big drawback of not supporting transparent as it should. Transparency in GIF format now, involves only one bit plane with the consequence that if we do not have a uniform background color, image edges are noticeably grainy and fragmented.

More ...

Business card in 3D with Papervision

Here's an original way to propose and present their ticket out of sight on the Web! The source here .

Flash Player Loading ...

More ...

Actionscript 3.0 for beginners: lesson # 4

We continue our example code of TicTacToe (found in full on Google Code ) and we begin to analyze it in detail.

Import definitions

With Actionscript 3.0 has done a great job of cleaning and accommodation nell'alberatura classes (contained in the packages, package ) used during development. In other programming languages, like C for example, when you want to use a feature must explicitly "import" in the code. This "delivery" is necessary to allow the compiler to have all the codes and definitions related to the features we want to use. ; Actionscript 3.0 mette a disposizione l'istruzione include che è identica all' #include del C/C++. In Actionscript 3.0, however, the instruction import should not be confused with the equivalent C / C + + #include ; Actionscript 3.0 provides education include that is identical to ' #include in C / C + +. The latter, in fact, "includes" actual code that, if used or not, is the final compiled executable. Education import is the highest level and is more "intelligent" at compile time. It is used primarily for access classes without specifying their full name. In alre words instead of using forms such as:

1
flash.display . MovieClip = new flash.display . MovieClip ( ) ; var myMC: flash.display. MovieClip = new flash.display. MovieClip ();

More ...

Very short trick: faster loops in Actionscript

In Actionscript cycles for it is good to use them with care. For example, it is good to use variables uint when you can:

1
2
3
var i : uint = 0 ; i ++; i < 100 ) { for (var i: uint = 0; i + +; i <100) {
/ / ...
}

You can also use the - not always known - the form:

1
2
3
4
5
uint = 0 ; var i: uint = 0;
/ / ...
; i ++; i < 100 ) { for (; i + +; i <100) {
/ / ...
}

More ...

Skypemote version of Adobe AIR

Install Adobe AIR Download Skypemote Version

This is the first release, 0.8 (aligned with the version online ), Editor of Skype Emotions - Skypemote - version of Adobe AIR . For now, the features are all the same version online , with the advantage of being a desktop application, then install Windows, Mac and Linux.
Before installation, remember to update and / or install for the first time, the runtime of Adobe AIR , if you have not already done so.

Download

You can download Air Skypemote from Google Code .

More ...

Actionscript 3.0 for beginners: lesson # 3

We continue the analysis of the example of the game Tic Tac Toe, presented in Actionscript 3.0 for beginners: lesson # 2 . We had arrived at the function that creates the game grid:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/ **
* Graphic design grid (3x3) on screen
*
* @ Param void
* @ Return void
* @ Private
* /
createGrid ( ) : void { private function createGrid (): void {
/ / Temporary pointer to a MovieClip
/ / Note: here you could also use a Sprite
/ / But in this case I need to extend the object
/ / Adding some personal proproetà. The Sprite
/ / Is a closed class and therefore not extensible runtime, while
/ / The MovieClip class is dynamic and therefore makes
/ / Possible the addition of runtime property
MovieClip , i : uint = 0 ; var tm: MovieClip , i: uint = 0;
/ / Add the MovieClip in a 3x3 pattern
; i < 9 ; i ++ ) { for (; i <9; i + +) {
( ) ; tm = new MovieClip ();
tm ) ; addChild (tm);
= OFFSETX + ( ( i % 3 ) * ( PLAYER_WIDTH + PLAYER_OFFSET ) ) tm. offsetX = x + ((i% 3) * (PLAYER_WIDTH PLAYER_OFFSET +))
= OFFSETY + Math . floor ( i / 3 ) * ( PLAYER_HEIGHT + PLAYER_OFFSET ) tm. OFFSETY + y = Math . floor (i / 3) * (+ PLAYER_HEIGHT PLAYER_OFFSET)
tm. _index = i;
0 ) ; drawPlayer (tm, 0);
}
/ / Draw the 2 lines and 2 horizontal veriticali
this . graphics ) { with (this. graphics) {
6 , 0x666666 ) ; lineStyle (6, 0x666666);
OFFSETX , OFFSETY + ( PLAYER_HEIGHT + 15 ) ) ; moveTo (offsetX, OFFSETY + (PLAYER_HEIGHT + 15));
OFFSETX + ( ( PLAYER_WIDTH + 20 ) * 3 ) , OFFSETY + ( PLAYER_HEIGHT + 15 ) ) ; lineTo (offsetX + ((PLAYER_WIDTH + 20) * 3), OFFSETY + (PLAYER_HEIGHT + 15));
OFFSETX , OFFSETY + ( PLAYER_HEIGHT + 20 ) * 2 ) ; moveTo (offsetX, OFFSETY + (PLAYER_HEIGHT + 20) * 2);
OFFSETX + ( ( PLAYER_WIDTH + 20 ) * 3 ) , OFFSETY + ( PLAYER_HEIGHT + 20 ) * 2 ) ; lineTo (offsetX + ((PLAYER_WIDTH + 20) * 3), OFFSETY + (PLAYER_HEIGHT + 20) * 2);
OFFSETX + ( PLAYER_WIDTH + 15 ) , OFFSETY ) ; moveTo (offsetX + (PLAYER_WIDTH + 15), OFFSETY);
OFFSETX + ( PLAYER_WIDTH + 15 ) , OFFSETY + ( ( PLAYER_HEIGHT + 20 ) * 3 ) ) ; lineTo (offsetX + (PLAYER_WIDTH + 15), OFFSETY + ((PLAYER_HEIGHT + 20) * 3));
OFFSETX + ( PLAYER_WIDTH + 20 ) * 2 , OFFSETY ) ; moveTo (offsetX + (PLAYER_WIDTH + 20) * 2 OFFSETY);
OFFSETX + ( PLAYER_WIDTH + 20 ) * 2 , OFFSETY + ( ( PLAYER_HEIGHT + 20 ) * 3 ) ) ; lineTo (offsetX + (PLAYER_WIDTH + 20) * 2 OFFSETY + ((PLAYER_HEIGHT + 20) * 3));
}
}

More ...

Undolibrary MatrixArray: an extension of the Array class

di Actionscript 3.0, con lo scopo di semplificare la manipolazione di Array lineari usati come matrice n x m . MatrixArray is an extension of the class Array of Actionscript 3.0, with the aim to simplify the handling of Array linear used as a matrix n x m. This class is part of the library Undolibrary (in the package undolibrary.utils.MatrixArray ) you can freely download function from any client using Google code SVN (Subversion) to:
svn checkout http://undolibrary.googlecode.com/svn/trunk/
Alternatively you can download the single file MatrixArray.as . An example of the use of linear arrays is given in Actionscript 3.0 for beginners: lesson # 2 where we saw one of his simpler in implementation of classic game Tic Tac Toe. ), proprio come una scacchiera. An array of this type is comparable to a rectangular area ( w x h ), just like a chessboard. With this class is possible to treat a matrix of this type just like a lattice with its x and y coordinates. The MatrixArray I used, for example, in the development of all the logic editor Emotions Icons for Skype: Skypemote .

More ...

Skypemote.com: say it with emotions

Skypemote

Open - in beta - Skypemote.com , a project born from an idea me and Nicola ( flussodigitale.com ), which provides a simple editor to create nice drawings from "paste" in Skype. The editor has been created in Adobe Flash CS3 and, weather permitting, would also release a version - Desktop - Adobe AIR.
If you use Skype to "chat" with this editor you can definitely impress your audience. If you find this service useful and fun, do not forget to help with suggestions, and - if you will - with some donations! :)
Follow the project because there will soon be more "sympathetic" news.

More ...

Actionscript 3.0 for beginners: lesson # 1

Premise

Actionscript 3.0 can be a good starting point to become familiar, those unfamiliar with C programming and / or C + +, orioentata programming (OOP). In addition, this series of lessons will be useful to those coming from other rooms or from earlier versions of Flash.

Set a project

In this first lesson, we'll see how to set up a project Flash CS3 generic. It is good to use when the projects are expected to have to deal with at least more than one file. The use of the project was introduced - by Macromedia - already in versions prior to CS3, then dovrebbere also known to be subject to 2.0 Actionscript developers.
However with Actionscript 3.0 - as we shall see - it is possible to create a Actionscript (. As) to the document-root movie ours. Fla so to speak. This feature is very useful and makes a minimal project also consists of at least two files: the. Fla. As associated. For this reason, you will "always" from a project, so right now organize the various files (. Fla,. As, ...) that will be part of our "package" of development.
Furthermore, once acquired the dimesticazza with the philosophy to objects, instrinseca in this type of language, it will be normal end up with a number of files, even for simple projects substantially.

More ...



Stop SOPA