app.addEventListener is not defined

Hello

I'm building a pallet via scriptingUI. I am trying to create a palette that changes depending on what you selected. Isn't this possible in AE?

This is a test code just to get out of trouble:

function SelectionViewer()

{

var selectionViewer =;

this.buildUI = function (thisObj)

{

Dockable panel or pallet

var pal = (thisObj instanceof Panel)? thisObj: new window ("palette", "selectionViewer", undefined, {resizable: false});

Var = pal.add ("statictext", 2, 2, 201 (20) and "Selected Item");

}

Methods

selectionViewer.updateSelected = function()

{

testText.text = app.project.activeItem;

}

This.Run = function (thisObj)

{

this.buildUI (thisObj);

app.addEventListener ("afterSelectionChanged", selectionViewer.updateSelected);

};

}

new SelectionViewer () .run (this);

It gives me this error:

"Cannot run the script on line 24. Funtion app.addEventListener is not defined.

Any help?

Thank you

Wagner

I think that the 'events' are only the keyboard and mouse events that occur within your group (click, mouseover, etc..)

Dan

Tags: After Effects

Similar Questions

  • Illustrator Extension builder 3: app is not defined

    Hi all

    I'm writing a small extension for illustrator, this is my test code:

    function checkFunction)

    {

    try

    {

    alert() 'try catch block');

    var theDoc = app.activeDocument;

    }

      Wrestling (error( )

    {

    alert()"error caught'+);

    }

    }

    An error is caught: errorReferenceError: app is not defined.

    What is the problem in my code?

    Thank you.

    G

    What is Javascript or Extendscript?

    If this is Javascript, you must call evalScript in the CSInterface class as below.

    CSI var = new CSInterface();

    csi.evalScript ("alert (app.activeDocument.name)');

  • app.settings.setSetting is not defined

    HY guys,.

    I try to use app.settings.setSetting () to register a string like this:

    app.settings.setSetting("test", "keytest", "keyvalue");
    

    I get this error:

    Function app.settings.setSetting is not defined.

    No idea why?

    app.settings.haveSetting works.

    I use AF CC 13.0, 2014.

    Hello

    You must instead use saveSetting .

    app.settings.saveSetting(sectionName, keyName, value)
    
  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • Safari and App Store are not open. Recently updated to El Capitan 10.11.4

    Safari and App Store are not open. Safari icon will bounce back and not open. App Store comes up with "App Store close unexpectedly"

    Please read this message before doing anything.

    This procedure is a diagnostic test. It is unlikely to solve your problem. Don't be disappointed when you find that nothing has changed after you complete it.

    The test is intended to determine if the problem is caused by a third-party software that loads automatically at startup or logon, by a device, by a police conflict or corruption of system files or some system caches.

    Disconnect all devices wired except those required to test and remove all the expansion cards from secondary market, as appropriate. Start in safe mode and log on to the account of the problem.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for additional instructions.

    Safe mode is much slower to boot and run as normal, with limited graphics performance, and some things work at all, including an audio output and a Wi - Fi connection on some models. The next normal boot can also be a bit slow.

    The login screen is displayed even if you usually connect automatically. You need your password to log on. If you have forgotten the password, you will have to reset it before you begin.

    Test in safe mode. Same problem?

    After testing, restart as usual (not in safe mode) and make sure you always have the problem. View the results of the test.

  • blackberry.bbm.platform.users.shareContent is not defined

    I'm trying to share content via BBM with my app, but when I use the blackberry.bbm.platform.users.shareContent function, I get the following error that it has not defined:

    TypeError: 'undefined' is not a function (assessment 'blackberry.bbm.platform.users.shareContent ()')

    I checked the blackberry.bbm.platform.users object, and there only the inviteToDownload function. (check the attached screenshot)

    How is that possible? did I miss something necessary?

    My config.xml file contains:

     

    <>Ermit > bbm_connectermit >

    In addition, inviteToDownload works very well and I'm using the latest version of the SDK: BlackBerry 10 WebWorks SDK 1.0.4.11.

    shareContent is not supported on BlackBerry 10.  The BBM SP session and channels that allow a communication device are not supported in BlackBerry 10.  These are supported in BlackBerry OS 5 to 7.

  • $v is not defined

    Hello

    Apex 4.2, I always used $v to get the value of any page.

    For example: var myName = $v ('P1_X_NAME');

    Recently, I've migrated my app in Apex 5 universal theme and now when I get error $v is not defined for all of the code that works very well in 4.2 Apex.

    I tried

    var MyName = $v ('P1_X_NAME');

    var MyName = $v ("P1_X_NAME");

    var MyName = $x ('P1_X_NAME');

    var MyName = $x ("P1_X_NAME");

    No the above worked. Can you please.

    Kind regards

    Animesh

    Hello

    You must migrate it for example dynamic action.

    Kind regards
    Jari

  • 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    I tried this code:

    http://help.Adobe.com/en_US/AS3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e08.html

    but it displays error: 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    SerializableAttribute public class MinimizeExample extends Sprite

    {

    public void MinimizeExample (): void

    {

    var minTextBtn:TextField = new TextField();

    minTextBtn.x = 10;

    minTextBtn.y = 10;

    minTextBtn.text = "minimize";

    minTextBtn.background = true;

    minTextBtn.border = true;

    minTextBtn.selectable = false;

    addChild (minTextBtn);

    minTextBtn.addEventListener (MouseEvent.CLICK, onMinimize);

    var maxTextBtn:TextField = new TextField();

    maxTextBtn.x = 120;

    maxTextBtn.y = 10;

    maxTextBtn.text = "zoom";

    maxTextBtn.background = true;

    maxTextBtn.border = true;

    maxTextBtn.selectable = false;

    addChild (maxTextBtn);

    maxTextBtn.addEventListener (MouseEvent.CLICK, onMaximize);

    var restoreTextBtn:TextField = new TextField();

    restoreTextBtn.x = 230;

    restoreTextBtn.y = 10;

    restoreTextBtn.text = "restore";

    restoreTextBtn.background = true;

    restoreTextBtn.border = true;

    restoreTextBtn.selectable = false;

    addChild (restoreTextBtn);

    restoreTextBtn.addEventListener (MouseEvent.CLICK, onRestore);

    var closeTextBtn:TextField = new TextField();

    closeTextBtn.x = 340;

    closeTextBtn.y = 10;

    closeTextBtn.text = 'close this window ';

    closeTextBtn.background = true;

    closeTextBtn.border = true;

    closeTextBtn.selectable = false;

    addChild (closeTextBtn);

    closeTextBtn.addEventListener (MouseEvent.CLICK, onCloseWindow);

    }

    function onMinimize(event:MouseEvent):void

    {

    this.stage.nativeWindow.minimize ();

    }

    function onMaximize(event:MouseEvent):void

    {

    this.stage.nativeWindow.maximize ();

    }

    function onRestore(event:MouseEvent):void

    {

    this.stage.nativeWindow.restore ();

    }

    function onCloseWindow(event:MouseEvent):void

    {

    this.stage.nativeWindow.close ();

    }

    }

    }

    You can not force-close a browser with the exception of a window with javascript window.

  • Boolean createjs question: Eception ReferenceError: hitBool is not defined

    This code works very well for the rating in createjs without boolean. but to prevent the partition of overlapping text, boolean is used. but I'm confused the error that I want to do the conversion of boolean. After the addition of Boolean codes. his does not work

    the console error is: Eception ReferenceError: hitBool is not defined



    /* js
    var score=0;
    var hitbool=false;

    this.movieClip_1.addEventListener('click', fl_MouseOverHandler_2);

    function fl_MouseOverHandler_2(e)
    {
      if(!hitBool){
    hitBool=true;
      text1 = new createjs.Text("LIVES: " + score, "40px Arial");
    text1.textAlign = 'right';
    text1.y = 30;
    text1.x = stage.canvas.width - 10;
    stage.addChild(text1);

      score=score+10;
      text1.text=String(score);

    }
    }

    */

    for those questions... hitbool is not equal to hitBool

    var hitbool=false;

      if(!hitBool){
    hitBool=true;

  • Eception ReferenceError: t1 is not defined

    very simple. I'm doing the collision between the circle and rect. Once I have faced the error comes from this line. but t1 is defined as the circle.

    I also tested as t1.circle. globalToLocal (stage.mouseX, stage.mouseY); but did not work.

    PT var = t1.globalToLocal (stage.mouseX, stage.mouseY);

    Eception ReferenceError: t1 is not defined

    / * js

    Drag the circle

    var tl = this;

    tl.circle.addEventListener ("mousedown", downF)

    function downF (e) {}

    stage.addEventListener ('stagemousemove', moveF);

    stage.addEventListener ('stagemouseup', upF);

    };

    function upF (e) {}

    stage.removeAllEventListeners ();

    }

    function moveF (e) {}

    TL. Circle.x = stage.mouseX;

    TL. Circle.y = stage.mouseY;

    }

    to move a rect that here is the code

    var t2 = this;

    T2. Rect.addEventListener ("mousedown", downFr)

    function downFr (e) {}

    stage.addEventListener ('stagemousemove', moveFr);

    stage.addEventListener ('stagemouseup', upFr);

    };

    function upFr (e) {}

    stage.removeAllEventListeners ();

    }

    function moveFr (e) {}

    T2. Rect.x = stage.mouseX;

    T2. Rect.y = stage.mouseY;

    hits and opacity circle goes to 0.1

    PT var = t1.globalToLocal (stage.mouseX, stage.mouseY);

    If (t2.hitTest (pt.x, pt.y)) {}

    T1.Alpha = 0.1;

    }

    }*/

    I think you might have one which hurt claimant named in your code.  you show "t1" for error, but your code in the drag circle section defines and uses 'tl' (it is TL in lowercase)

  • View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined


    SQL > create tablespace undotbs2 datafile ' / u03/undotbs03.dbf ' size 1800 m;

    Created tablespace.

    SQL > show Cancel parameter;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 900

    undo_tablespace string UNDOTBS1


    SQL > alter system set undo_tablespace = 'undotbs2' scope = spfile;

    Modified system.


    SQL > startup strength;

    ORACLE instance started.

    Total System Global Area 629145600 bytes

    Bytes of size 1220964 fixed

    180358812 variable size bytes

    444596224 of database buffers bytes

    Redo buffers 2969600 bytes

    Mounted database.

    ORA-01092: ORACLE instance is complete. Disconnection forced


    SQL > startup nomount;

    ORACLE instance started.

    Total System Global Area 629145600 bytes

    Bytes of size 1220964 fixed

    180358812 variable size bytes

    444596224 of database buffers bytes

    Redo buffers 2969600 bytes


    SQL > show Cancel parameter;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 900

    undo_tablespace string undotbs2


    SQL > alter the editing of the database;

    Database altered.


    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-01092: ORACLE instance is complete. Disconnection forced

    SQL >!

    [oracle@oel5 ~] $ cd/u01/app/oracle/admin/samp/bdump /.

    [oracle@oel5 bdump] $ tail-f alert_samp.log

    Opening of redo thread 1

    Thu Mar 13 15:50:23 2014

    View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined

    Thu Mar 13 15:50:23 2014

    Errors in the /u01/app/oracle/admin/samp/udump/samp_ora_5502.trc file:

    ORA-30012: undo tablespace "undotbs2" there is not, or of the wrong type

    Error 30012 happened during db open, close the database

    USER: termination litigation because of the error 30012

    Instance of stopped by USER, pid = 5502

    ORA-1092 marked during: alter database open...

    Hello

    You want to know why your db does not start, or you want to know about MTTR Advisory?

    Suppose you want to know why didn t start db -.

    Look at the correct error-

    Errors in the /u01/app/oracle/admin/samp/udump/samp_ora_5502.trc file:

    ORA-30012: undo tablespace "undotbs2" there is not, or of the wrong type

    To create the undo tablespace fire you bad command, missing 'CANCEL' keyword - inside

    create tablespace undotbs2 datafile ' / u03/undotbs03.dbf ' size 1800 m;

    It should be

    create undo tablespace undotbs2 data file ' / u03/undotbs03.dbf ' size 1800 m;

    Anand

  • Get the error not defined for the current document in the script

    I get a "error number: 2" "error string: myDoc is not defined" in my script.

    I modified a few scripts so that they cross my entire book and open each section (document) in my book, and run the code for each section.ext

    The code runs great and opens and closes the sections where it does not add links to text, but once, it opens a document and view text that you CAN add links, it generates this error.  Here is my code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list"); 
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find 
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! " + myCount + " hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    

    Any help is greatly appreciated!

    That ends up being my fixed/final code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! Hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    
  • Not able to deploy Applications: "the process is not defined in the descriptor.

    All the

    I have a pretty serious problem here to try to take a LCA of an environment and get in another environment.  Source and destination environments are LCES 2.5 (LCES 2 with Service Pack 2).  I have about 6 applications and there are a few extreme dependencies (one application that refers to an asset from another application) are.  I took a STROKE of all these applications in the environment of the source and ACL matter perfectly in the destination environment, but I am unable to deploy one of the applications that have extreme dependencies.  The error that I always get when I try to deploy any application that has an extreme addiction is:

    [Process name] otherwise is not defined in the descriptor.

    I tried all of the following conditions:

    (1) combined 1 LCA applications

    (2) taking several local calling areas where each ACL contains only a single request

    (3) taking several local calling areas where each LCA includes an application as well as all the extreme dependencies for this application

    No matter what I try, they deploy.  I can import the LCA and I can get the apps in the Workbench and play with them, but they do not deploy everything simply.  I also tried to manually set all the groping in the processes themselves, but that does not work either.

    Any help would be appreciated.

    I wanted to just follow the solution to my problem.

    It seems centres issue around distant circular dependencies.  In general, it seems that LiveCycle choke when two applications of each reference to another.  Note that I'm not talkinng on the true circular referencing here in which a process in the references of the application has an application B while this process refers to the initial process request.  Indeed, although I have not tested recently, I believe that LiveCycle can actually catch this kind of question.  I'm talking about circular dependencies of distant is simply when a process requests was (let's call it a1) refers to a process in application B (let's call b1) while a process in application B (call the b2) refers to a process in applicatoin has (let's call a2).  Apparently, this type of circular reference causes the deployment of applications of such choke.

    The fix was painful because I had to manually delete all distant dependencies of these two application, deploy these two requests to get in the long term and then implement these dependencies again.

    Now it seems preferable to never have 1 direction of the dependencies for any application.

  • Variable not defined session immediately after CFSET session.var = "data".

    Hello, everyone.

    Got a real head scratcher (of least for me that is.)

    Just to experiment a little, it is not (yet) project, but something I would like to as reusable code for future projects.

    I try to write code that will clear session variables when the browser is closed, - THEN - separate session variables to the client by changing and expiring cookies cfid and cftoken.

    In my Application.cfc, I have the following:

    onSessionStart:
     <cfif NOT StructKeyExists(session,"app")><cfinvoke component="components" method="setDirs" returnvariable="session.app"></cfif>
     <cfset oRequest = getPageContext().getRequest()>
     <cfset session.cookies = oRequest.getHTTPRequest().getCookies()>
     <cfcookie name="cfid" value="#session.cfid#">
     <cfcookie name="cftoken" value="#session.cftoken#">
     
     onSessionEnd:
     <cfloop index="local.cookiename" list="cfid,cftoken,cfmagic"><cfcookie name="#local.cookiename#" value="" expires="now"></cfloop>
    

    On the page that appears, I have:

    <cfset session.cookies = getPageContext().getRequest().getHTTPRequest().getCookies()>
     <cfoutput>
     <cfloop index="idx" array="#session.cookies#">#idx.getName()# = #idx.getValue()# - Expires: #idx.getMaxAge()#</cfloop>
     </cfoutput>
    

    The above is where appears the error message "Cookies" not defined in the Session  Didn't I just put session.cookies, twice?

    Thank you

    ^_^

    You can't.

    To change a browser cookies, you must communicate with the browser.  This is done when the CF server sends the HTTP response for a request for this browser.

    onSessionEnd() - by its nature - only works when it is not communicating with the browser, and has not been any communication from the browser at least the period [session timeout].  So you can monkey with the scope of the cookie all you like in there, but the changes are never sent to the browser, because the browser has long since "left the building" as it was.

    HTTP is connectionless, and the browser is not communicating with the CF Server in any case (him speak only of browser on the web server), there is no way for the CF server know that the client has closed his browser.  Everything that takes place on the client machine, and CF is sitting on the server see  Even the web server does not know what is happening on the client user interface.

    What you can do is to put the cookies and session to have a very short time, so that expire them quickly once there is no activity to refresh.

    --

    Adam

  • 1120:access of property not defined error

    to import flash.net.NetStream;

    Import mx.events.FlexEvent;

    private const CirrusAddress:String = "rtmfp://p2p.rtmfp.net/";

    private const DeveloperKey:String = "mydevkey";

    private var nc:NetConnection;

    private var myPeerID:String;

    private var recvStream:NetStream;

    private var myName:NetStream;

    protected function application1_creationCompleteHandler(event:FlexEvent):void

    {

    NC = new NetConnection();

    nc.addEventListener (NetStatusEvent.NET_STATUS, ncStatus);

    NC. Connect ("rtmfp://p2p.rtmfp.net/mydevkey/");

    }

    protected function ncStatus(event:NetStatusEvent):void {}

    myPeerID = nc.nearID;

    peerIdArea.text = myPeerID;

    }

    myName = new NetStream (nc); ERROR IS HERE

    ---------------------------------------------

    The path location type Resource Description

    1120: access of undefined property username.     P2PSample.mxml/P2PSample/src/line 30 Flex problem

    The path location type Resource Description

    1120: access of undefined property nc.     P2PSample.mxml/P2PSample/src/line 30 Flex problem

    NC is not defined in your code when this line 30 running because it runs before application1_creationCompleteHandler() is running.

    fix this.

    to import flash.net.NetStream;

    Import mx.events.FlexEvent;

    private const CirrusAddress:String = "rtmfp://p2p.rtmfp.net/";

    private const DeveloperKey:String = "mydevkey";

    private var nc:NetConnection;

    private var myPeerID:String;

    private var recvStream:NetStream;

    private var myName:NetStream;

    protected function application1_creationCompleteHandler(event:FlexEvent):void

    {

    NC = new NetConnection();

    nc.addEventListener (NetStatusEvent.NET_STATUS, ncStatus);

    NC. Connect ("rtmfp://p2p.rtmfp.net/mydevkey/");

    nsF();

    }

    protected function ncStatus(event:NetStatusEvent):void {}

    myPeerID = nc.nearID;

    peerIdArea.text = myPeerID;

    }

    private function nsF (): void {}

    myName = new NetStream (nc);

    }

Maybe you are looking for

  • Firefox or Google? Search box after accidentally hitting a few key shortcut/s

    Hello.I cleaned my keyboard of windows 7, the other day, but this time, while he was. I had firefox (26.0) open with google (normal no chrome version). I cleaned the bottom two lines ctrl keys, enter etc & all F main lines.When I looked at the back o

  • Microsoft Word hangs when recording

    Hello everyone, I have a problem with Microsoft Word on my Mac mini. Whenever I save a document twice in a row, Word crashes. I use the latest update of Microsoft software. I tried step 4 and 5 of this page, but it does not solve the problem https://

  • Name of file icons overlapping labels

    On one of my external hard drives, file name in some cases labels are overlapping the icons folder, and in others, they are far enough away from the icon. When I backed up on a new disc, the problem was transferred. Is their something in the trash to

  • HP pavilion a1600n

    Hi, on Saturday, I was using my computer normally, and then when I closed it in the afternoon, I decided to play on it at 20:00, but I noticed it's time, it does not turn, so I tried unplugging everything and unplug the power cord, power, but when I

  • Extract metadata from jpg? (photograph dates)

    Does anyone know how (or hold a VI) which can extract the metadata of jpeg images?  Specifically, I'm looking for a 'photo date taken' but it would be nice to have other tags as well. Thank you Jeremy