Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-25-2009, 06:15 AM   #1
ptsung
Registered User
 
Join Date: Jan 2009
Posts: 1
Default [AS3] ComboBox Problem

I am trying to add a comboBox to a sprite as a Child. For some reason after adding the comboBox to the sprite, the height of the sprite gets bigger. I attached a copy of the code below.

Is this a bug? If so, any suggestions how I can get around this problem?

Thanks.

import fl.controls.ComboBox;

var tool1Container:Sprite = new Sprite();
tool1Container.graphics.beginFill(0xe5e6e7);
tool1Container.graphics.lineStyle(2, 0x929394);
tool1Container.graphics.drawRoundRect(0, 0, 220, 70, 0);
tool1Container.graphics.endFill();
tool1Container.x = 20;
tool1Container.y = 0;
addChild(tool1Container);
trace("tool1Container height before adding comboBox " + tool1Container.height);

var cbBox:ComboBox = new ComboBox();
cbBox.setSize(100,22);
cbBox.y = 33;
tool1Container.addChild(cbBox);
trace("tool1Container height after adding comboBox " + tool1Container.height);

//output
tool1Container height before adding comboBox 72
tool1Container height after adding comboBox 134
ptsung 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
[AS3] ComboBox inside Datagrid CFB001 Components 13 02-05-2009 10:18 AM
Problem with AS and ComboBox Sarah012 Components 1 12-20-2007 03:42 AM
combobox weird problem gio Components 0 06-17-2006 11:25 PM
Problem with buttons and combobox nomis_take Components 5 10-03-2005 07:14 PM
Re: combobox component Problem flash mx 2004 bearslife Components 2 01-12-2005 04:40 PM


All times are GMT. The time now is 09:30 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.