Pseudo class css for flash 8

Hi
My site is in flash 8 and I have a dynamic text box which I'm
formatting with an external style sheet.
That's all going ok, but I want to have a rollover effect for
the links within the dynamic text, so I'm trying to use a pseudo
class to do this. Flash won't display it though. The other styles
all work fine.
Here is a sample of the actionscript:
quick+="<p class='four'>Engineers: ";
quick+="<p class='two'>Carlos Raul de la Vega Guerrero
@ Abdala Studios (Havana), Laurence Brazil @ ";
quick+="<p class='seven'><a href='
http://www.lazymoonstudios.co.uk'>Lazy
Moon Studios</a></p></p></p>";
Here is the style sheet html:
/* CSS Document */
p {
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 8px;
display: inline;
.one {
font-family: "Square721 BT";
font-size: 7px;
font-weight: bold;
color: #835d00;
.two {
font-family: "Square721 BT";
font-size: 7px;
font-weight: normal;
color: #835d00;
.three {
font-family: "Square721 BT";
font-size: 8px;
font-weight: bold;
color: #aa1f22;
.four {
font-family: "Square721 BT";
font-size: 7px;
font-weight: bold;
color: #835d00;
.five {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #CC3333;
.six {
font-family: "Square721 BT";
font-size: 7px;
font-weight: normal;
color: #835d00;
text-decoration:underline;
a.seven:link {font-family: "Square721 BT"; color: #835d00;
text-decoration:underline}
a.seven:hover {font-family: "Square721 BT"; color: #fa1940;
text-decoration:underline}
Is it just that flash 8 doesn't support this. If not, why not
and are adobe going to bring it in in the next version?
Thanks very much in advance for any suggestions.
Rachel

Tested your css (with a:link{} and a:hover{}) and it works
fine.
Just to be complete: a:seven:link{} and a:seven:hover{} won't
work - not supported.
Another option: <a class='seven' href=''>

Similar Messages

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

  • [svn:fx-trunk] 8864: Fix for ASDoc @event tag assumes the class is in flash .events package

    Revision: 8864
    Author:   [email protected]
    Date:     2009-07-28 11:31:14 -0700 (Tue, 28 Jul 2009)
    Log Message:
    Fix for ASDoc @event tag assumes the class is in flash.events package
    Bugs: SDK-22275
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests, asdoc
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22275
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • Hi I have online classes and I try to use my IPad 2 and then I try to watch video it ask me for flash player. I want to know what is the program for it?

    What program I can use for iPad to do flash players job to watch video?

    Misagh wrote:
    Can you tell what program I can use?
    Simple answer: no.  As stated previously, there is no Flash for iPad, iPhone or iPod Touch (a.k.a. iOS devices.)
    You can try other web browsers such as Skyfire and Puffin, which have limited support for Flash, but no guarantees.

  • Custom pseudo classes

    Hi!
    How can I create my own CSS pseudo classes in Java FX 2?
    So that I could use a CSS file like
    *.MyButton : online{ }*
    In FX 1 it could be done by overriding methods like
    public long impl_getPseudoClassState() {}
    but they are now deprecated :-(
    Is there a new better way?

    The method is deprecated because, even though it is public, it is considered private implementation and subject to change. If you choose to override this method, you may end up returning a value that conflicts with other pseudo-classes (the return value is used as a bit mask).
    Currently, there is no easy way to introduce your own pseudo-classes. I encourage you to file a feature request for that on http://javafx-jira.kenai.com (although http://javafx-jira.kenai.com/browse/RT-10922 might suffice)
    You can get the same effect by using multiple style classes, adding and removing the style class as desired.
    .MyButton.online { }

  • ER: ADF Faces Skins: "Unknown pseudo class:alias"

    Hi,
    I'm trying to create an ADF Faces Skin, by overriding aliases in my own CSS file.
    The code editor, however, is hilighting the word "alias" every time I use it (as in ".AFDarkBackground:alias") in red, and the error "Unknown pseudo class:alias" appears both on a popup and in the Structure Pane under "CSS Errors." Is Can I ignore this, or am I doing something wrong? Do I need to import some base CSS that defines the pseudo class? The sample from the HowTo doesn't seem to, but then it shows up with the same CSS Errors.
    Best,
    Avrom
    Message was edited by:
    [email protected]
    Changed topic title to reflect request for enhancement farther down.

    Thanks!
    I think I'll edit the title of this to contain ER: ... it would be very nice if it were possible to turn off this bit of validation. I can imagine varying degrees of "smartness" for such a feature--from a manual "accept simple desktop pseudoclasses" option to automatically checking to see if the CSS is listed in an adf-faces-skins.xml file or is imported by any CSS files that are.

  • Setting styleable properties & pseudo-class state to controls in JavaFX 2.2

    Hi All,
    Greetings!
    Can anyone please let me know how to create or set styleable and pseudo-class state properties for custom controls developed with JavaFX 2.2.
    I found a very nice wiki regarding this. (https://wikis.oracle.com/display/OpenJDK/CSS+API+to+support+custom+UI+Controls)
    But this seems to be with JavaFX 8 version. As i cannot find PseudoClass in the current version of JavaFX 2.2.
    Thanks & Regards,
    Sai Pradeep Dandem.

    There is no public API in 2.2 for adding adding styleable properties and pseudo-class state to controls in JavaFX 2.2.
    The implementation between 2.2 and 8.0 changed significantly in terms of API, class names, etc. The model is roughly the same, but if you implement something in 2.2 using the private implementation APIs, it will not work, and may not even compile, in 8.0.
    // A pseudo-class in 2.2
        private BooleanProperty foo = new BooleanPropertyBase() {
                    @Override
                    protected void invalidated() {
                        impl_pseudoClassStateChanged("foo");
                    @Override
                    public Object getBean() {
                        return MyControl.this;
                    @Override
                    public String getName() {
                        return "foo";
        public boolean isFoo() {
            return foo.get();
        public void setFoo(boolean newFoo) {
            foo.set(newFoo);
        private static final long FOO_PSEUDOCLASS_STATE = StyleManager.getInstance().getPseudoclassMask("foo");
        @Override
        public long impl_getPseudoClassState() {
            long mask = super.impl_getPseudoClassState();
            if(isFoo()) mask |= FOO_PSEUDOCLASS_STATE;
            return mask;
    // A styleable property in 2.2. import classes from com.sun.javafx.css
            public DoubleProperty bar = new StyleableDoubleProperty(0.0) {
                        @Override
                        public StyleableProperty getStyleableProperty() {
                            return BAR;
                        @Override
                        public Object getBean() {
                            return MyControl.this;
                        @Override
                        public String getName() {
                            return "bar";
    // API used by css in 2.2
            private static final StyleableProperty<MyControl,Number> BAR =
                new StyleableProperty<MyControl,Number>("-my-bar",
                    SizeConverter.getInstance(), 0.0) {
                    @Override
                    public boolean isSettable(MyControl ctl) {
                        return bar.isBound() == false;
                    @Override
                    public WritableValue<Number> getWritableValue(MyControl ctl) {
                        return ctl.bar;
             private static final List<StyleableProperty> STYLEABLES;
             static {
                 final List<StyleableProperty> styleables = new ArrayList<StyleableProperty>();
                 Collections.addAll(styleables,
                     BAR
                 STYLEABLES = Collections.unmodifiableList(styleables);
         public static List<StyleableProperty> impl_CSS_STYLEABLES() {
             return STYLEABLES;
        public List<StyleableProperty> impl_getStyleableProperties() {
            return impl_CSS_STYLEABLES();
        }

  • Apply CSS to Flash Movie?

    If I want to apply a class to a flash movie, where do I place
    it in order
    for it to listen?
    Here's my code:
    <div id="header">
    <p id="flash">
    <object type="application/x-shockwave-flash"
    data="/clients/affusion/webs/assets/affusionconsulting.swf"
    width="472" height="196" class="movie">
    <param name="movie"
    value="/clients/affusion/webs/assets/affusionconsulting.swf"
    />
    </object> </p>
    </div>
    Here's the simple css:
    #flash {
    height: 214px;
    margin: 0 21px 0 15px;
    background: url(/clients/affusion/webs/images/headerbg.gif)
    no-repeat left;
    display: block;
    text-align: right;
    .movie { padding-top: 9px;}
    Here's the URL:
    http://www.galfanodesign.com/clients/affusion/webs/final/index.asp
    Might there be a simpler solution to what I am seeking?
    Thanks!
    Dan

    That could be....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dan Galfano" <[email protected]> wrote in
    message
    news:[email protected]...
    >I see. I swear the bg-image did move before..but perhaps
    it was the whole
    >container that was moving and not the bg-image.
    >
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Jup. The only way to move background images is with
    >> background-position....
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Dan Galfano" <[email protected]>
    wrote in message
    >> news:[email protected]...
    >>> Hmm...Well, whatever it was doing, I just
    re-read what I wrote and made
    >>> sure the background position of the image was
    "top" and then added the
    >>> padding to the container, and it worked.
    >>>
    >>> Dan
    >>>
    >>>
    >>>
    >>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> Padding will not move background images.
    >>>>
    >>>> --
    >>>> Murray --- ICQ 71997575
    >>>> Adobe Community Expert
    >>>> (If you *MUST* email me, don't LAUGH when
    you do so!)
    >>>> ==================
    >>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>> ==================
    >>>>
    >>>>
    >>>> "Dan Galfano"
    <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> Ok. Well, I have this header with a
    background image and am putting
    >>>>> the flash movie in the <div> but
    the movie is aligned at the top of
    >>>>> the <div>. I want it padded 9px
    from the top. But, if I put in the
    >>>>> padding-top in my css for the header,
    then it moves the background
    >>>>> image down too......
    >>>>>
    >>>>> Any thoughts?
    >>>>>
    >>>>> Dan
    >>>>>
    >>>>>
    >>>>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>>>>
    news:[email protected]...
    >>>>>>> I can't apply CSS to a flash
    movie? I don't want to apply it within
    >>>>>>> the movie...Wouldn't it be like
    adding CSS to an image?
    >>>>>>
    >>>>>> No. Sorry. Flash lives in a
    concurrent but different universe than
    >>>>>> HTML.
    >>>>>>
    >>>>>>> If not, then, do you see any
    fixes I can add to my container?
    >>>>>>
    >>>>>> I'm not quite sure what you are
    wanting to do, Dan.
    >>>>>>
    >>>>>> --
    >>>>>> Murray --- ICQ 71997575
    >>>>>> Adobe Community Expert
    >>>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>>> ==================
    >>>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>>> ==================
    >>>>>>
    >>>>>>
    >>>>>> "Dan Galfano"
    <[email protected]> wrote in message
    >>>>>>
    news:[email protected]...
    >>>>>>> Murray,
    >>>>>>>
    >>>>>>> I can't apply CSS to a flash
    movie? I don't want to apply it within
    >>>>>>> the movie...Wouldn't it be like
    adding CSS to an image?
    >>>>>>>
    >>>>>>> If not, then, do you see any
    fixes I can add to my container?
    >>>>>>>
    >>>>>>> Thanks!
    >>>>>>>
    >>>>>>> Dan
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>>>>>>
    news:[email protected]...
    >>>>>>>>> If I want to apply a
    class to a flash movie, where do I place it
    >>>>>>>>> in order for it to
    listen?
    >>>>>>>>>
    >>>>>>>>
    >>>>>>>> You cannot apply CSS to
    Flash. You could apply it to a container
    >>>>>>>> into which the Flash is
    placed, though.
    >>>>>>>>
    >>>>>>>> --
    >>>>>>>> Murray --- ICQ 71997575
    >>>>>>>> Adobe Community Expert
    >>>>>>>> (If you *MUST* email me,
    don't LAUGH when you do so!)
    >>>>>>>> ==================
    >>>>>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM)
    >>>>>>>> Technotes
    >>>>>>>> ==================
    >>>>>>>>
    >>>>>>>>
    >>>>>>>> "Dan Galfano"
    <[email protected]> wrote in message
    >>>>>>>>
    news:[email protected]...
    >>>>>>>>> If I want to apply a
    class to a flash movie, where do I place it
    >>>>>>>>> in order for it to
    listen?
    >>>>>>>>>
    >>>>>>>>> Here's my code:
    >>>>>>>>>
    >>>>>>>>> <div id="header">
    >>>>>>>>> <p id="flash">
    >>>>>>>>> <object
    type="application/x-shockwave-flash"
    >>>>>>>>>
    data="/clients/affusion/webs/assets/affusionconsulting.swf"
    >>>>>>>>> width="472" height="196"
    class="movie">
    >>>>>>>>> <param name="movie"
    >>>>>>>>>
    value="/clients/affusion/webs/assets/affusionconsulting.swf" />
    >>>>>>>>> </object>
    </p>
    >>>>>>>>> </div>
    >>>>>>>>>
    >>>>>>>>> Here's the simple css:
    >>>>>>>>> #flash {
    >>>>>>>>> height: 214px;
    >>>>>>>>> margin: 0 21px 0 15px;
    >>>>>>>>> background:
    url(/clients/affusion/webs/images/headerbg.gif)
    >>>>>>>>> no-repeat left;
    >>>>>>>>> display: block;
    >>>>>>>>> text-align: right;
    >>>>>>>>> }
    >>>>>>>>>
    >>>>>>>>> .movie { padding-top:
    9px;}
    >>>>>>>>>
    >>>>>>>>> Here's the URL:
    >>>>>>>>>
    http://www.galfanodesign.com/clients/affusion/webs/final/index.asp
    >>>>>>>>>
    >>>>>>>>>
    >>>>>>>>> Might there be a simpler
    solution to what I am seeking?
    >>>>>>>>>
    >>>>>>>>> Thanks!
    >>>>>>>>>
    >>>>>>>>> Dan
    >>>>>>>>>
    >>>>>>>>
    >>>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • "the activex control for flash player could not be registered" - Solutions Roundup

    I recently ran into this problem on my computer:
    http://at32.s3.amazonaws.com/flash_install_problems2.jpg
    I am a Flash developer (as in I write SWFs, I don't work for Adobe).  and when I updated IE to 10.2, "the activex control for flash player could not be registered".  Since I am a developer, I also have Firefox and Chrome installed, with Flash running without problems.  For a long time now, Internet Explorer has used a different version (ActiveX) to the other browsers, which use plugins.  I am a strong supporter of Flash, it's great to develop with and has a very wide feature set which is growing all the time, unlike fixed technologies/standards.  However, the weakest part is the install process - I don't understand why their is a Download Manager.  Google Chrome does it's best (so far) by managing the install/update process entirely in the background.  Anyway, it was in my best interest to try and get to the bottom of this.
    For the record, on the problem machine I have Windows 7 with IE8, but I have seen almost  identical symptoms with IE9, Windows XP SP3, as well as various  iterations of Flash Player (10.0, 10.1, 10.2 and even some final  editions of version 9).
    First I tried the standard support here:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Basically, doing the manual uninstall and manual install of the latest version (without using the download manager, or have IE open).  This did not work.  I also tried the Microsoft "subinacl" program, together with "reset_fp10.bat".  This didn't work either.  However, you should try all of these things first before progressing further.
    A quick note about people who had tried running the following at a command prompt: "secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose"
    I didn't do this, because on investigating further it didn't seem to work with Windows 7, only Windows XP, Windows 2000 or Windows 2003 - though there was a few threads where this had fixed the problem for some users.
    For my solution, it is recommended you use the manual uninstall / installers, so you should have them downloaded ready to use.
    I then heard about problems with permissions in the registry with the key: HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    So I opened regedit.exe (start - run - typed "regedit.exe"), navigated to the key and sure enough, I couldn't open it - permission denied - even though I had an administrator account.  If for some reason, you can access this key (and any subkeys), then it's likely the following fix will not resolve the problem.
    I then done further diagnosis, by using Process Monitor to try and install Flash Player, and I got the following:
    http://at32.s3.amazonaws.com/flash_install_problems.gif
    This shows all the access denied errors the Flash Player install was experiencing when trying to write to the registry key.  This confirmed that this was the problem.  I only stress this because several people said it was unwise to tinker with the registry.  Though this is common advice, this is the only known fix for this precise problem at present, since you need to manually adjust the permissions yourself.  I don't know who is at fault here - Microsoft or Adobe - but let's just get Flash fixed...
    The solution:
    Firstly, you may want to backup your registry, or the exact key.  I didn't do this so I've provided no instructions on how to, but it is recommended for the paranoid.  Also make sure as much software is closed down as possible - browsers, IM software, any junk in your system tray. As way of example, I happened to have "BBC iPlayer" installed and running in the background which uses Adobe AIR and Flash Player, so I exited that too.
    1) Open regedit (start - run - type "regedit.exe").  You may need to right click on it and select "Run As Administrator", but I didn't as my account was already administrator.
    2) Navigate to the key. HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    Click on it to confirm that you cannot access it (you will get an error) - if their are no problems - this probably isn't the cause of your issues.
    3) Right click on it and click Permissions, and ignore any message that may pop up.
    4) Under "Group or Usernames" click "Add".  Type your account name name, or "Administrators" in the box, then "Check Names" to format it correctly, then Ok.
    5) Now on the next screen click the checkbox to enable Full Control (this will also automatically enable "Read" permission too).
    6) Click Advanced, then the "Owner" tab at the top.  You will see that their is no "Current Owner".  This is what we will now fix.
    7) Click on your name to change the owner to (I went for Administrators).  Also enable the checkbox entitled "Replace Owner on subcontainers and objects".  Then click Ok.  You will get an error message, which you can try clicking Retry to, but hit Cancel - this is not a problem.
    8) Click Ok a couple of times and this part of your registry is now fixed.
    9) Now it's a simple case of running the manual Flash uninstall program, then finally the manual Flash installer (for Active X - not the Firefox/Chrome plugin versions).  To my surprise, after a couple of days looking into this - I finally had a solution and Flash in IE once more.  If you are using Firefox too you may find Flash is no longer installed their (the uninstaller removed it).  In this case just install via the Adobe site or try to watch a video on You Tube and you will be prompted or linked to the install.
    Hope this provides a good round up of the possible solutions to this problem.  Hopefully Microsoft or Adobe can find out what causes this issue in the first place so we don't have to go down this route for much longer.  Chrome's implementation of Flash shows how effortlessly things can work!

    They will stay on the screen.  However, Process Monitor is only intended for advanced users.  It is recommended that users try to navigate to the troublesome registry key using regedit, and see if they can access it or not without an error.  This is far easier than trying to use Process Monitor, which is very complicated.
    I used Process Monitor to confirm that it was just that key which was causing the problem, and not others.  Process Monitor is not to be confused with the new Resource Monitor which is accessible via Task Manager in Windows 7 (and possibly Vista).  If you must experiment (and Process Monitor is very useful for diagnosing many deep-level problems if you know what you're looking for) Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    It replaces the older Sysinternals "FileMon" and "RegMon".  For those interested in the technical side, I had to setup a number of filters to be able to get the results display as in the screenshot.  First of all to just show Registry events.  Then to just show events from the manual Flash activeX installer executable.  The I added a filter to show only non-successfull results.  And finally, for the purposes of the screenshot, added a filter to just show those with "Access Denied", since other non-critical errors are also picked up due to missing keys because installation has not yet been fully completed I guess.   When experimenting, most of these filters were applied using the "is not" boolean logic, which will make sense if you experiment with the program.
    Without adding any filters, it picks up so many events (hundreds per second) that it's otherwise unusable.  e.g. 40,000 events within the first few seconds of opening the program. For this reason, I recommend simply using Regedit to diagnose the problem with the particular Flash registry key.

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • New SpryWidget .CSS for a New Page

    I have the whole spry arsenal of files on a website in a separate folder. I am already using several widgets and functions from that and among others also a "spry collapsible panel" widget on one of the pages.
    Now, I would like to use it once again on a new page (on the same site), but when I insert the widget it gives me the same SpryCollapsiblePanel.css as the one already used for the previous widget. But I want to give the panel a different look and feel as it has some other purpose on the new page.
    What is the correct procedure to get a fresh untampered "SpryCollapsiblePanel.css" for the new widget on a new page?
    Thank you!

    I notice (finally got the page!) that the lowest element in the 'drop up' menu overlays the main menu title...a byproduct of needing perhaps one more item's height in margin-top negative pixels!
    I suppose it is a small consolation, but IE 8 seems to be rendering the menus accurately, with the sub-submenus flying out relative to their own submenus.
    The only workaround that comes to mind (for all the other browsers out there) is to set up new classes to apply to subsubmenus:
    ul.MenuBarHorizontal ul    /*this is the usual markup; you can leave this in */
        margin-top:-177px;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 160px;
        position: absolute;
        left: -1000em;
    /*add the following, to offset the top margin by multiples of the height of a single item */
    ul.MenuBarHorizontal ul ul.three  {margin-top: 90px;}
    ul.MenuBarHorizontal ul ul.two {margin-top: 60px;}
    ul.MenuBarHorizontal ul ul.one {margin-top: 30px;}
    For instance, the Ladakh Treks subitems want to offset from the top 30px to align with their parent, Ladakh Treks, so I use the <ul class="one"> to drop that sublist 30px down from the top of the container.
    <li><a tabindex="-1" href="http://www.artcraftemporium.com/preview_wildvent/treks.html" target="_blank" class="MenuBarItemSubmenu">Ladakh Treks</a>
          <ul class="one">
                 <li><a tabindex="-1" href="http://www.artcraftemporium.com/preview_wildvent/stok_kangri_exp.html" target="_blank">Stok Kangri Expedition</a></li>
                 <li><a tabindex="-1" href="http://www.artcraftemporium.com/preview_wildvent/markha1.html" target="_blank">Markha Valley</a></li>
            </ul>
    </li>
    This solution does not work in IE8, which had already worked the way you intended without monkeying around with the top margin. I don't know how it works in IE7.
    I have not used conditional markup (I know there are people out there who have, and you could research it!), but one could attempt to put a conditional markup around those class definitions in the stylesheet that would not call on them when your site encounters IE8.
    Beth

  • Need help for flash builder

    i need help for flash builder 4 and papervison 3d. I need to create a slider with it ranges of value from 10 to 50 to adjust the camera values for the camera.fov and also need to create it for the yaw of the object from 0 to 360. I try to look for any slider event and classes in this program but cant find any, btw, i need to use the AS only project file.
    here is my codes:
    can you please tell me how i should modify the codes?
    package
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.events.Event;
        import org.papervision3d.materials.BitmapFileMaterial;
        import org.papervision3d.materials.BitmapMaterial;
        import org.papervision3d.objects.primitives.Sphere;
        import org.papervision3d.view.BasicView;
        [SWF (width="800", height="600", backgroundColor="0x000000",frameRate="30")]
        public class EarthBitmap extends BasicView
            private var sphere:Sphere;
            public function EarthBitmap()
                super(800 , 600);
                var earthmaterial:BitmapFileMaterial = new BitmapFileMaterial("../assets/Earth.jpg");
                sphere = new Sphere(earthmaterial,100,20,18);
                camera.fov = 25;
                scene.addChild(sphere);
                addEventListener(Event.ENTER_FRAME,rotateSphere);
            public function rotateSphere(evt:Event):void
                sphere.yaw(0.2);
                singleRender();

    Turn the click handler into a full on separate function. Then store all the views in an array and use Math.rand() to randomly choose one.
    Something like this:
    <fx:Script>
         <![CDATA[
              var questionsArray:Array = {question2,question3,question5,questionRed,questionGeography};
              function buttonClickHandler(event:MouseEvent){
                   var randomProblem:int = Math.floor(Math.random()*(questionsArray.length));     //generates a random integer between 0 and the total number of questions in the array (arrays are 0-based)
                   navigator.pushView(questionsArray[randomProblem]);
         ]]>
    </fx:Script>
    <s:Button id="randomProblemButton" label="Next Problem" click="buttonClickHandler(event)" />
    Haven't tested that, but something along that line should work

  • CSS for Dynamically Loaded External Text

    I'm externally loading text from a .txt file. I need to format that file using CSS. I've got the CSS file set up and everything. I've tried every tutorial I can find to try and load the CSS, but nothing is working.
    Here is the script for loading the text:
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("content_files/commissions.txt");
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoadComplete);
    function textLoadComplete(event:Event):void
        commissionscontent.htmlText = textLoader.data;
        commissionscontent.htmlText = textLoader.data.split("\r\n").join("\n");
            if (commissionscontent.maxScrollV <= 1){
            scrollBox_mc.visible = false;
            scrollLine.visible = false;
        else {scrollBox_mc.visible = true;
              scrollLine.visible = true;}
    Can anyone help me to load the CSS for this?? I'm really new to Flash and have just been teaching myself, except for now I've hit a wall and I am so incredibly frustrated that it's not even funny.

    var css_loader:URLLoader = new URLLoader();
    var textLoader:URLLoader = new URLLoader();
    var my_css:StyleSheet = new StyleSheet();
    var my_txt:TextField = new TextField();
    css_loader.load(new URLRequest("style.css"));
    css_loader.addEventListener(Event.COMPLETE, onCSSComplete);
    function onCSSComplete(e:Event):void {
        my_css.parseCSS(e.target.data);
        textLoader.load(new URLRequest("commissions.txt"));
    textLoader.addEventListener(Event.COMPLETE, textLoadComplete);
    function textLoadComplete(e:Event):void {
        my_txt.styleSheet=my_css;
        my_txt.htmlText=e.target.data;
        addChild(my_txt);
        my_txt.width=300;
        my_txt.autoSize=TextFieldAutoSize.LEFT;
        my_txt.wordWrap=true;

  • Changing CSS for form field elements?

    Hi,
    Is there a way we can change the CSS for Form text fields in APEX 4.1 so that they look a little better? Or is the .css file located somewhere where we can just go and change?
    Thanks,
    Sun

    Hi,
    If you are referring to changing the CSS properties then you can do that.
    Add /override styles to the page item's HTML Form Element Attributes
    style="<cssproperty1>:<value1>;<cssproperty2>:<value2>;"
    e.g.
    style="background-color:red;color:yellow;"Red/yellow is certainly not "looking better", the idea is to give you the direction.
    If you know the class of the item(s) then you can change the styles by overriding the built-in style of the template by adding the &lt;style&gt; in the Page HTML
    Header as well.
    Or, define your own class, add the class to the HTML Form Element Attributes field and adding the style in the Page HTML Header.
    regards,

  • Best practices for Flash CS5 and Flash Builder 4 integration?

    With Flash CS5's new XFL file structure/format, what's the best way to structure project files for Flash CS5 integration with Flash Builder 4? Flash CS5 autocreates a folder named after the xfl file as the outer container, and then all the assets/xfl within it. Should this folder be used as the project folder for Flash Builder 4, or better to nest the xfl container folder in a "real" project folder? I would presume the latter, since you might have multiple XFL files in one project. I was hoping to see some automatic linkages between document class of the Flash CS5 XFL file and any default ActionScript class created by Flash Builder, but so far I seem to need to specify a document class directly in Flash CS5's environment and making sure that the path to a default class created by Flash Builder is correct.
    Thanks in advance for any suggestions...

    Most likely, you know that, but just in case, you can integrate new Flash project into existing Flex 4 project  from within the Flash Builder by choosing either Flash Component or Flash Container from the FB Design view. In such workflow Flash Builder opens the Flash CS 4 (I assume that should be the same for CS5) and takes care of the integrating the newly created Flash project into original Flex 4 project.
    FTQuest

Maybe you are looking for

  • Error in Process chain while deleting index and create index

    While executing the process chain  for delete index  the process chain failed with the below error message as "The system has not finished loading request 445315 into data target ZECC_C01". While creating index also it failed with error message as "L

  • Restore previous app/music after rebuilding library

    I recently chaged drive location to all my music (23000+ mp3) on my pc: ie: from D:\music to E:\music To avoid adding again all the music from scratches to iTunes I decided to just rebuild the library after mass-modifying the paths in the xml file (i

  • Windows Server 2008 x64 on Bootcamp: Ethernet drivers missing/not working

    Hello folks, at the moment I try to get Windows Server 2008 x64 running on a new Mac Pro (Early 2009). Installation of Windows Server 2008 x64 (Enterprise) worked out of the box. However, the ethernet drivers do not work. Ethernet cards are not detec

  • K1 youtube issues and wifi shutting off

    Thought I would throw this question out there. I was finally (after restoringmy K1) able to get all my updates complete. I have the latest version as of today on the Honeycomb. Here is the issue...now my internet is shutting down at random for one th

  • Chapter markers menu out of alignment

    When I set chater markers in iMovie and then share to iDVD, I am never happy with the alignments of the "buttons" for the scene selections. The are never positioned nicely and tend to overlap a lot. If I set to "free float" and line the buttons up ni