Formatted text inside flash inputField

how can I save formatted text in flash and maintain style(ie color, size, bold, italics)
example:
in the input field I write something, then i make it bold, and blue.  I would like to save this text in the edited form of bold and blue.  how do I save that text FORMATED to a variable.

That's because it's probably stripping the characters it doesn't like, such as HTML and formatting. Your best strategy at that point is to convert it before you send it through your script so your script tolerates it. You can try the encode() function run on your string which will URL encode it and the decode() function can restore it. Otherwise you need to replace anything your script doesn't like with something else intentionally. e.g. turn <i>italics</i> into [i]italics[/i] and then later fix it.
I myself would look at what PHP is doing. Chances are it's running the striptags function. It's just a safety measure to stop SQL injections (make code safer). But that may not be what you want. If you're at all uncomfortable with that, you'd best not do it though. You take the risk someone will sneak something in that you do not want.

Similar Messages

  • Using Accordion Style text inside Flash

    Looking for some ideas on how I could have text object with a link inside to display the information below the link still inside the text object. My thoughts were to use an html file inside the text object and have links that would display an accordion like text below the link. Before I start venturing in this direction, thought there may be a better approach?
    Basic concept: Paragraph of text, inside the paragraph a link. When clicked the additional text appears below the link and the rest of the text pushes down, musch like an accordion style panel.
    Look inside SPRY and there is nothing there.
    Any ideas?
    THANKS

    That's because it's probably stripping the characters it doesn't like, such as HTML and formatting. Your best strategy at that point is to convert it before you send it through your script so your script tolerates it. You can try the encode() function run on your string which will URL encode it and the decode() function can restore it. Otherwise you need to replace anything your script doesn't like with something else intentionally. e.g. turn <i>italics</i> into [i]italics[/i] and then later fix it.
    I myself would look at what PHP is doing. Chances are it's running the striptags function. It's just a safety measure to stop SQL injections (make code safer). But that may not be what you want. If you're at all uncomfortable with that, you'd best not do it though. You take the risk someone will sneak something in that you do not want.

  • How to format text inside text boxes?

    i'm sure there's a simple solution for this, but for the life of me, I can't find how to format the text (eg font type, size, colour, etc) inside a text box (one of the editing tools) in Acrobat 8 Standard.
    Is it just not possible, or is it just a case of extreme ignorance?
    Thanks for your help.
    cheers
    Ze

    You may need to mark the text first after opening the text touchup tool. Then use ctrl-E or right click for the properties.

  • How do I format text within a TextArea

    Hello,
    I would like to create a simple text editor that performs
    syntax highlighting. In order to do so, I would need the ability to
    set the style of individual pieces of text within a TextArea. Is
    this possible? Do I need to subclass the TextArea (or perhaps the
    Text control) to do this? Any pointers in the right direction would
    be appreciated. Thanks!

    The issues around formatting text in the Flash Player are
    numerous. There are several experts who have weighed in on this,
    including .
    Axel
    Jensen who has made available a modification of the
    RichTextEditor component. Additionally,
    Jesse Warden has several older
    articles in his blog on this issue. Finally, there is a
    commercially available Flash/Flex text editor developed by Igor
    (last name unknown to me), and found at:
    http://www.flashtexteditor.com/.
    Overall, the issue of accurately formatting text in
    Flash/Flex has been an exercise in frustration, especially when
    trying to implement htmlText and CSS. I am absolutely amazed that
    Adobe's documentation for this very important aspect of web
    development is either unavailable or deeply flawed, and on top of
    that: How is the Acrobat Connect Buzzword application able to do so
    much with text formatting, clearly within a Flex Framework, and yet
    no concrete documentation of the techniques are available

  • Any way to format text in xml

    hi guys,
    I have a photogallery done in flash. Its having a external
    xml file where the descriptions and image location is defined. Is
    there any way to add font color , font size , and all other font
    formating options inside the xml file to take effect inside flash
    movie. I have tried cddata , <b> , <fontface> etc
    etc... but no result. Please any one help

    you can write the html format string in the xml node just
    like normal - however you must apply the string to a textField that
    has it's html property set to true and you must use field.htmlText
    to assign the string, as in:
    field.html = true;
    field.htmlText = "<b>bold text</b>";

  • Tabs and formatting text

    Hi, a couple of things. I know this is just a Beta version but:
    When I paste text into the controls it ignores all tabbing.
    When I try to align justify both left and right sides of the text it doesn't work.
    I can't import text where some of the text is bold, italic, or
    underlined. 
    I can't import text where some of the text is in different fonts.
    I am trying to make an interactive book. So I need to be able to have properly formatted text.
    Perhaps there should be an option for the controls to contain Rich Text Format or HTML text. 
    I would say the main things would be the tabbing, if I was pasting several paragraphs of text into a text Label or text Gallery. Second would be able to have bold or italic text inside a paragraph. I
    think that would be really nice! I would think that a Sienna should have
    more functionality than a webpage not less!
     I suppose there are ways round it such as doing a copy and paste of my text and changing tabs into several spaces but I shouldn't really need to do that. 
    \^_^/

    Thanks. At the moment I've decided to just use Visual Studio Express to make my eBook using a WebView control to display my chapters.
    I think for me I still like the ability of Visual Studio to do advanced scripting.
    But I think Sienna is good for prototyping and it did inspire me to make an eBook in the first place.
    You could put a WebView component and it could display webpages with Flash content then people could make their apps in Flash! haha. It's all gone circular. :s
    \^_^/

  • Html content inside flash ? how?

    Hello, I have the following problem ... I have a flash site where in the back there is a Content Management System for the site moderator to post offers. So when the users visit the site they can see the offer and if they like it to contact the company. But inside the Content management system i have a textarea where the moderator wants to paste-in some tables in a html format  ... something like this ...
    GENERAL
    2G Network
    GSM 900 / 1800 / 1900
    GSM 850 / 1800 / 1900 - US version
    Announced
    2006, November. Released 2007, January
    Status
    Discontinued
    SIZE
    Dimensions
    106.4 x 43.6 x 11.7 mm, 56 cc
    Weight
    91 g
    DISPLAY
    Type
    TFT, 16M colors
    Size
    240 x 320 pixels, 2.0 inches, 31 x 41 mm
    - Downloadable wallpapers, screensavers
    SOUND
    Alert types
    Vibration; Downloadable polyphonic, MP3 ringtones
    Speakerphone
    Yes
    MEMORY
    Phonebook
    1000 entries, Photocall
    Call records
    20 dialed, 20 received, 20 missed calls
    Internal
    7.8 MB
    Card slot
    microSD, up to 2GB
    DATA
    GPRS
    Class 10 (4+1/3+2 slots), 32 - 48 kbps
    EDGE
    Class 10, 236.8 kbps
    3G
    No
    WLAN
    No
    Bluetooth
    Yes, v2.0
    Infrared port
    No
    USB
    Yes, miniUSB
    CAMERA
    Primary
    2 MP, 1600x1200 pixels
    Video
    Yes, QCIF
    Secondary
    No
    FEATURES
    Messaging
    SMS, MMS, Email, Instant Messaging
    Browser
    WAP 2.0/xHTML
    Radio
    Stereo FM radio; Visual radio
    Games
    Yes + Downloadable
    Colors
    Silver, Black, Red-Silver, White-Silver
    GPS
    No
    Java
    Yes, MIDP 2.0
    - Push to talk
    - MP3/MP4/AAC/AAC+/eAAC+ player
    - Voice memo
    - Voice command
    - T9
    - Organizer
    BATTERY
    Standard battery, Li-Ion 860 mAh (BL-4C)
    Stand-by
    Up to 348 h
    Talk time
    Up to 3 h 30 min
    Basically a table with some text in it ... but then i need to save this in some file (this is still done in the php) and after it is saved in a file I need to somehow show it in its table form inside a textarea in flash. Or if not in a textarea in some other way inside the flash movie i need to display that content in its table form. What I am using now is a web text editor from http://ckeditor.com/ which provides a way to paste the table in the content management system (or admin panel) and then it saves it to a file. The problem is how do I display the table inside flash ?

    Flash has very limited support of html tags and tables are not included.  So if you want to show an html table then your best bet will be to link to an html web page.

  • Implement a Formatted TEXT

    hello guys
    Is it possible that we can implement a Formatted TEXT edit to be used in our view other than the one we already have available in WD.I need one that allow more formatting and Text color and other more features. If so please explain to me how.
    Your help and support is highly appreciated.
    xxx
    Lily

    If you are on NetWeaver 7.01 you could use FlashIslands to integrate the Flex Rich Text Editor.  I have a tutorial that does just that:
    http://wiki.sdn.sap.com/wiki/display/EmTech/SAPRichIslandsforAdobe+Flash
    The other approach that I have used in the past is to combine BSP and WDA.  If you use NetWeaver Portal you can create two iViews - one for BSP and one for WDA and place them in the same portal page.  The BSP can contain the BTF text editor or some open source text editor (I've used the CKEditor project in BSP in the past - http://ckeditor.com ).  The WDA and BSP can then communicate with each other via Portal Eventing. I use this very example in the SAP Press Book - Next Generation ABAP Development.
    In NetWeaver 7.02, the iFrame UI element is no longer deprecated.  You could then potentially embed the BSP application we describe above directly inside the WDA page.

  • How to increase the size of text boxes in FCPX without stretching the text inside?

    How to increase the size of text boxes in FCPX without stretching the text inside?

    There are two basic Title formats — I should say Layouts — available:  Text (plain) and Paragraph.  (The plain text version usually does not appear with the blue dot controls — those generally appear for the paragraph type control.)
    If the Title is using a Paragraph layout, it's like having a mini version of Text Edit available inside FCPX. You can tell when you click on the text (when the title is selected) -- a rectangle will appear around the text like so:
    double clicking on the text will give you the bounds controls which you can use to redefine the text area without distorting the text. Once selected, notice the button that appears in the top right corner of the canvas:
    Pressing that will activate the ruler. You can right click on the ruler and add Tab Stops (left, right, center and decimal.)
    So if the title uses paragraph formatting, you can create a very WYSIWYG type of display text (use the Text inspector to alter text selections within the paragraph bounds.)

  • How to use an dynamic text from Flash in FlashBuilder with swf ?

    Hello,
    i'm trying to develop a game in flex builder and i got a problem with the dymanic text i've imported from flash. I want to insert a scoreboard in my application and for doing that i should use dynamic text in flash. I create a dynamic text in flash and then a import it to Flash Builder in a movie clip, and i called the dynamic text "Score". Now i've tried to use the "Score" variable to change the value of the dynamic text box un my flash builder application, but it doesn't change anything.
    I read somewhere that i've got to use the score.text value to change the number of my score but that doesn't works because Flash Builder tells me that this sort of variable don't contain the .text value.
    Thank you for trying to help me.
    bye.

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • Pages '09: Can't use AppleScript for selected text inside tables?

    When I run get selection on selected text in a Pages document, I get something like this:
    <pre>text from character 1 to character 4 of body text of document id 9943974 of application "Pages"</pre>
    When I run get selection on selected text inside a table cell in a table in a Pages document, I get something like this:
    <pre>text from character 1 to character 4 of some table of document id 3539679 of application "Pages"</pre>
    When I run get selection on selected text inside a table cell in ANOTHER table in the same Pages document, I get the exact same thing. It still says "some" table. So there is no way to distinguish between tables if there are more than one table in the same Pages document.
    Am I correct in understanding that this means that most AppleScript commands for manipulating text are unusable inside table cells?
    For example, it seems impossible to get the properties of the selection when the selection is selected text inside "some" table. So it's impossible do anything about text styles, etc.
    Is AppleScript support in Pages ’09 really that limited, or am I missing something?

    The first script below should return the character style of any selection made in Pages ’09, whereas the second script should apply the "XXX" character style to any selection:
    --BEGINNING OF SCRIPT 1
    tell application "Pages"
    activate
    tell application "System Events" to tell process "Pages"
    -- Show the format bar:
    if not (pop up button 1 of window 1 exists) then
    click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
    end if
    -- Show the styles drawer and character styles:
    if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
    keystroke "t" using {shift down, command down}
    end if
    tell front window
    tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
    repeat until it exists
    delay 0.1 -- wait until the styles drawer is open
    end repeat
    if description is "show character style" then click
    end tell
    -- Get the row index (although it is not a property) of the character style:
    tell menu button 2 -- “Choose a character style.” menu button
    click
    set k to 0
    repeat
    set k to k + 1
    if value of attribute "AXMenuItemMarkChar" of menu item k of menu 1 exists then exit repeat
    end repeat
    keystroke return -- hide the menu
    end tell
    -- Get the character style name:
    if k > 1 then set k to k + 1
    value of static text 1 of row k of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
    end tell
    end tell
    end tell
    --END OF SCRIPT 1
    --BEGINNING OF SCRIPT 2
    set myStyle to "XXX" -- the name of the character style you want to apply
    tell application "Pages"
    activate
    tell application "System Events" to tell process "Pages"
    -- Show the format bar:
    if not (pop up button 1 of window 1 exists) then
    click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
    end if
    -- Show the styles drawer and character styles:
    if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
    keystroke "t" using {shift down, command down}
    end if
    tell front window
    tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
    repeat until it exists
    delay 0.1 -- wait until the styles drawer is open
    end repeat
    if description is "show character style" then click
    end tell
    set characterStyles to value of static text 1 of rows of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
    set k to 0
    repeat with thisStyle in the characterStyles
    set k to k + 1
    if thisStyle as text is myStyle then exit repeat
    end repeat
    -- Apply the character style:
    if k > 1 then set k to k - 1
    click menu button 2 -- “Choose a character style.” menu button
    click menu item k of menu 1 of menu button 2
    end tell
    end tell
    end tell
    --END OF SCRIPT 2
    I suppose that +paragraph styles+ should work the same.
    I'm beginning to know Pages ’09 a little better now.
    Message was edited by: Pierre L. (show format bar)

  • How to load a pdf inside flash

    I need open a pdf inside flash how I do this?

    armandix,
    > I need open a pdf inside flash how I do this?
    You can't, really. Flash Player doesn't support Acrobat.
    Specifically,
    you can't open a PDF in Flash and have it act like a PDF
    (scrollable,
    searchable, etc.). But you can certainly convert your PDF (or
    a page from
    your PDF) to an image format and import that.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Is there a way to count the number of chars in a formatted text box?

    I have a formatted text box in my web dynpro for comments pertaining to workflow.
    in the backend, this is mapped to a char200 field.
    is there a way to have a running counter to let the user know how many chars are left? I'm not sure if there's an event to use for that.
    thanks,
    robert.

    Hello Robert,
    There is no way to get a running total of characters typed by the user - if you really need this functionality - consider creating an Adobe Flash Island.
    There was in the last year another thread which covered pretty much the same theme - it could be worth looking at that - although you will find that the eventual solution is the same as I suggest above.

  • Flex mobile 4.6 app works inside flash builder but not in android emulator

    Originally posted on stackoverflow: http://stackoverflow.com/questions/8663892/flex-mobile-4-6-app-works-inside-flash-builder- but-not-in-android-emulator
    I have a basic flex mobile 4.6 app and it works fully fine in the flash builder built-in emulator using an android device profile like aria...
    It also launches fine in the android emulator but one particular view shows blank (and this view works fine in flash builder).
    Before I get in to many details of the view are there any categorical gotchas that can be causing this?
    I can't seem to get the trace statements from the app to show in 'adb logcat'. It seems I need to compile a debug version of the apk but I don't know how to do this. I use the 'Export Release Build' from the Project menu in flash builder and it doesn't seem to have an option for debug=true.
    The problematic/blank view basically uses the stagewebview and iotashan's oauth library to call linkedin rest apis... A different (and working) view can make restful web service calls in the emulator fine, so it doesn't seem to be an internet permission.
    The source code contained in the problematic/blank view is almost identical to the tutorial found at:http://www.riagora.com/2011/01/air-and-linkedin/
    The differences are: a) The root tag is a View b) I use StageWebView instead of HtmlContainer c) I use my own linkedin key and tokens.
    I would appreciate it if someone can provide me with some pointers on how to troubleshoot this situation. Perhaps someone can tell me how to debug the app while running in the emulator (I think I need the correct adt command arguments for this which matches the 'Export Release Build' menu but adds the debug param?)
    Thanks for your help in advance.
    Comment Added:
    I suspect that this has to do with connections to https:// api.linkedin.com and https:// www.linkedin.com. The only reason I can think of that the same code is not having issues inside of Flex Builder but indeed having issues in the Android emulator is something to do with certificates. Any ideas?

    Thanks er453r,
    I have created a project that clearly reproduces the bug.  Here are the steps:
    1) Create a UrlLoader and point it to https://www.google.com (HTTPS is important because http works but HTTPS does not)
    2) Load it
    3) Run in Flash Builder 4.6/Air 3.1 and then run in Android emulator.  The former works with an http status 200.  The latter gives you an ioerror 2032.  I am assuming what works in Flash Builder is supposed to work in the Android Emulator and what what works in the emulator is supposed to work in a physical device (plus or minus boundary conditions).
    I see a certificate exception in adb logcat but not sure if it's related...
    Here is the self contained View code which works with a TabbedViewNavigatorApplication:
    <?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"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:ns1="*"
                        xmlns:local="*"
                        creationComplete="windowedapplication1_creationCompleteHandler(event) "
                        actionBarVisible="true" tabBarVisible="true">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected var requestTokenUrl:String = "https://www.google.com";
                                  protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader = new URLLoader();
                                            loader.addEventListener(ErrorEvent.ERROR, onError);
                                            loader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                                            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                                            loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
                                            loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                                            var urlRequest:URLRequest = new URLRequest(requestTokenUrl);
                                            loader.load(urlRequest);
                                  protected function requestTokenHandler(event:Event):void
                                  protected function httpResponse(event:HTTPStatusEvent):void
                                            label.text += event.status;
                                            // TODO Auto-generated method stub
                                  private function completeHandler(event:Event):void {
                                            label.text += event.toString();
                                            trace("completeHandler data: " + event.currentTarget.data);
                                  private function openHandler(event:Event):void {
                                            label.text +=  event.toString();
                                            trace("openHandler: " + event);
                                  private function onError(event:ErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("onError: " + event.type);
                                  private function onAsyncError(event:AsyncErrorEvent):void {
                                            label.text += event.toString();
                                            trace("onAsyncError: " + event);
                                  private function onNetStatus(event:NetStatusEvent):void {
                                            label.text += event.toString();
                                            trace("onNetStatus: " + event);
                                  private function progressHandler(event:ProgressEvent):void {
                                            label.text += event.toString();
                                            trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
                                  private function securityErrorHandler(event:SecurityErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("securityErrorHandler: " + event);
                                  private function httpStatusHandler(event:HTTPStatusEvent):void {
                                            label.text += event.toString();
                                            //label.text += event.responseHeaders.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function httpResponseStatusHandler(event:HTTPStatusEvent):void {
                                            label.text +=  event.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function ioErrorHandler(event:IOErrorEvent):void {
                                            label.text +=  event.toString();
                                            label.text += event.text;
                                            trace("ioErrorHandler: " + event);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Label id="label" y="185" width="100%" color="#0A0909" horizontalCenter="0" text=""/>
    </s:View>

  • [RB 6i] Format text in the field using HTML-tags. Or another way...

    If some fields of tables in database contain html tags such as 'H<sub>2</sub>O' (here is html tag 'sub') or 'some<b>text</b>'(here is html tag 'b') how can I to make Report Builder 6i to understand these tags or at least don't show them?
    Or how in another way can I format a part of text inside the field?
    thanx before
    Max

    Hi Maxim,
    If the output is PDF, the only way is to filter the incoming values yourself. You will need to create a PL/SQL column and remove the HTML markup tags. This, of course, leaves you without attributes you wanted in text (ie: the no "Bold" characters). You can still do this in with the same report basing the output from the PL/SQl formula column on the "desformat" input parameter.
    Reports doesn't have any "markup" capability. ie: A field only has one font & one colour. You can have multiple fonts for boilerplate text but, again, only a single colour.
    Robin.

Maybe you are looking for

  • Video and G.P.S. capabilities of Iphone

    I am considering the purchase of an iphone and I know movies can be rented and viewed through itunes. However, I would like to know if the iphone has the capability to watch live T.V. which is now being offered by the various cell phone carriers. I w

  • ImageSnapShot of a datagrid (including non-visible portions)?

    Hello all, I need to get an image of a datagrid in my project.  I have done so successfully using a method like the one in this tutorial: http://blog.flexexamples.com/2007/11/17/taking-screenshots-in-flex-3-using-the-imagesnapsh otcapturebitmapdata-m

  • Pdf vs xdp

    Hi, I would like to save my interactive form as .pdf. Question is, can the form be prepopulated with data? The reason I'm asking is beacuse I stumbled across the following in the Adobe LiveCycle help: "Do not choose PDF in these situations: If the fo

  • REM scheduling in planned order

    Hi, I am using repetetive manufacturing. I have maintained Forward scheduling in transaction OPU5 and selected the selection ID 02 for rate routing for detailed and rate based scheduling. Planned orders are created from MRP. When I check the planned

  • Unable to view schema objects in awm

    Hello, I am using an oracle 10g database (10.2.0.1.0). I have a schema with that roles : conect, resource, olap_user, olap_dba. I have created dimensions, indicators, etc.. in that schema with enterprise mgr console. I have created a worspace for tha