| Subcribe via RSS

ActionScript 3.0: Top Level Cheatsheets

January 19th, 2009 | No Comments | Posted in ActionScript 3.0

Well, this is the second plans, here is presented:Methods, Constants, Properties, Classes, Global Functions, Global Constants and more things that will be useful for a ActionScripter.

Have Fun and see you soon.

Hehe, I forgot, this is the plans: Click Here

Tags: , ,

ActionScript 2.0 to 3.0 Migration Cheatsheets

January 19th, 2009 | No Comments | Posted in ActionScript 3.0

Hey, I found yesterday some very useful things for many of you. I found this plans and another one, in this plans is described the migration from ActionScript 2.0 to ActionScript 3.0. Well, if you are using ActionScript 2.0 and you whant to “migrate” to ActionScript 3.0, this is a very useful thing for this. I hope that plans will help you.

This is the first plans: Click Here

Tags: , , , , ,

As 3.0 Line Effect

January 13th, 2009 | 10 Comments | Posted in ActionScript 3.0

Hi everyone and welcome again to my blog. Well, this is a very simply effect applied to a line. This is the code:

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
	 * Author: Horatiu Condrea ( http://www.flashdesign-store.com )
	 * Description: AS 3.0 Line Effect
**/
 
    // -------------------------------------
    // Variables
    // -------------------------------------
 
// I created these 2 variables(bmd and bm)
// Because the filter must know where to act
// If you whant a full effect, the stage size must be equal in the script
 
var bmd:BitmapData = new BitmapData(550, 400 , true, 0X000000);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
 
var sp:Sprite = new Sprite();
addChild(sp);
 
var bf:BlurFilter = new BlurFilter(3,3,3);   // Set the BlurFilter Effect
 
var cmf:ColorMatrixFilter = new ColorMatrixFilter   // Set the ColorMatrixFilter Effect
([1, 2, 1, 5, 1,
  0, 1, 2, 2, 3,
  2, 0, 2, 2, 0,
  0, 0, 0, 0.83, 0]);
 
    // -------------------------------------
    //  Methods
    // -------------------------------------
 
stage.addEventListener (MouseEvent.MOUSE_MOVE, curveLine);
// Now, add an ENTER_FRAME event listener that
// will allow to add the filter
addEventListener(Event.ENTER_FRAME, loop); 
 
function curveLine(event:MouseEvent):void
{
 
// Set the line settings
   sp.graphics.clear();
   sp.graphics.lineStyle(1.5, 0xffffff);
   sp.graphics.moveTo(mouseX, mouseY);
   sp.graphics.curveTo(stage.stageWidth / 2, stage.stageHeight / 2,
                    stage.stageWidth / 2, 0);
}
 
function loop(e:Event):void
{
        // Apply the filter effects to line
	bmd.draw(sp);
	bmd.applyFilter(bmd, bmd.rect,new Point(),bf);
	bmd.applyFilter(bmd, bmd.rect,new Point(),cmf);
	bmd.scroll(2,1);
}

Here is the final result: Tags: , , ,

What is ActionScript?

January 11th, 2009 | No Comments | Posted in ActionScript 3.0

Well, ActionScript is a scripting language,  who is used primarily for the development of websites and software using the AdobeFlashPlayer platform (in the form of SWF files embedded into Web page). Originally developed by Macromedia, the language is now owned by Adobe (which acquired Macromedia in 2005).

Appeared in 1998, ActionScript changed 3 different types of scripting language, which of course had the same purpose.

  • ActionScript 1.0 appeared in 2000.
  • ActionScript 2.0 appeared in 2003.
  • ActionScript 3.0 appeared in 2006.

Well, I work with ActionScript 3.0, but more people still improve their technique, using ActionScript 2.0.

Now let’s get to work!

Tags: , , ,
Get Adobe Flash playerPlugin by wpburn.com wordpress themes