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

  • SEARCH
  • Home
  • 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 6547461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:50:01+00:00 2026-05-25T11:50:01+00:00

I wanted to e to replace the standard flex bar chart bars with my

  • 0

I wanted to e to replace the standard flex bar chart bars with my own image. This worked by embedding the image and setting as a bitmapfill. however these images dont scale well even tho i have applied 9 slice scaling when embedding.

[Embed source="bar.png", scaleGridRight="721", scaleGridLeft="15", scaleGridTop="1",
scaleGridBottom="90")]

[Bindable]

public var bar:Class;

and when applying

var x:BitmapFill = new BitmapFill();

x.source = bar;

series1.setStyle("fill", x);

The 9 slice scaling options are ignored. I dont know how to resolve this.

One thing to note when applying the same embedded image to a standard image container, it respects the scaling options.

  • 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-25T11:50:02+00:00Added an answer on May 25, 2026 at 11:50 am

    scale9Grid does not work when bitmap is used in Graphics.beginBitmapFill() method.

    One of solutions is to create a BitmapFill subclass that will work with that. Here is the FXP with solution and here is how it works:

    <s:Application ...>
    
        <fx:Script>
        <![CDATA[
    
            [Bindable]
            [Embed(source="sample.png", scaleGridTop="30", scaleGridLeft="7", 
                scaleGridRight="384", scaleGridBottom="206")]
            private var sample:Class;
    
        ]]>
        </fx:Script>
    
        <s:Group left="0" right="0" top="0" bottom="0">
            <s:Rect left="0" right="0" top="0" bottom="0">
                <s:fill>
                    <local:BitmapFillScale9Grid source="{sample}"/>
                </s:fill>
            </s:Rect>
        </s:Group>
    
    </s:Application>
    

    Solution is based on bent.googlecode.com.

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

Sidebar

Related Questions

I am working on setting up a Drupal based website and wanted to replace
I wanted to run a query-replace-regexp across multiple files in emacs, and found this
Say you had this text: SOMETHING_XXXXXXXXXXXXXX_ELSE SOMETHING_XXXXXXXXXXXXXX_ELSE2 SOMETHING_XXXXXXXXXXXXXX_ELSE3 SOMETHING_XXXXXXXXXXXXXX_ELSE4 And you wanted to replace
If I wanted to replace the * with a column name, what would it
For instance, if I wanted to a find and replace with strings containing backward
I have never used dll's before(absolutely no experience) and I wanted to replace a
simple example in Notepad++ using RegEx replace search for: anything replace with (wanted): \test
1) I have the binary file that I wanted to replace with a newer
I have this code private void saveImage() { Bitmap bmp1 = new Bitmap(pictureBox.Image); bmp1.Save(c:\\t.jpg,
Say I wanted to make the following re-usable: function replace_foo(target, replacement) { return target.replace(string_to_replace,replacement);

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.