00:00
00:00
mtv129
I am an as2, lisp and objc programmer. I also do some educational materials, one of the developers of the biggest flash game in history

Matvii Jarosh @mtv129

Male

flash8

Ukraine

Joined on 10/22/21

Level:
19
Exp Points:
3,868 / 4,010
Exp Rank:
14,114
Vote Power:
6.11 votes
Rank:
Police Sergeant
Global Rank:
8,575
Blams:
194
Saves:
901
B/P Bonus:
12%
Whistle:
Normal
Trophies:
5
Medals:
878

Modules in as2 are power!

Posted by mtv129 - April 16th, 2024


You probably see the power in SWC libraries, or used #include "file.as", but you just don't know the modules in the Adobe Flash library, here's what you need for this:


1) create a .fla file


2) add an empty MovieClip to it, write in Indetifer the name of the class that will be used in the module


3) write a class for it, create several functions


4) create the main .fla file where the module will be used


5) create a clip with these settings

iu_1190292_9946875.png

6) add to the scene (can be in _root)


7) now you have a class that works as a module and can work with the environment, for example, change Misha’s cursor to another in the entire game, modules can work between each other


Now you can create modules, they will serve you well


Tags:

4

Comments

Comments ain't a thing here.