[Flashcoders] Importing ComboBox classes into custom class

2006-05-10 Thread Sumeet Basak
Hi All,

I have a problem displaying a combobox component of Flash 8.

 

The Scenario:

I have a dynamic class psControler which extends
mx.core.UIObject.

This class also imports:

import mx.utils.Delegate;

import mx.events.EventDispatcher;

import mx.controls.Tree;

import mx.controls.MenuBar;

import mx.controls.DataGrid;

 

This class has been assigned to a movie clip and is kept on the stage.

This movie clip has a movie clip within which I want to show the combobox.

 

The Problem:

I am able to see the combobox with some default values I have
entered.

But once I click on the drop down button the combobox does not
open up.

 

Assumption:

I believe I am not importing something which is important to run
the combobox.

 

Can anyone help?


Thanks
Sumeet Basak
CTO
Renaissance Legal  Learning Systems Pvt. Ltd.
Cell: + 91.9223214301
web:  http://www.renaissancesystem.com/ www.renaissancesystem.com;
http://www.conveyancinghub.com/  http://www.conveyancinghub.comemail/
www.conveyancinghub.com
email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]  

Renaissance: The Revival of Learning  Culture; Syn: Rebirth
 mailto:[EMAIL PROTECTED] Contact us for all your Legal, Web and
eLearning requirements

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Importing ComboBox classes into custom class

2006-05-10 Thread j.c.wichman
Hi,
I have no clue what's causing this, but I had similar problems in the past,
you might want to try any or all of the following 3 things, if noone
recognizes the problem directly:
- set _lockroot on the movieclip / on the combobox instance
- Object.registerClass(ComboDownArrowDisabled, MovieClip); on your main
timeline
- try saving as flash mx 2004, and compile in flash mx 2004, this fixed the
last problem I had which was that a combobox wasn't throwing events

Some if it tackles inherent flash issues, some of it I had to do becoz of
the shortcuts I took to go somewhere quickly :).

I don't think psControler should have any influence on the behavior you are
seeing, if you exclude the class, does the combo work correctly?

Greetz
Hans



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Sumeet Basak
 Sent: Wednesday, May 10, 2006 2:53 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Importing ComboBox classes into custom class
 
 Hi All,
 
 I have a problem displaying a combobox component of Flash 8.
 
  
 
 The Scenario:
 
 I have a dynamic class psControler which extends 
 mx.core.UIObject.
 
 This class also imports:
 
 import mx.utils.Delegate;
 
 import mx.events.EventDispatcher;
 
 import mx.controls.Tree;
 
 import mx.controls.MenuBar;
 
 import mx.controls.DataGrid;
 
  
 
 This class has been assigned to a movie clip and is kept on the stage.
 
 This movie clip has a movie clip within which I want to show 
 the combobox.
 
  
 
 The Problem:
 
 I am able to see the combobox with some default 
 values I have entered.
 
 But once I click on the drop down button the 
 combobox does not open up.
 
  
 
 Assumption:
 
 I believe I am not importing something which is 
 important to run the combobox.
 
  
 
 Can anyone help?
 
 
 Thanks
 Sumeet Basak
 CTO
 Renaissance Legal  Learning Systems Pvt. Ltd.
 Cell: + 91.9223214301
 web:  http://www.renaissancesystem.com/ 
 www.renaissancesystem.com; http://www.conveyancinghub.com/  
 http://www.conveyancinghub.comemail/
 www.conveyancinghub.com
 email:  mailto:[EMAIL PROTECTED] 
 [EMAIL PROTECTED]  
 
 Renaissance: The Revival of Learning  Culture; Syn: Rebirth  
 mailto:[EMAIL PROTECTED] Contact us for all your 
 Legal, Web and eLearning requirements
 
  
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com