It is a style so you have to use setStyle()

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, July 21, 2008 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HBox verticalGap

 

How come when I create an HBox in view mode, it allows verticalGap=30

but when I create an HBox dymanically it says there is no such property
movieBox.verticalGap=30;
1119: Access of possibly undefined property verticalGap through a 
reference with static type mx.containers:HBox.

Also, I asked this before and didn't get an answer, Why does the style 
explorer not have Hbox or Vbox ?
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
rer.html#
<http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
orer.html> 

 

Reply via email to