Dynamic text problem

Hi,
I have some dynamic text within a scrolbar controlled box. I
need to link certain words of the text but, whenever I attempt to
do this, the entire text block becomes 'linked'. Does anyone know
how I can solve this?
Many thanks.

Then you'll need to use html links for the words. So when you
assign the text to the textfield, you'll need to assign it as...
tField.htmlText = "text.... <a href='...>link
text</a>"... text;
where tField is whatever instance name you assigned to the
textfield

Similar Messages

  • ScrollPane + Dynamic text problem.

    Hi,
    I use the ScrollPane component to display a movieclip which contains some text. Until now I have entered just a few paragraphs, with the text field set to "Static text"...but as I have wrote some more I noticed that the text field displays only half of my text. So I have switched to "Dynamic text", which solves the display issue and I get 100% of my text but now I have it always on the scene displayed, even if it is only available in the library...strange!
    Could somone help me out please??
    Regards,
    vedtam

    Ok, I try to make my self clear.
    I have to display a really long text on this website. By default when I am typing anything the Text tool is set to "Static text" in that little drop down in the Text Properties window. So I have moved on whit this, but after more then 50-60 paragraph typed in I get only 30 displayed. Than I went to that little drop down and selected "Dynamic text" to see if this helps, and when I have tested the movie again the text was displayed with all its 60 paragraph, but it was overlapping all my other content without pressing its button (without calling it).
    The movieclip which contains the text, sits in the library, and the ScrollPane component (which loads it externally) is in the scene on the 1st frame. Again, as I test the movie I get the text showing up in the background, so as I click any menu item it is overlapping any other content.
    What I would like to achieve is to have the text displayed without an issue (not only a half of it). But this task is failed by the "Static text" option and setting it to "dynamic text" solves the first problem while rises a second (the sudden appearance of the text on the scene without calling it).
    I hope this second explanation helps,
    Vedtam

  • Dynamic text problem in flash cs5

    Hi guys,
    im building a flash website and the first page has dynamic text fields that load text via xml, that all works fine. But when i create a dynamic text field  further up the time line for the second page ( i use the same code all at the fist frame of the timeline) and nothing loads. if i have an instance of the text on the first page at the start of the time line it will load on the next page (further up the time line). Ii have stop  and click to go and play in the code to break up the pages.
    I am a little lost, as i normally use static text.
    any help would be greatly appreciated.
    cheers

    Ah found out myself the hard way that i need to put the text feild inside its own symbol!
    only took me all morning

  • Dynamic text problems

    Iv not used flash for a while so am just converting from AS2
    to AS3 and am having problems with some simple actionscript
    I have a dynamic textbox created through actionscript inside
    a movieclip and im trying to change the content of this but save
    the previous value.
    Iv taken the previous value and saved it in a variable (a
    string) called
    oldTxt (witch is working when i use trace statements to
    check)
    and then assigning the new text with
    theTextField.text = "some new text"; (again working
    perfectly)
    the problem is when i try to re-asign the old value stored in
    oldTxt, nothing happens.
    the code im using is
    theTextField.text = oldTxt; but its just removing all the
    text.
    any suggestions?

    button.addEventListener(MouseEvent.ROLL_OUT, navOut);
    function navOut(MouseEvent):void {
    trace(oldTxt);
    theTextField.text = oldTxt;
    works fine when i replace oldTxt with "some new text" and the
    value of oldTxt is coming up in the trace

  • Externally Loaded Dynamic Text Problem

    Hi,
    Has anyone encountered problems loading in a % sign as part
    of a string? For example I'm loading the following in from a
    database through an asp page using sendAndLoad (this is just a
    snippet of the results):
    &AnswerEN1_1=8% &AnswerFR1_1=
    The variable AnswerEN1_1 drops the % sign. The value for the
    variable is just 8. if there's no space between the next variable
    the value of AnswerEN1_1 becomes 8AnswerFR1_1= removing the &
    as well
    Any ideas, solutions?
    Thanks,
    Sean

    Flash is seeing % as the start of a URL code--or perhaps ASP
    is when it serves it up. Either way, you should be able to avoid it
    by pruposely URL encoding it. I don't know any ASP but I'm sure
    there is a URL encode function somewhere. Otherewise, the code for
    % is apparently, %25, according to here:
    http://meyerweb.com/eric/tools/dencoder/

  • Dynamic text box problems

    I have created a dynamic text box and an input text box.
    I have produced code that replicates whatever is typed in the
    input box to display in the dynamic box along with a date and time
    stamp once a button is clicked.
    This all works fine, except for the sizes of the fonts. for
    both boxes, i selected font size 10 . The input box is fine,
    however the dynamic box text is huge.
    When i make the dynamic text font smaller, it fits in fine,
    but the input text that is inserted into the dynamic text box comes
    in too big. If i make the input text box font smaller it is
    unreadable when typing it in.
    any soultion to how to make my font consistent. I am assumin
    the problem is because both the text boxes are different sizes,
    however i don't know how to resolve the issue.
    Any help is much appreciated.
    Laura

    hi laura
    i think the problem it's in the targetPath "
    mainClip.newspaper_mc.newinstructions.text =
    lu.welcome[langIdx];".
    chech if you have mistype the instance names of your
    movieClip and rewrite it or in the Actions panel select the path "
    mainClip.newspaper_mc.newinstructions" and click the button
    "Insert Target Path" this will open a popup with a tree of your
    MC's on the stage, so you can browse and find the textfield. i hope
    i helped you if not let me know!

  • 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.

  • Problems sending text from JavaScript to dynamic text box

    For reasons which I won't bore you with, I'm trying to send
    text from a JavaScript to a dynamic text box in Flash. I've just
    spent all day wondering why I can't get it to work, despite
    following web guides to the letter. Finally I discovered that I'm
    not actually doing anything wrong and everything works perfectly -
    as long as it's online. It won't work at all locally or from the
    network.
    The problem is that this is for learning material which will
    be deployed both online and on CD, so it won't always be running
    from a webserver. Has anybody got any ideas a) why this is
    happening, and b) what I can do about it?
    Cheers
    Marc

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    This is a good tutorial on using JSP pages with JavaBeans.
    Your JSP page can have all the standard HTML tags and a bean can be set to retrieve any values from form fields upon a submit.
    At that point your bean properties are set and your Java application can use that data for whatever processes you wish.
    It's really quite simple once you get the hang of it! ^_^
    Message was edited by:
    maple_shaft

  • Dynamic text and animated masking problem?

    Hi
    Can anyone suggest to me what might be happening here. I will
    try and explain step by step... I am using flash MX
    I have dynamically created a movieclip which I want to mask -
    _root.createEmptyMovieClip("myMovie", 1);
    I dynamically add a movieclip into it which I then load a jpg
    into -
    _root.myMovie.createEmptyMovieClip("image1", 0);
    _root.myMovie.image1.createEmptyMovieClip("newFile", 0);
    _root.myMovie.image1.newFile.loadMovie("http:...");
    I dynamically create another movieclip called myNormalText1
    insde the first movie -
    _root.myMovie.createEmptyMovieClip("myNormalText1", 2);
    this holds a dynamically created text box called mytext -
    _root.myMovie.myNormalText1.createTextField("mytext",1,0,0,0,10);
    // the text box formating is dynamic, uses devise fonts,
    arial and is red ect.
    I have then attach a movieclip and use it as a mask to create
    a transition effect over _root.myMovie (which holds the image and
    text)
    _root.attachMovie("mask","mask",5);
    _root.myMovie.setMask("mask");
    the mask movieclip is what is causing me the problem!!!
    method one
    when the mask movieclip contains this -
    a phisically drawn box that fills the whole page
    I use a shape tween to make the box transform into a thin
    rectangle down the left hand side of the screen
    I get a transition effect which makes _root.mymovie disapear
    to the left which is what I want!
    The image and text are masked correctly!
    *** Please note I am aware that dynamic text boxes using
    devise fonts are not displayed correctly under a mask layor when
    they are not embeded, in flash MX. I am able to view my movie in a
    browser window which uses flash player 8 that now allows dynamic
    devise fonts to be masked!
    method two
    I then wanted to create a different transition effect like
    venitian blinds,
    so, in my mask movieclip I created several rectangles that
    fill the page
    again I used a shape tween so they get thinner,
    when I tested my movie the same way in the browser,
    the mask did not work correctly over my text in
    _root.mymovie???
    yet the image in _root.mymovie was masked correctly???
    the only differance between the two methods is the shape
    tween in method one uses one box shape, and the shape tween in
    method two uses several rectangler box shapes.
    I was wondering if anyone knows why the text is correctly
    masked in case one and is not correctly masked in case 2
    I want to do other transition effects using masks in this way
    and I am having no luck :-(
    Thanks for any advice
    Claire Wall

    Hi
    I have been researching this ALOT and found some info that
    basically tells me when I use setMask() over dynamic device fonts,
    the mask uses its bounding box (the rectangular outside edge of the
    whole mask movieclip) as the mask.
    In case 1 the mask moviclips bounding box shrinks when the
    shape tween plays because there is one rectangular box being
    tweened. It appears to mask the text correctly.
    In case 2 I have variouse different shape tweens going on
    inside the mask movieclip so the bounding box stays the same size
    across the whole screen and it wont appear to mask my text
    correctly.
    I think I have answered my own question, but this still
    leaves me stuck! I want to create this venitian blind effect using
    masks over devise fonts.
    I came up with the idea of using for example 4 different
    masks over the one movieclip but again flash doesnt like this and I
    guess I can only use one setMask() per movieclip?
    Can anyone suggest a way I can use multiple dynamically
    created masks on one movieclip or cant it be done?
    Thanks
    Claire x

  • Text jumps after embedding font in dynamic text field!

    Hi
    this is driving me mad
    Im using a standard font (Gotham rounded) within a dynamic text field. As soon as I embed the numerals within this text field the text lowers within the text field.  Double clicking the field then renders the text higher up!  It seems that the height it shows when I double click is the height it compiles at.
    The other strange and annoying thing is that my colleague working on the same project is using the exact same font and same file but this doesnt happen to him and so the font redners out differently when he compiles!
    Could anybody please help me sort this problem out as its reeeeally annoying
    many thanks!
    Nick

    nobody any ideas?!

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

  • BPM Alerts - Dynamic Text

    Hi,
    I'm triggering Alerts from BPM with Dynamic variables. In ALRTCATDEF I was not able to define the header ( Subject field on the email ) as I need to check Dynamic Text box which will deactivate Short and Long Text. Furthermore Shortext ( for example its like " Process number 00001234567 " ) in ALRTINBOX becoming Subject field in the email.  So when we receive email with the Subject field as "Process number 00001234567" doesn't makes sense until you open the email.
    I did gone thru the document and all the blogs and lost how to fix it.
    Do anyone have the same problem?.. Please help.
    Basically I want to system ID on the Subject line of the email.

    Well there is an alternate solution. But as a standard using the Control Step of the BPM, this is not possible.
    Trigger Alert from a UDF as shown in this blog of mine,
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    And also as shown in this blog,
    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
    Regards
    Bhavesh

  • Can I put Chinese and English characters in the same dynamic text box?

    I'm translating a game into several different languages, one of which is Chinese. I've noticed that in a dynamic text box where English characters are included also, they aren't displayed when the .swf is exported. The font is embedded in the document with all characters selected. It seems like whatever language-character is first displayed in the text box, the other language cannot be. For instance, if there are Chinese characters first, then English, the English will not display, and vice-versa. Any work around on this? I am using Flash CS5 and Actionscript 2.0. Thanks!

    Kglad - I'm not sure I follow your instructions for the fix. I assume you want me to set the _visible property to false via Actionscript ( textInvisible._visible = false; ). What is the purpose of this second text field - does it need any specific content in it to function? It doesn't seem to work to fix the problem but maybe I'm misunderstanding.

  • Issue passing values to text symbols in Dynamic text PDF forms

    Hello Everyone,
    I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
    Please share your thoughts if anyone has faced similar problem or know how to handle it.
    Thanks a million in advance,
    Chandu

    Open the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
    You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
    If you are using RAS I'll move your post to the SDK forum.
    Thank you
    Don

  • Help with delivering dynamic text through an external file, through XML?

    I'm struggling to find the best way to deliver dynamic text
    from an external file, through XML, to a Flash file.
    I use small Flash pieces to deliver multiple sets of content
    through a single .swf file. An example is here:
    http://www.esi-intl.com/public/government/federal.asp
    In the .swf file at the bottom, I'm using a three-scene .fla
    file. I'm putting the actionScript in the Actions layer atop each
    frame. Example:
    stop ();
    loadVarsText = new LoadVars();
    loadVarsText.load("fedNews.txt");
    //assign a function which fires when the data is loaded:
    loadVarsText.onLoad = function(success) {
    if (success) {
    trace("done loading");
    //Now that we know the data is loaded,
    //set the text content of the Text Field
    //with the instance name "scroller" equal to the
    //contents of the variable
    scroller.html=true;
    scroller.htmlText = this.var1;
    } else {
    trace("not loaded");
    In that .txt file, I'm putting the information like this:
    var1=<font face="tahoma,verdana,sans-serif" size="11px"
    color="#000000"><b><a href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
    Grants ESI Course CON353
    Equivalency</a></b><br>Advanced Business Solution
    in Contracting (CON 353) is an equivalency for DAU's CON 3535
    course, Advanced Business Solutions for Mission Support. <a
    href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
    color="#996633">Continue</font></U></a></font>
    So much of this is pick-ups from what I've researched in
    Google. I'm looking for a way I can feel more confident in my code,
    and also have that code follow CSS.
    Lastly, I recognize the problems in XML with using single
    quotes / double quotes, and the & symbol. This is one of my
    largest time sucks, and I'd like to find a better way to do this.
    Thank you

    Hi,
    Did you ever find a resolution to this? I'm having a similar
    issue that I can't seem to get multiline dynamic text working in
    CS3.
    The font is embedded but it just displays the first line, and
    then a blank. I'm sure this worked fine in Flash MX.
    Cheers, Ant

Maybe you are looking for