How to change company logo dynamically using login information of the user in flex4 CSS styl method?

hi all,
I am doing mxml flex4 web application. i am using a login in my application. this login for multi user  purpose.
My need is when a user login using his username and password his company logo should show the top of my application and his copyright details show the bottom of my application
if another user login means his company logo and copywrights should show in my application.
This logo and copyrights details should change dynamically based on the login information.
I want to create this using CSS file (skins and sparks)
How to do this,i am struck in this place,
Looking for useful and helpful suggession or snippet code,
Thanks in advance,
Cheers,
B.Venkatesan.

If the user is logging in, presumably you are having the user hit a back end web-server and database and using something like Blaze to connect? Right?
I personally would not do this with CSS. I would map the company icons to the users in the DB, retrieve the proper company icon and then pass it down (or embed it in the app) when the user logs in. Then, I would just set the source of the icon to be what I passed down:
Add your image where you want it to go:
<s:Image id="emptyImage" x="locationx" y="locationy".../>
Then in your ActionScript, when the user logs in and you know what company the user belongs you could do this:
private function loginUserBlazeResponse(resultEvent:ResultEvent):void {
var bytes:ByteArray = ByteArray(resultEvent.target);
emptyImage.source = bytes;
addElement(img);
img.visible = false;
img.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded);

Similar Messages

  • Hi!!!Can anyone suggest how to change data block dynamically using input

    Hi all,
    Here is my requirement...I have a datablock which has 7 columns, these coloumn represent dates. I have a header in which I will input the date[b] from and to ( this is restricted to not more than one month). Now when I enter these 2 date fields in header, My 7 coloumn data block need to be changed to 'n' number of coloumn( which is less than 1 month) as per input fields. Can I do this, if we can then please give me the guide lines.
    Thank you

    it is a good solution Jeneesh, because it is the only one.
    You cannot create items dynamically at runtime, so you have to create them in your form at designtime and show and hide them.

  • How to add company logo in z report

    Hi !
    i want to know how to add company logo into custom report ...
    generally we used below mentioned code for sap logo
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY       = IT_LIST[]
       I_LOGO                   = 'ENJOYSAP_LOGO'.
    ENDFORM.            "top_of_page"
    what changes we need to do to add company logo into custom report
    Please guide
    Regards
    Sheetal

    First upload  ur  required logo in  SAp  by  t-code  SE78.
    Use teh  above mentioned  ALV code  for the same.
    Try  to  search  on SDN for  the  u can find the  full  ALV code for the same.
    ..lakhan

  • How to change header and footer in login page in oracle apps r12

    Hi all,
    how to change header and footer in login page in oracle apps r12 and login button background color, please help me
    thanks
    saran

    how to change header and footer in login page in oracle apps r12 and login button background color, please help meTips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
    How to Personalize Login page in R12? [ID 579917.1]
    R12 Login Page: How to Personalize the Logo ? [ID 849752.1]
    Thanks,
    Hussein

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • Hello ! how to change document sizes and use our own size (not A3, A2 ...) thank you !

    hello ! how to change document sizes and use our own size (not A3, A2 ...) thank you !

    Experiment. No harm in trying.
    If you are just starting to use Pages you need to make your own assessment given current events whether committing your work to a format and software given this support is a wise move.
    You also need to look at what will produce workable results. Particularly if your large posters are to be commercially printed and contain large bitmap (photographic) images.
    Always work backwards from your output. Ask your printer what they require to do their job.
    Peter

  • How to change company code in cost center master

    Hi,
    Can anyone throw me the light about how to change company code in cost center master? User make some mistake. They maintained wrong company code in cost center master and there are some transactions already posted to this cost center. I would appreciate all attention and point will be reqard. Thanks much
    Best Regards,
    Bird

    Hi,
    The cost center master data fields have time dependancy.  Following are the details of time dependancy.
    You can maintain master data for cost centers, cost elements, activity types, and business processes as time-based. Changes to any other time interval are possible at any given time. Data storage is also time-based. In this way, you can store multiple database records for a master data record, each holding different information.
    The time-based dependencies are determined by SAP and cannot be changed. The following dependencies are possible:
    Not time-based
    Day-based
    Period-based
    Fiscal Year-based
    Cost Center's company code field's time based dependancy is Fisal Year Based and hence, the company code can be changed on cost center only on new fiscal year.  And hence, system will not allow changing company code on cost center master data until new fiscal year if transactions are posted to the cost center.
    You may have to think of work around :
    1) Create new cost center with correct co code
    2) Repost the cost posted to old cost center (with wrong co code) to the new cost center.
    Explore the possibility of this work around on your system with the key user and then see whether this option works out.
    Hope this helps.  Pls. assign points if this is helpful.
    Regards,
    Chirag

  • How to Change S960 Lockscreen wallpaper using own image?

    Can anybody advise on how to change S960 lockscreen wallpaper using own image? I only manage to use the default or existing lockscreen wallpaper which appear in theme setting.

    Hi all, the solution is very simple.Simply save the pictures that you want to use as your lockscreen into storage/sdcard0/Download/pictures/lockscreenYour lockscreen picture should be in 16:9 or (1920 x 1080 pixels). To set the pictures as your lockscreen, go to theme setings, swipe to the right and tap the lockscreen wallpaper option that is on the right (red box).You'll see all the lenovo default lockscreen wallpapers, as well as the lockscreen pictures that you saved. Just tap the picture and set as lockscreen wallpaper.

  • HT2493 How to change preview image of a file and NOT the icon ?

    Hello dear Mac users
    How to change preview image of a file and NOT the icon ?
    I know how to change the icon of a file, but I wish to know how to change the preview of any file.
    For example: my file is "mysong.aif", I changed the icon to be "mylogo.png" using cmd+i, cmd+v on the icon. But the preview of the file still remain the same.
    I know it can be changed using iTunes, but I don't want to import all my files in iTune, and iTune cannot import all type of files.
    I hope someone will understand my needs...
    Thanks!

    Thanks BeerbarX
    You can't change the preview image for anything
    hoo
    QuickLook plugin
    what are the plugin ?
    In the case of a music file, it will be that generic black box with a note on it
    That is exactly what I'm asking about !
    MP3 which has a special tagging standard that can include artwork
    How can I "tag" my MP3 without going thru iTunes ? Is it possible to do it dirrectly in the Finder ? Is there other type of files that can include such tags ?
    Thank you for answering my question , wich I have to admit may seem useless, but I wish I could put something like a signature logo on each of the different file I produce (as AIF for music and MP4 for video clip) instead of that generic black box with a note on it, and by the meantime keeping a different icon for all of them in order to illustrate theire content.

  • How to change hdmi out to 720 from 1080? the widescreen mode switch didn't help.

    How to change hdmi out to 720 from 1080? the widescreen mode switch setting didn't help, it used to work.

    Read the instructions that came with the device.
    Basically, activate the device and everything should simply work.

  • How to create RFQ s and use them to complete the program

    hi,
    how to create RFQ s and use them to complete the program
    thanks in advance

    Hi Santosh,
    RFQ is created through transaction ME41.
    You need to write down BDC for mass update of RFQ, because BAPI is not available.
    Regards,
    Tutun

  • How to get last login date of the user

    Hi,
    I have an application where i need the last login date of the user and if the differance between the last login date and the system date is greater than a certain range the user account should be locked automatically.Please suggest me how resolve the problem as early as possible.
    Thanks and Regards
    Aniruddha

    Hi,
    We have faced the same issue earlier. Some attributes are available in SAP API, but they are depricated by sap due to some performance issue.
    Below solution will be helpful:
    So we have implmented custom code in our application. We have developed one webdynpro application which will retrieve update & retrieve logon time from portal database(custom table). And we have integrated this application in desktop inner page. So this application will be invisible to the user and will executed first time when user logs into the portal.
    Regards,
    Charan

  • How do I resend an invite email for one of the user in my Aruba Central account?

    Q: How do I resend an invite email for one of the user in my Aruba Central account?
    A: Aruba Central allows administrator to create multiple user of different access levels to help manage the system.  As new uses are created by administrator, an invitation email is sent to the user's email address to activate the account. 
    In certain situations, these emails get into spam or junk folders with no visibility to end-user. These are cases, where re-sending an invitation email is of much helpful.
    Follow these steps to resend invite email to a specific user:
    Login to Aruba Central and click on "All Groups"
    In the left-menu, click on "Maintenance" and then "User Management"
    Clik on "Resend Invite email" and mention the email address you wanted to send the invite again:

    By default, the Menu Type option for menus is set to Top Level Pages. You can change this behavior by choosing Menu Type > All Pages from the menu options. The steps to do this are described in Adding a Horizontal Menu widget

  • How to create a program that accepts 5 digits from the user between 0 and 9

    how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..

    You can use a scanner to get user input from the command line.
    import java.util.*;
    public class Test {
        private List<Integer> list;
        private Scanner in;
        public static void main (String... args) {
            new Test ();
        public Test () {
            list = new LinkedList<Integer> ();
            in = new Scanner (System.in);
            for (int i = 0; i < 5; i ++) {
                System.out.format ("Please enter a number (%d more): ", (5 - i));
                list.add (in.nextInt ());
            Collections.sort(list, new Comparator<Integer> () {
                public int compare (Integer i1, Integer i2) {
                    return i2 - i1;
            System.out.println (list);
    }

  • I am trying to back up my mail (5.1) directories but I can no longer locate them. They used to be in the user library. Would be grateful for some assistance.

    I am trying to back up my mail (5.1) directories but I can no longer locate them. They used to be in the user library. Would be grateful for some assistance.

    They're stil there;  Apple decided to hide your Library folder.  Hold the Alt/Option key while selecting Go in a Finder menubar and select Library.
    Do you have other backups, made with a proper backup app?  If not, that's the best way to back up your data, rather than doing it "piecemeal" via drag & drop.
    You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Questions.

Maybe you are looking for

  • In need of a new Graphics/Video card,..which one?

    My computer stopped booting all the way a couple of days ago. Took it to Apple store where they told me I need a new Graphics card. As of now I have: Chipset Model: NVIDIA GeForce 7300 GT Bus: PCIe PCIe Lane Width: x16 VRAM (Total): 256 MB Vendor: NV

  • Index was not used in join tables query

    I tested the following query on my dev 10g and the explain plan did not indicated to use the index of a(t$trec, t$tdoc) select a.somecolumns, b.othercolumns from a, b where (a.t$trec = 1 or a.t$trec = 4 and t$tdoc = ' ') and a.t$ttyp = b.t$ityp and a

  • Lock Screen In MBP

    I need to know how to lock my screen on my MBP. I want to do it kind of the same way you do in windows. ctrlAlt+DelEnter. how do I do this on the Mac? Thank you, Jason.

  • Photo Downloader and Kodak Easy Share Gallery - PASE3

    Question 1. For some reason Adobe Photo Downloader has decided to place itself into my systray. I can disable it. I can not remove it. I do not seem to be able to find any option or preference to disallow it from launching. While I have a digitral ca

  • HR_READ_INFTY_NOTE' - get latest from infotype P0035

    Hi all, I am reading text in infotype P0035 using FM 'HR_READ_INFTY_NOTE'  . for the same start date if there is more than one text available , then is there any function module to get the latest sequence number. like 00009585   07                31.