SamedDeger
SamedDeger

Reputation: 39

How do I repeat background image on Flex Spark?

I'm making a android app. But I couldn't add a background. It's work:

<s:VGroup x="0" y="0" width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
    <s:Rect width="100%" height="100%">
        <s:fill>
            <s:BitmapFill source="@Embed('images/bg.png')" />
        </s:fill>
    </s:Rect>
</s:VGroup>

But it do not repeat.. How I do repeat?

Upvotes: 1

Views: 1468

Answers (1)

Engineer
Engineer

Reputation: 48793

Specifiy fillMode:

<s:BitmapFill source="@Embed('images/bg.png')" fillMode="repeat"/>

Upvotes: 4

Related Questions