Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > haXe

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-31-2009, 02:44 AM   #1
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 3,239
Send a message via ICQ to wvxvw
Default How do you call a superclass method?

Newbish question
So, how do you call a superclass method?
It says
Quote:
Field super cannot be accessed for reading
__________________
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Old 10-31-2009, 03:04 AM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

Looks like it should work
http://haxe.org/ref/oop
(Under Extends)
__________________
(6)
senocular is offline   Reply With Quote
Old 10-31-2009, 04:52 AM   #3
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 3,239
Send a message via ICQ to wvxvw
Default

Thanks, yes, I've seen that one, but, the problem as it comes is only inside constructor, the other methods seem to be OK...
Attached Thumbnails
Click image for larger version

Name:	super.gif
Views:	20
Size:	7.6 KB
ID:	32781  
__________________
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Old 11-01-2009, 05:15 PM   #4
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 3,239
Send a message via ICQ to wvxvw
Default

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..
wvxvw is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.