Dynamic Text in Screen

Hi,
I want Dynamic Title text in my screen program in tittle bar.
Example:
First case: Project Workbench : prj102
Second case: Project Workbench : prj103
Third case: Project Workbench : XXXX (This text is Dynamic in Screen)
Thanks and Regards,
Harsh

hi ,
AT selection-screen ON PARAMETER of the Button.
So when pressed on button, that code will do some process and the result will be displayed.
check it, whether it displays the text or not on selection screen.
see the doc
AT SELECTION-SCREEN - selscreen_event
Syntax
| { ON {para|selcrit} }
| { ON END OF selcrit }
| { ON BLOCK block }
| { ON RADIOBUTTON GROUP radi }
| { }
| { ON {HELP-REQUEST|VALUE-REQUEST}
| FOR {para|selcrit-low|selcrit-high} }
| { ON EXIT-COMMAND }.
Alternatives:
1. ... OUTPUT
2. ... ON {para|selcrit}
3. ... ON END OF selcrit
4. ... ON BLOCK block
5. ... ON RADIOBUTTON GROUP radi
6. ... { }
7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
{para|selcrit-low|selcrit-high} }
8. ... ON EXIT-COMMAND
Effect
These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
Alternative 1
... OUTPUT
Effect
This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
Note
The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
Alternative 2
... ON {para|selcrit}
Effect
This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
Note
If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
Alternative 3
... ON END OF selcrit
Effect
This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
Alternative 4
... ON BLOCK block
Effect
This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
Alternative 5
... ON RADIOBUTTON GROUP radi
Effect
This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
Note
The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
Alternative 6
Effect
The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
Alternative 7
... ON { HELP-REQUEST | VALUE-REQUEST } FOR
{para|selcrit-low|selcrit-high} }
Effect
The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
Notes
These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
Alternative 8
... ON EXIT-COMMAND
Effect
This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
Example
In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
REPORT demo_at_selection_screen.
Global data
DATA: sflight_tab TYPE TABLE OF sflight,
sflight_wa LIKE LINE OF sflight_tab.
Selection screens
PARAMETERS p_carrid TYPE spfli-carrid.
SELECTION-SCREEN BEGIN OF SCREEN 500.
SELECT-OPTIONS s_conn FOR sflight_wa-connid.
DATA s_conn_wa LIKE LINE OF s_conn.
SELECTION-SCREEN END OF SCREEN 500.
Handling selection screen events
AT SELECTION-SCREEN ON p_carrid.
IF p_carrid IS INITIAL.
MESSAGE 'Please enter a value' TYPE 'E'.
ENDIF.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD p_carrid
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE 'No authorization for carrier' TYPE 'E'.
ELSEIF sy-subrc 0.
MESSAGE 'Error in authority check' TYPE 'A'.
ELSE.
IF sy-ucomm = 'ONLI'.
CALL SELECTION-SCREEN '0500'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN.
IF sy-dynnr = '0500'.
IF s_conn IS INITIAL.
MESSAGE 'Please enter values' TYPE 'W'.
ELSE.
SELECT *
FROM sflight
INTO TABLE sflight_tab
WHERE carrid = p_carrid AND
connid IN s_conn.
IF sy-subrc 0.
MESSAGE 'No flights found' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
Main program
START-OF-SELECTION.
AT selection-screen ON PARAMETER of the Button.
So when pressed on button, that code will do some process and the result will be displayed.
check it, whether it displays the text or not on selection screen.
see the doc
AT SELECTION-SCREEN - selscreen_event
Syntax
| { ON {para|selcrit} }
| { ON END OF selcrit }
| { ON BLOCK block }
| { ON RADIOBUTTON GROUP radi }
| { }
| { ON {HELP-REQUEST|VALUE-REQUEST}
| FOR {para|selcrit-low|selcrit-high} }
| { ON EXIT-COMMAND }.
Alternatives:
1. ... OUTPUT
2. ... ON {para|selcrit}
3. ... ON END OF selcrit
4. ... ON BLOCK block
5. ... ON RADIOBUTTON GROUP radi
6. ... { }
7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
{para|selcrit-low|selcrit-high} }
8. ... ON EXIT-COMMAND
Effect
These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
Alternative 1
... OUTPUT
Effect
This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
Note
The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
Alternative 2
... ON {para|selcrit}
Effect
This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
Note
If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
Alternative 3
... ON END OF selcrit
Effect
This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
Alternative 4
... ON BLOCK block
Effect
This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
Alternative 5
... ON RADIOBUTTON GROUP radi
Effect
This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
Note
The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
Alternative 6
Effect
The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
Alternative 7
... ON { HELP-REQUEST | VALUE-REQUEST } FOR
{para|selcrit-low|selcrit-high} }
Effect
The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
Notes
These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
Alternative 8
... ON EXIT-COMMAND
Effect
This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
Example
In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
REPORT demo_at_selection_screen.
Global data
DATA: sflight_tab TYPE TABLE OF sflight,
sflight_wa LIKE LINE OF sflight_tab.
Selection screens
PARAMETERS p_carrid TYPE spfli-carrid.
SELECTION-SCREEN BEGIN OF SCREEN 500.
SELECT-OPTIONS s_conn FOR sflight_wa-connid.
DATA s_conn_wa LIKE LINE OF s_conn.
SELECTION-SCREEN END OF SCREEN 500.
Handling selection screen events
AT SELECTION-SCREEN ON p_carrid.
IF p_carrid IS INITIAL.
MESSAGE 'Please enter a value' TYPE 'E'.
ENDIF.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD p_carrid
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE 'No authorization for carrier' TYPE 'E'.
ELSEIF sy-subrc 0.
MESSAGE 'Error in authority check' TYPE 'A'.
ELSE.
IF sy-ucomm = 'ONLI'.
CALL SELECTION-SCREEN '0500'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN.
IF sy-dynnr = '0500'.
IF s_conn IS INITIAL.
MESSAGE 'Please enter values' TYPE 'W'.
ELSE.
SELECT *
FROM sflight
INTO TABLE sflight_tab
WHERE carrid = p_carrid AND
connid IN s_conn.
IF sy-subrc 0.
MESSAGE 'No flights found' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
Main program
START-OF-SELECTION.
regards,
venkat.

Similar Messages

  • How to display the dynamic text in the selection screen

    Hi All,
    I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
    EX: If i have the date of today 31st  it has to show message like " today date is 31 like some thing "  when i execute the report .
    Could any one face this sort of requirment, Please let me know.
    Thanks in advance.
    Reagrds,
    Bharani

    Where would you like this dynamic text being displayed? As an "message" or in some parameter field?
    If first
    parameters date type d.
    data: text type string.
    at selection-screen.
       concatenate 'Today is' date into text.
       message text type 'I'.
    If second
    parameters pa_text type c length 50.
    at selection-screen on date.
      if date is not initial.
        concatenate 'Today is' date into  pa_text.
      enidf.
    at selection-screen output.
       "show it as read only
       loop at screen.
        if screen-name = 'PA_TEXT'.
               screen-input = abap_false.
              modify screen.
        endif.
       endloop.
    Regards
    Marcin

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

  • Dynamic selectionof selection-screen

    parameters table1.
    parameters input.
    i have enter dynamic text into table1
    like table1 = vbak.
    i like to see instead of input as table1(i.e vbak) on selection-screen
    when user dynamically gives value of table1 
    help me plz
    <b></b><b></b><b></b><b></b>
    Message was edited by:
            shravan ramidi

    Hi Shravan
    declare like this
    PARAMETERS : COMPANY LIKE BSEG-BUKRS.
    or you can declare like this
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 25(23) text-002.
    SELECT-OPTIONS: S_ebelp FOR eKPO-ebelp.
    PARAMETERS:p_lifnr LIKE ekko-lifnr .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    and on the editor goto Text elements then goto change mode and there goto selection texts there u declare your name which you want to display outside for user
    Reward all helpfull answers
    Regards
    Pavan

  • Dynamic text in Long text of message

    Hi All
    Can you please guide me that how dynamic text are maintained in long text of the messages.
    I have used variable name between 2 ampersands 1.e. &var&..but its nt working. Where could be the mistake ?
    Regards,
    Shreya

    The problem is... I want to show an error message. and when user double clicks on that message, a pop up screen should come showing the detailed description of that message which also contains some dynamic text...eg:
    The message is "Please maintain ABC field for Company Code &1".
    To this short text i want to give a long text description eg:
    "For the Combination of Compay Code &2 and Account &3, ABC field should not be blank".
    Dynamic text element in short text is working fine,  but in long text it is showing &2 and &3..,, ie these are not populated with values.
    Where could be the mistake ?

  • Printing a movie clip with dynamic text boxes

    I've got a certificate inside a movie clip, and i want the
    dynamic text box to dispay the user name, but for some reason it is
    coming up undefined, even though i have the dynamic text box set to
    finalname = _root.inputname, but it comes up as undefined on the
    screen. :( Can anyone tell me where i am going wrong?
    Is there a way to print just a specific movie clip on the
    screen? I can only print all the frames in the movie and without
    the dynamic text box... any help would be greatly
    appreciated.

    assign the mouseChildren property of your movieclip to false.

  • All dynamic text links going to same link even though URLs differ

    Hi,
    I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only. Am I supposed to set something here to stop it from doing so?
    Any help appreciated.

    Ok, I figured out why all the links are going to the same page. Well all the other links are under the first headline, which I am making transparent for the others to appear, but not removing from the stage. Hence even though the first headline is not visible, it is still the top link on the screen, causing everything to go there.
    Any suggestions on how I can make it appear below the newly visible headline?? They are all arranged one below the other.

  • DISPLAY DYNAMIC TEXT ON THE APPLICATION TOOLBAR

    Hi Abappers,
    On the application toolbar i want to display dynamic text depending on which button is selected. can this be done...
    regards,
    Mansi.

    write the conditional setting of titlebar in
    at selection-screen output .
    if <condition> eq 'X' .
        set titlebar 'MAIN' with 'Maintain' .
      else .
        set titlebar 'MAIN' with 'Display'  .
      endif .
    now double click on MAIN, the system will ask youto creat the title click yes
    in the title field you can write static text along with & sign
    (& Test & & &)
    now if you say
    set titlebar 'MAIN' with 'Display'  '1' '2' '3' .
    it will display as
    Display Test 1 2 3 .
    Regards
    Raja

  • Refresh dynamic text of decision step in UWL

    Hi Experts,
    I have a custom decision task with a dynamic title that is send to the approvers (could be multiple) for processing from UWL.
    The text ís :  "User &1 raised a leave request for the date &2. Approval needed."
    Where &1 is the user initiating the workflow and &2 is the date for which the leave request is raised.
    The decision step is shown correctly for all the approvers in the UWL.
    Problem:
    The user has an option to change the date on which he wants to apply the leave, before the decision step is acted upon by any of the approvers.
    in such scenarios, though the workflow containers are updating correctly, the dynamic text shown in the UWL still shows the old date.
    Can you please let me know if there is any way of 'refreshing' the text of the decision step that is already displayed in UWL so that it always shows the correct date.
    Thanks,
    Cay.

    Hi,
    There are two thing you need to do.
    First, you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Note : If u do not configure SWFVISU then WD application will not lauch but user will get SAP gui screen for processing it.
    xlm code must be changed corresponding task for both case.
    Thanks and ragards,
    SNJY

  • Agentry - Dynamic text for Platform wizard button?

    Hi,
    I want to reuse the same screen set navigating from 2 different places.
    The text for the "Move to the Next Screen (cannot back up) platform wizard button should be different in each case to make it easier to understand for the end user. Apparently the only option is to hardcode a text, but I would like to know if it could be possible to use a rule or something to display a dynamic text for the wizard button.
    Thank you,
    Marçal

    Hi Marcal,
    Unfortunately that idea was shot down a while ago, though it would be nice.  The general dividing rule I use is if the question is appropriate for Agentry regardless of whether it is installed standalone (like Work Manager 5.3) or on any version of SMP, then it should be in SAP for Mobile.  These are usually application development or customization types of questions.  The Agentry landing page is in SAP for Mobile for that reason.  Though the line is definitely getting blurry now that Agentry apps are moved or moving to the SMP.
    If the question relates to Agentry issues which directly involve SMP (usually installation, implementation, or configuration), then it should be in SAP Mobile Platform Developer Center.
    I am planning to put together a blog or several to help go through where and why different posts should be placed.  Also one about tagging!
    Thanks, Mike
    SAP Customer Experience Group - CEG

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

  • Bold and italic fonts in dynamic text fields.

    I have a dynamic text field with the text "IMAGES". The font
    is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts
    embedded. Now, I use Actionscript to change the text:
    textField.text = "IMAGES";
    Suddenly the text disappears! Now, it seems to me that since
    BOLD and ITALIC are checked on the text field, changing the .text
    value should simply change the text itself, which should then be
    rendered in bold and italic, and since I have bold+italic Latin
    glyphs embedded, it should display properly. But what's clearly
    happening is that when I set the text using Actionscript, it is
    attempting to display the NORMAL font instead, and since it's not
    embedded, it won't display. I know this because if I create another
    proxy text field off the screen and embed the NORMAL Arial glyphs,
    the original text field's text will display just fine - as
    normal-weight text.
    But why is this? Do I have to use a TextFormat object to set
    the text to Bold and Italic EVERY time I want to dynamicaly change
    the text? This seems silly. I simply want my text field to be bold
    and italic every time the text changes, and NO normal text!
    Any ideas?

    I met the same problem using ActionScript3 and Flash Professional CS5. There are two problems with dynamic TextFields:
    - When you set style "Bold" for a text field in CS5, the "bold" property is not available in the TextField object in ActionScript, its defaultTextFormat.bold is alway false; I don't know if we can get this property anywhere else.
    - When you change the text of the dynamic TextField object, its style changes to normal no matter whether it was bold previously.
    This is really a bug in TextField, Adobe should fix this to implement TextField in an expected way.

  • Use 2 different fonts in a dynamic text field with tf.htmlText?

    i've got a dynamic text field on the screen and all of my
    fonts embedded. is it possible to use 2 different fonts when
    dynamically setting the fields text with the htmlText property?
    i've tried the <font> and the <textformat> tags and
    neither work. I can set it once via a texformat object, but that's
    it.
    thanks

    you're answering all of my questions today aren't you? :)
    right, i think this will be hard since my data is all comming
    from XML and i have no way to specifically set text ranges as
    different fonts within a string.
    i've told the developers to just use images for the special
    characters.

  • 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

  • Dynamic text links

    Can anyone help with this? I'm trying to get text on a screen
    to link to documents (that will be on a CD, currently on my hard
    drive) such as pdf, txt etc. Using Flash 9.
    Thanks.

    Thanks again for your reply. Since my last posting, I have
    gotten mostly everything figured out except the main issue, which
    is creating a link to documents from text. In the following code I
    was able to load dynamic text from an external txt file and I
    inserted an html link in the txt file but I don't want to open a
    browser link, but rather a file on CD or hard drive:
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("test.txt");
    function textLoaded(event:Event):void
    getStart_txt.htmlText = textLoader.data;
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoaded);
    So everything looks good, except how do I get the html link
    in the text file to open a doc instead of a url? Or maybe something
    in your post will work.
    Regarding buttons and code, this is from a Flash website:
    "So you just started AS3.0 full of excitement and ready for
    some coding challenges, you start coding your first button and
    suddenly, horror, you end up with "WARNING: Actions on button or
    MovieClip instances are not supported in ActionScript 3.0. All
    scripts on object instances will be ignored." or "1119: Access of
    possibly undefined property onPress through a reference with static
    type flash.display:SimpleButton.", indeed the good old AS2.0 event
    system is not working anymore in AS3.0: onClipEvent, onPress,
    onRelease, onLoad, onMouseDown ..etc, have become things of the
    past!!!
    What happened? well basically the whole event handling system
    has been revamped in Actionscript 3.0 and we are going to have a
    quick look at it."
    When I select a button in Flash 9, the error message I get is
    "Current selection cannot have actions applied to it."
    Thanks.

Maybe you are looking for