This is a bit old but i had the same problem again and it's quite easy to
fix by setting the width of the controlBar :-)
<mx:ControlBar horizontalAlign="right" *width="100%"*>
<mx:Button label="Cancel" enabled="true" click="{viewStackSearch.
selectedIndex = 0;}" />
</mx:ControlBar>
Thanks to my work colleague Gilles! :)
2009/10/6 Nick Middleweek <[email protected]>
> It just stays left aligned...
>
> that's odd... Could there be anything that is over riding it?
>
>
> Thanks,
> Nick
>
>
>
>
> 2009/10/5 Alex Harui <[email protected]>
>
>
>>
>> Works for me. What did you see?
>>
>>
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc. <http://www.adobe.com/>
>>
>> Blog: http://blogs.adobe.com/aharui
>>
>
>