hi, with the code below i am trying to create 2 states and both of the
SetProperty calls are giving me trouble.
1) setting the 'right' property of a panel- i get an error saying that
Container does not have that as a property. ok, a quick look in the docs and
sure enough there is no 'right' property- how do i change the constraint of the
panel?
2) setting the 'visible' property- i have found that no matter what i use as a
target, the visible property is being applied to the entire application , now i
am compiling this for apollo and it seems specific to that as i don't see that
behavior when using the regular flex compiler. When compiling for apollo, i am
also noticing that it is not just 'visible' that gets set to the entire
application, but any property i change, it seem the target is ignored. what is
going on here?
<mx:Application ... currentState = "showEmployeeList" >
<mx:states>
<mx:State name="showEmployeeProfile">
<mx:SetProperty target="{empProfile }" name="visible" value="true" />
<mx:SetProperty target="{employeeList}" name="right" value="10" />
</mx:State>
<mx:State name="showEmployeeList">
<mx:SetProperty target="{empProfile }" name="visible" value="false" />
<mx:SetProperty target="{employeeList}" name="right" value="680" />
</mx:State>
</mx:states>
<mx:Panel id="employeeList" title="Employee List" left="5" top="10" bottom="10"
right="680">
....data grid in here
</mx:Panel>
<ui:employeeProfile id="empProfile" left="315" top="10" right="5" bottom="10">
</ui:employeeProfile>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com