mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-08-02 15:32:15 +00:00
Separated FFDec core library and the rest (GUI).
FFDec Library is now LGPLv3, others stay GPLv3. Version changed to 3.0.0 for FFDec, 1.0.0 for FFDec Library.
This commit is contained in:
17
libsrc/ffdec_lib/testdata/as2/Box.as
vendored
Normal file
17
libsrc/ffdec_lib/testdata/as2/Box.as
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
class Box extends MovieClip{
|
||||
// declare class members
|
||||
var box_mc:MovieClip;
|
||||
// Constructor that takes mc as argument
|
||||
public function Box(passed_mc:MovieClip){
|
||||
// assign passed mc to our class member
|
||||
box_mc = passed_mc;
|
||||
}
|
||||
// Methods
|
||||
public function moveUp(){
|
||||
box_mc._y -= 1;
|
||||
}
|
||||
|
||||
public function moveDown(){
|
||||
box_mc._y += 20;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user