Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-25-2009, 06:15 AM   #1
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?


import fl.controls.ComboBox;

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

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

tool1Container height before adding comboBox 72
tool1Container height after adding comboBox 134
ptsung is offline   Reply With Quote

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 12:25 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.