4 Flash- -
[ ]
, Flash-.
:
- /
:
1) FlashDevelop ?
2) Flash CS5 SWC
3) SWC AS3-
4)
5) Flash-
-
, , .
1)
FlashDevelop ?
, .
1) IDE FlashDevelop;
2) ( ) File > Close All, AS3 - Project > New Project > AS3;
Main.as
package walked_zomby
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private var _sprite:Sprite;
private var _vx:Number = 1;
private var _vy:Number = 0;
private var _timer:Timer;
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
_sprite = new Sprite();
_sprite.graphics.beginFill(0xffff00, 100);
_sprite.graphics.drawCircle(0, 0, 50);
_sprite, graphics.endFill();
_sprite.x = 0;
_sprite.y = 50;
addChild(_sprite);
_timer = new Timer(25);
_timer.addEventListener("timer", onTimer);
_timer.start();
}
public function onTimer(event:TimerEvent):void {
_sprite.x += _vx;
_sprite.y += _vy;
}
}
}
.
swf , , GoogleChrome
Adobe Flash Player.
25 .
, FlashDevelop ( - -
-, , flash ?
Flash)
2 -
2)
Flash CS5 SWC
, . -
Photoshop, . , ( , ) .
, , . Flash Develop.
- , PNG , , swf .
Adobe Flash CS5 .
:
1) Flash CS5.
2) AS3.
3) File > import > import to stage > png - PNG-. , .
4) AS3-. - Distribute to Layers (. . )
5) , F8 .
6) (smoothing) - Properties > Bitmap properties - PNG . .
7) SWC .
Flash. SWC .
8) SWC , lib FlashDevelop .
, , swc- FlashDevelop . FlashDevelop SWC Add to Library.
:
3)
SWC AS3-
, , - - . . .
-
====================
package walked_zomby
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private var _vx:Number = 1;
private var _vy:Number = 0;
private var _timer:Timer;
private var zomby_frames: Array;
private var current_frame: int;
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
current_frame = 1;
zomby_frames = new Array();
zomby_frames.push(new walked_zomby_right_1);
zomby_frames.push(new walked_zomby_right_2);
zomby_frames.push(new walked_zomby_right_3);
zomby_frames.push(new walked_zomby_right_4);
zomby_frames.push(new walked_zomby_right_5);
zomby_frames.push(new walked_zomby_right_6);
zomby_frames.push(new walked_zomby_right_7);
zomby_frames.push(new walked_zomby_right_8);
for ( var i:int = 0; i < 8; i++ )
{
addChild(zomby_frames[i]);
(Sprite)(zomby_frames[i]).visible = false;
}
(Sprite)(zomby_frames[0]).visible = true;
_timer = new Timer(100);
_timer.addEventListener("timer", onTimer);
_timer.start();
}
public function onTimer(event:TimerEvent):void {
for ( var i:int = 0; i < 8; i++ )
{
var sx:int = (Sprite)(zomby_frames[i]).x;
if ( sx > 300 )
{
sx = 0;
(Sprite)(zomby_frames[i]).x = sx;
}
(Sprite)(zomby_frames[i]).x += _vx;
}
(Sprite)(zomby_frames[current_frame-1]).x += _vx;
(Sprite)(zomby_frames[current_frame-1]).visible = false;
if ( current_frame < 8 )
{
current_frame += 1;
}
else {
current_frame = 1;
}
(Sprite)(zomby_frames[current_frame-1]).visible = true;
}
}
}
====================
2 -
4)
5)
Flash-
4)
, - . , , , - .
, . , / 2 :
4.1 ) "" - . . ,
-
4.2) , " ". , . . .
-
// public function Main():void
stage.focus = this;
addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
// "" onKeyDown
private function onKeyDown(event:KeyboardEvent):void {
if ( event.keyCode == Keyboard.RIGHT )
{
MoveHero();
}
}
//
// , -
for ( var i:int = 0; i < 8; i++ ) // , , 3
{// , , 3
addChild(zomby_frames[i]);// , , 3
(Sprite)(zomby_frames[i]).visible = false;// , , 3
(MovieClip)(zomby_frames[i]).buttonMode = true; // , !!!
}// , , 3
(Sprite)(zomby_frames[0]).visible = true;// , , 3
5)
Flash-
- - , - . Flash- .
[ ]
:
0
0
|
|
|
|
-, godot,
|
|
|
|
|
|
|
|
|
|
: dress - hordes 1 4
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
, , 2020 - ,
|
|
|
|
|
|
|
|
|
|
, , , .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
anova
|
A Knots Story |
sabotage |
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, , cms,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, , ria xxl , fly snow 3d , . -
|
|
|
|
|
|
fle game engine -
|
|
|
|
|
|
- / megainformatic cms express files -
|
|
|
|
|
|
Flash, Flash - .
|
|
|
|
|
|
(multi lang), , . - (megainformatic cms social), megainformatic cms groupon, keywords gen + , .
megainformatic.ru/webjob/ -
- |
|
|
megainformatic.ru/webjob/
megainformatic.ru/webjob/ -
- |
|
|
|
|
|
,
megainformatic cms admin -
|
|
|
|
|
|
350 . |
5800 . |
3000 . |
500 . |
|
|
|
|
|
|
|
|
|
|
|
|
megainformatic cms free - Photoshop
,
Adobe Photoshop. ,
- GIMP, Corel Photo Paint .
|
|
|
|
|
|
2d 3d, , !
. ,
,
!!! ( , ! ). |
|
|
|
|
|
|
|
|
|
|
|
,
: -
350 . |
510 . |
fle game engine |
|
- , ,
, .
- - :
- |
|
|
|
|
|
|
|
|
|
|
|
, 3ds max, photoshop, c++,
directx, delphi php.
,
.
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Photoshop free,
delphi directx - , !,
mp3 - ,
megainformatic cms express -
php + my sql. |
|
|
|
|
|
|
|
|
|
|
|
,
, delphi directx 8.1 (
3d ), 3d studio max, -
Fruity Loops Studio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|