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 6985203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:39:01+00:00 2026-05-27T18:39:01+00:00

How do I skin alert box in flex 4? I am not interested in

  • 0

How do I skin alert box in flex 4?
I am not interested in customizing alert box via css, how do I create skin?

For example, for TextInput I would write in css:

s|TextInput
{
    skinClass: ClassReference("skins.TextInputSkin");
}

and in TextInputSkin.mxml

<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:fb="http://ns.adobe.com/flashbuilder/2009" 
    alpha.disabledStates="0.5" blendMode="normal">

    <fx:Metadata>
    <![CDATA[ 
        /** 
         * @copy spark.skins.spark.ApplicationSkin#hostComponent
         */
        [HostComponent("spark.components.TextInput")]  
        ...etc..

And get TextInput globally changed.
How do I make something similar for Alert? I can’t understand what is host component for alert.

  • 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-27T18:39:02+00:00Added an answer on May 27, 2026 at 6:39 pm

    The mx.controls.Alert control is an MX component, and for that reason doesn’t use the same skinning architecture that Spark components use, which is what your example uses. Frankly, even though Adobe still refers to it as “skinning” (cf., Skinning MX Components), it doesn’t seem to resemble the Spark process very much.

    I’m not claiming to offer a comprehensive answer (which is why I’m community wiki-ing this), but as far as I can tell, you’re not going get around using styles.

    The other relevant information you’ll probably need to know is that the Alert derives from the mx.containers.Panel class. So to whatever extent you can “skin” a Panel, is the extent to which you’re ultimately going to be able to “skin” an Alert.

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

Sidebar

Related Questions

I would like to use XUL and JSON like that: <?xml-stylesheet href=chrome://global/skin/ type=text/css?> <window
I would like to skin a wpf default checkbox to something custom. Since it
Client wants to edit DotNetNuke skin and he is not a programmer, so I'm
I am developing a skin where I would like to bring in the login
I'm trying to skin a button with images. The following code is for flex
I have a DotNetNuke skin that has a single CSS file over 3,500 lines
I have a custom skin applied to a Flex 4 spark datagrid. One really
I need to skin a Flex button using a MovieClip exported as .swf from
I am using a custom skin on Flex's TabBar, and specifically the skin the
What is the best way to skin/theme an AIR application. For example, I want

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.