abc

Anyone used the ABC Metric for measuring an application's size?

There are some nice things about it (like it encapsulates the concept of Cyclomatic complexity), and I was wondering if anyone has used it in "real life". If so, what are your experiences? Is it a useful measure of size (as opposed to KLOC or Function Points)? For those wondering what I'm smoking: Here's a link to some info on it: htt...

What do *you* use C++ ABC constructors for?

Hi, What do people here use C++ Abstract Base Class constructors for in the field? I am talking about pure interface classes having no data members and no non-pure virtual members. Can anyone demonstrate any idioms which use ABC constructors in a useful way? Or is it just intrinsic to the nature of using ABCs to implement interfaces t...

ONGL in struts 2.1.6

Hi, I am using struts 2.1.6 with ONGL. Please see the code below and tell me where should I define properties to <td> tag like width, height, bgcolor etc. in line no 3 and 4. 1) s:form action="Login"> 2) <table> 3) <tr><s:textfield key="username"/></tr> 4) <tr><s:password key="password" /></tr> 5) </table> 6) </s:form> ...

What is a "nearly-empty" class?

...

What tools are available to edit/create AVM2 bytecode?

I'd like to generate some bytecode for the Flash 10 AVM2 directly, i.e. without AS3. An assembler that produced a SWF file would be ideal. Does this exist? If not, what's the easiest way to get from assembler abc SWF? ...

localy execute actionscript bytecode

i want to execute a piece of bytecode so that it will run in a specific scope ? for example i want to be able to run this code label.x = 100+label.width and have it react to a label instance that is somewhere inside the compiled swf. i want the code have the 'this' keyword of my abc code to point to the parent of the label instance....

Inherited class "invalid pointer error" when calling virtual functions.

As you can see in the code below, I have an Abstract Base Class "HostWindow", and class that derives from it "Chrome". All the functions are implemented in Chrome. The issue is, I can't call functions in Chrome if they're virtual. class HostWindow : public Noncopyable { public: virtual ~HostWindow() { } // Pure virtual function...

How do I disassemble ABC bytecode?

If I have an abc file, either compiled through the flex SDK, or stripped from a .SWF file, are there any tools that will disassemble that file purely to see what it contains? ...

Problem with handling click event of bitmap

i am using navigationClick method to handle click event of Bitmap images & Buttons it works fine when i dont use VerticalFieldManger . But when i adjust positions of field using this field manager then it doesnt capture click event of all controls just on capture Index(0) click which i think is verticalFieldmanager not other (Bitmaps & B...

Is there a way to convert a swf to an .abc file?

I'm looking for a way, preferably a command-line utility, to pump out an .abc file for a compiled swf. I've looked into asc.jar, but so far it seems like it can only accept classes, not compiled swfs. Anybody know of a good way to do this? The end-goal of this process is to use Zwetan's RedTamarin project to run describeType on some sp...

Should I use an API/ABC when designing a class used by several in C++?

Hi, I am about to add a class X that will be used by my three previously designed classes (A, B and C). The new class X will contain data and functions for new features as well as provide services to the classes that use it to hide lower layers. The problem is that A, B and C will use class X quite differently, that is, use different ...

Why use Abstract Base Classes in Python?

Being used to the old ways of duck typing in Python, I failed to understand the need for ABC (abstract base classes). The help is good on how to use them. I tried to read the rationale in the PEP, but it went over my head. If I was looking for a mutable sequence container, I would check for __setitem__, or more likely tried to use it (E...

How do I subclass collections.Iterator?

According to the documentation on ABCs, I should just have to add a next method to be able to subclass collections.Iterator. So, I'm using the following class: class DummyClass(collections.Iterator): def next(self): return 1 However, I get an error when I try to instantiate it: >>> x = DummyClass() Traceback (most recent...