-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e846d03
commit 1e22400
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//! `flash.display` namespace | ||
pub mod avm1movie; | ||
pub mod bitmap; | ||
pub mod bitmap_data; | ||
pub mod display_object; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package flash.display { | ||
import __ruffle__.stub_method; | ||
|
||
[Ruffle(InstanceAllocator)] | ||
public class AVM1Movie extends DisplayObject { | ||
public function AVM1Movie() { | ||
// Should be inaccessible | ||
} | ||
|
||
public function call(functionName:String, ... rest):* { | ||
stub_method("flash.display.AVM1Movie", "call"); | ||
return null; | ||
} | ||
|
||
public function addCallback(name:String, fn:Function):void { | ||
stub_method("flash.display.AVM1Movie", "addCallback"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::avm2::{error::argument_error, Activation, ClassObject, Error, Object}; | ||
|
||
pub fn avm1movie_allocator<'gc>( | ||
_class: ClassObject<'gc>, | ||
activation: &mut Activation<'_, 'gc>, | ||
) -> Result<Object<'gc>, Error<'gc>> { | ||
return Err(Error::AvmError(argument_error( | ||
activation, | ||
"Error #2012: AVM1Movie$ class cannot be instantiated.", | ||
2012, | ||
)?)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters