| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 | |
|
Holosuit User
|
Newbish question
![]() So, how do you call a superclass method? It says Quote:
__________________
The .NET open source editor for Flash and web developers *This would be my contribution to the project* couchsurfing if you need it |
|
|
|
|
|
|
#3 |
|
Holosuit User
|
Thanks, yes, I've seen that one, but, the problem as it comes is only inside constructor, the other methods seem to be OK...
__________________
The .NET open source editor for Flash and web developers *This would be my contribution to the project* couchsurfing if you need it |
|
|
|
|
|
#4 |
|
Holosuit User
|
Well, negative answer is also an answer...
http://haxe.markmail.org/message/fud...+state:results and http://haxe.org/forum/thread/685 In a nut shell: You cannot override FP built-in classes properties (getters / setters). EDIT: But, actually, the first link makes sense in saying that composition may be a preferred way to go about it. Somehow I always struggled against a bunch of a properties I have to deal somehow in classes extending other classes that have lots of properties the extending class doesn't need. Now as I look at it again, it makes much more sense to me... Well, if, say I need a DisplayObject-like class that only has width, height, x and y, why drag all the dozens of properties into this new class? ![]()
__________________
The .NET open source editor for Flash and web developers *This would be my contribution to the project* couchsurfing if you need it Last edited by wvxvw; 11-01-2009 at 05:35 PM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|