I have the following code layout in mxml. The button will be positioned correctly in the middle, but the text remains anchored to the top. This is not the behavior of the spark component label, but I need multiple style runs in the text and have found the mxText component to be the best solution...
<s:Group>
<s:layout>
<s:HorizontalLayout verticalAlign="middle" gap="0" />
</s:layout>
<mx:Text id="title"
htmlText="{sourcecodehere}"
width="212"
height="55"
textAlign="center"
/>
<s:Button id="getNow"
label="Get Now" skinClass="skins.CustomButton"
verticalCenter="middle"
click="getNowEventHandler()" />
</s:Group>
I am using Flex 4, I know I should probably be using a spark text component, but I was just so comfortable with the implementation of htmlText I don't want to move on...