Made to Order Software Corporation Logo

class

Cast Object

SWF Action
Action Category: 
Objects
Action Details: 
0
Action Identifier: 
43
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 1 (o), pop 1 (s), push 1 (o)
Action Operation: 
o1 := pop();
s2 := pop();
r := (s2) o1;
push(r);
Action Flash Version: 
7
See Also: 

The Cast Object action makes sure that the object o1 is an instance of class s2. If it is the case, then o1 is pushed back onto the stack. Otherwise Null is pushed onto the stack.

The comparison is identical to the one applied by the Instance Of action.

SymbolClass

Tag Info
Tag Number: 
76
Tag Type: 
Action
Tag Flash Version: 
9
Brief Description: 

Instantiate objects from a set of classes.

Tag Structure: 
struct swf_symbolclass {
	swf_tag			f_tag;		/* 76 */
	unsigned short		f_symbol_count;
	struct {
		unsigned short		f_symbol_id;
		string			f_symbol_name;
	} f_symbol_references[f_symbol_count];
};

The SymbolClass tag is used to instantiate objects from action script version 3 definitions (see DoABCDefine.) You can instantiate each object only once with this technique.

The f_symbol_id references an ActionScript version 3 object (DoABC) and the f_symbol_name references the class to instantiate.

When f_symbol_id is set to zero, this tag becomes a special case and uses the f_symbol_name as the name of the top level class (root? TBD.)

DoABCDefine

Tag Info
Tag Number: 
72
Tag Type: 
Action
Tag Flash Version: 
9
Brief Description: 

New container tag for ActionScripts under SWF 9. Includes only actions. This tag is not defined in the official Flash documentation.

Tag Structure: 
struct swf_doabc {
	swf_tag			f_tag;		/* 72 or 82 */
	if(f_tag == DoABC) {
		unsigned long	f_action_flags;
		string		f_action_name;
	}
	swf_action3		f_action_record[variable];
};

*the version specified here is the version in which the tags appeared—however, actions of higher versions can be used with older version tags and thus this version doesn't indicate the version of all the actions used in this tag

The DoABC and DoABCDefine are available since version 9. These are similar to the old DoAction and DoInitAction, yet the actions use a way different declaration scheme and they include flags and a name. This new scheme helps greatly in simplifying the definitions of ECMAScript classes and accelerate the access to the code tremendously.

Note that the ...

Terms & Conditions

Made to Order Software Corporation
Terms and Conditions for the Online Services
offered by Made to Order Software Corporation

This Agreement ("Agreement") is by and between Made to Order Software Corporation ("m2osw") a Californian Corporation and You, your heirs, your agents, successors and assigns ("You" and "Your"), and is made effective as of the date of electronic execution, which is when you register for an electronic account to use the Web site of m2osw. This Agreement sets forth the terms and conditions of Your use of the Online Services ...

Support

Support at Made to Order Software

Made to Order Software offers support for all of its products.

For our consumer products, please review your options on the corresponding consumer product page.

PHP eFax

$99.00

A fax machine with a fax coming out saying 'PHP eFax' Since, eFax® Developer does not offer a PHP interface, we at Made to Order Software Corporation found that in order to offer a fax service to our restaurant customers who use Order Made!®, we had to write our own PHP library in order to integrate properly with eFax. Now we are offering this robust library to save you development time by giving you access to our source code.

Save yourself the headache of development time! Get PHP eFax now!

Works with PHP 4.x and PHP 5.x

$99.00

Made to Order Software releases Turn Watcher 1.4 and a new website!

Made to Order Software is proud to announce the release of Turn Watcher version 1.4 and a brand new website!

Turn Watcher version 1.4 incorporates not only some much needed bug fixes (specifically the Stabilize function) but the addition of a brand new feature: Soft Columns.

Use Soft Columns to add, edit and remove rolls and information columns to each of your combatants. For example, you may remove the Spot/Listen columns and replace them with Perception. Add new rolls such as Move Silently and Persuasion. You may also add information-only columns such as Armor Class and Condition Track, ...

Testing PHP properly...

I have been wondering, for a little while, how can I properly test my PHP code?! Only my server can run it, right? Well, no, there is CLI. Okay, but how can I make that work in there?

The best answer I’ve got so far: simpletest. This PHP library let you write a test a la C++. You simply create a class derived from a SimpleTest class, and voilà. You are done. Well… you still have to implement test functions. But that is still a breeze.

I used this library to test the PHP eFax classes and got about 4 bugs out (not too bad, considering I wrote over 1,000 lines of code and ...

PHP eFax v1.1 released

In 2007, Made to Order Software created a software package to support the eFax protocol using PHP. Early in 2008, we offered the package for your developers to send faxes from your web server in just minutes anywhere in the world. Now, we offer PHP eFax version 1.1 that not only sends faxes, it also parses inbound faxes with a single call to the PHP eFax object.

eFax® is a company offering a reliable system to send and receive faxes cheaply. Their system works with the Internet and thus is directly accessible to your web server.

This newer version includes Unit Tests that are used to ...

Pointers and proper exception handling...

Many C++ programmers have been C programmers first. Therefore, a lot of times, you find statements written this way:

ptr = new type;

if(ptr == 0) // handle error...

This is a C programmer that does not yet know that the new operator will throw an error if the allocation cannot happen. This makes a lot of sense, but what does that mean to the C++ programmer?