Merger two style sheets at run time

Hi,
        Can we merge two css files to get one swf after compiling.
Thanks,
Jayagopal.

Should just be StyleManager.loadStyleDeclarations(…)
You shouldn't need FlexGlobals.topLevelApplication.
I'm not sure exactly what your 3.6 pattern was, but I don't think there was a FlexGlobals class in 3.6.

Similar Messages

  • Loading style sheets at run time

    I have created few fonts css and compiled them into swf to
    load them at run time.
    There is one custom component Card, is placed into a Module
    and this Module is loaded by main application.
    The Card component contains TextArea, MyTextArea(custom
    component) and ComboBox (which display font list).
    Now when user select any font from ComboBox, Card component
    load css and when it get loaded, it updates fontFamily of TextArea
    and MyTextArea. But only TextArea updated with new fonts while
    MyTextArea is not getting update anytime.
    Can anyone help me to figure out this.
    I am using following code to load css run time.
    var myEvent:IEventDispatcher =
    StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,ApplicationDomain.current Domain);
    myEvent.addEventListener(StyleEvent.COMPLETE,fontComplete);
    myEvent.addEventListener(StyleEvent.ERROR,fontError);
    Any help will be appreciated, Thanks

    Could you save the CSS files as SWCs instead of SWFs and compile them in to the IPA?
    Just a thought; I've never done this myself.
    -Randy Nielsen
    Senior Content and Community Manager
    Adobe Systems Incorporated

  • Displaying different sheets at run time based on value of the parameter

    Hi,
    I've a query regarding displaying two different sheets at run time in Oracle discoverer based on the value of the parameter that i give.
    I've a parameter Summary_flag.
    If the value of the parameter is 'Y',then it should display a sheet,say for example it should display Sheet1.
    If the value is 'N',then it should display another sheet, say for example it should display Sheet2.
    Is there any way in which i can accomplish this?
    I went through the Format and Tools menus but couldnt find anything regarding this aspect.
    Can you help me out?
    Thanks,

    Having a Disco parameter dictate which worksheet is displayed is not an option that is available. There are a few workarounds, though:
    1. Have a portlet (or some other web interface) accept your parameters, and then call the appropriate worksheet.
    2. Have 2 worksheets, and have it devolve into a training issue (for a summary run this, for all the details run this).
    3. Create calculations that will show or hide column data depending on the parameter selected - the columns will still be there, and you can fill them in with blanks, or a message like "N/A for Summary".
    4. Create a report that will allow the users to drill between the summary and detail data - I'm not sure whether you could use a parameter to then say whether the report should open up summarized or expanded.

  • Design issue with sharing LV2 style global between run-time executables

    Hi,
    Just when I though that I had everything figured out, I ran into this design issue.
    The application that I wrote is pretty much a client-server application where the server publishes data and the client subscribes data using data sockets. Once the client gets all the data in the mainClient.vi program, I use LV2 style (using shift registers) to make the data global to all the other sub-vi’s. So the LV2 is in initialize mode in the mainClient.vi program and then in the sub-vi’s the LV2 is in read mode. Also, I had built the run time menu for each sub-vi that when an item is selected from the menu, I would use the get menu selection to get the item tag which will be the file nam
    e of the sub-vi and open the selected sub-vi using vi server. This all worked great on my workstation where I have labVIEW 7.0 Express installed. But the final goal is to make exe’s for each of these sub-vi’s and install runtime on the PC’s that do not have labVIEW installed. Of course when I did that only the mainClient.exe program was getting the updated data from the server but the sub-vi’s were not getting the data from the mainClient.exe. I did realize that the reason for this is due to the fact that I had compiled all the sub-vi’s separately and so the LV2 vi is now local to each executable (i.e. all executables have their own memory location). Also, the run-time menu did not work because now I am trying to open an executable using vi server properties.
    To summarize, is there a way to share LV2 style global's between executables without compiling all of the sub-vi’s at one time? I tried using data-sockets (local-host) instead of LV2 st
    yle gloabls to communicate between the sub-vi’s but I ran into performance issues due to the large volume of data.
    I would really appreciate it if anyone can suggest a solution/alternative to this problem.
    Thanks
    Nish

    > 1)   How would I create a wrap-around for the LV2.vi which is
    > initialized in my mainClient.vi and then how would I use vi server in
    > my sub-vi to refer to that LV2.vi?
    > You mentioned that each sub-vi when opened will first connect to the
    > LV2.vi via via-server and will keep the connection in the shift
    > register of that sub-vi. Does this mean that the sub-vi is accessing
    > (pass-by-reference) the shared memory of the mainClient.vi? If this
    > is what you meant I think that this might work for my application.
    >
    If the LV2 global is loaded statically into your mainClient.vi, then any
    other application can connect to the exe and get a reference to the VI
    using the VI name. This gives you a VI reference you can use to call
    the VI. Ye
    s, the values will be copied between applications. That is
    why you need to add access operations to the global that returns just
    the info needed. If you need the average, do that in the global. If
    you need the array size, do that in the global. Returning the entire
    array shouldn't be a common operation on the LV2 style global anyway.
    > 2) Just to elaborate on my application, the data is
    > transferred via DataSockets from the mainServer.vi on another PC to
    > the client’s PC where the mainClient.vi program subscribes the
    > data (i.e. 5 arrays of double type and each arrays has about 50,000
    > elements). The sub-vi’s will have to access these arrays
    > located on the mainClient.vi every scan. Is there any limitation on
    > referencing the mainClient.vi data via vi-server from each sub-vi?
    Your app does need to watch both the amount of data being passed across
    the network, and the amount being shared between the apps. You might
    want to consider puttin
    g the VIs back into the main app. What is the
    reason you are breaking them apart for?
    Greg McKaskle

  • Change style property at run time

    Hi,
    I have one table with update icon(as column), if i click that icon of any row means it needs to change the table as editable.
    I don't know whether it is possible or not.
    If possible means please tell me how to do that.
    Thanks
    SAN

    Hi San
    Yes it is possible.You need to make use of SPEL and PPR for that.I have exact scenario on my blog.You can refer
    http://oracleanil.blogspot.com/2010/08/how-to-make-read-only-selected-row-in.html
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Scripts working with Style Sheets

    Hello. I'm working in CS3, InDesign.
    I am working on a fairly large conference book full of sessions, two columns per page. Two style sheet in question: 1) Head_with_RuleAbove; 2) Head_with_NoRule. Scenario: The sessions are divided by a horizontal rule, except when the session is at the top of a column. Here in lies my problem, if a session is added or taken away then I have to go back through to the end of the file and touch all the "head" to either add or remove the rule above with style sheets. If this happens at the front of the book, it's very time consuming.
    My dream: Is there a script that exists that can run in tandum with style sheets that picks a style sheet to use depending on where the text find's itself in the column, ie at the top or not at the top?
    I apologize that this question is so wordy and confusing.I appreciate any help you all have to offer. Until then I will click away.
    Kindly.
    --Dimitry

    It's possible to write a script that does just that: add a line to each head, except when it's at the top of a frame; in that case remove the line.
    A drawback is that you would have to run it on every change. So try cheating. This way you don't have to do anything on reflowing text:
    Go to the master pages for these columns and add a new layer. Position this layer on top of the existing one(s). Draw a white rectangle on the position where the line would come. All you have to do is making sure you add the text on the right layer, and don't use these master pages for anything else than these 2-column texts.

  • Why is VI not executable using Labview 7.1 Run-Time Engine?

    Hi,
    In our Teststand sequence, we have a Labview Action step which is returning an error: "The VI is not executable", along with the error code: -18002.
    This error occurs on a Production PC using the L.V. 7.1 Run-Time Engine.
    I'm aware of Mass Compiling to ensure all the VI's are the correct version, but this has not resolved the problem.
    The software was installed on the production PC using a Teststand created installer, with the Labview Adapter set
    correctly to the Run-Time Engine, i.e. not trying to open the Labview Developer Server to execute the step at run time.
    Because it's the 1st Labview module to be executed, I added another similar step to run beforehand, i.e. the new simple
    Labview code ran first. This executed correctly, but then the next step caused the error above.
    The small number of associated sub-vi's are on the target PC, and have been mass compiled.
    I've had -18002 errors before, but this is one I cannot cure.
    All suggestions gratefully received.
    Gary.

    Hi Guys,
    Regarding this -18002 error when using the Run Time Engine instead of the Development Environment, what is the VI within the step that is failing (in any of the cases you've mentioned) trying to do? Are they built around any toolkits?
    In my experiments with a simple VI (with just a user dialogue) using the LabVIEW 7.1 RTE in both TestStand 3.1 and 3.5 this morning, I haven't found any issues
    There is a possibility if any of the sub-VIs or toolkits you use contain a Merge Errors.vi, that the Run Time Engine picks up a copy of the VI built for previous versions of the RunTime Engine (due to the order in which the sub-VI directories are scanned), and it cannot convert it.
    There are a few solutions for this, the easiest one looks to be to copy the error.llb\Merge Errors.vi for LabVIEW 7.1 into the same directory as the VI you're calling (so TestStand can pick it up easily).
    Can you let me know if this solution helps at all? If not, would it be possible to post up any of the code or sequence you're having problems with?
    Best wishes,
    Mark
    Applications Engineer
    National Instruments

  • Using style sheets in a button click event

    hi. doing a project and extending the WoodStocks application. so need to google and find how to add keyboard short cuts to the data grid, the combo box, how to manually add the read only and edit columns and to do error handling for the save button. once
    i do this, then need to have two buttons. two different styles sheets, and using xml and xsl. so, do i just then do the xml and the xsl style sheet headers in a cutton click event. have gone through the learning from http://www.w3schools.com, and done the
    xml and the xsl tutorials. and so. just asking for your feedback, tips and tricks. and now, looking to have two style sheets, one for a visual user and one for a blind user. what aspects should i have in each style sheet. looking for feedback, advice. thanks.
    marvin.
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

    hi. but i need to do this in c #, so it is relevant to c#
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

  • Why do I have two CSS sheets? Should I merge them? How?

    As I've been working on this site, I simply copied pages by 'saving as' to make the next page, since they are very similar and use the same text sizing (except for one which has become the 'black sheep.')
    Now, after the fact, when the site is basically done, I see there are two CSS files associated with this site, I only made one to start with 'base.css'. Now there is also a file called 'base_sample_pgs.css' which I did not, knowingly, make.
    I want to clean up the site and resolve type font sizing issues on one of the pages, and while I've heard of designers using separate CSS files for fonts, colors, etc., which is a great idea for very large sites, I'm thinking it would be best if I had only one CSS file for a small site like mine with only a dozen or so pages. I'm thinking two CSS files are the cause of some conflict already with font sizing on one of the pages.
    What do you think? Should I merge the CSS into one file? Would it help diagnosing problems? If so, what is the best way to do this?
    TIA,
    Ken
    The site:
    http://www.kgngroup.net

    OK, I'm looking at your capabilities.html page and there is a reference to only one CSS style sheet:
    <link href="base.css" rel="stylesheet" type="text/css" />
    Then you have some page-specific CSS that follows.
    If what you are asking is whether or not you ought to pull the page-specific stuff into your base.css file, that only matters if you are using exactly the same styles in all pages. You can define different types of pages in 1 CSS style sheet, like a three-colum and a two-column layout and that works just fine. But you can also choose to have one stylesheet for the three-column pages and another for the two-column pages. Additionally, you may have a completely separate style sheet for just your menu (I have that on lots of my work).
    The question for your question is, which is easier for you to manage?
    In the case of many of my menu stylesheets, it is much more sensible to keep those style sheets separate from the main page. I think in terms of navigation when I am in them, I think in terms of general styles when I am in the other style sheets.
    I have also seen some professionals use one style sheet to define text styles, another to define page layouts and a third to define menus. All that is completely dependent on thought process.
    So this is "answering a question with a question," but what I am trying to do is get you to realize the answer in your own thought process.

  • Merging ResourceDictionary at run time!

    Hi Everyone,
    I am trying to merge ResourceDictionary at run time from code behind. I am building a ResourceDictionary from an xml file and then merge it at application level.
    public MainWindow()
    List<string> listFiles = new List<string>();
    listFiles.Add("English1.xml");
    listFiles.Add("English2.xml");
    var rd = new ResourceDictionary();
    rd.Source = new Uri("pack://application:,,,/Languages;component/English.xaml", UriKind.Absolute);
    foreach (string file in listFiles)
    XmlTextReader reader = new XmlTextReader("..\\..\\" + file);
    string key = string.Empty;
    string value = string.Empty;
    while (reader.Read())
    if (reader.NodeType == XmlNodeType.Element && (reader.Name == "Data" || reader.Name == "data"))
    if(reader.Name == "Data")
    key = reader.GetAttribute("Key");
    if (reader.Name == "data")
    key = reader.GetAttribute("name");
    while (reader.Read())
    if (reader.NodeType == XmlNodeType.Text)
    value = reader.Value;
    //AddKeyValue(key, value);
    if (rd.Contains(key))
    rd[key] = value;
    else
    rd.Add(key, value);
    break;
    reader.Close();
    var settings = new XmlWriterSettings();
    settings.Indent = true;
    var writer = XmlWriter.Create(@"English.xaml", settings);
    System.Windows.Markup.XamlWriter.Save(rd, writer);
    writer.Close();
    Resources.MergedDictionaries.Add(rd);
    This works as long as I have this:
    <Window x:Class="LanguageTranslation.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Label Content="{StaticResource Hello}"Height="30" Width="100"/>
    </Grid>
    </Window>
    The moment I have additional ResourceDictionary in xaml, I get Key not found error.
    <Window x:Class="LanguageTranslation.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
    <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Style/ApplicationDesignerStyles.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
    </Window.Resources>
    <Grid>
    <Label Content="{StaticResource CScanView}" Style="{StaticResource LabelStyle}" Height="30" Width="100"/>
    </Grid>
    </Window>
    I am thinking, I am not merging the dictionary correctly, when I add the local dictionary in xaml it tries to search for "Hello" in that xaml. How do I correctly merge this?
    Please Mark as Answered If this answers your question Or
    UnMark as Answered if it did not.
    Happy to Help :)
    My Site

    You should use the DynamicResource markup extension for this to work:
    <Label Content="{DynamicResource CScanView}" />
    A StaticResource is resolved during the loading of the XAML and using StaticResource to reference a resource that is defined in a ResourceDictionary that is merged at runtime in the XAML works only as long as you add the ResourceDictionary to Resources.MergedDictionaries
    before calling the InitializeComponent() method.
    A DynamicResource isn't looked up until runtime.
    If you define some <ResourceDictionary.MergedDictionaries> in your XAML, the XAML compiler will appearantly consider only these ones when compiling the XAML regardless of whether you did add another ResourceDictionary to Resources.MergedDictionaries
    before the InitializeComponent() method was called. The XAML sorts of "overrides" the dynamic dictionary at compile time. There is not much you can do about this.
    Please remember to mark helpful posts as answer and/or helpful.

  • Optimal way to enable user to pick style at run time - Flex

    What I'm trying to do: allow a user to be able to select a color palette for a custom component by selecting from a drop down menu with a variety of icons.
    I have the drop down menu part down, but I'm trying to understand how to best handle the various styles in my code. Ideally I would have liked to be able to load styles at run time, but I don't see a major advantage with this so I'm now thinking about compiling in all styles. Still, I can't seem to find a decent way to structure the code. Hacking it seems pretty easy / fast, but there's got a better way than having a big fat array of values which can be indexed via some index associated with each icon - yuck!
    Would love to hear your thoughts or see any pointers to obvious ways to handle this.
    thank you!

    Wouldn't style sheets make this a lot easier where the user essentially just picks one?

  • Safari 5.0.3 not loading CSS style sheets 1st time through

    When I go to my ecommerce site's https payment screen, the page HTML loads OK but the formatting is missing (so the screen is really messed up). If I hit the page re-load function the page re-loads with all the formatting corrected. It behaves the same with both the Mac and Widows versions of Safari 5.0.3. The problem did not occur on earlier versions of Safari (i.e., the Mac I use for testing the site worked perfectly on the now problematic page until I upgraded to the latest version of Safari).
    The problematic page works fine with all the other browsers that I have tried (IE7, IE8, Firefox, Chrome)
    My guess is that it has something to do with some @import url("css style sheet") directives that are imbedded at the beginning of the master style sheet for the page.
    This problem will stop all Safari 5.0.3 users from navigating our site so it is quite serious.
    Any help on this issues would be greatly appreciated.

    Further investigation has revealed that the following error message is being generated within Safari during the first time the that the page is loading,
    "Refused to load from document base URL. URL found within request."
    The <base> directive in the HTML, in this instance, is referring to a different URL than the one that the page is running from. The page with the problem is running on a remote server and back referencing to the home server for the <base> reference. This fails when the page first loads but seems to be accepted if a page-reload is done. It also works on all other browsers that have been tested.
    Is this related to a security setting in the browser?

  • Installshi​eld Merge Module Rather Than Run-Time Engine

    I create installations for our company using Installshield 11
    Professional.  At this point, the only way to install the
    necessary files to run a Lab View application is to add the Lab View
    7.1 run time engine into the setup.  
    What I am looking for is an alternative.  I am hoping there is
    some sort of merge module out there which can be added to Installshield
    so I don't have to call the Lab View run-time engine installer from my
    installer. 
    Does such a thing exist? 
    Or does anyone have any advice on how I can make a Lab View installer using InstallShield and make the installation unified?
    I don't prefer the current setup I have where our software installation
    begins, then the run-time engine installer takes over, and then our
    setup continues.
    Thanks for any help,
    Adam

    jacko wrote:
    Hi Rolf,
    It seems to me that you are explaining the problem I encountered after finding the merge modules which Chris led me to.  That problem was which merge modules to use? 
    I have in fact been trying to identify which modules I'd need, and was
    going to do it by trial and error.  If there is an easier way then
    I'll give your method a shot. 
    Is this what you are refering to in your message above? 
    Well,
    I'm not sure I understand you correct, but yes I think that is what my
    message meant. Basically if you look at the two VIs and try them out
    you will more or less see how they work.
    You can then try to create a small tool, that given a *.msm file as
    input will tell you which other msm files you need to include in your
    Install Shield installer. If that is easier than trial and error is of
    course something you can depate over. Also note that the order of
    inclusion of msm files in an installer seems to be important too. The
    lowest one in a depency chain should be first I believe.
    For your particular problem you would look at the LVRunTime.msm
    file to get a list of all other modules you need to include in your
    installer. I actually would suspect that Install Shield should have
    some functionality to list dependencies of merge modules, too.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Why do I have two of the same CSS style sheets on my page?

    I created my index page using a 3 column layout, and I brought in one of the sample css style sheets.  Now I have 3 css style sheets for my page:
    1)  thrcolfxdhdr.css
    2)  samplegreenyellow.css (I changed the name of the sample)
    3)  level3_3.css
    The last two have all the same .header .footer, etc.
    When I make a change in #2 it doesn not change anything on the page.
    When I make a change in #3, it does make a change.
    Do I need both.  Right now I am making every change twice!  Can I delete one?  If so, which one?
    Thanks.

    To see if you can do without one of the stylesheets, go to the head of your document (not the stylesheet) in Code View.
    Find one of the link statements (<link href=...etc.) and 'comment it out'. If your page functions without it, you can safely remove the link from your page. If you lose some styles but not all, you will need to spend a little more time with it.
    If your two stylesheets are actually identical, you can remove one with no harm done. Also remove the link and delete the stylesheet itself.
    If there are slight differences (you can find them by viewing them both in Code View, Tile Vertically in the Window menu), add the differences to one of the stylesheets and then delete the other.
    You might be able to compare the two stylesheets quickly in the CSS Styles Panel (but not with either link commented out) while your html page is open, but you won't see details side-by-side there.
    To answer your question (in passing!), the reason you did not see changes in your page when you changed Stylesheet #2 is because Stylesheet #3...called after Stylesheet #2...cancelled out all the changes you had made in Stylesheet #2. Then when you made changes in #3, they were NOT cancelled out by #2 because #3 came AFTER #2 in being called. Precedence is what the Cascade is all about.
    Beth
    Message was edited by: Zabeth69

  • Please help me to merge two places.sqlite to get my old and New history at the same time, every time i rename my two places.sqlite to see my old and new history

    every time i rename my new places.sqlite to see my old history and come back rename old places.sqlite to see my new history, i tired and i found No Way to merge two places.sqlite :( but it's must be found this way for The PPL to see their old and new history :(
    Thank You all in Advance

    You can't merge history otherwise then using Sync to store the history and bookmarks of one places.sqlite on the Sync server and then disconnect.<br />
    Copy the second places.sqlite file to your Firefox profile folder with Firefox closed.
    Then setup Sync once again using that account and merge the content on the Sync server with your computer.
    * Merge this device's data with my Sync data

Maybe you are looking for