Amazing ;-) It works now... Did not know the bit about passing correct types to setstyles... Thought that i had to pass strings like when using mxml...
Thanks! PS: The amazing bit is because all properties that i was setting seemed to be ok (debug via Alert)... --- In [email protected], "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > Hi, > extraTagsSelectionVBox.setStyle("cornerRadius","10") ; > extraTagsSelectionVBox.setStyle("backgroundColor","#00FF00") ; > > Set your styles with correct as3 Types; > > extraTagsSelectionVBox.setStyle("cornerRadius",10) ; > extraTagsSelectionVBox.setStyle("backgroundColor", 0x00FF00) ; > > Mike > > On Mon, Oct 20, 2008 at 11:59 AM, fotis.chatzinikos < > [EMAIL PROTECTED]> wrote: > > > Hi, i am making a vbox via actionscript and set its width and height > > to 200x300... After adding a single button (or anything else) if i > > throw an alert with its width and height they seem correct > > but...scroll bars appear which can scroll the vbox as if it was 2000 > > by 2000 pixels wide/high... > > > > The relevant code is: > > > > var extraTagsSelectionVBox:VBox = new VBox() ; > > extraTagsSelectionVBox.setStyle("cornerRadius","10") ; > > extraTagsSelectionVBox.setStyle("backgroundColor","#00FF00") ; > > extraTagsSelectionVBox.setStyle("borderStyle","solid") ; > > extraTagsSelectionVBox.setStyle("borderThickness","3") ; > > extraTagsSelectionVBox.setStyle("paddingLeft","5") ; > > extraTagsSelectionVBox.setStyle("paddingRight","5") ; > > extraTagsSelectionVBox.setStyle("paddingTop","5") ; > > extraTagsSelectionVBox.setStyle("paddingBottom","5") ; > > > > var b:Button = new Button() ; > > b.label = "Extra Tags [Close]" ; > > b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ; > > extraTagsSelectionVBox.addChild(b) ; > > > > //THIS ADDS the VBox in a parent container > > //rawchildren... > > > > mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ; > > > > please can someone have a look? > > > > > > > > > > -- > Teoti Graphix, LLC > http://www.teotigraphix.com > > Teoti Graphix Blog > http://www.blog.teotigraphix.com > > You can find more by solving the problem then by 'asking the question'. >

