mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 14:50:19 +00:00
trunk contents moved to root
This commit is contained in:
17
testdata/as2/Box.as
vendored
Normal file
17
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