change the variable

I need to take a variable with the name "11.swf" and limited to just the number.

I know that this code is wrong, but it gets the idea across.

on (release) {}
page var = "11.swf";
PageNumber var = (page-".swf");
trace (PageNumber);
}

I want to go back 11 the function trace

You could do:

var pagenumber = page.split(".") [0]

Tags: Adobe Animate

Similar Questions

  • change the variables in a smart camera by a remote computer

    Hello

    I have a smart camera NI1722 and I want to change some variables inside the camera by a computer which is connected to the camera.

    Is it possible to change the variables inside the camera from a computer outside? On the computer we program with CVI. We have a RS232 and TCP/IP connection.

    Anybody can help us?

    Thank you

    Oliver

    Hi Oliver,.

    You use a LabVIEW or Vision Builder AI program the smart camera?

    There are several ways to Exchange data between a smart camera and CVI on the host computer.

    The easiest way is probably to use shared variables.

    If you use LabVIEW to program the smart camera, the following article explains how to create and deploy shared on the target variables.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4679

    If you use Vision Builder AI, first connect to the smart camera, then select Tools > Variable Manager...

    Select the tag System Variables, and then click Add to create the variable for the data you want to share. Be sure to select publish it on the network box.

    You can set the value of these variables in Vision Builder, using the step set the Variable, located in the tools palette.

    And a lot of steps allow for use directly in their configuration page, clicking the arrow to the bottom of some digital controls.

    Now, on the side of the CVI, this example shows how to connect, read and write variables that you created on the smart camera.

    https://decibel.NI.com/content/docs/doc-3806

    I hope this helps.

    Best regards

    -Christophe

  • Possible to change the variable cpQuizInfoPassFail through advanced actions?

    Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,

    Doug Jackson

    Hi Doug,.

    I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.

    If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.

    Lilybiri

  • Dynamically change the variable substitution for the region title

    Is there a way to update the title of a region when you use variable substitution (for example. P1_TITLE_DATE)? I use a dynamic action to update the region-, but it does not update the title. Does anyone have a work around for this without submitting the entire page?

    Hello

    You can run code JavaScript change the title of your region.

    $("#MY_REGION div.rc-title").text("New Title")
    

    JQuery selector code depend on your model and its theme.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Change the variable scope?

    Hi all

    Is it possible to change the scope of a variable in a BPEL process?

    Thank you

    You can move the declaration of the variable to the correct scope.
    If you view the source code you can copy and paste the variable... definition

  • How can I change the variables in a fitting model?

    I use the VI of the restricted non-linear curve adjustment to adjust a non-linear curve and I use it in mode where provide you the reference to the VI to the fitting model. (Dark teal blue wired to the fitting vi)

    In my adjustment settings I n1 and d (refractive index and thickness), however, I also have settings that I would change my front panel such as the wavelength (lambda) and index of refraction n0 and n2 from the surrounding media. I just insert these values as constants before (laying down 1,519, etc.) but now I need to change them without having to rewrite the reference to the VI each time. How can I do this?

    Use the entrance of 'data' (on the top of the conpane but not identified in the contextual help window). This a Variant data type, so you can plug anything for her.  You can use a cluster or to cases where all the data are of the same type a table.  Use a cluster typedefed with named items and it becomes very easy to document what is happening in the IA function. Use the variant of the function given inside the function VI with a constant pile of typedef wired for the type of input data.

    Lynn

  • change the Boolean variable on the stage

    Hello! This is my first post here! so I've been playing for a while with the Adobe Edge animate for a while and it's pretty cool and I am trying to create a super basic layout with a video loop, and when the user press the button, the video plays until ongoing and then starts a new. the button it simply changes the variable state of false to true, pretty simple, but for some reason, it does not. I'm an artist, so I don't know much about code in addition to if/else haha

    Here is the code on the stage (it is put on the CompositionReady):

    var loop1 = sym.$("loop")[0];
    
    var nextLoop = new Boolean();
    console.log(nextLoop); //false
    
    loop1.onended = function(e){
    if (nextLoop == true){
         // Show an element
         sym.$("loop2").show();
         // Play a video track
         sym.$("loop2")[0].play();
         }
         else{
         loop1.play()
         }
    };
    
    

    and here is the code for the button:

    sym.getSymbol("next_btn").play(); //fade out
    //change nextLoop state
    sym.getComposition().getStage().nextLoop = true;
    
    

    I'm pretty sure it's a syntax error, but I don't really know how to fix it

    any ideas?

    Thanks in advance!

    Hi rbencz

    You will need to create a global variable so that it works properly, I commented on 2 lines I added:

    sym.setVariable ("nextLoop", false); Create a new global variable called 'nextLoop' and set the value to false

    loop1 var = sym.$("loop") [0];

    loop1.onended = {Function

    nextLoop = sym.getComposition () .getStage () .getVariable ("nextLoop"); Get the Global Variable and assign a local variable

    If (nextLoop == true) {}

    Display an item

    SYM.$("loop2"). Show();

    A video track

    SYM.$("loop2") [0]. Play();

    } else {}

    loop1. Play()

    }

    };

    And then the button, place the following code:

    sym.getComposition () .getStage () .setVariable ("nextLoop", true); Change the value of the variable global "nextLoop" true

  • How to change the directory where the files are placed in other applications to access?

    ESR running on Centos (RedHat) 5 & 6. Because of the way my system is set up, I would change where Firefox updates a file when they need to be accessed by another application (for example, a .doc file). The default is to place them in / tmp, which works for most people, but does not work in my particular installation. (Among the programs that I use to read some files are actually on another computer, but can be started automatically from the computer, I'm browsing). I need to place these files in a network directory, so that the other computer can see.

    I looked into: config, but can't find anything pointing to/tmp. I hope that it is one of these "add a new line to about: config ' things that are supposed to be (from bones), but can be changed if necessary.

    Thank you
    Ted Miller

    You probably can make only by changing the variable of environment TMPDIR = / tmp to point to this network drive.

    You can start Firefox via a script file if you want to do this for all applications.

    #!/bin/sh
    
    export TMPDIR=<path to tmp directory>
    cd <path to Firefox>
    ./firefox
    
  • How can I change the text in a string of Coldfusion?

    Hello! I have a ColdFusion variable, which contains a URL:

    "For example, it looks like to <iframe width="640" height="360" src=" "/ / www.youtube.com/embed/XXXXXX" frameborder= "0" allowfullscreen>< /iframe >.


    I want to do is replace the width of "640" by that of "450" and height of "360" with "253". I'm passing a string in an 'if' statement that will change the variables if the conditions are met. I can't change the variables before making it a string. I need to change the variables.


    What is the best way to do this in ColdFusion? I don't know this language (my expertise is more in JavaScript and PHP), I appreciate any help you could give me.


    Thank you very much for your help!


    BP

    Take a look at the Replace() function. It allows you to replace one substring with another.

    See you soon

    Eddie

  • Change the case on several documents

    Hello!

    I'm very new to scripting, and I have the following script that is "Upper" text and change for real uppercase. I work with ID CS 6 on Windows XP.

    The script works on a single document, if there is an open, if not, it asks for a file and process all INDD files in this folder.

    That's what I have:

    if(app.documents.length != 0){
        processDocument(app.activeDocument);
        alert("Done!");
        }
    else {
        _folder = Folder('~/Desktop').selectDlg("Select folder");
        if(_folder == null) exit();
        _files = _folder.getFiles("*.indd");
        if(_files.length == 0){
                alert("No INDD files in the selected folder!");            
            }
        else {
            for (i=0; i<_files.length; i++){
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
            _inddFile = _files[i]
            doc = app.open(_inddFile);
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;      
            processDocument(doc);
            app.activeDocument.close(SaveOptions.yes);
            } 
        alert("Done!");
        }
    }
    
    function processDocument(doc) {    
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.capitalization = Capitalization.allCaps;
        app.findGrepPreferences.appliedCharacterStyle = 'Red';
        var _results = doc.findGrep();
        app.findGrepPreferences = app.changeGrepPreferences = null;    
        _length = _results.length;
        for (i=0; i<_length; i++) {
            _results[i].texts[0].changecase(ChangecaseMode.uppercase);
            _results[i].texts[0].capitalization = Capitalization.normal;
            _results[i].texts[0].appliedCharacterStyle = 'Blue';
        }
    }
    

    The script works well on a single document, but for some reason any that it does not work on several documents. I try the script on 4 files with this content (the colors are added in the text only to help verify the results):

    Whenever the first or the first two documents are processed correctly, the others are not processed at all. But I get no error message. Where is the problem?

    Any help would be greatly appreciated!

    Luca

    I tried to recreate your problem once again and I don't have something similar. I know it's not normal, but mine started when I changed the variable i in the second. I see that they have a different scope, but somehow she made the difference. Could you try it by chance?

    #target indesign
    if(app.documents.length != 0){
        processDocument();
        alert("Done!");
        }
    else {
        _folder = Folder('~/Desktop').selectDlg("Select folder");
        if(_folder == null) exit();
        _files = _folder.getFiles("*.indd");
        if(_files.length == 0){
                alert("No INDD files in the selected folder!");
            }
        else {
            for (i=0; i<_files.length; i++){
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
            _inddFile = _files[i] ;
            doc = app.open(_inddFile);
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
            processDocument(doc);
            app.activeDocument.close(SaveOptions.yes);
            }
        alert("Done!");
        }
    } 
    
    function processDocument() {
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.capitalization = Capitalization.allCaps;
        app.findGrepPreferences.appliedCharacterStyle = "Red";
        var _results = app.activeDocument.findGrep();
        $.write(_results);
        app.findGrepPreferences = app.changeGrepPreferences = null;
        _length = _results.length;
        $.write(_length);
        for (s=0; s<_length; s++) {
            _results[s].texts[0].changecase(ChangecaseMode.uppercase);
            _results[s].texts[0].capitalization = Capitalization.normal;
            _results[s].texts[0].appliedCharacterStyle = 'Blue';
        }
    }
    
  • Captivate 8 javascript error cannot find the variable cp

    I created a responsive project with Captivate 8 trial (windows).  The presentation will be to load and play locally, but when you go from a server, the presentation hangs on the preloader. He won't play in any browser. Safari on Mac Error Log shows the following errors:

    Cannot find variable cp

    Error /Du file / line
    cpInitindex.html: line 17
    initializeCPindex.html: line 25
    constructDIVsindex.html: line 59
    (anonymous function)index.html: line 71
    bCPXHRLoader.js: line 37
    (anonymous function)CPXHRLoader.js: line 37

    A patch would be appreciated to Adobe.  We are trying to launch a project of e-learning of Captivate on July 31, 2014.

    After reading blog after blog, I discovered the Captivate team changed the variable "cc" to "CP" in the API.  With the previous version of Captivate installed 7 caused the error for the variable javascript missing "cp".  Uninstall the previous version of Captivate and publish the presentation, once again resolved the conflict.

  • Change of Variables Sub does not immediately on Calc dynamic effect

    Hello

    We recently had some strange behavior on the Essbase 11.1.1 server.

    There was a member dynamic calc that depend on an environment variable (current month), when users change the variable for the next month it not to take the most recent value and gives not value for the next month, instead IT displayed last month does.
    Users have checked on the planning and financial reports.

    But when the Essbase database is stop and started what he done. He recovered properly the new value.

    Is this a bug or an expected behavior?

    Thank you!

    It is expected that the behavior stated below in the SER60.

    To ensure that a new value of variable substitution is available in formulas, definitions of partition and security filters, stop and restart the application. All other uses of > substitution variables are resolved dynamically when it is used.

    You can see the section in parameter substitution variables in the link below.

    http://download.Oracle.com/docs/CD/E12825_01/EPM.111/esb_dbag/frameset.htm?dotcreat.htm#dotcreat1053369

  • Change the order of the variable by number

    Working in 2013 Teststand on equipment that is shared by several developers.  It seems that something has changed with the way in which the variables are classified in the Variables pane, but cannot identify how to change back, or who may have changed.

    I have a list of FileGlobals which are numbered sequentially, (Test0, Test1, Test2, etc.).  Previously, they have been displayed in the pane in the same sequential order.  Now, the variables are classified based on the first digit (Test0, Test100, Test10, Test11... Test18 Test19, Test1, Test20...).  It is more difficult to go through the list in the order during debugging, especially since there are more than 100 of them.  Any ideas of how this could have been changed and how to change it back?  Thank you.

    GSinMN

    Not sure if it of right or not, but at the top of your variable component for each column, you can click on the column header.  It will change the order.  There are 3 modes.  If an arrow appears that means that the column is sorted from A to Z.  If an arrow appears it means that the column is sorted Z.-a.  If you do not see an arrow, it means that the column is sorted according to the index in which the variable exists in the file.  You can click on the column heading to change to each mode.

    Hope this helps,

  • Can I change the values of the variables in the variables view control?

    I want to use the variables view control in Labview. I see only the values, but I can't change the values or create new Variables. Will there be a chance to do?
    I use Labview 8.6.1 and Teststand 4.1.1.

    You must activate the edit mode for the ApplicationMgr, by setting ApplicationMgr.IsEditor to true. Note that you must have at least the license of the custom editor for teststand so that it works (otherwise it will prompt the user to activate a license with these privileges).

    Hope this helps,

    -Doug

  • How can I create an event listener for the change of variable shared or similar?

    Hello

    I have a 'big' 6 devices communicating measurement system via the TCP protocol. The system is designed to use REST (the representative State transfer) with JSON (JavaScript object notation).

    Now, I need to add labview program to this environment. I've implemented a solution to 'work' with the help of this forum. Thank you for this! Now, I need to do better (currently no timestamps, large delays, etc.).

    I currently have a web service deployed using http-get as input. My web service .vi is just passing the web entrance to shared variables that are then questioned in real measurement program. Reason is that when I put the measurement program directly to the web service, it does not (something about rights and dependencies). Measurement program includes one third of the owners (Instron) drivers. Also I would not direct access via the network to our mechanical testing device potentially dangerous.

    Now, I want to change the message from the web services .vi commensurate .vi. Currently I have a loop of 10ms to query for changes in the shared variable. Is there a better way to do this? I thought create a listener to the shared variable change events.

    In addition, if you have any ideas (preferably, working code example) how to make the interface between labview and TCP-JSON I would really appreciate it.

    BR,

    Juha

    Currently in LabVIEW, the only way to create an event listener or event NSV is to use the DSC toolkit.  Most of the time the DSC is a very expensive tool that simply encapsulates the functionality that is built into the motor of the PSP and OAS and which is accessible to anyone who can program in LabWindows/CVI.

    http://zone.NI.com/reference/en-XX/help/370051P-01/CVI/libref/cvicnvcreatesubscriber/

    If you want to collaborate, I would like to create a small library of LV that would create a base SV events using a vi LV reminder or possibly passing return user LV event which is how works the DSC toolkit.  I asked OR several times to explain how do this and they're very tight discreet about it.  I guess that they do not want to give users LV less reason to buy the DSC.

Maybe you are looking for

  • Accident com.apple.dock.extra

    I often com.apple.dock.extra a crash. I have an iMac 27 inch mid-2011 OS X 10.8.5 This is the report of accident: Here is my log: https://drive.google.com/open?id=0B2yHNkvYnyx-LThpZW1uOVZPMlE Can you help me? Thanks a lot for your reply and your help

  • Touchpad scroll slider (?) is not slippery.

    Hi, I have a HP G71 Notebook PC. Operating system is Windows 7 64 bit. The pad touch slider (?) scrolling does not work. I tried to go to the options of 'Mouse', but could find no solution. It worked perfectly until a few weeks ago, when I tried to u

  • G729 installation on the unit instead if G711

    Hello I do unity 404 UM installed under Win Server 2003, out of area Exchange 2003 Service Pack 1, CCM 4.0.2a I did a number of facilities by selecting G711 so very uncomfortable with it, but never made a 729 installation. The customer wants to use G

  • 4402 controller and Microsoft IAS

    We have recently installed a 4402 WLC and all our standalone AP improved to of LWAPP. Each of the previous AP had an entry in IAS Radius. Can they be deleted without IAS problem now? As far as I can see IAS logs all authentication requests are receiv

  • Smartphones Poynt blackBerry for PlayBook

    It does not appear in appworld - I am in Italy, is anyway around that? Thanks in advance...