Unstable html with dynamic text

Hello, everyone.
I'm having problems getting the dynamic text function to read
an html text. I can get it to acknowledge <u> and <a
href=> for links and underlining and even imbed images, but not
<em> for italics or <strong> for bold. I have the
"render text as html button selected," so I'm not sure why I'm
getting these mixed results.
Any ideas?

1. Be sure the html is not malformed. In Control->Test
Movie you can use
Debug->List Variables or Debug->List Objects and find
the text field where
you will see how the html is rendered in the htmlText
property. Then paste
that into an HTML validator to check for malformed HTML.
2. Be sure the html tags you are using are supported by the
Flash player
version you are publishing. For Flash 8 here is the link to
the
documentation:
http://livedocs.macromedia.com/flash/8/main/00001459.html
3. Here is the general documentation link that will help you
adapt design
your use of HTML in text fields.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"jdc59" <[email protected]> wrote in message
news:e27v7r$h1$[email protected]..
Hello, everyone.
I'm having problems getting the dynamic text function to
read an html text.
I
can get it to acknowledge <u> and <a href=> for
links and underlining and
even
imbed images, but not <em> for italics or
<strong> for bold. I have the
"render
text as html button selected," so I'm not sure why I'm
getting these mixed
results.
Any ideas?

Similar Messages

  • A drag and drop game with dynamic text response

    Hi,
    I am a teacher and my school has recently upgraded to Adobe Design Premium.  Our previous version was about 5 versions out of date.
    I teach A Level which requires students to create an Interactice Multimedia product.
    In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
    Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
    When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
    I use a switch case statement which I have copied below to make the drag and drop work.  The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
    on(press) {
    startdrag(this);
    on(release) {
    stopdrag();
    switch(this._droptarget) {
      case "/dropzoneB":
       _root.answer="Well done";
       break;
      case "/dropzoneA":
      case "/dropzoneC":
       _root.answer="Hopeless";
       break;
      default:
       _root.answer="";
       break;
    Any help would be much apeciated.
    Thanks
    Adrian

    To drag in as3
    blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
    // Register mouse event functions
    blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
         var object = evt.target;
         // we should limit dragging to the area inside the canvas
         object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
         var obj = evt.target;
              obj.stopDrag();
    if you want to make the text do what you want then something like this might work.
    In the function, you could add a text box onto the stage, give it a instance of something like outputText
    and then:
    outputText = ("Bla Bla Bla");
    (^Not sure if this will work exactly^)
    PS. I am currently a A-level student

  • Cannot use text:TextField with dynamic text in 3.2

    Hi,<br /><br />I have a multi-lang app which uses English LTR and Hebrew-Arabic RTL.<br />I am using a properties file for each language, and I get the<br />right item using resourceManager getString.<br /><br />Until 3.2 I had to reverse the order of the words in each item when using<br />Hebrew (or Arabic for that matter).<br /><br />In 3.2 with the new Text layout framework, this is not needed (MAJOR IMPROVEMENT) but I cannot get it to work with dynamic text only static text.<br /><br />of course all works great if I upgarde to flex 4.0, and use the textBox component, but I do not want to do that, so late in the development phase of the application.<br /><br />Here is a small mxml which shows the problem:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"<br />   xmlns:TryComps="appComponents.*" xmlns:text="flash.text.*"><br />   <mx:Style source="css/flashTypeStyles.css"/> <br />   <mx:Script><br />     <br />       import mx.resources.ResourceManager;<br />     <br />   </mx:Script><br />     <mx:Label text="Using text:TextField FIXED : THIS WORKS"/><br />        <!-- some text in hebrew if you dont see it you probably dont have it insalled --><br />     <text:TextField text="&#1506;&#1489;&#1512;&#1497;&#1514; &#1499;&#1493;&#1514;&#1489;&#1497;&#1501; &#1502;&#1497;&#1502;&#1497;&#1503; &#1500;&#1513;&#1502;&#1488;&#1500;"/><br />        <mx:Label text="Using text:TextField DYNAMIC :  THIS DOES NOT WORK"/><br />     <text:TextField text="{resourceManager.getString(Locales.LOCALE_BUNDLE,'BI_DIRECTIONAL_TEXT')}"/><br />     <br /></mx:Application><br /><br />Any one has an idea ???<br />The 'BI_DIRECTIONAL_TEXT' is an entry in the property file which has the same value as the static text above.<br /><br />The run time error I get is : <br />TypeError: Error #2007: Parameter text must be non-null.<br /><br />Thanks<br /><br />Eli7

    If you look thru the TextField class in the help documents you will find all of the properties you can manipulate.  One property is the wordWrap property which will keep you text from going off the side of the textfield.  Another is multiline which will allow the textfield to have more than one line.  And another is the autoSize property which will make your textfield adjust to fit the amount of text loaded into it.

  • Help with dynamic text and and css !

    My second question of the day.
    I'm trying to build a feature in my app in which the user can
    hide/reveal
    bolding and or
    italics and or
    underlining. The text is being loaded in from an xml file
    and I was thinking about styling it with css in order to get the
    underlining. My problem is that the only way I can think about
    pulling this off is to have a css style sheet that has a defined
    bold,italic and underline class defined- - then another one that
    just has a italic and underline class defined -- then another one
    that has just a bold and underline class defined . . . and so on
    and so on. You can see why I would prefer a much more streamlined
    system. Unfortunately my experience with dynamic text styling is
    somewhat limited. Hopefully someone can help me out here.

    Perfect. I knew it was some little snippet that I was
    forgetting. I made a temporary fix of creating a 0% alpha box over
    the button like a fake click area above the text, and that worked
    but I know that it was a half-arsed way of working around it.
    Thanks.

  • Loading swf file with dynamic text

    For a website I'm creating I'm going to have a main swf file
    that loads individual swf files for each page. Each page's swf file
    loads in external text files through dynamic text boxes so i can
    edit the website easily. To load the swf files into the main swf
    file I'm using the loader component. Everything works fine except
    thedynamic text boxes of the swf files that are nestled in the main
    one do not load properly. Instead, in each text box i get a message
    similar to this:
    _level0.NewsLoader.contentHolder.News1
    NewsLoader is the instance of the loader component, and News1
    is a variable called in through a dynamic text field from the html
    document entitled News1.html. The individual news swf file loads
    the text properly, but when the news swf file is loaded into the
    main swf file the text is replaced with the message above.
    Any suggestions?

    the problem might be due to the changed references if you
    load the movie into another one.
    is NewsLoader a MovieClip instance inside the main movie or
    inside the mc that is loaded into the main movie?
    If it resides inside the exteranly loaded movie, you will
    either need to use the lockroot attribute or use a relative
    reference to the News1 variable.
    Since the _level0 always points to the _root timeline (the
    one of the outer most movieclip) _level0 used in the external mc is
    different once the external movieclip is loaded into another movie.
    I suggest only using relative references, makes live much
    easier.

  • Issues with dynamic text box formatting

    I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.
    I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
    The dymanic text field is set to render as HTML. In my actions layer, I set the text:
    this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
    In summary:
    1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
    2. If I embed the font, the alpha fade works but the HTML formatting does not.
    How do I resolve this? It's driving me nuts!

    How do you embed just one style?
    I've tried typing three words in the text field and formatting each (regular, bold, italic) but the text field just defaults to whichever format is first.
    Also, I tried embeding the whole character list and did not have success.

  • Alerts with "Dynamic Text". Alert ID is unknown.

    Hello,
    I have set up an alert category with option "Dynamic Text" activated as I want to use some custom container variables in BPM.
    When the appropriate control step in BPM is executed not alert is triggered.
    If I try to trigger a test alert using report RSALERTTEST I get the following error:
    Alert ID is unknown. Maybe the alert was not created.
    Both works fine when I use a an alert category without "Dynamic Text" selected. What could be the reason for this?

    Just got the alert from the integration process. RSALERTTEST still gives the same error, but most important is that the alert works during runtime.

  • CS3 - Problem with dynamic text -

    Hello,
    I have a problems with my text, when i write a few ligne inside a dynamic text box, if i selec the text and by the way drag it down the first line goes up and disapear. Is there any way to solve this?

    This is the Flash Player forum; please post your question in the appropriate product forum.

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Drag movie clip with dynamic text box inside it?

    Hi team, I can drag a movieclip with static text inside it, but when I change the text to dynamic, I get a Property Startdrag not found on Flash.text.textfield and there is no default value.. Any help?
    Cheers
    sub

    assign the mouseChildren property of your movieclip to false.

  • SQL Subscription field shows * only with Dynamic Text Label in SQL query

    We are using Hyperion Analyzer 7.2.x for showing budget and actual data. I have to show this financial data based on the security e.g. person in IT can see only IT dept. data. Hence I want to use dynamic text label <<userid>> for the security based on the person logging in to Analyzer.
    But when I use dynamic text label <<userid>> in the SQL query in SQL Spreadsheet, SQL Subscription field shows * only selection option. Does anyone have idea how to solve this problem?
    Thanks in advance for your help.
    -SV

    Hi
    Okay i know this is a bit crazy way.....but i think this is the solution for your issue.
    Create a report without the where clause (<<useris>>) then add a filter (sql subscription) then you can find all the values that are there in the SQL field (try to increase the query limit it is set to 250 as default) then edit the spreadsheet and add the where clause (<<userid>>).
    This will help you having the filter and the dynamic text label. I think there is an issue when you try to filter it with a where clause.
    Hope it helps.
    CK

  • Button roll-over animation with dynamic text

    So I have a button I want to be able to use over and over. When you roll over the button, it does an animation and has a dynamic text box in it. Ovbiously im trying to make each text different for each button. What would be the smartest way to go about this? Thanks,
    Dan

    create a movieclip, put a stop() in frame one and add your "up" graphics, textfield etc put everything in its own layer.  create another keyframe on that timeline and label the frame "over" and add new keyframes only on the layers that will change.  ie, if the textfield doesn't change, don't put a keyframe on its layer.  likewise, for a "down" frame, if you want one.
    use instance names for everything in the movieclip that you want to control with actionscript.  ie, your textfield(s) will need instance name(s).  i usually use one textfield named tf.
    then use:
    btn1.tf.text = "test"
    btn1.addEventListener(MouseEvent.ROLL_OVER,overF);
    btn1.addEventListener(MouseEvent.ROLL_OUT,outF);
    btn1.addEventListener(MouseEvent.MOUSE_DOWN,downF);
    function overF(e:Event){
    // if you have another textfield here assign its text
    // likewise for other objects you want to change
    e.currentTarget.gotoAndStop("over");
    function outF(e:Event){
    // if you changed textfields in the other frames, reassign tf.text here
    e.currentTarget.gotoAndStop(1);
    function downF(e:Event){
    // if you have another textfield here assign its text
    e.currentTarget.gotoAndStop("down");

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

  • FONT issue in flash with Dynamic text

    I dont even know how to start this thread... I am having a
    serious problem with fonts on the flash movie I am Making/
    Modifiying. The Font that is being used is "standard 07_53" and I
    have been trying to understand how flash works with the fonts but
    somethings are just making me scratch my head. First off :
    - I tried using both the anti-alias for readability and the
    anti-alias for animation... the anti-alias for animation seems to
    creat sharper text in most cases.. + I am embedding all charachters
    when I do that (I know this makes my file way too big, but I am
    trying to figure out where I am going wrong)
    - Q1 : I found out changing the position of where my text box
    is on the document changes how clear the text is in the final
    puplication. Now That I have not even the simlest idea why... does
    anyone know?
    - Q2 : The justify problem... whenever I use Justify my text
    is all messed up... I even tried to change the font to Arial for
    example and it still makes some of the text a bit blurry (well it
    is blurry enough that I can notice it right away).. why does this
    happen?? and is there any kind of solution to this problem?? I
    definatly want my text justified
    - Q3 : Do I and why, have to embed the font in each text box,
    wouldnt one embeding be enough if using the same font in all the
    other text boxes?
    - Q4: Why do I see the text differently on different
    computers.. and this realy is in relation to Q1.. on my monitor all
    looks good on the published document, yet on other monitors and
    computers it looks completely fussy untill I change the position of
    that text box.
    -Q5: are there any sites that go in depth about Fonts and
    dynamic text and how they end up rendering in flash?
    you can see my problem with justified text at :
    http://www.alwayscoffee.com/mirror/flash/
    then click on COMPANY and then look at the text under "ABOUT
    US"
    by the way I am using flash 8 and publishing (flash settings
    of:) flash player 8 - action script 2.0 - compress movie option
    CHECKED - and jpeg quality 80
    I apriciate all the help I can get.
    Layth

    Hi,
    as you I don't even know where to start, as it is (as you
    have noticed) quite a complex thing. If you are still interssted in
    the subject, drop me a line, and I try to answer some of your
    questions.
    markusma
    _remove_thieu@macDOTcom

  • Printing - With Dynamic Text Fields

    Hello,
    i wonder if anyone can help me........i know there are a lot
    of posts already on how to print out dynamic text but all of them
    seem to be using scrolling text fields.
    However my problem isn't even as complex as this but i still
    can't work it out.
    At the moment i have a form of text boxes which the user
    inputs text.............from here there is a print
    button.........in order to compile all of the answers together i
    have created a movie clip.........with the layout of the printed
    page on it, and placed this on the main timeline. Inside this movie
    clip to be printed i have dynamic text fields...which link to the
    text fields which the users inputted data in, therefore both sets
    of text fields contain the same data, when you change one the other
    should change.
    I have set up a very simple printJob command to print out the
    movie clip named print_mc and it prints the page even the outline
    of the text boxes but it doesn't print out the content which
    appears on the screen. my code is attached below.......please if
    anyone could help i would be very grateful :)
    print_btn.onRelease = function() {
    _global.aOneVar =oneAPone.text;
    _global.aTwoVar =oneAPtwo.text;
    print_mc.gotoAndStop("2");
    var myPrintJob:PrintJob = new PrintJob();
    var result:Boolean = myPrintJob.start();
    if (result) {
    myPrintJob.addPage("print_mc", null, {printAsBitmap:false},
    2);
    myPrintJob.send();
    delete myPrintJob;
    } else {
    thanks

    erictomlinson,
    > So, if I turn off the xml/css and use htmlText to create
    > content for the text field, the text uses the embedded
    > font and is anti-aliased.
    I'm with ya. Presumably, then there's a font symbol in your
    Library,
    right? And its Linkage identifier is "arial_font"?
    > If I keep the xml/css but comment out embedFonts, then
    > the content works but is not anti-aliased.
    That's because your CSS calls for Franklin Gothic Book,
    which hasn't
    been imported into your Library as a font symbol (at least,
    you haven't said
    it has).
    > I need both of these to work at the same time.
    Give Franklin Gothic Book a Linkage identifier, and use that
    name in
    your CSS.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for