Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-29-2005, 12:30 PM   #1
dorraba
Registered User
 
Join Date: Dec 2005
Posts: 36
Default Extending classes

Hi.

How do I Create a class that extends from the ComboBox Class and Associate it with a ComboBox that I have placed in a fla Document?
dorraba is offline   Reply With Quote
Old 12-29-2005, 03:32 PM   #2
cancerinform
Senior Member
 
Join Date: Nov 2003
Posts: 859
Default

You can't, because V2 components cannot be changed or additional features be added. You need to create your own component.
__________________
Website - FLASH XML Applications
cancerinform is offline   Reply With Quote
Old 12-29-2005, 04:10 PM   #3
dorraba
Registered User
 
Join Date: Dec 2005
Posts: 36
Default What??? but thats Inheritance

but I saw some tutorials that wrote:

class aaa extends MovieClip{}
dorraba is offline   Reply With Quote
Old 12-29-2005, 04:15 PM   #4
cancerinform
Senior Member
 
Join Date: Nov 2003
Posts: 859
Default

Of course you can extend the functionality of any movieclip using extends but not V2 components, since they are as I said above compiled clips and you cannot add functionality to them. You can only make your own combobox.
__________________
Website - FLASH XML Applications
cancerinform is offline   Reply With Quote
Old 12-29-2005, 04:20 PM   #5
dorraba
Registered User
 
Join Date: Dec 2005
Posts: 36
Default

O.K.
So you meen I can add functionality to a combobox in a new class that inherits from the combobox but in that class I can't change functions of the combobox?
dorraba is offline   Reply With Quote
Old 12-29-2005, 04:26 PM   #6
cancerinform
Senior Member
 
Join Date: Nov 2003
Posts: 859
Default

No, you cannot add more functionality to the combobox component provided by MM (or Adobe MM ). You need to make your own component from scratch.
Put a combox instance on stage. Then open the library and click on combobox symbol and then on the top right corner of the window and select Properties from the menu. That will give you the answer. repeat that with any of your own movieclips.
__________________
Website - FLASH XML Applications
cancerinform 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
AS 2.0 Classes for Multiple Loaded Movies? Supa-T ActionScript 2.0 1 10-14-2004 06:57 PM
Bgx XML Serialization Classes - No more looping through XML !! bgx Components 0 09-30-2004 12:20 PM
Extending Component Classes: MX 2004 LostInRecursion ActionScript 2.0 3 09-02-2004 07:06 PM
extending MX2004 classes using AS 2.0? sneeuwitje ActionScript 2.0 5 07-02-2004 09:57 AM


All times are GMT. The time now is 03:19 AM.

///
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.