Dynamically change the text during the narration

Hello!

I have a file that contains the narration. The contents appear gradually on the stage reading of the narrative.

On the first image, I have added a dynamic textfield, I called: soustitrage_txt (would be "caption_txt" in English).

On another layer, on the same frame, I added this code:

soustitrage_txt.html = true;
soustitrage_txt. AutoSize = 'left ';
soustitrage_txt. Selectable = true;
soustitrage_txt. Multiline = true;
soustitrage_txt.WordWrap = true;

var txtFormat:TextFormat = new TextFormat();
txtFormat.size = 20;
txtFormat.font = "Arial";

txtFormat.bold = true;

I exaggerated the value, to make sure it really does not work...


_Global.mydata = new LoadVars();
_Global.mydata.load ("P1.txt");

_Global.mydata.onload = function() {}
soustitrage_txt.setTextFormat (txtFormat);
};

I need to show the first sentence around the 115 frame, in which I entered this code on my "action layer":

soustitrage_txt. Text = _global.myData.phrase1;

A positive point, the text is displayed (yay!), but the negative is that the formatting does not work...

Finally, when I want to move to the next sentence, around the frame 195, I get the same code (with only a variable to call another name):

soustitrage_txt. Text = _global.myData.phrase2;

And now it shows me "undefined"... :/

Here is an overview of my external text file (I translated it... since it is in French normally):

phrase1 =Hello and welcome on this guide that will show you how to adjust your workstation step by step. &
statement2 issetting your workstation correctly will prevent you from having any discomfort as a result of a bad posture or a bad setting. &

phrase3 =... &

(and so on...)

Thank you very much!

Geneviève

If you place these signs at the end, followed by a carriage return as you seem to be by what you posted, don't do it. Keep them adjacent to the variables that they define.

phrase1 = Hello and welcome on this guide that will show you how to set your workstation step by step.

& statement2 = setting of your workstation correctly will prevent you from having a discomfort that can result from poor posture or incorrect setting.

& phrase3 =...

&

Tags: Adobe Animate

Similar Questions

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • Dynamically change the order of the components

    Can I dynamically change the order of the components (input text entry LOV, etc.)  inside the layout of the Panel form?

    Currently in 11.1.1.7 but may be considered if necessary upgrade

    Yes, you can.

    See the example attached to this bug: https://java.net/jira/browse/JAVASERVERFACES-2390

    Dario

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    
  • Dynamically change the cursor?

    Hello

    I want to be able to change the cursor that appears when I rollover text. Basically, I have text/button that can only be clicked when another action has been performed, I wish that this button at the start have the default cursor, and then change the cursor/pointer when the user has run this other action.

    Is it possible to dynamically change the cursor through the code?

    Thanks for your help!

    $("button").css({'cursor':'default'});)

    More information: cursor CSS property and HTML DOM Style cursor property

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • Dynamically change the path of the report

    Is it possible to dynamically change the path where reports are saved. TestStand 4.1.1

    Glennjammin,

    You can set a path to the specific report for any sequence that you run via the entry points of process model using the reminder of your sequence ReportOptions. It will allow you to change the current settings in the Options report (including the path) for the execution of this sequence. This allows each of your sequences have unique report options.

    If I understand your question, you want to do is exactly what is meant recall ReportOptions.

    -Jack

  • Dynamically change the language in cvi

    Hello

    I would like to know if it is possible to dynamically change the IUR in English language to Russian?

    I have a program written in cvi and I need to be able to scwitch English to Russian UI when the user clicks a button...

    Thanks in advance

    Yes: You must create a resource of language of the dossier and can then use the LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar

  • How do I dynamically change the the number of vCPU and amount of a virtual computer memory?

    Hi all

    My first question is how do I dynamically change the number of vCPU and amount of a computer virtual memory when the virtual machine is running? If so, this may be achieved by writing a few scrpits to inform the hypervisor?

    My second question is, I can start a virtual machine in KVM with the number of vCPUs and amount of memory configured in the startup script. I don't know if this is supported in vmware ESXi?

    I couldn't find the answer in the ESXi 5.0 user guide.

    Your suggestion will be highly appreciated.

    Cheng Wang

    http://sparrowangelstechnology.blogspot.com/2012/11/hot-add-of-CPU-and-memory-to-virtual.html

    You can change the ram and the CPU, but it must be enabled.

    by default, only it isn't.

    See this link to change the settings of vm via powercli

    http://ICT-freak.nl/2010/05/07/PowerCLI-script-to-schedule-memory-and-or-vCPU-updowngrade/

  • How to dynamically change the host name in the Pages of the URL of the APEX

    Dear gurus,

    Please advise me on how to dynamically change the hostname in the URL used in the pages of the APEX.

    For example: I have the below URL in one of the apex pages.
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    in the case of a Migration of this apex from one server to another (for example, TEST the PROD box), this / these pages are wrong because the different host id name in the PROD box.

    Is it possible that we can dynamically change the hostname in the URL used in the pages of the APEX.

    for example
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    should become

    owa_util. REDIRECT_URL ("http://adminetuxdb09.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    It's adminlxdb03.texas.org (TEST) at adminetuxdb09.texas.org (PROD).

    If the page has no error...

    Please notify.

    Thank you
    Sheik

    You don't need to provide the hostname while redirecting in the pages of the apex

    owa_util. REDIRECT_URL ('f? p ='| v ('APP_ID') |) ": 151:" | " v ('APP_SESSION'));

    should work just fine.

  • is it possible to dynamically change the industrial action.

    Hi friends,

    I have a scheduler job to call the shell script. Is it possible to dynamically change the industrial action (IE change the name of the shell script based on requirement).

    My basic idea is to have a scheduler job to call different shell scripts based on requirement.

    Thanks in advance
    Jeeva.

    You can try using DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE with:

    attribute => 'JOB_ACTION'
    
  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Dynamically change the color of the text substring

    Hello!

    I'm working on a simple serial terminal and I would like to change the color of each line depending on whether the message is sent or received. I have an indicator of string in which I add all messages, sent or received.

    My problem is that when I change the color of a substring by using a property node, all the text in my chain indicator changes. Here is a small Video that shows my problem (my real VI is a little too big to put here but the part of string works the same. I concatenate, keep the clues and apply the property node):

    Result:

    Any idea on how I could change the color of the new line? It seems the selection doesn't really work, because everything in the chain takes the new color.

    Thanks in advance,

    Tim

    PS: I've seen a web-based solution in which the property node must be extended for every line, of course it does not work for me as the number of lines changes dynamically.

    The problem you have is that the string contains no format information and it does not keep the indicator.  You will need to set the font.color in each line, each time you receive a new message.  See my post here - http://forums.ni.com/t5/LabVIEW/Different-fonts-in-string-indicator/m-p/1601602/highlight/true#M5823...

  • dynamically change the length of the text element

    Hi all
    can it is possible to change the length of the dynamic text element without use of CCP.

    Please answer...

    Hello

    Read this article


    François

  • How to dynamically change the color of the text in the lookout?

    I wish that the color of the text to change according to a different value.  How can I do this at Lookout?

    I tried to find connections to text insertions and expressions but have failed.

    Thank you

    Dave

    Change the display text property, setting the Style of background as "Transparent".

    Create a gauge object. It is capable of changing color on different conditions. Put the gauge above the text display.

Maybe you are looking for

  • Cannot retrieve the password.

    Today I got the new version of Skype. When I tried to connect with the password that I used, it says it's wrong. Of course, I tried to get it back. I got to the point where I type in my email address, but when I press 'Send Email', it redirects me to

  • 11 ITunes doesn't open in El captain

    I just upgraded to El Captain 10.11.3. But now it seems that iTunes 11 does not open. Someone has ideas how to rectify this please.

  • Updates are always safe to download and install on my computer?

    After you receive the message that I have updates to download and install, is ALWAYS completely safe to do? With my last PC, I got a typical announcement, completely legitimate-looking that I had "several important updates" that I needed to download

  • Office questions

    Help! I can't access anything that either a black screen on my desktop, my computer is 7 years old. I have a dell windows desktop.

  • WRT160N: Getting dynamic IP address 169

    Hello! Linksys WRT160N, bought yesterday and I want it behaves same way did my Buffalo WHR-HP-G54. So I live in apartment building for students, and we don't have modems, just the RJ-45 ports in the wall. If I plug the cable directly from the wall of