Flex 4.5 mobile - inline CSS in htmlText

I want to change one word of text to bold and change the text color, but my htmlText is not rendering:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
title="ReminderPro Basic" backgroundColor="0xCCFFCC"
creationComplete="init();">
<fx:Script>
  <![CDATA[
   import spark.components.supportClasses.StyleableTextField;
   private var greetingText1:String = "<span style='color: #FF0000; font-weight: bold'>ReminderPro</span> <span style='color: #660066'>makes it easy to create customizable alarms and reminders.</span>";
   [Bindable] private var greetingText2:String = "Great when you need an alarm that repeats, such as a reminder to check something in the over.";
   [Bindable] private var greetingText3:String = "Keep your kids accountable when limiting video game usage.";
   private function init():void{
    StyleableTextField(greetingTA1.textDisplay).htmlText = greetingText1;   
  ]]>
</fx:Script>
<s:layout>
  <s:VerticalLayout gap="20" paddingTop="50" paddingLeft="30"
   paddingRight="30" paddingBottom="50"
   horizontalAlign="center"/>
</s:layout>
<s:TextArea id="greetingTA1" width="100%" borderVisible="false"
  selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
  textAlign="center"/>
<s:TextArea id="greetingTA2" width="100%" borderVisible="false"
    selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
    color="0x660066" textAlign="center" text="{greetingText2}"/>
<s:TextArea id="greetingTA3" width="100%" borderVisible="false"
    selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
    color="0x660066" textAlign="center" text="{greetingText3}"/>
<s:Spacer height="20"/>
<s:Button label="New Reminder" click="navigator.pushView(views.NewReminderView)"/>
<s:Spacer height="20"/>
<s:Button label="Saved Reminders" click="navigator.pushView(views.SavedRemindersView)"/>
</s:View>

Hi Gregory,
this is mobile project, yes?
if you try that way it will work I think:
private var greetingText1:String = "<font color='#FF0000'><b>ReminderPro</b></font> <font color='#660066'>makes it easy to create customizable alarms and reminders.</font>";
http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c-3c2dbaa612bb06a5ea2-8000.ht ml
regards,
Peter

Similar Messages

  • When inserting image how do I force inline CSS not image tags?

    When I insert an image to my page layout it always uses html width= and height= tags
    e.g. <img src="images/wordpress.jpg" width="125" height="112">
    This is driving me nuts
    (I thought these tags were pretty old fashioned for current doctypes. Why does dreamweaver continue to use them?)
    I want inserted images to be shown with inline CSS
    e.g.  <img src="images/wordpress.jpg" style="width:125px; height:112px;">
    I can then more easily add more CSS like padding, floats etc as needed.
    Any ideas how I set this up as a default or quickly convert?
    (I dont really want to add lots of unique image classes to a style sheet)
    many thanks!
    Dreamweaver CS6

    Image height & width values are not deprecated.  Unless you're building a responsive web site, it is usually better to have these attributes stated in the HTML.
    But when I don't want them, I do the following:
    Insert > Image > browse to file...
    On the properties panel, I delete the width and height values, hit Enter.
    Nancy O.

  • Facebook actionscript API not working with Flex 4.5 Mobile Project

    Will the following API work in a Flex 4.5 mobile project?
    http://code.google.com/p/facebook-actionscript-api/
    I tried a simple Facebook.int() and I keep getting the following error...
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    at Error$/throwError()
    at flash.external::ExternalInterface$/addCallback()
    at com.facebook.graph::Facebook/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\faceb ook\graph\Facebook.as:599]
    at com.facebook.graph::Facebook$/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\face book\graph\Facebook.as:165]
    at views::LoginView/init()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:15]
    at views::LoginView/___LoginView_View1_initialize()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:3]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]
    at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent .as:1871]
    at mx.core::UIComponent/initializationComplete()[E:\dev\4.5.1\frameworks\projects\framework\ src\mx\core\UIComponent.as:7660]
    at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7639]
    at spark.components::View/initialize()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src \spark\components\View.as:990]
    at views::LoginView/initialize()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\ framework\src\mx\core\UIComponent.as:7485]
    at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]
    at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\project s\spark\src\spark\components\Group.as:1628]
    at spark.components::Group/addElementAt()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1387]
    at spark.components::Group/addElement()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1345]
    at spark.components::SkinnableContainer/addElement()[E:\dev\4.5.1\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:761]
    at spark.components::ViewNavigator/createViewInstance()[E:\dev\4.5.1\frameworks\projects\mob ilecomponents\src\spark\components\ViewNavigator.as:1954]
    at spark.components::ViewNavigator/commitNavigatorAction()[E:\dev\4.5.1\frameworks\projects\ mobilecomponents\src\spark\components\ViewNavigator.as:1867]
    at spark.components::ViewNavigator/commitProperties()[E:\dev\4.5.1\frameworks\projects\mobil ecomponents\src\spark\components\ViewNavigator.as:1236]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

    This is the error because the runtime does not find any way to call Java script that usally is called through External interface. So my guess is you are using a AIR project. U just need to download the latest swc http://code.google.com/p/facebook-actionscript-api/downloads/list for destop in your case and don't forget to but FBJSBridge.js to put in your source that will b used to help AS call Facebook API from AIR runtime
    Hope it make some sense
    Piyush Negi

  • Flex 4.6 Mobile Forms

    There doesn't seem to be much discussion about the lack of mobile form support in a Flex 4.6 mobile apps - does anyone have any suggestions as to where is the best place to get started on a multi-page/view form running?
    As far as I can tell from the AS3 documentation - <s:Form> can run on a mobile device - IF you develop your own mobile skin.
    I would have thought there would be a huge outcry over lack of mobile form support - but as far as I can tell through much googling and research offical Adobe Evangalist blogs - no one seems to need or want mobile forms?
    Am I alone here? Once again, any suggestions on developing multi-view spanning forms??

    You don't have access to FORMS, but you can build your own form-like layouts. I've been laying them out myself. Using HGroups nested inside VGroups etc ... It takes more time, but on the mobile devices, you want to pay more attention to UI anyway.

  • Cannot convert mx.events::CloseEvent@88d8941 to spark.events.PopUpEvent. -----flex 4.7 Mobile project

    in flex 4.7 Mobile project,use s:TitleWindow:PopUpManager.removePopUp(this);why show "cannot convert mx.events::CloseEvent@88d8941 to spark.events.PopUpEvent"?

    This is the error because the runtime does not find any way to call Java script that usally is called through External interface. So my guess is you are using a AIR project. U just need to download the latest swc http://code.google.com/p/facebook-actionscript-api/downloads/list for destop in your case and don't forget to but FBJSBridge.js to put in your source that will b used to help AS call Facebook API from AIR runtime
    Hope it make some sense
    Piyush Negi

  • Flex 4.6 mobile broke TextInput

    I'm currently in the process of upgrading a Flex 4.5 mobile project to 4.6 and have run into issues with TextInput's.
    Currently on most of my views you cannot click(tap) a TextInput and insert text. The field does not seem to take focus and no text appears when you type. I've tried this on a phone as well as on my computer. The weird thing about this is that I have two views where the TextInput's seem to be working. I have also removed all code, MXML and AS3, from a view where input's don't seem to be working and replaced it with a generic TextInput. Even after doing this the text field doesn't seem to be working.
    I have tried to reproduce this outside of this project but can't seem to be able to. Anyone have any idea what would be causing this?

    I have the same issue but isolated in a very simple app. I havent tested it in Android, but in iOS it is VERY Buggy...
    you just need to have this to reproduce:
    <?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">
      <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <s:layout>
                        <s:VerticalLayout paddingLeft="15" paddingRight="15" paddingTop="15" paddingBottom="15" />
      </s:layout>
              <s:Scroller width="100%" height="100%"> 
                        <s:VGroup width="100%" height="100%">
      <s:TextInput id="ui_firstName" prompt="First Name"  />
                                  <s:TextInput id="ui_lastName" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName2" prompt="First Name" />
                                  <s:TextInput id="ui_lastName2" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName3" prompt="First Name" />
                                  <s:TextInput id="ui_lastName3" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName4" prompt="First Name" />
                                  <s:TextInput id="ui_lastName4" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName5" prompt="First Name" />
                                  <s:TextInput id="ui_lastName5" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName6" prompt="First Name" />
                                  <s:TextInput id="ui_lastName6" prompt="Last Name" /> 
      <s:TextInput id="ui_firstName7" prompt="First Name" />
      <s:TextInput id="ui_lastName7" prompt="Last Name" />
      <s:TextInput id="ui_firstName8" prompt="First Name" />
      <s:TextInput id="ui_lastName8" prompt="Last Name" />
      <s:TextInput id="ui_firstName9" prompt="First Name" />
                                  <s:TextInput id="ui_lastName9" prompt="Last Name" /> 
                                  <s:Rect height="500" />
      </s:VGroup> 
      </s:Scroller>
    </s:Application>

  • Flex 4.6 mobile mp3 player....create progressBar

    how to create progressBar for mp3 player in flex 4.6 mobile???
    help me please!!!!

    consider this scenario:
    1. user click a button and advances to the next view.
    2. here clicks a textinput so it focuses and soft keyboard appears
    3. user click back key on his phone - soft keyboard retracts (no backkeypressed event caught)
    4. textinput still has the focus border around it (why?) and user clicks back key again - application goes in the background for a couple of seconds and closes itself.
    I attached the .fxp for the test project
    http://dl.dropbox.com/u/4318878/TestBackKey.fxp

  • Should I convert my inline css to external?

    I was told my site would be cleaner and easier for google to find if I changed my css styles to external.  All my pages are a little different, so I was also told I would have to do it for every page.  What is the best way to do this?  I knew very little about css when I created the site, sorry.
    Do I select everything from <style to style> right click and select  Convert inline CSS to rule.  That option is greyed out.  Do I select new rule?
    The site is www.macrophotographer.net  I am a not a professional web designer so go easy on me.

    I have had a look at source code for your home page, your styles are embedded in two groups between your pages head tags, so it will be easy to externalise the css.  In code view if you put your cursor in one of the styles you wish to move and then click on the 'Move or convert css' button or go to format > css styles > move css rules ... you can move the styles one by one into an external stylesheet.
    The other and what I think will be the quicker way for you will be to open your webpage then go to File > New > Blank Page > CSS > Create, this will create a new empty stylesheet already with the encoding set.  With this still open switch tabs back to your webpage and select all the code between the <style type="text/css"> and </style> cut it and then switch tabs back to the stylesheet and paste. Save the stylesheet, then switch tabs back to your webpage, in code view you need to enter the following line before the  </head> tag
    <link href="/nameofstylesheet.css" rel="stylesheet" type="text/css" />
    Richard

  • HTML Email - Inline CSS

    Hello,
    My inline CSS doesnt seem to be working in all eamil clients.  Can you tell me what I have wrong with this:
    <td height="50" style="font-family:Arial, Helvetica, sans-serif, 'Century Gothic'; font-size: 30px; color:#FFFFFF; line-height:80%; text-align:left; font-weight:bold; font-style:italic;">SAMPLE TEXT</td>

    Do as Murray says and remove that part of the style, you don't need it. Sometimes the extra ' will make it quirky. I hope the body of the email is a dark color since your using white text color (#FFFFFF). It should render in most if not all emails.
    <td height="50" style="font-family:Arial, Helvetica, sans-serif; font-size: 30px; color:#FFFFFF; line-height:80%; text-align:left; font-weight:bold; font-style:italic;">SAMPLE TEXT</td>
    You could try something like this:
    <td height="50"><p style="font-family:Arial, Helvetica, sans-serif, 'Century Gothic'; font-size: 30px; color:#FFFFFF; line-height:80%; text-align:left; font-weight:bold; font-style:italic;">SAMPLE TEXT</p></td>
    Jim

  • Email campaign - inline css - a:link, a:hover

    What do people do about setting the color of the a:link and a:hover when setting up a page for email distribution using inline css?
    From what I've read you can't declare inline styles for the above mentioned styles?
    Is it ok to put those in css <style></style> tags in the head section of the page and just let those email clients that can deal with it do so and forget those that can't, or is there a better alternative?
    Cheers
    Os

    pziecina wrote:
    Hi Os
    Don't know if this is related to your post regarding xara, but if the other person was using xara for emails then yes it is easier doing emails in xara than dreamweaver, (for the none html/css literate).
    Sort of, I'm just doing some experimenting before I commit myself. Don't won't to look like a dumb *** if I say I can and then I can't, lol.
    As to your question most emails use the default but I can see no problem in placing the alternative in a css style sheet.
    This article may be helpful, (check the external links at the end also) - http://groundwire.org/support/articles/css-and-email-newsletters.
    Ok, that's what I thought. I'll use inline css styling for pretty much everything I can to be on the safe side and just put css that can't be inserted inline in an embedded style sheet. I guess its no big deal if a few email client don't like it.
    I'll have  a read of the link you provided. Thanks for your respnse

  • Why are my inline css styles for BC tags being ignored and just default to blue underlines?

    I am familiar with inline css styling for email campaigns and have always customised links in emails with the code I sent:
    however Im puzzled why this code doesn't work with BC tags {tag_viewinbrowser} and {tag_unsubscribe}, any help would
    be great as I think the default blue links look ugly.
    This is my code: <a href="" style="color:#78787c; text-decoration:underline;">{tag_viewinbrowser}</a>
    All other links I have styled appear as they should, its just BC tags where the style seems to be ignored?

    You can put <style>span#unsubscribe a{color:red;}</style> code in your newsletter html that can address the DOM that is specific to those links.  BC is adding it's own anchor tags for those links so your style isn't touching it.  Rewrite your tag to look like this.  <span id="unsubscribe">{tag_unsubscribe}</span>   .  That with the style code will solve your problem.

  • Communicate a Web application (Flex) with a mobile Apllication (Flex)

    Hello,
    I wonder if it is possible to communicate a Web application (Flex) with a mobile Apllication (Flex).
    when I Click on a button in my web application I receive an alert in my mobile application.
    if you have any ideas I would be very grateful.
    Regards.

    I tried that but my problem is that the code is so old. At least what I saw. I don't know how old is too old and I'm trying to do things "right." I saw code from 1998, but I don't know if that's still what you do. It might still work, but that doesn't mean it's correct. There's so much out there on Java that so old that half the time I'm not sure what to do because some other technology in J2EE or the latest Java SDK might have come up with a new way to do things. Thanks.

  • Convert header CSS TO inline CSS

    I know this seems backward but from what I understand html
    emails often do not correctly read CSS that is in the header, and
    will only read inline CSS. As the html page I have already has the
    CSS in the header, is there an extension or ANY OTHER WAY to easily
    parse it out and insert that CSS inline??
    thanks in advance!
    -ML

    You don't need to do this. Just move your stylesheet below
    the <body> tag
    before sending the email.
    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
    ==================
    "Mat Lebowitz" <[email protected]> wrote in
    message
    news:ebibid$9s8$[email protected]..
    > still no responses? come on you pundits, i know there's
    an extension or a
    > technique to do this, isnt' there??

  • Mobile first CSS display: none

    With mobile first in mind, I am trying to hide an area of a page that is unnecessary for mobile, but I want it to display on tablets and desktops. So mobile fist CSS dictates that I would set a CSS rule to display:none, but that propogates through to the tablet and desktop versions too.
    What setting do I use to override none? Is block the right setting?
    Thanks.

    Matthew, you need to write this rule within media-queries.
    /*For Mobiles*/
    @media  and (max-width:360px){
    .hidden-mobile{
         display:none;
    And apply (or add to existing) a class .hidden-mobile to the div that you want to hide on mobiles. This rule will kick in only when the user is browsing from a mobile device less than 360px viewport width. In that case, the div with this class wont show up on a mobile phone.

  • How to set Css in mobile device + OS  using Flex 4.5 Mobile

    Hi,
    how to set Css for mobile device + OS
    is it possible
    @media (device : "IPAD") and (application-dpi: 160) and (os-platform: "IOS") { }
    Can anyone help to me.

    BorderContainer wont resize if the fixed width is specified, if u want to give some minimum width you can use minWidth . Give  Width = "100%", now it will get Resizing capabilities

Maybe you are looking for

  • External hard drive disconnected

    My external hard drive has about 75% of my iTunes music on it. The hard drive became unplugged and the sounds could not be found. When I plugged it back in, iTunes was not able to find the songs itself. I have to find every individual song. Is there

  • Fault message in synchronous scenario

    I defined an integreationprocess with synchronous send step and an exception branch. And I specified an exception for a fault message which I defined in the synchronous interface. My problem is, that the exception is not triggered by application erro

  • Wi-Fi showing off in iphone 4s

    hello sir

  • Iphoto 9.1.5 crashes on start up - can someone help ?

    Installed Ilife 11 on an Ilife 9 - installed all updates - up to 9.1.5 - meidathek was formatted seems to Iphoto 9.1.5 format than crashes - also a new library does not help - smae issue- Report as attached Thanks in advance - Michael Process:       

  • CS5 action shortcut keys not working in Lion

    I've just reinstalled CS5 on my new mac which is running Lion - all seems to be running smoothly so far, but when I use the F keys which have assigned actions, it defaults to the OS defined action for that key (eg: F1 adjusts the monitor brightness e