Multiple themes for one application

Hi,
        How to apply multiple themes dynamically for singel application. Is there any sample available.
Regards,
Jayagopal.

Hi,
I work for big bank sector corp - Citigroup.,i am using themes to load themes dynamically using style manager class.i wrote a application which have 3 themes as a combo box items. when theme selected the look and feel of the same application's UI screen has to change. for the loading i used below mxml application. please advise me as need to submit this task today to implement all our project.it will be very gr8 if u can help me.
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="
library://ns.adobe.com/flex/spark"
xmlns:mx="
library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.styles.StyleManager;
import mx.events.StyleEvent;
[Bindable] private var themes:Array = [ "AeonGraphical","Spark","Halo" ];
private function initApp():void {
//Initialize the ComboBox to the first theme in the themes Array.
themesCmbBox.selectedIndex = themes.indexOf(0);
private function thmsCmbChangeHandler(themeName:String):void {
themeName= themesCmbBox.selectedLabel;
if (themeName!=null && themeName == "AeonGraphical") {
styleManager.loadStyleDeclarations("assets/AeonGraphical/AeonGraphical .swf");
if (themeName!=null && themeName == "Spark") {
styleManager.unloadStyleDeclarations("assets/AeonGraphical/AeonGraphic al.swf");
styleManager.loadStyleDeclarations("assets/Spark/spark.swf");
if (themeName!=null && themeName == "Halo") {
styleManager.unloadStyleDeclarations("assets/Spark/spark.swf");
styleManager.loadStyleDeclarations("assets/Halo/halo.swf");
private function registrationComplete():void {
Alert.show('Thank you for registering!');
private function clickClear(event:KeyboardEvent=null):void {
if(event==null || event.keyCode == 13 ) {
person.text = "" ;
addr.text = "" ;
city.text = "";
state.text = "" ;
zip.text = "" ;
]]>
</fx:Script>
<mx:Form id="Themes">
<mx:FormItem>
<mx:Label text="{'Themes Demo in Flash 4'}" fontSize="35"/>
</mx:FormItem>
<mx:FormItem label="Themes" >
<mx:ComboBox id="themesCmbBox" dataProvider="{themes}" change="thmsCmbChangeHandler(themesCmbBox.selectedLabel)" />
</mx:FormItem>
<mx:FormItem label="Person Name">
<mx:TextInput id="person" />
</mx:FormItem>
<mx:FormItem label="Street Address">
<mx:TextInput id="addr"/>
</mx:FormItem>
<mx:FormItem label="City">
<mx:TextInput id="city"/>
</mx:FormItem>
<mx:FormItem label="State">
<mx:TextInput id="state" />
</mx:FormItem>
<mx:FormItem label="ZIP Code">
<mx:TextInput id="zip" />
</mx:FormItem>
</mx:Form>
<mx:HBox>
<mx:Button id="sub" label="{'Submit'}" y="100" click="registrationComplete()" />
<mx:Button id="reset" label="{'Reset'}" buttonDown="clickClear()" keyDown="clickClear(event)" />
</mx:HBox>
</s:Application>
and i given the compiler option:
-theme+=${flexlib}/themes/Halo/halo.css,${flexlib}/themes/Spark/spark.css,${flexlib}/theme s/AeonGraphical/AeonGraphical.css
  or -theme+=assets/Halo/halo.css,assets/Spark/spark.css,assets/AeonGraphical/AeonGraphical.cs s
i tried with locally project assets path, and framework path nothing work out. and added these themes in the flex-config.xml file also.
And i tried to run your MyStyle app same problem. Please advise me ASAP.
Advance Thanks,
Usha
Optional Information:
Computer OS: Windows XP
Programming Language: mxml/as3
Compiler: flash 4.1.0

Similar Messages

  • Multiple themes in one application

    Hello,
    When the application was first created, it used the theme "Blue" (2 level of tabs).
    The application has 4 parent tabs. I have a requirement now to have a sidebar ONLY for one of those 4 parent tabs. I figured that I need to copy the current theme I have (Blue) and edit the new one so it allows 2 level of tabs with a sidebar. I was able to create the new theme, but I am not sure how I can edit certain pages to use the new theme while the rest uses the original theme. Is this possible?
    Thanks!

    Hello,
    Every theme has 2 two level tab templates. One with a sidebar and one without you should just be able to switch your templates at the page level to get what you are looking for.
    Carl

  • Oracle XE: Multiple Developers for one Application

    Hello,
    Is it possible to have more than one developer work on a single application? Couldn't find a way to do it in XE but I know I've done it in HTML DB 1.6 in the past.
    Cheers,
    Peter
    P.S. Sorry, I know this should go in the XE forum but it's just too well hidden.

    Peter - No, in XE, the workspace concept is not visible and you login to the database as a particular schema in which you can develop applications on that schema and there are no separate developer accounts from that schema.
    Scott

  • Use a gtk theme for one app and another for the whole system??

    I would like to know if is it possible to use a theme for one application and use another for the remaining of the system? I use OpenBox and I change themes with Lxappearance...
    Thanks,

    Uhh, thanks mauryck for the question and anonymous_user for the answer! I use a very slow gtk theme, and one program suffer from it, but this theme is so beautiful so I dont like to change. Never though about this solution, use a different theme only for this program!
    Sometimes the solution is so simple...

  • Two different themes in one application

    Hello,
    I am quite new to Apex and currently I have a problem which g**gle can't answer :-)
    I want to set two different themes on some pages in the same application. When trying to change the theme on one page this can only be done for all pages in this application. Is there a possibility to reach my goal?
    Thanks for your support
    cheers, sebastian

    Hi Sebastian,
    It isn't possible to apply multiple APEX themes to one application, but the same effect can be achieved by applying one set of templates with multiple styles.
    What you need is a theme that separates the style (CSS and images) from the structure (templates) so that multiple colour schemes can be applied to the same template set. Unfortunately the themes supplied with APEX weren't designed this way.
    The general idea, that Matt mentioned, is to have multiple CSS style sheets and sets of images that can be applied to the same template set. This way, you can create two pages in the same application, with the same template set, but apply a different style/colour scheme/look and feel to each page by setting different paths to the CSS files and images at page level.
    All of my themes work this way for exactly this reason. This article on dynamic theme switching might help explain the concept. Although the switching mechanism is presented to the user as a select list, this doesn't have to be the case. The "switch" could be made internally based on page number or some other condition.
    -Stephen
    APEX Themes

  • On my contact list I have multiple names for one person

    On my contact list I have multiple names for one person.

    The Account Owner can see the call/text logs for all lines on the account, but each line needs its own My Verizon account for messaging and backups.  Those lines will be listed as Account Members and will have limited info. available to them regarding the account.

  • Open two GUI( JFrame) simultaneously for one application

    Can we open two GUI( JFrame) simultaneously for one application at tha same time.if yes why ?and if no why?

    OK, its really simple, basically, you need a desktop frame to stor all the other frames and then you just pop them in, from a new class each time.
    Here's the code from the demo I learnt it from:
    (The demo itself)
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    * InternalFrameDemo.java requires:
    * MyInternalFrame.java
    public class InternalFrameDemo extends JFrame
    implements ActionListener {
    JDesktopPane desktop;
    public InternalFrameDemo() {
    super("InternalFrameDemo");
    //Make the big window be indented 50 pixels from each edge
    //of the screen.
    int inset = 50;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
    //Set up the GUI.
    desktop = new JDesktopPane(); //a specialized layered pane
    createFrame(); //create first "window"
    setContentPane(desktop);
    setJMenuBar(createMenuBar());
    //Make dragging a little faster but perhaps uglier.
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    protected JMenuBar createMenuBar() {
    JMenuBar menuBar = new JMenuBar();
    //Set up the lone menu.
    JMenu menu = new JMenu("File");
    menu.setMnemonic(KeyEvent.VK_D);
    menuBar.add(menu);
    //Set up the first menu item.
    JMenuItem menuItem = new JMenuItem("New");
    menuItem.setMnemonic(KeyEvent.VK_N);
    menuItem.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_N, ActionEvent.ALT_MASK));
    menuItem.setActionCommand("New");
    menuItem.addActionListener(this);
    menu.add(menuItem);
    //Set up the second menu item.
    menuItem = new JMenuItem("Quit");
    menuItem.setMnemonic(KeyEvent.VK_Q);
    menuItem.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_Q, ActionEvent.ALT_MASK));
    menuItem.setActionCommand("Quit");
    menuItem.addActionListener(this);
    menu.add(menuItem);
    return menuBar;
    //React to menu selections.
    public void actionPerformed(ActionEvent e) {
    if ("New".equals(e.getActionCommand())) { //new
    createFrame();
    } else { //quit
    quit();
    //Create a new internal frame.
    protected void createFrame() {
    MyInternalFrame frame = new MyInternalFrame();
    frame.setVisible(true); //necessary as of 1.3
    desktop.add(frame);
    try {
    frame.setSelected(true);
    } catch (java.beans.PropertyVetoException e) {}
    //Quit the application.
    protected void quit() {
    System.exit(0);
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    InternalFrameDemo frame = new InternalFrameDemo();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Display the window.
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    Myinternalframe.java:
    import javax.swing.JInternalFrame;
    import java.awt.event.*;
    import java.awt.*;
    public class MyInternalFrame extends JInternalFrame {
    static int openFrameCount = 0;
    static final int xOffset = 30, yOffset = 30;
    public MyInternalFrame() {
    super("Document #" + (++openFrameCount),
    true, //resizable
    true, //closable
    true, //maximizable
    true);//iconifiable
    //...Create the GUI and put it in the window...
    //...Then set the window size or call pack...
    setSize(300,300);
    //Set the window's location.
    setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    You should be able to tell from that

  • Can you have multiple users for one account?

    Can you have multiple users for one account? if so how do you set it up.
    We are using it for our department and it would be great to see who created what form instead of it being all one name.

    Each person should have their own account. You can easily share the forms with other people in your department. You will be able to see who the author of the form is.
    More information on how to share :
    http://forums.adobe.com/docs/DOC-2462
    Information on how to copy a forms to a different account :
    http://forums.adobe.com/docs/DOC-1390
    Hope this helps
    Gen

  • How do i scan multiple pages for one attachment

    I know how to scan but I don't know how to scan multiple pages for one attachement....Help please

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Multiple Values For one Condition in Choose From List

    I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple values for one single condition.

    Hi,
    Check this thread
    How to set a Multiple condition in a single CFL
    Hope that helps,
    Vasu Natari.

  • One server certificate for one application? not for whole WebServer

    Hello,
    I am using SSL for the server- and clieint authtication. It works fine. But this authtication works for all applcations in this Webserver. How can I make it only for one application available? or one server certifiate for a certain application?
    Example:
    Config:
    <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https" secure="true" clientAuth="true" sslProtocol="SSL" keystoreFile="C:\temp\keystore\server\server.keystore" keystorePass="changeit" truststoreFile="C:\temp\keystore\server\trust.keystore" truststorePass="changeit"/>
    and all application used same server certificate:
    like: https://localhost:8443/myapp1
    https://localhost:8443/myapp2
    used same server certificate.
    How can I make one certificate for one application?
    thanks

    and I am using Tomcat 5.0 standalone

  • Can I run 2 versions of firefox? I need to run older version for one application

    My operating system is mac 10.6.8 and I need to be able to run firefox 3.6.19 for one application & the latest version of firefox for other applications. Can I have 2 versions of firefox on my computer and choose which one to run depending on my application?

    You can install the portable Firefox 3.6.19 version to access websites that do not work with Firefox 5+.
    *http://www.freesmug.org/portableapps:firefox#toc1

  • Multiple Labels for One Order

    Can anybody tell me if it is possible to produce multiple labels for one order. For example a customer orders 4 units. A standard package holds 3 units so an additional package is required for the fourth unit. As a result two packing labels are required. Does OM 11i support this?

    Hi Aj
    Thanks for your quick response. I was think on the same lines and you have confirmed that we will have to split the line into several lines on sales order.
    I am trying to do that now in our ECC box i.e item 10 with payer 1 and item 2 with payer 2. But as soon as I try to change the payer on item 2, i get the following error message which relates to credit management being active.
    I am assuming once we decativate CM, we should be good to go. PLease confirm. Also once its time for billing, will SAP automatically split the billing into different invoices per sales order line item based upon number of payers on the line items?
    PLease confirm your thoughts.
    Regards
    Jai

  • Multiple currency for one vendor

    Hi,
    Is there any way to have multiple currency for one Vendor?

    Hi Siva,
    Yes, It is possible to maintain multiple currency for one vendor. How ? The procedure as follows.
    During vendor creation using T-code XK01 and currency enter input data screen select Extra option on the top of the screen click and display  'Add Purchasing Data'  option click opened new screen and give input data plant, tick mark of the option Data retent.at plant level allowed and tick for OK.
    After that, you have enter multiple currency for the same vendor during vendor creation time, then you will create PO using T-code ME21N the currency field you have fill as you required currency by default first currency of vendor created will be display.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

Maybe you are looking for

  • How to export best quality gif animations in flash

    how to export best quality gif animations in flash

  • Looking for and SQL query to match CTI OS agent login ID with the Directory Number (instrument)

    Hi All, I am looking for an SQL query to request the HDS database to find out which Directory Number / instrument  was associated with a specific CTI OS agent login ID. Has anyone done such a query before ? Thanks and Regards Nick

  • Table data change logs

    Hi,    I have created a customer table. I want to log the data changes in the table. So in the technical settings of the table i have checked log data changes checkbox. When i tried to see the change logs using transaction SCU3, the logs are not avai

  • Convert Raw Binary String to InputStream

    Hi i want to upload a {color:#003366}JPG image file{color} in a {color:#003366}BLOB{color} field in database. At first i was using {color:#003366}AJA{color}X to send file {color:#003366}path{color} to the {color:#003366}servlet{color} creating a {col

  • Ios 7 restore error 1

    Hi Everybody, My iphone 4s is giving me the searching... problem and it fixes itself for 5 mins and goes back to searching... After yesterday i have not been able to fix it at all and i thought it would be a good idea to restore but itunes is giving