Category Archives: Border (Spark)

Setting a dynamically loaded background image fill on a Spark Border container in Flex 4

In a previous example, “Setting a background image fill on a Spark Border container in Flex 4”, we saw how you could set a background image fill on a Spark Border container in Flex 4 by setting the backgroundImage style to an embedded image.

The following example shows how you can use a dynamically loaded image as a Spark Border container background by using an MX SWFLoader control and setting the backgroundImage style to the SWFLoader control’s content property.

Full code after the jump.

Continue reading Setting a dynamically loaded background image fill on a Spark Border container in Flex 4

Setting the joint style on a Spark Border container in Flex 4

The following example shows how you can set the joint style on a Spark Border container in Flex 4 by setting the borderStroke property to a custom stroke object and set the joints property to a static constant from the flash.display.JointStyle class.

Full code after the jump.

Continue reading Setting the joint style on a Spark Border container in Flex 4

Setting the border alpha on a Spark Border container in Flex 4

In a previous example, “Setting the border color on a Spark Border container in Flex 4”, we saw how you could set the border color on a Spark Border container in Flex 4 by setting the borderColor style.

The following example shows how you can set the border alpha on a Spark Border container in Flex 4 by setting the borderAlpha style.

Full code after the jump.

Continue reading Setting the border alpha on a Spark Border container in Flex 4