Applying tooltip styles from defaults.css file problem

in flex library, create custom tooltip extend ToolTip
CustomToolTip code:
public class CustomToolTip extends ToolTip
then i want use custom skin like ToolTipBorderSkin, so i add into defaults.css
defaults.css code:
CustomToolTip
borderSkin: ClassReference("my.skins.ToolTipBorderSkin");
build it into swc file, then in my application use
when i set textinput tips, it doesn't use the new skin
if write this line in the application, it works fine.
import my.controls.CustomToolTip; CustomToolTip
i don't know why.
Thanks for any help.

Thank you for your reply, alex.
i have assign the tooltip as the tooltipClass
CustomToolTipManagerImpl.as  the code like this;
public class CustomToolTipManagerImpl extends ToolTipManagerImpl
  public function CustomToolTipManagerImpl ()
   super();
   toolTipClass = CustomToolTip;
and custome define the application preloader
public class PreloaderBar extends DownloadProgressBar
  public function PreloaderBar()
   super();
   registerClasses();
  protected function registerClasses():void
   Singleton.registerClass("mx.managers::IToolTipManager2", CustomToolTipManagerImpl);
the application add this line:
preloader="my.preloaders.PreloaderBar"
i build this in flex library, and define the CustomeToolTip borderSkin in defaults.css
if i set borderSkin in actionscript, it is ok, but if i set in defaults.css, it doesn't work
setStyle("borderSkin", ToolTipBorderSkin);

Similar Messages

  • Default css file problems

    I'm trying to use a default css file in a library project...  I'm using this in my library's compile arguments:
    "-include-stylesheet defaults.css /assets/styles/defaults.css"
    In defaults.css, I'm trying to assign a defautl skin like this:
    comp|Badge {
        skin-class: ClassReference('com.woo.skins.BadgeSkin');
    The problem is when the component is being newed:
    Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)   
        mx.core::UIComponent/getStyle   
        spark.components.supportClasses::SkinnableComponent/attachSkin   
        spark.components.supportClasses::SkinnableComponent/validateSkinChange   
        spark.components.supportClasses::SkinnableComponent/createChildren  
    What part am I doing wrong?  I'm hoping it's the -include-stylesheet part, I couldn't find a single example for using that.

    I assume you are using FlexBuilder to build and compile and not ant or the comand line correct? If so there are two things you need to check.
    1) Where is your defaults.css located? As long as it is in the root of your library's src directory (ie. src/defaults.css) you shouldn't even need to add that compiler option. When it builds a project, FlexBuilder looks for a file named defaults.css in this location and will use it to override the framework version.
    2) Go into your project properties -> build path -> assets tab. Make sure your defaults.css file is selected for inclusion.

  • Edit the Default CSS file

    I want to know if there is a way to edit the default CSS file for Webi.  The reason I am asking is because of the way in which hyperlinks are formatted.  When I go into the document properties and change the formatting (color only), it does not update on my actual report.  Also, I want to be able to remove the underlines from all hyperlinks without having to go in and do it manually using inline CSS. 
    Is there a default CSS file out there that can be edited?  Where is it located and how to I ensure it's used in all my reports?  Thanks.

    Hi Keith,
    Following is the location of the CSS file in 4.0
    C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\images\WebIDefaultStyleSheet.css and
    Note that for the BI 4.0, you would not be able to update the default style after the document creation. If you want to modify default style, you must :
    1. update the .css file stored in the images folder of your server installation or rich client and
    2. then create a new webi document to see your style modification.
    Hope it helps.
    Faisal Vakil

  • [svn:fx-trunk] 11548: MXFTEText. css now has a type selector for FTEDataGridItemRenderer that matches the one for DataGridItemRenderer in the MX default .css file.

    Revision: 11548
    Author:   [email protected]
    Date:     2009-11-06 16:35:27 -0800 (Fri, 06 Nov 2009)
    Log Message:
    MXFTEText.css now has a type selector for FTEDataGridItemRenderer that matches the one for DataGridItemRenderer in the MX default.css file. Both set paddingLeft to 5.
    QE notes: None
    Doc notes: None
    Bugs: SDK_22741
    Reviewer: Alex
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/MXFTEText.css
        flex/sdk/trunk/frameworks/spark-manifest.xml

    AN UPDATE ON MY ISSUE:
    It appears to be limited to Dreamweaver. When I upload the files to my server and use BrowserLab or Microsoft SuperPreview the pages are rendering properly in all versions of IE. It's only broken when viewing in Design view within Dreamweaver or when using BrowserLab from within Dreamweaver. So at least I know my website works, which is a huge relief, but does anyone have any idea why Design view would complete ignore my styles? It's very annoying.

  • Defaults.css File issue

    Hi Guys,
    I have been trying to understand the issue revolving around defaults.css file in a Flex Library project. Here is my scenario,
    I  have the following 3 library projects and they have their own defaults.css
    1. Component-1.swc ( this is a defaults.css in it )
    2. Component-2.swc ( this is a defaults.css in it )
    3. Component-3.swc ( this is a defaults.css in it )
    I am trying to merge all the above SWC's into a single SWC named framework.swc using the maven dependency element as shown below.
    <dependencies>
           <dependency>
                 <groupId>com.ui</groupId>
                 <artifactId>Component-1</artifactId>
                 <version>${project.version}</version>
                 <type>swc</type>
                 <scope>internal</scope>
           </dependency>
           <dependency>
                 <groupId>com.ui</groupId>
                 <artifactId>Component-2</artifactId>
                 <type>swc</type>
                 <version>${project.version}</version>
                 <scope>internal</scope>
            </dependency>
           <dependency>
                 <groupId>com.ui</groupId>
                 <artifactId>Component-3</artifactId>
                 <type>swc</type>
                 <version>${project.version}</version>
                 <scope>internal</scope>
             </dependency>
    <dependencies> 
    this results in framework.swc with a single defaults.css ( any one out of the three defaults.css file ). Can someone help me understand why this is behaving like this ? My guess is that it is trying to replace the defaults.css file when a dependent file was included in the file swc. But why ??
    Any response is greatly appreciated.
    thank U!

    That's because you're creating a class.   You don't need a class to style HTML selectors.
    HTML selectors don't contain any prefixes.
    h1 {color:teal}
    h2 {color:brown}
    h3 {color: maroon}
    Classes contain a dot prefix and must be referenced in the HTML.
    .classname {color:pink}
    <h2 class="classname">This class is pink</h2>
    Nancy O.

  • Embedding a font with a library's defaults.css file

    When I add the font-face and font-family declarations to my defaults.css file in my lib, the compiler complains about not being able to find the font.  I've included the font in the lib's assets, so what else do I need to do to make it see it?

    the textfield that has the embedded font should display without problem.
    if you have other textfields that you want to use that font, you must create a textformat instance, assign its font property to match the linkage id of the library font and then you must enable the other textfield's embedFonts property and you must assign the setTextFormat() and/or setNewTextFormat() methods to your other textfields.

  • Removing warning for "Default CSS file not found."

    I am getting this warning in Flash Builder:
    "Default CSS file not found."
    I can not for the life of me figure out how to get rid of it. Any suggestions?

    Default css file can be specified as a compiler option (per SWC, I think).
    See http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    For example, flex framework has a default CSS file: C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\projects\framework\default.css
    Do you have some library project or a swc with default css file option turned on, but the css file is missing?

  • Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory.

    HI
    i restored a sharepoint web 80 application in our test domain
    and after when i browse the new web application 
    it says 
    Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory. 
    adil

    Hi  adil,
    According to your description, my understanding is that you encountered the error “Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file
    exists under the layouts directory.” .
    The issue happens in
    We have customized master page
    In the master page, we use path the script/style file like this: <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/coe/mainCOE.css%>"
    runat="server"/>
    While using the dynamic path in a multiple languages enabled site, language Id(1033 etc) will be added to the path automatically. That cause the file to be not found.
    To solve the issue, please download  the Arabic language pack http://www.microsoft.com/en-us/download/details.aspx?id=3411 ,
    install it on  your SharePoint and refresh your browser.
    Reference:
    http://sharepoint-community.net/profiles/blogs/cannot-make-a-cache-safe-url-for-1036-sytles-themable-corev4-css
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • JSF: Using own custom styles in skin css file?

    I have created custom skin by defining custom css file and implementing predefined ADF style definitions (aliases).
    Also, I need some other styles for use on specific parts i application, and my idea was to put these styles in same css file which is used in skin definition.
    For example:
    .footer_txt     {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF}
    My intention was to use this styles in styleClass attribute of various
    adf faces components
    But after starting application, I can't find my additional styles in generated css file (pfmskin-desktop-10_1_3_1_0-ie).
    Looks like that css generator is ignoring any styles which are not ADF predefined styles?
    I was thinking that this is possible, because at the end of srdemo.css file (in SRDemo application) there is one part like this
    /* custom styles that I made up and set on the styleClass attribute of various
    adf faces components */
    .adfFacesDemoSearchPanelGroup
    width:100%;
    padding:6px 6px 6px 26px;
    background-color: #0099CC;
    I can put my styles in separate css file, but then I have to include this file in every application page...
    Is it possible to have custom defined styles in skin css file, and use them in styleClass attribute?

    Hi,
    skinning only works with the ADF faces skin selectors. There are plans to support custom selectors in a future version
    Frank

  • Problem with elements/text linking to styles in external css file

    Hi,
    the project I am working on is using a default.css and I would like to assign styles from the file to elements in edge - how can I do that?
    I already tried the "class" setting in the GUI next an element but the elements do not use the styles defined in the default.css.
    The default.css is linked in the html file properly. In the js file which edge creates I see that the value  userClass: 'slideTitle' is assigned and slideTitle is defined in the default.css.

    Use yepnope like this:
    yepnope(
        nope:[
        // include your css file path here.
            'css/yourcssfile.css',
        complete: init
    function init() {
      //whatever you need here

  • Sliding Flash Interface - Using Links from an XML file Problem

    Hi All,
    Working on a new site for the company i've recently started
    working for... fairly new to flash but wanted to try this sliding
    interface for the graphic banner at the top of the page...
    have a look here at an early version of the site - sliding
    graphic interface at the top with coloured rollover buttons (a lot
    of work still to do! feel free to post constructive criticism)
    (am I allowed to post links??)
    here is the unfinished version with no links in the flash bit
    http://www.westfieldhealth.com/website/index.asp
    The Problem:
    I am pulling in a 'heading' 'text' and 'image' into the
    sliding graphic interface from the following xml file... (there are
    4 different xml files for 4 different slides)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <content>
    <dialogue>
    <heading>Interested in selling our health
    plans?</heading>
    <text>Click here to learn more...</text>
    <img>home_window/intSmall.jpg</img>
    </dialogue>
    </content>
    I want to add a link to the xml that would be specific to
    each instance of the window...
    eg
    <link>contact-us/index.asp</link>
    But my limited knowledge of flash means I have no idea how to
    pull the link through from the xml file to use in the flash...
    Perhaps I need link text to pull as well
    eg
    <link-text>click here to contact us</link-text>
    Here is the function that pulls in the img, heading and txt
    public function onComplete(event:Event):void {
    var loader:URLLoader = event.target as URLLoader;
    if (loader != null) {
    externalXML = new XML(loader.data);
    mover_mc.heading_txt.htmlText =
    externalXML.dialogue[0].heading;
    mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
    var url:URLRequest = new
    URLRequest(externalXML.dialogue[0].img);
    myLoader.load(url);
    } else {
    trace("loader is not a URLLoader!");
    Can anyone help me on how to pull in the link from the xml
    and use it to navigate to a different page on the site
    Thanks very much
    Hans
    link to
    my unfinished flash file...

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • Include a CSS file problem

    I having a problem in including a css file in my jsp pages.
    the tag is written as follows
    <link rel="StyleSheet" type="text/css" href="ressources/stylesheet.css" media="screen"> I did change the directory ressource, the path and tried to play each and every time with this tag but it doesn't work. by the time I deploy my application, it tells me to download this css file or sometimes it tells me that the ressource is not available.
    I am using netbeans with Glassfish.

    Sorry for taking so long to answer but, it sounds that you didn't understand me.
    I have included the exact lin to the css file but it still have a problem. below is the code in the JSP page
    <%
    String CssUrl= (String)application.getAttribute("CssUrl");
    %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="StyleSheet" type="text/css" href="<%=CssUrl%>/stylesheet.css" media="screen">
            <title>Login Utilisateur</title>
        </head>
    ...the CssUrl variable is defined in the web.xml file as the follwoing
    <init-param>
                <param-name>CssUrl</param-name>
                <param-value>/GestionBudget/resources/css</param-value>
            </init-param>Please can you explain to me why when I execute the page, I got no Css application and sometimes, I got the error page of the server that the css file as a resource doesn't exist.

  • .css file problem

    Hello friends My name is Mohit. I am getting some errors during opening of .css files of my Blog. It shows "Dreamviewer can't open this file" error. I am currently using Dreamviewer 8.0.1 version. I was getting this error in windows 8. But when I install windows 7, it was working fine. I am curious to know that why .css files are not working properly in window 8. I have already posted one similar question a month ago but did not get any answer. I hope I'll get helpful answer this time.

    Try clearing the cache as in http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/

  • Multiple Target from an XML file problem

    I've an XLM file from which I import (using a pluggable mapping generated from xml_etl_ulils) data into a table.
    I need to execute some controls and log errors on these data.
    I created a splitter to split correct data (and put them into the table) and bad data (to log).
    However the generated mapping goes into an error because it tries to read 2 times the same XML data.
    The only way I found is to put all data (good and bad) into a temporary table and then apply the splitter to move data from that table to the targets.
    However that is not a clean solution because I need to have and manage 2 tables for each real table.
    Any clever suggestion ?
    Tks
    Tullio

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • Apply exakt steps from History log file to another image?

    Alright. If you edit an image and the history log option is turned on, you can look at the exakt steps you've made with all the settings for the individual tools and effects used. Also steps you make can be recorded with the actions tool.
    My question is, are there any way to "play" the steps listed in the history log file, as if it were an action?
    I need to apply alot of steps to several images but I never recorded the steps I've made with the actions tool. However they are "recorded" in the history log file and I could go in and look and recreate all those steps manually, but that would take too much time...
    Are there any plug-ins or are there any other way to do what I need to get done?
    Cheers
    Martin

    1. you can set your preferences to record the history to a txt file or the files metadata.
    I assumed that is what the OP already did as indicated in
    If you edit an image and the history log option is turned on,
    wonder why there are no feature in Photoshop to replay all one have done, to any image?
    As you know there is, it’s Actions (as with Scripting not all functionality records; Edit: and not all functionality is applicable to all files because of Color Mode and Bit Depth for example). But it is up to you to employ the necessary foresight to know what to record beforehand.
    Also a non-destructive workflow can help make many effects/compositions/etc. easily transfer-/recreateable. 

Maybe you are looking for

  • Best Practices for sharing media with iMovie and FCPX

    So I've a large iMovie Events directory, and would like to use that media with both iMovie and FCPX projects. I'd rather not duplicate the media, so would prefer to import as references into FCPX. The dilemma is that I see that it's possible to modif

  • Reader x freezes when using a hot button

    By hot button I mean any of the buttons in the tool bar at the top of the screen. The main issue is with print. Normally I could just click the print button from the toolbar and it would bring up my print window, now it just stops responding and I ca

  • Help with Photos Uploaded to Facebook?

    Hello everyone I am new to the forum and relatively new to MAC. Can somebody help me with my question. I have quite a lot of photos stored on my Macbook and and most of the 'albums' are uploaded to facebook too. I would like to know if I deleted some

  • SRM back end service PO not showing NAVS value in Item condition

    Hi, We are on classic scenario.When PO for services created in backend from SRM, in item details view under conditions,NAVS value seen as '0' but at service level it shows the correctly calculated value for NAVS. When PO crrated in ECC dierctly for s

  • Term Loan Repayment

    Hi we have taken loan say $10000 and want to repay over a period of 10 months with interest rate of 10% at reducing balance method and interest also will be calculated accordingly on the balance outstanding. How can it be done through Oracle payable?