Gnash  0.8.11dev
ASHandlers.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GNASH_ASHANDLERS_H
20 #define GNASH_ASHANDLERS_H
21 
22 #include <vector>
23 
24 #include "SWF.h"
25 
26 // Forward declarations
27 namespace gnash {
28  class ActionExec;
29 }
30 
31 namespace gnash {
32 
33 namespace SWF { // gnash::SWF
34 
36  ARG_NONE = 0,
38  // default hex dump, in case the format is unknown or unsupported
46 };
47 
48 
50 {
51  typedef void (*ActionCallback)(ActionExec& thread);
52 
53 public:
54 
55  ActionHandler();
56  ActionHandler(ActionType type, ActionCallback func,
57  ArgumentType format = ARG_NONE);
58 
60  void execute(ActionExec& thread) const;
61 
62  ActionType getType() const { return _type; }
63  ArgumentType getArgFormat() const { return _arg_format; }
64 
65 private:
66 
67  ActionType _type;
68  ActionCallback _callback;
69  ArgumentType _arg_format;
70 };
71 
74 {
75 public:
76 
78  static const SWFHandlers& instance();
79 
81  void execute(ActionType type, ActionExec& thread) const;
82 
83  size_t size() const { return _handlers.size(); }
84 
85  ActionType lastType() const {
86  return ACTION_GOTOEXPRESSION;
87  }
88 
90  return _handlers[x];
91  }
92 
93 private:
94 
95  // Use the ::instance() method to get a reference
96  SWFHandlers();
97 
98  // You won't destroy a singleton
99  ~SWFHandlers();
100 
101  // Indexed by action id
102  typedef std::vector<ActionHandler> container_type;
103 
104  container_type _handlers;
105 
106 };
107 
108 
109 } // namespace SWF
110 } // namespace gnash
111 
112 #endif
gnash::SWF::SWFHandlers::instance
static const SWFHandlers & instance()
Return the singleton instance of SWFHandlers class.
Definition: ASHandlers.cpp:421
sound_handler.h
action_buffer.h
gnash::isLevelTarget
bool isLevelTarget(int version, const std::string &name, unsigned int &levelno)
Return true if the given string can be interpreted as a _level name.
Definition: movie_root.cpp:2387
path
VGPath path
Definition: testr_gtk.cpp:84
gnash::VM::setConstantPool
void setConstantPool(const ConstantPool *pool)
Definition: VM.h:247
gnash::setNaN
void setNaN(as_value &v)
Set a value to NaN.
Definition: as_value.h:524
gnash::SWF::ACTION_DEFINEFUNCTION
@ ACTION_DEFINEFUNCTION
Definition: SWF.h:330
gnash::SWF::ACTION_INT
@ ACTION_INT
Definition: SWF.h:151
gnash::SWF::ACTION_SETMEMBER
@ ACTION_SETMEMBER
Definition: SWF.h:262
gnash::VM::getConstantPool
const ConstantPool * getConstantPool() const
Definition: VM.h:249
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
gnash::SWF::ACTION_GOTOLABEL
@ ACTION_GOTOLABEL
Definition: SWF.h:137
gnash::SWF::ACTION_STRINGLENGTH
@ ACTION_STRINGLENGTH
Definition: SWF.h:148
movie_root.h
gnash::SWF::ACTION_CALLMETHOD
@ ACTION_CALLMETHOD
Definition: SWF.h:270
gnash::SWF::ACTION_STRINGCONCAT
@ ACTION_STRINGCONCAT
Definition: SWF.h:155
name
std::string name
Definition: LocalConnection_as.cpp:149
gnash::isNaN
bool isNaN(const T &num)
Definition: GnashNumeric.h:62
gnash::toBool
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
gnash::SWF::SWFHandlers
A singleton containing the supported SWF Action handlers.
Definition: ASHandlers.h:74
gnash::toInt
std::int32_t toInt(const as_value &v, const VM &vm)
AS2-compatible conversion to 32bit integer.
Definition: VM.cpp:463
gnash::log_swferror
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
gnash::key::d
@ d
Definition: GnashKey.h:150
gnash::DisplayObject::upperAccessibleBound
static const int upperAccessibleBound
Definition: DisplayObject.h:200
gnash::SWF::ACTION_DECREMENT
@ ACTION_DECREMENT
Definition: SWF.h:264
as_object.h
gnash::SWF::ACTION_VAR
@ ACTION_VAR
Definition: SWF.h:231
gnash::SWF::ACTION_NEWEQUALS
@ ACTION_NEWEQUALS
ECMA-262 "Abstract Equality Comparison".
Definition: SWF.h:256
ObjectURI.h
gnash::SWF::ACTION_SETVARIABLE
@ ACTION_SETVARIABLE
Definition: SWF.h:153
gnash::SWF::ACTION_CALLFRAME
@ ACTION_CALLFRAME
Definition: SWF.h:210
gnash::utf8::guessEncoding
EncodingGuess guessEncoding(const std::string &str, int &length, std::vector< int > &offsets)
Common code for guessing at the encoding of random text, between.
Definition: utf8.cpp:281
gnash::MovieClip::PlayState
PlayState
Definition: MovieClip.h:98
gnash::getOwnProperty
as_value getOwnProperty(as_object &o, const ObjectURI &uri)
Get an own member of an object.
Definition: as_object.h:777
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
gnash::log_action
void log_action(StringType msg, Args... args)
Definition: log.h:307
gnash::SWF::ACTION_INITARRAY
@ ACTION_INITARRAY
Definition: SWF.h:232
gnash::SWF::ACTION_DELETE
@ ACTION_DELETE
Definition: SWF.h:214
gnash::DisplayObject::staticDepthOffset
static const int staticDepthOffset
Definition: DisplayObject.h:205
gnash::ActionParserException
Definition: GnashException.h:182
gnash::SWF::ACTION_WAITFORFRAMEEXPRESSION
@ ACTION_WAITFORFRAMEEXPRESSION
Definition: SWF.h:205
gnash::NSV::CLASS_OBJECT
@ CLASS_OBJECT
Definition: namedStrings.h:233
gnash::SWF::ACTION_PLAY
@ ACTION_PLAY
Definition: SWF.h:129
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
gnash::SWF::ACTION_NEWLESSTHAN
@ ACTION_NEWLESSTHAN
Definition: SWF.h:251
y
std::int32_t y
Definition: BitmapData_as.cpp:435
gnash::SWF::ACTION_STOPSOUNDS
@ ACTION_STOPSOUNDS
Definition: SWF.h:132
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::SWF::ACTION_PREVFRAME
@ ACTION_PREVFRAME
Definition: SWF.h:128
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
gnash::SWF::ACTION_SETPROPERTY
@ ACTION_SETPROPERTY
Definition: SWF.h:157
gnash::SWF::ACTION_STOPDRAGMOVIE
@ ACTION_STOPDRAGMOVIE
Definition: SWF.h:162
gnash::utf8::encodeUnicodeCharacter
std::string encodeUnicodeCharacter(std::uint32_t ucs_character)
Encodes the given wide character into a canonical string, theoretically up to 6 chars in length.
Definition: utf8.cpp:165
rc.h
gnash::SWF::SWFHandlers::size
size_t size() const
Definition: ASHandlers.h:83
gnash::pixelsToTwips
std::int32_t pixelsToTwips(double a)
Definition: GnashNumeric.h:144
gnash::NSV::CLASS_FUNCTION
@ CLASS_FUNCTION
Definition: namedStrings.h:216
_
#define _(String)
Definition: log.h:44
gnash::SWF::ACTION_MBLENGTH
@ ACTION_MBLENGTH
Definition: SWF.h:197
gnash::SWF::ACTION_DUPLICATECLIP
@ ACTION_DUPLICATECLIP
Definition: SWF.h:158
gnash::utf8::decodeNextUnicodeCharacter
std::uint32_t decodeNextUnicodeCharacter(std::string::const_iterator &it, const std::string::const_iterator &e)
Return the next Unicode character in the UTF-8 encoded string.
Definition: utf8.cpp:93
gnash::SWF::ActionType
ActionType
SWF action ids. Symbolic names copied from Ming.
Definition: SWF.h:125
gnash::SWF::ACTION_STRICTMODE
@ ACTION_STRICTMODE
Definition: SWF.h:204
gnash::parsePath
bool parsePath(const std::string &var_path_in, std::string &path, std::string &var)
Definition: as_environment.cpp:397
DragState.h
gnash::SWF::ACTION_TARGETPATH
@ ACTION_TARGETPATH
Definition: SWF.h:248
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
ActionExec.h
gnash::SWF::ACTION_SUBTRACT
@ ACTION_SUBTRACT
Definition: SWF.h:139
gnash::SWF::ACTION_NEW
@ ACTION_NEW
Definition: SWF.h:230
_env
const as_environment & _env
Definition: Array_as.cpp:682
gnash::PropFlags::dontEnum
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
gnash::key::m
@ m
Definition: GnashKey.h:159
gnash::key::s
@ s
Definition: GnashKey.h:165
gnash::SWF::ARG_STR
@ ARG_STR
Definition: ASHandlers.h:37
gnash::SWF::ACTION_GOTOEXPRESSION
@ ACTION_GOTOEXPRESSION
aka GOTOFRAME2
Definition: SWF.h:213
gnash::MovieClip::PLAYSTATE_STOP
@ PLAYSTATE_STOP
Definition: MovieClip.h:100
as_value.h
NativeFunction.h
gnash::key::n
@ n
Definition: GnashKey.h:160
gnash::SWF::ARG_PUSH_DATA
@ ARG_PUSH_DATA
Definition: ASHandlers.h:43
start
@ start
Definition: klash_part.cpp:330
Global_as.h
gnash::SWF::ACTION_TRY
@ ACTION_TRY
Definition: SWF.h:328
gnash::ActionExec
Executor of an action_buffer.
Definition: ActionExec.h:119
__FUNCTION__
#define __FUNCTION__
Definition: log.h:437
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::SWF::ACTION_SWAP
@ ACTION_SWAP
Definition: SWF.h:260
gnash::NSV::PROP_CONSTRUCTOR
@ PROP_CONSTRUCTOR
Definition: namedStrings.h:68
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::SWF::ACTION_END
@ ACTION_END
Definition: SWF.h:126
gnash::SWF::ACTION_BRANCHALWAYS
@ ACTION_BRANCHALWAYS
Definition: SWF.h:207
as_function.h
gnash::SWF::ACTION_DELETE2
@ ACTION_DELETE2
Definition: SWF.h:215
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::getMember
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
gnash::SWF::ACTION_SETTARGET
@ ACTION_SETTARGET
Definition: SWF.h:136
gnash::log_trace
void log_trace(StringType msg, Args... args)
Definition: log.h:295
test
Definition: test.py:1
gnash::SWF::SWFHandlers::operator[]
const ActionHandler & operator[](ActionType x) const
Definition: ASHandlers.h:89
gnash::VM::RNG
boost::mt11213b RNG
Definition: VM.h:152
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
gnash::key::k
@ k
Definition: GnashKey.h:157
gnash::SWF::ACTION_FSCOMMAND2
@ ACTION_FSCOMMAND2
SWF7.
Definition: SWF.h:195
gnash::SWF::ACTION_MODULO
@ ACTION_MODULO
Definition: SWF.h:219
IF_VERBOSE_MALFORMED_SWF
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
gnash::SWF::ACTION_STRINGEQ
@ ACTION_STRINGEQ
Definition: SWF.h:147
Function2.h
gnash::setIndexedProperty
void setIndexedProperty(size_t index, DisplayObject &o, const as_value &val)
Set a property by its numeric index.
Definition: DisplayObject.cpp:853
gnash::SWF::ACTION_WITH
@ ACTION_WITH
Definition: SWF.h:329
gnash::as_object::DefaultFlags
static const int DefaultFlags
The most common flags for built-in properties.
Definition: as_object.h:192
gnash::SWF::ACTION_SETTARGETEXPRESSION
@ ACTION_SETTARGETEXPRESSION
Definition: SWF.h:154
gnash::SWF::ACTION_LOGICALNOT
@ ACTION_LOGICALNOT
Definition: SWF.h:146
gnash::SWF::ACTION_MULTIPLY
@ ACTION_MULTIPLY
Definition: SWF.h:140
gnash::getIndexedProperty
void getIndexedProperty(size_t index, DisplayObject &o, as_value &val)
Get a property by its numeric index.
Definition: DisplayObject.cpp:870
gnash::SWF::ACTION_SHIFTRIGHT2
@ ACTION_SHIFTRIGHT2
Definition: SWF.h:299
gnash::SWF::ACTION_POP
@ ACTION_POP
Definition: SWF.h:150
gnash::SWF::ACTION_STRICTEQ
@ ACTION_STRICTEQ
Definition: SWF.h:300
gnash::SWF::ACTION_GETPROPERTY
@ ACTION_GETPROPERTY
Definition: SWF.h:156
gnash::SWF::ActionHandler::execute
void execute(ActionExec &thread) const
Execute the action.
Definition: ASHandlers.cpp:236
gnash::NSV::PROP_uuCONSTRUCTORuu
@ PROP_uuCONSTRUCTORuu
Definition: namedStrings.h:117
gnash::SWF::ACTION_STRINGGREATER
@ ACTION_STRINGGREATER
Definition: SWF.h:310
gnash::fn_call::Args
FunctionArgs< as_value > Args
Definition: fn_call.h:121
gnash::utf8::EncodingGuess
EncodingGuess
Definition: utf8.h:157
gnash::SWF::ARG_U16
@ ARG_U16
Definition: ASHandlers.h:41
gnash::SWF::ACTION_BITWISEOR
@ ACTION_BITWISEOR
Definition: SWF.h:295
gnash::SWF::ACTION_INCREMENT
@ ACTION_INCREMENT
Definition: SWF.h:263
StringPredicates.h
gnash::invoke
DSOEXPORT as_value invoke(const as_value &method, const as_environment &env, as_object *this_ptr, fn_call::Args &args, as_object *super=nullptr, const movie_definition *callerDef=nullptr)
Call an as_value on an as_object.
Definition: Global_as.h:166
gnash::SWF::ACTION_ORD
@ ACTION_ORD
Definition: SWF.h:198
gnash::as_value::to_function
as_function * to_function() const
Return the value as a function only if it is a function.
Definition: as_value.cpp:499
gnash::SWF::ARG_S16
@ ARG_S16
Definition: ASHandlers.h:42
gnash::key::type
type
Definition: GnashKey.h:330
gnash::SWF::ACTION_CHR
@ ACTION_CHR
Definition: SWF.h:199
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
gnash::key::code
code
Definition: GnashKey.h:44
gnash::SWF::ACTION_CASTOP
@ ACTION_CASTOP
Definition: SWF.h:173
gnash::SWF::ActionHandler::ActionHandler
ActionHandler()
Definition: ASHandlers.cpp:218
length
@ length
Definition: klash_part.cpp:329
gnash::SWF::ACTION_GREATER
@ ACTION_GREATER
Definition: SWF.h:305
gnash::constructInstance
as_object * constructInstance(as_function &ctor, const as_environment &env, fn_call::Args &args)
Definition: as_function.cpp:47
gnash::VM::setRegister
void setRegister(size_t index, const as_value &val)
Set value of a register (local or global).
Definition: VM.cpp:206
gnash::SWF::ActionHandler::getArgFormat
ArgumentType getArgFormat() const
Definition: ASHandlers.h:63
gnash::VM::getRegister
const as_value * getRegister(size_t index)
Get value of a register (local or global).
Definition: VM.cpp:191
gnash::SWF::ARG_DECL_DICT
@ ARG_DECL_DICT
Definition: ASHandlers.h:44
gnash::SWF::ACTION_NEWMETHOD
@ ACTION_NEWMETHOD
Definition: SWF.h:279
gnash::SWF::ACTION_ADD
@ ACTION_ADD
Definition: SWF.h:138
gnash::ConstantPool
std::vector< const char * > ConstantPool
An indexed list of strings (must match the definition in action_buffer.h)
Definition: ConstantPool.h:27
gnash::SWF::ACTION_LESSTHAN
@ ACTION_LESSTHAN
Definition: SWF.h:143
URL.h
MovieClip.h
gnash::SWF::ACTION_GETURL
@ ACTION_GETURL
Definition: SWF.h:134
gnash::key::p
@ p
Definition: GnashKey.h:162
gnash::SWF::ARG_U8
@ ARG_U8
Definition: ASHandlers.h:40
gnash::SWF::ACTION_CALLFUNCTION
@ ACTION_CALLFUNCTION
Definition: SWF.h:217
gnash::subtract
void subtract(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionSubtract.
Definition: VM.cpp:392
gnash::SWF::ACTION_ENUM2
@ ACTION_ENUM2
Definition: SWF.h:293
gnash::SWF::ACTION_CONSTANTPOOL
@ ACTION_CONSTANTPOOL
Definition: SWF.h:326
gnash::SWF::ACTION_ENUMERATE
@ ACTION_ENUMERATE
Definition: SWF.h:249
gnash::SWF::ACTION_IMPLEMENTSOP
@ ACTION_IMPLEMENTSOP
Definition: SWF.h:182
gnash::ActionExec::atActionTag
bool atActionTag(SWF::ActionType t)
Definition: ActionExec.h:226
gnash::SWF::ACTION_DEFINEFUNCTION2
@ ACTION_DEFINEFUNCTION2
Definition: SWF.h:327
gnash::SWF::ACTION_GETURL2
@ ACTION_GETURL2
Definition: SWF.h:208
gnash::SWF::ACTION_NEXTFRAME
@ ACTION_NEXTFRAME
Definition: SWF.h:127
GnashNumeric.h
gnash::SWF::ACTION_RANDOM
@ ACTION_RANDOM
Definition: SWF.h:196
gnash::SWF::ACTION_NEWADD
@ ACTION_NEWADD
Definition: SWF.h:250
gnash::SWF::ACTION_PUSHDATA
@ ACTION_PUSHDATA
Definition: SWF.h:206
gnash::MovieClip::METHOD_NONE
@ METHOD_NONE
Definition: MovieClip.h:420
gnash::SWF::ACTION_TYPEOF
@ ACTION_TYPEOF
Definition: SWF.h:244
gnash::ActionExec::skipRemainingBuffer
void skipRemainingBuffer()
Definition: ActionExec.h:230
gnash::convertToNumber
as_value & convertToNumber(as_value &v, const VM &vm)
Force type to number.
Definition: VM.cpp:485
VM.h
__PRETTY_FUNCTION__
#define __PRETTY_FUNCTION__
Definition: log.h:444
gnash::SWF::SWFHandlers::lastType
ActionType lastType() const
Definition: ASHandlers.h:85
gnash::MovieClip::VariablesMethod
VariablesMethod
The various methods for sending data in requests.
Definition: MovieClip.h:419
gnash::SWF::ACTION_LOGICALAND
@ ACTION_LOGICALAND
Definition: SWF.h:144
gnash::VM::randomNumberGenerator
RNG & randomNumberGenerator()
Definition: VM.cpp:80
gnash::SWF::ACTION_WAITFORFRAME
@ ACTION_WAITFORFRAME
Definition: SWF.h:135
gnash::SWF::ACTION_SUBSTRING
@ ACTION_SUBSTRING
Definition: SWF.h:149
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
DisplayObject.h
gnash::QUALITY_HIGH
@ QUALITY_HIGH
Definition: GnashEnums.h:38
log.h
utf8.h
gnash::getRoot
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
IF_VERBOSE_ACTION
#define IF_VERBOSE_ACTION(x)
Definition: log.h:384
gnash::SWF::ACTION_SETREGISTER
@ ACTION_SETREGISTER
Definition: SWF.h:331
gnash::DisplayObject::lowerAccessibleBound
static const int lowerAccessibleBound
See also http://www.kirupa.com/developer/actionscript/depths2.htm.
Definition: DisplayObject.h:195
gnash::MovieClip::PLAYSTATE_PLAY
@ PLAYSTATE_PLAY
Definition: MovieClip.h:99
gnash::SWF::ACTION_EQUAL
@ ACTION_EQUAL
Definition: SWF.h:142
gnash::SWF::ACTION_STRINGCOMPARE
@ ACTION_STRINGCOMPARE
Definition: SWF.h:163
gnash::SWF::ArgumentType
ArgumentType
Definition: ASHandlers.h:35
fn_call.h
gnash::PropFlags::onlySWF6Up
@ onlySWF6Up
Only visible by VM initialized for version 6 or higher.
Definition: PropFlags.h:45
gnash::SWF::ACTION_BITWISEAND
@ ACTION_BITWISEAND
Definition: SWF.h:294
gnash::SWF::ACTION_GETMEMBER
@ ACTION_GETMEMBER
Definition: SWF.h:261
gnash::convertToString
as_value & convertToString(as_value &v, const VM &vm)
Force type to string.
Definition: VM.cpp:493
url
std::string url
Definition: gnash.cpp:59
gnash::SWF::ACTION_TOGGLEQUALITY
@ ACTION_TOGGLEQUALITY
Definition: SWF.h:131
gnash::SWF::ACTION_BRANCHIFTRUE
@ ACTION_BRANCHIFTRUE
Definition: SWF.h:209
gnash::SWF::ACTION_MBCHR
@ ACTION_MBCHR
Definition: SWF.h:203
as_environment.h
gnash::SWF::ACTION_SHIFTLEFT
@ ACTION_SHIFTLEFT
Definition: SWF.h:297
gnash::getObject
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
gnash::key::f
@ f
Definition: GnashKey.h:152
gnash::utf8::encodeCanonicalString
std::string encodeCanonicalString(const std::wstring &wstr, int version)
Converts a std::wstring into canonical std::string.
Definition: utf8.cpp:67
gnashconfig.h
gnash::findTarget
DisplayObject * findTarget(const as_environment &env, const std::string &path)
Find the DisplayObject referenced by the given path.
Definition: as_environment.cpp:632
gnash::SWF::ARG_NONE
@ ARG_NONE
Definition: ASHandlers.h:36
SWF.h
namedStrings.h
gnash::getSWFVersion
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
RunResources.h
gnash::SWF::ACTION_DIVIDE
@ ACTION_DIVIDE
Definition: SWF.h:141
test.uri
uri
Definition: test.py:12
gnash::SWF::ACTION_VAREQUALS
@ ACTION_VAREQUALS
Definition: SWF.h:216
gnash::key::c
@ c
Definition: GnashKey.h:149
gnash::SWF::ARG_FUNCTION2
@ ARG_FUNCTION2
Definition: ASHandlers.h:45
gnash::getStringTable
string_table & getStringTable(const as_environment &env)
Definition: as_environment.cpp:639
Function.h
ASHandlers.h
gnash::QUALITY_LOW
@ QUALITY_LOW
Definition: GnashEnums.h:36
gnash::movie_root::stop_drag
void stop_drag()
Definition: movie_root.h:307
gnash::utf8::decodeCanonicalString
std::wstring decodeCanonicalString(const std::string &str, int version)
Converts a std::string with multibyte characters into a std::wstring.
Definition: utf8.cpp:39
gnash::SWF::ACTION_TRACE
@ ACTION_TRACE
Definition: SWF.h:160
gnash::utf8::ENCGUESS_OTHER
@ ENCGUESS_OTHER
Definition: utf8.h:160
gnash::SWF::ACTION_EXTENDS
@ ACTION_EXTENDS
Definition: SWF.h:325
gnash::SWF::ACTION_INSTANCEOF
@ ACTION_INSTANCEOF
Definition: SWF.h:289
gnash::NSV::PROP_uuPROTOuu
@ PROP_uuPROTOuu
Definition: namedStrings.h:118
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
gnash::SWF::ActionHandler::getType
ActionType getType() const
Definition: ASHandlers.h:62
gnash::SWF::ACTION_STARTDRAGMOVIE
@ ACTION_STARTDRAGMOVIE
Definition: SWF.h:161
gnash::hasOwnProperty
bool hasOwnProperty(as_object &o, const ObjectURI &uri)
Return true if this object has the named property.
Definition: as_object.h:854
gnash::SWF::ACTION_THROW
@ ACTION_THROW
Definition: SWF.h:164
gnash::SWF::ACTION_TONUMBER
@ ACTION_TONUMBER
Definition: SWF.h:257
gnash::SWF::ACTION_SHIFTRIGHT
@ ACTION_SHIFTRIGHT
Definition: SWF.h:298
gnash::SWF::ACTION_GETVARIABLE
@ ACTION_GETVARIABLE
Definition: SWF.h:152
gnash::MovieClip::METHOD_GET
@ METHOD_GET
Definition: MovieClip.h:421
gnash::declareLocal
void declareLocal(CallFrame &c, const ObjectURI &name)
Declare a local variable in this CallFrame.
Definition: CallStack.cpp:71
gnash::SWF::ACTION_LOGICALOR
@ ACTION_LOGICALOR
Definition: SWF.h:145
gnash::SWF::ARG_HEX
@ ARG_HEX
Definition: ASHandlers.h:39
gnash::SWF::ACTION_INITOBJECT
@ ACTION_INITOBJECT
Definition: SWF.h:243
gnash::SWF::ACTION_TOSTRING
@ ACTION_TOSTRING
Definition: SWF.h:258
gnash::newLessThan
as_value newLessThan(const as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionSubtract.
Definition: VM.cpp:400
gnash::SWF::ACTION_MBORD
@ ACTION_MBORD
Definition: SWF.h:202
gnash::key::SWF
@ SWF
Definition: GnashKey.h:331
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::SWF::ACTION_RETURN
@ ACTION_RETURN
Definition: SWF.h:218
gnash::SWF::SWFHandlers::execute
void execute(ActionType type, ActionExec &thread) const
Execute the action identified by 'type' action type.
Definition: ASHandlers.cpp:428
gnash::NSV::PROP_PROTOTYPE
@ PROP_PROTOTYPE
Definition: namedStrings.h:87
gnash::key::u
@ u
Definition: GnashKey.h:167
gnash::SWF::ACTION_STOP
@ ACTION_STOP
Definition: SWF.h:130
x
std::int32_t x
Definition: BitmapData_as.cpp:434
test.v
v
Definition: test.py:11
gnash::SWF::ACTION_GETTIMER
@ ACTION_GETTIMER
Definition: SWF.h:200
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::equals
bool equals(const as_value &a, const as_value &b, const VM &vm)
Check if two values are equal.
Definition: VM.cpp:439
gnash::SWF::ACTION_REMOVECLIP
@ ACTION_REMOVECLIP
Definition: SWF.h:159
gnash::getURLEncodedVars
std::string getURLEncodedVars(as_object &o)
Get url-encoded variables.
Definition: as_object.cpp:946
gnash::convertToPrimitive
as_value & convertToPrimitive(as_value &v, const VM &vm)
Convert to the appropriate primitive type.
Definition: VM.cpp:508
gnash::SWF::ActionHandler
Definition: ASHandlers.h:50
gnash::SWF::ACTION_GOTOFRAME
@ ACTION_GOTOFRAME
Definition: SWF.h:133
gnash::SWF::ACTION_BITWISEXOR
@ ACTION_BITWISEXOR
Definition: SWF.h:296
gnash::newAdd
void newAdd(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionNewAdd.
Definition: VM.cpp:356
gnash::SWF::ACTION_MBSUBSTRING
@ ACTION_MBSUBSTRING
Definition: SWF.h:201
gnash::SWF::ACTION_DUP
@ ACTION_DUP
Definition: SWF.h:259