Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-05-2002, 05:22 PM   #1
medleyj
Registered User
 
Join Date: Nov 2002
Location: Kansas City, MO
Posts: 15
Default Subclassing Flash UI Components

I've subclassed the Tree component that is part of the Flash UI Components Set 2. So far I've added very little additional code. Here is all I have.

#initclip 6

function AWDTreeClass() {
this.init();
super();
}

AWDTreeClass.prototype = new FTreeClass();
Object.registerClass("AWDTreeSymbol", AWDTreeClass);

AWDTreeClass.prototype.init = function() {
this.setDefaultNodeIconSymbolName("TransactionSymb ol");
}

#endinitclip

The problem is when I run an instance of AWDTreeClass. The nodes don't appear until I click them. Does anybody know what might be causing this?
medleyj is offline   Reply With Quote
Old 04-05-2005, 07:23 PM   #2
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

Better late then never... (hope this works though)

ActionScript Code:
#initclip 6 function AWDTreeClass() { //this.init();    <-- init will be called in the super anyway! super(); } AWDTreeClass.prototype = new FTreeClass(); Object.registerClass("AWDTreeSymbol", AWDTreeClass); AWDTreeClass.prototype.init = function() { super.init()// <-- This is the one super will call. Pass on through first! this.setDefaultNodeIconSymbolName("TransactionSymbol"); } #endinitclip

www.lukeschreur.com

Last edited by pan69; 04-25-2013 at 10:51 AM.
pan69 is offline   Reply With Quote
Old 04-11-2005, 01:18 AM   #3
Barn
digital curmudgeon
 
Barn's Avatar
 
Join Date: Feb 2005
Location: http://www.were-here.com
Posts: 1,082
Default

I'm not clear why this thread is in the Flash 4 and 5 ActionScript forum.
Barn is offline   Reply With Quote
Old 04-11-2005, 05:59 AM   #4
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

Now, you mention it... Me neither... That's probably the reason no one answered this post...

www.lukeschreur.com

Last edited by pan69; 04-25-2013 at 10:51 AM.
pan69 is offline   Reply With Quote
Old 04-11-2005, 11:32 AM   #5
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

its in the wrong forum now as well, it should be in the FMX 6 forum, since this is not MX2004 v2 components that you are subclassing.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot 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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.

///
Follow actionscriptorg on Twitter

 


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