One css for phone, one css for tablet : how ?

Hi
Here is my problem : i'm able to detect if the my mobile application run on a tablet or on a phone by calculating the diagonal of the stage
But then, i need to load the good css : the smarphone.css or the tablet.css
I try by compiling css as swf, BUT the problem : iOS doesn't permit to load external swf and in this case, smartphone.swf or tablet.swf are external swf
So my needs is to switch the css at runtime, but not by loading external swf
I try with <fx:Style source.myStateTablet="" /> but it's not possible
Any ideas ?
Thanks
Sebastien

Hi
Actually my css is like that :
tablet.css :
components|Header
    skinClass: ClassReference("com.zapmeeting.zinfotv.skins.tablet.header.HeaderSkin");
smartphone.css :
components|Header
    skinClass: ClassReference("com.zapmeeting.zinfotv.skins.mobile.header.HeaderSkin");
In fact, I use css juste to reference skinClass and so apply a skin
So your idea is to make juse one css, called main.css and then paste in the above code ?
components|Header
    skinClass: ClassReference("com.zapmeeting.zinfotv.skins.tablet.header.HeaderSkin");
components|Header
    skinClass: ClassReference("com.zapmeeting.zinfotv.skins.mobile.header.HeaderSkin");
but how redirect the user to the correct skinClass ?
could I insert a state query like :
components.tablet|Header
    skinClass: ClassReference("com.zapmeeting.zinfotv.skins.tablet.header.HeaderSkin");
where tablet and smartphone are two states ?

Similar Messages

  • Spry menu for my phone.css and tablet.css?

    I finished learning how to set up my media queries and during the process I changed the properties of my spry menu for my phone.css. I now realize that all my menu bars are the size that I did for my phone.css.
    How can I get my phone.css and tablet.css to recognize different spry menu bars? I was thinking to place certain spry menu css information inside of the appropriate phone.css or tablet.css (in my case) then within my #navigation ID.
    Does anyone see what trap I have set for myself?
    This has come about when I started to make a current site viewable in a tablet and phone device. As I change the spry menu bar it changes all of my navigation.
    Thanks in advance for the help.

    So in other words are you saying to paste in my spry menu bar css code into let's say my phone.css?
    current phone.css code:
    <><>
    @charset "utf-8";
    @import url("SpryAssets/SpryMenuBarHorizontal.css");
    body {
        text-align: center;
        background-color: #be7042;
    #wrapper {
        height: 750px;
        width: 320px;
        margin-right: auto;
        margin-left: auto;
        background-color: #006400;
        position: static;
    #bottombanner {
        text-align: center;
        height: 192px;
        width: 320px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 25px;
        font-family: Verdana, Geneva, sans-serif;
        font-size: 8px;
        line-height: 2px;
        color: #FFF;
        position: static;
    #ckimage {
        text-align: center;
        height: 145px;
        width: 75px;
        margin-top: 50px;
        margin-left: 20px;
        font-family: Verdana, Geneva, sans-serif;
        font-size: 6px;
        color: #FFF;
        position: static;
    #estriolimage {
        text-align: center;
        height: 75px;
        width: 56px;
        margin-top: 45px;
        margin-left: 26px;
        font-family: Verdana, Geneva, sans-serif;
        font-size: 6px;
        color: #FFF;
        position: static;
    #maincopy {
        font-family: Verdana, Geneva, sans-serif;
        text-align: left;
        height: 350px;
        width: 200px;
        margin-top: -265px;
        margin-left: 115px;
        color: #FFF;
        font-size: 8px;
        position: static;
    #navigation {
        text-align: center;
        height: 49px;
        width: 320px;
        margin-top: 1px;
        position: static;
    #topbanner {
        text-align: center;
        height: 48px;
        width: 320px;
        margin-right: auto;
        margin-left: auto;
        position: static;
    ><><
    Would I paste my spry menu bar css code into my #navigation portion of my phone.css (I bolded the part where I think I would paste in my spry menu css.)

  • Two separate iPhones got merged into one iTunes account. How to separate them. We are sharing all of each other's contacts at this time. Thanks for your help.

    Two separate iPhones got merged into one iTunes account. How can I separate them in iTunes???????. We are sharing all of each other's contacts at this time. Thanks for your help.

    The reason you are receiving each other's text messages is because you are both using the same Apple ID for iMessage.  To prevent this you need to use different IDs.  (Note: you can still share the same ID for iTunes.)  On one of the phones, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a separate ID.
    To migrate your 3GS to a new iCloud account, start by saving any photo stream photos that you want to keep on the phone to your camera roll.  To do this, open the my photo stream album, tap Edit, tap the photos, tap Share, tap Save to Camera Roll.  Next, if you have any notes that you are syncing with iCloud that you want to keep, you'll need to email these to yourself so they can be recreated after moving to the new account.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, choose Keep On My iPhone.  Next, sign back in with a different Apple ID to create the new account, turn iCloud data syncing preferences and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, if you have merged data in the two accounts that you want to separate you will have to go to icloud.com from your computer, sign into each iCloud account separately and manually delete the data you don't want from each account.

  • I have an ipad 2 and want to have one account for home and another for work, how do i do this?

    I have an Ipad 2 and use it for work, I want to run a second account for home, how do I do this?

    What kind of accounts? Multiple email accounts are supported.
    Multiple user accounts are not.
    If you are saying you would like to have one set of apps, media, etc
    for work and a different set for home, and switch between the 2
    depending on network login or location, this is not a feature of iOS.
    If this is not what you are asking, please post more details so someone
    may offer a solution.

  • I designed my social media buttons. How do I add the link to each one. For example: How do I add my Facebook link to my face book button on my muse site?

    I designed my social media buttons. How do I add the link to each one. For example: How do I add my Facebook link to my facebook button on my muse site?

    Hello,
    Please select the button that you have created and go to hyperlink tab and add the facebook page URL there.
    Please take a look at the screenshot below.
    Regards
    Vivek

  • I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • I have two iTunes accounts, one for music and another for audiobooks.  I want to merge them and maintain only one iTunes account.  How do I do it?

    I have two iTunes accounts, one for music and another for audiobooks.  I want to merge them and maintain only one iTunes account.  How do I do it?

    You cannot.

  • I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    Hi kamfong,
    Went to Settings where?
    If you want to use your exisiting Apple ID on your iPad, you need to:
    1.     Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
    2.     Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
    You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
    Cheers,
    GB

  • HT204053 Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    On the iPad open Settings/iCloud and delete the account using the button at the bottom. Once deleted log in using the other account. For iTunes Stores use Settings/iTunes & Apps Stores, tapp on the Apple ID at the top then sign out. Once done sign in using the other account. Once you are happy with the changes plug your iPad into your computer to update the backup.

  • I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    If it's not available in your country and you do not have a copy of it in iTunes backed up on your computer, you don't.

  • Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx

    Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx
    Esto puede ser en español? por favor

    Hello,
    Please refer to the links below, you will find them very useful.
    Adobe Muse Help | Creating a website for Mobile devices
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Video Tutorials:
    Design for mobile first | Adobe Muse CC tutorials
    Mobile best practices | Adobe Muse CC tutorials
    Plan your mobile site | Adobe Muse CC tutorials
    Preview your mobile site | Adobe Muse CC tutorials
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Regards
    Vivek

  • I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?

    I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?  Also, how do I add co-workers to my work time capsule and wife to my home time capsule?  Thank you!

    You cannot have two different TC setups.. at least until Mountain Lion.. it did introduce some changes but I am not sure if you can setup two different configurations for TM.. you can use two different devices to back up to. I doubt this will help you.
    You might be better using a real backup software.. superduper, CCC, chronosync etc.
    The TC by default is available to any Mac in the network to do backups. TM will sort itself out and put each computer on a different backup. These are kept in separate sparsebundles.. so that is all fine.

  • How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    With Safari open use the Command + T keyboard shortcut to open a new tab.
    Or, Command + N to open a new window.

  • What is "Print to file" used for? How does one use it?

    From a web page I navigate FILE-->PRINT then check 'print to file' box. Firefox saves the file to its folder in C:\Program Files..
    When later, I want to retrieve the data and print it out it refuses to be opened by any known software, including Firefox!. Even Dell seems to have no documentation on what this feature is for, or how to use it. I thought this was a convenient tool for saving print jobs for later processing. Boy was I wrong! Who knows what's going down here?

    Checking the "Print to file" was earlier one way, however maybe not the best one, to generate postscript code, if you had defined a postscript printer. This printer could be completely virtual and not necessarily exist in the real world. Many of the Hewlett-Packard printers were usable. This was in a time when just a few programs could generate pdf code, but you had the Ghostscript program and its ps2pdf tool to do the conversion. As postscript is a text format, you could also edit the file, if so wanted, before the converson.

  • Missed one letter at the time of creating account for icloud. how do i fix or create another email account?

    Missed one letter at the time of creating account for icloud. how do i fix or create another email account?

    Hi jtv123,
    Could you please tell us exactly what happens when you try to set up your account?
    With kind regards,
    David

Maybe you are looking for