Alert not correct to the CSS file with < mx:Canvas >

Hi all

I want to apply the CSS file to Alert. So, I have:

1. CSS called CommonStyle.css of the file:

{Alert

color: #0f3177;

title-style-name: "alertTitle";

header-height: 19;

the thickness of the border: 1;

drop-shadow-enabled: true;

drop-shadow-color: #d1ddf7;

background-color: #ffffff;

RADIUS: 6;

border-style: solid;

header-colors: #90a4d1, #5970 has 0;

foot of page-colors: #9db6d9, #ffffff;

border-color: #5970 has 0;

}

{.alertTitle}

do-family: Verdana;

font-size: 10;

make-weight: bold;

text-align: left;

color: #ffffff;

}

2. custom class alert:

package

component

{

Import mx.controls.Alert;

public class alert extends alert

{

[

Incorporate [ (source ="images/alert_error.gif",)]

private static var iconError: Class;

[

Incorporate [ (source ="images/alert_info.gif",)]

private static var iconInfo: Class;

[

Incorporate [ (source ="images/alert_confirm.gif",)]

private static var iconConfirm: Class;

public static function info (message: String, closehandler:Function =null):void{}

Show (message,

'Information' Alert.OK, null , closehandler iconInfo);

}

public static function error (message: String, closehandler:Function =null):void{}

Show (message,

'Error' Alert.OK, null , closehandler, iconError);

}

public static function confirm (message: String, closehandler:Function =null):void{}

Show (message,

'Confirmation' , Alert.YES | Alert.NO, null, closehandler, iconConfirm);

}

}

}

3. my mxml component:

< mx:Canvas

' xmlns:mx = ' http://www.Adobe.com/2006/MXML "width =" " 100% "height =" " 100% "creationComplete ="init ()" >

< mx:Style " source = ' styles/CommonStyle.css " />

< mx:Script >

private

fonction test() :void{ }

() Alert.Error

"alert test..." » );

}

< / mx:Script >

< / mx: canvas >

"But the line: < mx:Style source ="styles/CommonStyle.css"" " / >, I received a warning: selectors type CSS are not supported in components: 'Alert' and my dialog box alert not correct to the CSS file!.

There is a problem, it is: where I replace < mx:Canvas > by < mx:Application >, my alert dialog is ok.

Please, help me.

Thank you.

Hello

Try to include the css file in your main mxml file where you have the tag... instead of your compoennet file...

Thank you

Jean Claude

Tags: Flex

Similar Questions

  • I have an index page that does not correctly load the css and css works on all other pages of the site.

    http://www.boulderridgecondos.com/ does not correctly load the css, but all other pages of the site loading the css correctly. There is nothing (that I can identify) between pages.
    http://www.boulderridgecondos.com/news.htm

    I guess something is wrong in the css, I inherited this site and have exceeded the css but can't find a problem that would cause this to happen.

    Any help or suggestion looking for something would be appreciated.

    This page is saved in UTF-16 format (Content-Type: text/html (UTF-16 BOM, litte-endian)) in your text editor. The CSS file is sent as ISO-8859-1. Firefox fun to see all the files in the same encoding. The other pages are send as ISO-8859-1 and so use the CSS file. You will need to re - save this page as ISO-8859-1 and download the corrected version.

  • path of the image file that links do not correctly in the executable file

    I have a jpeg file in a project that I'm building which is not loading when run as an executable file.  The executable seems to be looking in the same directory that the image file was originally instead of the support folder where the image is deployed.  On another machine, the exe will look for the image in the directory, that were found on my machine.  When I drag the image file of the project on the block diagram Explorer, it creates a constant path of file indicates where the file is located on my machine.  This does not seem to update when I build the exe.  The image file is included in the source files.  Any help is appreciated!

    A constant path is... Yes indeed constant! It's not automatically change whenever someone might move the file too, whatever his imagination made her do. He does not maintain a link to the actual file it could use later to detect that the file has been moved elsewhere. In fact Windows has quite such a mechanism.

    So if you want to access an external file to your executable application to first do a correct path when running. My approach is to put in a directory from a VI file that I put in my application. Then in this VI use the way of getting current VI, band name the VI of it and add the location relative to the other file to it.

    If you do something like this:

    The project directory

    Directory of the utility

    My Location.vi

    Data directory

    MyResource.jpg

    in system development, then:

    The application directory

    MyApplication.exe

    Data directory

    MyResource.jpg

    in the application of the construction.

    With this provision, it doesn't matter even if you use the old format of executable LabVIEW 8.x or the new default format since LabVIEW 2009.

    My Location.vi is just a VI that takes a relative path in the entry (in this case "... / directory/MyResource.jpg data" called the "Current path to VI" node, use 'Band path' to remove the name of VI, then build to add this entry path, and this is!.)

  • Business Catalyst does not correctly display the Muse files

    In muse with preview, everything seems fine, when I download Businesscatalyst my navigation is all messed. This happened after the update of Muse today, March 1, 2016. I deleted everything and transferred again, still the same problem.

    I posted this problem in the community of Muse and got the answer to disable in muse under file/properties/Advanced Site, the IBE box - change in the browser. Then download them again and it shows at least correctly, even if the customer can no longer change it...

  • Windows Media Player 12 is not correctly play the .wav file.


    • Windows Media Player 12
    • Error message: Windows Media Player has encountered a problem while playing the file.
    • I can play .wav file one by one, without any problem. But when we want to play as a selection with a lot of .wav file inside, he stops playing and leaving an error message like above. There is nothing wrong with my files, I can play even on my phone (Windows Mobile) or any program of music player. That's why I think it was lack of Windows Media Player 12.
    • Here are the files. http://French.about.com/od/pronunciation/a/alphabet.htm You can download and test it yourself. It is the French from a to z alphabet.
    • I bought Acer, Aspire 4745 G laptop. It comes with Microsoft Windows 7 Home Premium 64 - bit, pilot of the last manufacturer installed, updated the OS to the latest version through Windows Update.
    I want that Microsoft to resolve this issue through Windows Update.
    +++ How to change font style of my post? It is very difficult to read. +++

    Hi WildRavin,

    1. run the troubleshooter in the Windows Media Player settings. Troubleshooting looking for issues related to playback of audio and video files in the drive by checking its configuration and network parameters.

    Open the troubleshooting Windows Media Player settings Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    2. If you have installed any third-party codec or plug-in for Windows Media Player, uninstall them temporarily to check if they are causing the problem.

    3. turn off audio enhancements and check the results. You can check the link for the steps below: How can I stop my music skip or break down when I play it? :http://windows.microsoft.com/en-US/windows7/How-do-I-stop-my-music-from-skipping-or-breaking-up-when-I-play-it

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot create the .css file

    What happened to textedit, it's now the fubar for webdesign!

    I used to be able to create the .css files with text edit but now its locked to the rtf format and will not produce a usable file more.

    Look at the preferences and change it to RTF to plain text.

  • I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    Try asking in the forum Premiere Pro seems to be an Adobe first Pro Lab

  • If sendAndLoad() returns correctly in the swf file, but not when they are incorporated...

    If sendAndLoad() returns correctly in the swf file, but not when they are incorporated, does this mean that I am missing something in my html code?

    I use generic Flash embed code generated from Dreamweaver.  I can post more information if necessary.

    Thank you

    Peter

    peterbrinson wrote:

    Very useful.

    Is it because my swf/html and the database are in very different places?

    Yes, they are in different domains and adobe imposes restrictions on what a swf file can do with the data from one server to another (from the swf) area.

    Are you talking about a PHP or ASP file that integrates the swf?

    lol you create an executable file on the same server that hosts your swf.  This executable can query your database and not trigger cross-domain issues.

    your swf file can send and receive data from and to this executable without triggering cross-domain issues.

  • I opened 2 emails that were in the folder spam from my email and that each contained an attachment zip 2 k and 3 KB. As I could not open directly in my email, I opened the zip files with the "open in" another app option. At the opening of th

    I opened 2 emails that were in the folder spam from my email and that each contained an attachment zip 2 k and 3 KB. As I could not open directly in my email, I opened the zip files with the "open in" another app option. When you open the zip files at this other app asked me if I wanted to extract zip files in a new folder, I have accepted, in both files .js (javascript) files there. I opened these .js inside this same application files and content files white text on black background and that seems to be a script file. My question is: my iPad Air has been compromised by a scam of viruses, such as the Trojan horse thieves and banking password especially as Dridex or Dyreza, the Trojans and ransomware as Locky, cryptolocker, or Teslacrypt. If that were the case, then what is the solution to get rid of these... Thank you.

    Simply delete them. It is not possible to install anything on iOS using this method. For good measure, you can remove and reinstall the application allowing you to open it with, but I don't really have that is actually needed.

  • Problem of fluid page layout grid DW6: writing to the page instead of the css file

    DW6 using (version 12, ownership, build 5861) on Windows 7 64 bit.

    After the tutorials and help files to use the grid to fluid.

    1. Launch a blank page on a new site, which inserts the div of starter and the new css file
    2. Immediately save page which also generates / saves auxiliary files (js and css).
    3. Remove inner div that is created in order to use my own (tried also leaving room for a default value and use)
    4. Insert the new div within the div 'clearfix gridContainer.
    5. Place the cursor just after this new div, always inside the "gridContainer clearfix" and add a new 'fluid grid layout div tag', new line.
    6. Following the same method, do it again.
    7. Dreamweaver adds the CSS code generated to the actual page instead of the expected div visibly (minified)... and everything breaks. To do this, * not * add the code in the CSS file from there and the only way to have it show the div (which show no visual indicators since the CSS is essentially lost who would do it, CTRL-Z to undo the last step. It cancels the CSS presentation as the only content in the HTML file, and * is * display a div with the name I had given him. If I copy and paste this CSS generated in the fluid css file * so * CTRL-Z, he looks at the way she's supposed to, with drag handles, visible fingerprints and so on.
    8. If I then change div widths or position, it saves these changes in the CSS file, it seems that it is only when inserting new div tags after another is a problem third div inside the container is when it starts choking; no overlap).

    It is repeatable, desktop or laptop, running the same version. I tried to save after each insert div, only at the beginning, only rescue code view, split only...

    I tried looking for someone else having this problem and must not be worded research properly, impossible to find someone else saw it. It's weird.

    If someone can point me to something to try then workaround is not necessary, it would be appreciated.

    Work within a Site defined properly?

    Is the folder of your site in the disk/volume even as DW?

    Nancy O.

  • Not all of the related files be dynamically discovered (Wordpress)

    When I click on 'Discover' to dynamically find files related to my page index.php in the root of my wordpress site, I expect an error or some 70 + files depends on the page of wordpress, but instead I have only four files in the related files bar: wp-blog - header.php, style.css, xmlrpc.php and wlwmanifest.xml.

    This is where it gets strange:

    Live view works perfectly well, including being able to browse different pages/posts on the site. Code Live comes with the complete code for document created from treatment of different php files on the site, but these php files accumulate in the related files bar. Perhaps the most absurd thing is that the code hints works very well in code view, when I type $wp I get the list of global variables created in the associated files, I do not see in the related files bar.

    Is this a bug in Dreamweaver? What could block filling of these files Dreamweaver, although he obviously recognize them?

    Thanks for the help in advance!

    Note: I use express iis 7.5, but I don't think that the problem is specific to iis, because the only other person having this problem, I found a person was some years there are posting in a different subforum that called for using MAMP Server

    I think I understood the problem.

    After installing the services, languages and the uninstall other and a bunch of other nonsense, I think I found the problem.

    When there are spaces in the directory to the path for your site, Dreamweaver does not all files related, although the Live View and everything works.

    I removed the spaces from the path, and it worked.

    I hope this helps others out there, because I think that this problem would happen quite often.

  • DW CS4 'go to the code' does not go to the css code

    When you are in the css Panel and right-click on a particular style, by clicking 'Go to the code' used to put me to the exact location of this rule in the relevant css file. This is no longer. It seems to bring me to the relevant html in the html source code, but code that is useless. Someone at - it ideas? I use this feature TONS and can't live without it.

    Thank you

    Anne

    I just tested CS4 preferences changed to 'Edit using CSS dialog box'. Go to the Code still works without problem.

    Now, I noticed that at the top, there is a new "toolbar" with all of the files that are associated with this document and css files are among them. I did not like it, cause I want the CSS OPEN file when I edit it, so I know not to save and download the right to file in just 2 clicks. I noticed that the css files no longer appear in the "toolbar" - I could have attempted to change these settings.

    The related files toolbar is controlled by the General category of the preferences panel. The fourth element of the top is 'enable related files '. Even with this unchecked, go to the Code works.

    The only other edit I've done recently is to change toolbar real to exclude some buttons I don't a need (cut/paste/copy/etc...) so that the buttons I have they use all appear on a single line. I edited the xml file and saved and it seems to work fine - if it wasn't for this 'go to the code"no longer works.

    Could any of my changes "broken" this feature? How to cancel the best?

    It is possible that your changes might have broken some features in Dreamweaver. How to cancel them is to remove your personal Configuration file and let Dreamweaver generates a new with factory settings.

    Now, it seems to only occur when the css files are called from in an inclusion... but it worked before.

    Yes, it's a difference between Dreamweaver CS3 and CS4. Go to the Code does not work in CS4 if your style sheet is attached using an inclusion. It must be directly related to the page or be linked through the @import command by a style sheet linked directly to the page. If you feel this is a limitation of your workflow, Please submit a request for improvements to Adobe to support style sheets linked by include files.

    In addition, on new tests, when I change the styles, I get an error. See the attached file. I bet that they are related. I can't find anything about it. ESP since AID disappeared.

    I don't know anything about the error message. However, I can help you is certainly not gone. When you access using Dreamweaver CS4, the help files are launched in a browser, which should connect directly to the online help system. Help has moved online because it can be updated more frequently if problems are discovered. It also has a comment system, where I provide many of the answers or refer to Adobe if necessary. Even if you are offline, access to help is expected to launch a local version of the original files.

  • CSS file with a #APP_IMAGES reference #?

    I have a problem with the help of nowadays with Apex. The problem is with the image files and how they are referenced in the file styles.css nowadays. After downloading the image files, I use the #APP_IMAGES reference # in the style.css file, but when you look at this file using Chrome development tools is coming to the browser with "#APP_IMAGES #" instead of something like "wwv_flow_file_mgr.get_file? p_security_group_id = 28442106625564844 & p_flow_id = 120 & p_fname =...". "as I get in the index.html file that receives the browser.

    It seems like Apex does not have any type of analysis on the css file before it sends it to the browser.

    After creating my page templates and report nowadays is the only problem I have with the iPhone app. web, everything else seems ok.

    I saw a different Apex iPhone site using references in the style.css file to the files on a separate web server. It is the only option?

    Thank you
    Jason

    It seems like Apex does not have any type of analysis on the css file before it sends it to the browser.

    It is not the case. Will probably never. See "{: identifier of the thread = 986329}" to a previous discussion on the subject.

    I saw a different Apex iPhone site using references in the style.css file to the files on a separate web server. It is the only option?

    No, but store the CSS and image associated with external files is probably the best in terms of efficiency and flexibility. When it is used with the Oracle HTTP Server or OAS, APEX itself uses a location of external image (usually referenced by Directory virtual is). The files must be on a different server, although it is recommended to use a location other than the standard is (#IMAGE_PREFIX #) apex

  • Cannot open the PDM file with excel 2016

    Hey guys,.

    I have Office 2016, LV 2015 and (I checked my "TDM Excel Add-in" file) the Excel Add-in 2015 of CT.

    I have attached a picture of what I get when I try to open the PDM file with excel.

    So, I found something strange. I checked active supplements under the excel options and the TDM Excel Add-in is listed as inactive (and is called a COM-add-in). I tried to activate it, by checking the box (see the second picture), but that does not change. Interesting is the last line of my second attached photo:

    Translated it means: ' loading behavior: a runtime error occurred when trying to load this Add-In.

    I have 10-64 bit operating system like windows.

    Someone at - it a solution?

    Kind regards

    Slev1n


  • Once I turned on the computer I got the following message: Windows could not start because the following file is missing or damaged. System32\Drivers\Ntfs.sys

    I just download Microsoft Office 2010 Professional and then turns off the computer with XP operating system. Once I turned on the computer I got the following message:

    Windows could not start because the following file is missing or damaged;

    System32\Drivers\Ntfs.sys

    You can try to repair this file by starting Windows Setup using the original Setup CD

    Select 'r' in the first screen to start repair.

    Then, I started the computer with the Original installation CD and press 'r' by following the instructions. Then, I received this message:

    1: C:\WINDOWS

    Which Windows installation you want to connect?

    (to cancel, press enter)

    What do I put here?

    You must first start on doing something so USB drive a bootable Hiren.

    Here's how:

    I'll recommend you use Hiren boot CD (it will go also to a flash/USB stick/USB).

    It's good for you, because there a lot of tools more on that on the Recovery Console CD of XP, doesn't your administrator passwords and you will not have to futz round in your BIOS, if any afflicted system has SATA drives - Hiren can deal with this.

    You will have a bunch of great tools that you have in XP... Recovery Console an editor of the register, adjustable password and an office that resembles Windows XP so you will feel comfortable flexibility.

    You can easily copy your personal data (documents, pictures, music) to an external drive.

    A system of work, start by downloading the latest version on Hiren Boot CD from here (it is a substantial download but worth it):
    http://www.hirensbootcd.org/download/    (look to the bottom of the page).

    Unzip the Hiren to a folder where you can find it.  There's a Hiren. BootCD.15.x.iso that you have to then.

    Hiren was instructed to make a bootable USB drive that you can use, but it takes you first burn the .iso to a CD image file and a few other measures, so I suggest another way and here's how:

    Download RUFUS 1.3.2 or whatever the latest version is here (read a few things on the page so you can learn more on this subject):

    http://Rufus.AKEO.IE/

    I will warn to be careful that don't accidentally format you a hard disk - don't forget your USB key is in and know what the drive letter!  This part makes me still a little nervous, so be careful.

    Launch of RUFUS and all default values should be fine for the device, choose letter of your USB drive, quick tag format FAT32, it if you want and in the Format options box, click on the little icon that looks like a CD and a window will open.  Navigate through this dialogue to point to the folder that contains the Hiren. BootCD.15.x.iso that you have unpacked above and the box should change to say the image ISO (RUFUS includes the Hiren ISO file).

    Double check you have the right device selected in the top (NOT you HDD) click Start, acknowledge receipt of the warning and let it finish (it will take a little time) it copies the files.   Hiren ISO is also a good size.

    When RUFUS is finished, it will say "DONE" at the bottom.

    Put the USB in the afflicted machine and reset/reboot and regardless of the button you press to get a boot menu where you can select the USB drive as first boot device (it's F11 for me).  If you do not see a start menu choice, you will need to set your BIOS to boot from USB first instead of the HARD disk.

    When the Hiren menu displays, choose the XP Mode of Mini and it will start loading (slowly from a USB key) and finally, you should see a windowsy looking for office.  You should recognize the part and feel uncomfortable, but it is not your office - the office of the Hiren!

    Remember: you do not start on your hard drive, - you started in the Office of the Hiren.

    A way to check the drive for errors is to open my computer and right-click on your afflicted player and choose Properties, tools, error, check checking now... put a check mark in the boxes and then start.

    Sometimes that works, then you can also click on start, run and in the type box:

    cmd

    Click OK to open a command prompt window and enter the following command (assuming that XP is installed on your C drive)

    CHKDSK c: /r

    This disk check can last a long time (perhaps several to several hours) depending on the size of the volume, the amount of data on the volume and what the disk check finds to do.  You may need to run more than once.

Maybe you are looking for