Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 532109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:22:15+00:00 2026-05-13T09:22:15+00:00

I am trying to make tile wallpaper in flex. I did stretch or normal

  • 0

I am trying to make tile wallpaper in flex. I did stretch or normal use the backgroundSize as 100% and “auto”. But i have no idea about how to create tile.

Can someone help me with source, instruction or the best would be a source code.

Regards
Zeeshan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:22:16+00:00Added an answer on May 13, 2026 at 9:22 am

    Creating a tiled backgound in Flex 3 is not available through the use of of CSS styles or property styles.

    However it is possible simply by assigning your component a custom programmatic skin, which handles the drawing of the tiled image through using the raw bitmap data.

    Let me further illustrate my point with some code

    <mx:Canvas borderSkin="{TiledBackgroundSkin}"
        width="100%" height="100%">
    </mx:Canvas>
    

    That is your component with a programmatic border skin applied to it.

    Now you just create that border skin by extending the RectangularBorder class.
    Such as:

    public class TiledBackgroundSkin extends RectangularBorder
    {
        [Bindable]      
        [Embed(source='tile.jpg')]
        private var tileImageClass  :Class;
        private var tileBitmapData  :BitmapData;
    
        public function TiledBackgroundSkin()
        {
            super(); 
            createBitmap()
        }
    
        /** A private method that handles the drawing of the bitmap **/
        private function createBitmap():void
        {
            var backgroundImage:Bitmap = new tileImageClass();
            tileBitmapData = new BitmapData(backgroundImage.width,backgroundImage.height);
            tileBitmapData.draw( backgroundImage );
        }
    
        /** Override updateDisplayList to draw the Tiled Background **/
        override protected function updateDisplayList(  unscaledWidth:Number,unscaledHeight:Number ):void 
        {
            super.updateDisplayList(unscaledWidth,unscaledHeight );
            graphics.clear();
            graphics.beginBitmapFill( tileBitmapData );
            graphics.drawRect(0,0,unscaledWidth,unscaledHeight);
            graphics.endFill();
        }       
    }
    

    The constructor creates the bitmap image for tiling.

    Then the updateDisplayList method (called after initial creation and for subsequent resizes of the component) fills the entire component with the tiled background.

    If you wish to adjust the offset positioning of the tiled image, you would do so in the updateDisplayList method

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to complete a RPG game for a project, but have no idea
I'm trying to make the case for click-once and smart client development but my
I'm trying to make a GUI in java, but JMenuBar has been giving me
Let's say i have a Domain Model that im trying to make compatible with
I'm trying to use the STL library inside the SDL. but it gives me
Trying to make a quick and dirty news system. Have a basic XML file.
Trying to make a make generic select control that I can dynamically add elements
Trying to make a MySQL-based application support MS SQL, I ran into the following
Trying to make a generic PL/SQL procedure to export data in specific XML format,
Trying to make a web service call to an HTTPS endpoint in my Silverlight

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.