Pass a function when you call onClick for a button (UI)

Hello

I m now studying and I adventure in the creation of the user interface of the Script. I m enjoy!

I m having the following problem: I have added a button in a dialog box and want to tell script to execute some commands when users click the button. It is therefore a simple (bad example):

var DLG = new window ('dialogue', 'My dialogue box', [0,0,0,0])

DLG. Size = [500 500]

DLG. Location = [300 300]

var b = dlg.add ("button", [0,0,0,0], "Run")

b.Location = [20, 180]

b = [80, 30]

DLG. Show()

b.onClick = test () //the problem is here

function test() {}

Alert ("test")

}

-------

All is fair. But the onClick event fails the test of the function I m passing! What Miss me?

I know if I'm using

b.onClick = function () {}

...

}

It works... but I´d as the function to call when you call the onClick instead of directly created. Do not know if I m able to explain it better.

Thank you for the help

Best regards

Gustavo.

The standard would be...

var dlg = new Window ("dialog", "My dialog", [0,0,0,0])
dlg.size = [500,500]
dlg.location = [300,300]
var b = dlg.add("button", [0,0,0,0], "Run")
b.location = [20, 180]
b.size = [80, 30]
b.onClick = function(){ //the problem is here
test();
}
dlg.show()
function test(){
  alert("teste")
}

Tags: Photoshop

Similar Questions

  • Synchronize data when you call another VI

    Saying: I A.i and B.vi called B. I want to display a waveform to A and B collects data in a while loop.

    The question is how the waveform is updated in real time, then B is running? I tried global variables, but looks A.i isn't in the thread when you call B, so the data may not switch to A real-time.

    Any suggestions?

    You want to search for ' Producer/consumer' of info on this design pattern. It consists of a producer who share data using a Motor of Action or a queue to pass data between threads.

    Another approach might be to use a control reference for waveform display (table or graph) and use 'the 'Value' property to write to the display in a manner SIMILAR to the writing comes to the Terminal.

    Ben

  • Is it Possible to use a function when you create a table?

    Hello

    Is it possible to use a function during the construction of a table?

    I would like to browse my data returned from the db and call a function. The part where I call the function "myFunction [i]" doesn't seem to work. How can I solve this problem? I need to put the function call results in the table.

    var i: uint;

    for (i = 0; i < dataArray.Length; i ++)

    {

    dgArray = [{name: dataArray [i] .name, Type: myFunction [i]}];

    }

    Thank you!
    -Laxmidi

    Hi laxmi,

    Yes of course it is quite possible to use a function when you create a table... In your code, you made some mistakes...

    You used hooks to call the function myFunction [i]... where you are supposed to use parentheses... myFunc (i)... and other you must push the object in the dgArray but yous hould not not attribute...

    dgArray = [{name: dataArray [i] .name, Type: myFunction [i]}]; This will result in only the last table iterates in dgArray...

    So you should write dgArray.push ({name: dataArray [i] .name, Type: (i) myFunction});

    Check out the code below...


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete ="init (); » >

      private var dgArray:Array = new Array();
    private var myDataArray:Array = [{data: '1', name: 'Robert'}, {data: '2', name: 'Nicolas'}, {data: '3', name: "Bika"}]
     
    private function init (): void
    {
    for (var i: int = 0; i
    {
    dgArray.push ({name: dataArray [i] .name, Type: (i) myFunction});
    }
    }
      
    private void myFunction(i:int):String
    {
    Return 'Type' + i;
    }
    ]]>

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • Why always, I received management is not available when you use maps for the iPhone 6 and I live in the Qatar?

    Why I always get direction is not available when you use maps for the iPhone 6 more?

    Currently I live in the Qatar.

    Hi Alison, Sameh

    The reason why you see directions is not available, it's that for cards of Apple, turn-by-turn directions is not a feature that is available in the Qatar. You can search for places and satellite imagery
    Take a look at the link below for more details on what features are available in the Qatar.

    iOS 9 feature availability
    http://www.Apple.com/iOS/feature-availability/

    Nice day

  • You need to unplug the 10 pro printer when you print not for days or weeks?

    You need to unplug the 10 pro printer when you print not for days or weeks?

    ebiggs1

    Thanks for your reply.

  • Questions about privacy and security when you use Safari for Windows

    I have Itunes + Quick Time Player installed to download music and some time ago I had the opportunity to download Safari for Windows.  I used it a few times, just out of curiosity, and I noticed that it is much faster than IE7, so I plan to use it regularly, but before that, I have a few questions:

    -someone at - it tested (or uses) Safari for Windows, and what are your results?

    -What is save to use as Firefox or Opera, both recommended as alternative by our experts at the HijackThis forum?

    -the programs that I installed (Online Armor firewall, AVG 8.0 suite, MBAM with protection in real time enabled RogueRemover Pro with immune protection enabled, WinPatrol, SpywareBlaster) offer the same protection when you use Safari for browsing?

    Thanks a lot already for your answers, Advisor or thoughts on this issue.

    Mona.

    Inspiron 1501

    Win XP - SP3

    Message edited by mona7865 on 08/07/2008 06:19

  • How to change folder name by default when you use save for Web in java script?

    Hello everyone, hope you can help me.


    Photoshop has a folder name by default of images When you export using slices Save for Web . I need to change this folder name.

    How to change folder name by default when you use save for Web in java script?

    Thanks in advance!


    1325ACD7-9C89-4D20-A6BF-E9EE8B7A1D27.png

    QQ20150923-1@2x.png


    JJMack Chuck Uebele Nicolas Ribot SuperMerlin

    You can try with scriptlistener to record the code. Change to the last line of the NO to ALL dialog boxes, so that the dialog - if you wish. There are two places in the code to save the files: one where is actually saved the file, and the other where the default value is file. I have seen it changed something with it. So, you can simply use the first listing of a path in the code below.

    #target photoshop
    
    var idExpr = charIDToTypeID( "Expr" );
        var desc19 = new ActionDescriptor();
        var idUsng = charIDToTypeID( "Usng" );
            var desc20 = new ActionDescriptor();
            var idOp = charIDToTypeID( "Op  " );
            var idSWOp = charIDToTypeID( "SWOp" );
            var idOpSa = charIDToTypeID( "OpSa" );
            desc20.putEnumerated( idOp, idSWOp, idOpSa );
            var idDIDr = charIDToTypeID( "DIDr" );
            desc20.putBoolean( idDIDr, true );
            var idIn = charIDToTypeID( "In  " );
            desc20.putPath( idIn, new File( "C:\\Users\\csuebele\\Pictures\\LR shortcuts" ) );//Here's where it actually saves
            var idFmt = charIDToTypeID( "Fmt " );
            var idIRFm = charIDToTypeID( "IRFm" );
            var idPNtwofour = charIDToTypeID( "PN24" );
            desc20.putEnumerated( idFmt, idIRFm, idPNtwofour );
            var idIntr = charIDToTypeID( "Intr" );
            desc20.putBoolean( idIntr, false );
            var idTrns = charIDToTypeID( "Trns" );
            desc20.putBoolean( idTrns, true );
            var idMtt = charIDToTypeID( "Mtt " );
            desc20.putBoolean( idMtt, true );
            var idEICC = charIDToTypeID( "EICC" );
            desc20.putBoolean( idEICC, false );
            var idMttR = charIDToTypeID( "MttR" );
            desc20.putInteger( idMttR, 255 );
            var idMttG = charIDToTypeID( "MttG" );
            desc20.putInteger( idMttG, 255 );
            var idMttB = charIDToTypeID( "MttB" );
            desc20.putInteger( idMttB, 255 );
            var idSHTM = charIDToTypeID( "SHTM" );
            desc20.putBoolean( idSHTM, false );
            var idSImg = charIDToTypeID( "SImg" );
            desc20.putBoolean( idSImg, true );
            var idSWsl = charIDToTypeID( "SWsl" );
            var idSTsl = charIDToTypeID( "STsl" );
            var idSLAl = charIDToTypeID( "SLAl" );
            desc20.putEnumerated( idSWsl, idSTsl, idSLAl );
            var idSWch = charIDToTypeID( "SWch" );
            var idSTch = charIDToTypeID( "STch" );
            var idCHsR = charIDToTypeID( "CHsR" );
            desc20.putEnumerated( idSWch, idSTch, idCHsR );
            var idSWmd = charIDToTypeID( "SWmd" );
            var idSTmd = charIDToTypeID( "STmd" );
            var idMDCC = charIDToTypeID( "MDCC" );
            desc20.putEnumerated( idSWmd, idSTmd, idMDCC );
            var idohXH = charIDToTypeID( "ohXH" );
            desc20.putBoolean( idohXH, false );
            var idohIC = charIDToTypeID( "ohIC" );
            desc20.putBoolean( idohIC, true );
            var idohAA = charIDToTypeID( "ohAA" );
            desc20.putBoolean( idohAA, true );
            var idohQA = charIDToTypeID( "ohQA" );
            desc20.putBoolean( idohQA, true );
            var idohCA = charIDToTypeID( "ohCA" );
            desc20.putBoolean( idohCA, false );
            var idohIZ = charIDToTypeID( "ohIZ" );
            desc20.putBoolean( idohIZ, true );
            var idohTC = charIDToTypeID( "ohTC" );
            var idSToc = charIDToTypeID( "SToc" );
            var idOCzerothree = charIDToTypeID( "OC03" );
            desc20.putEnumerated( idohTC, idSToc, idOCzerothree );
            var idohAC = charIDToTypeID( "ohAC" );
            var idSToc = charIDToTypeID( "SToc" );
            var idOCzerothree = charIDToTypeID( "OC03" );
            desc20.putEnumerated( idohAC, idSToc, idOCzerothree );
            var idohIn = charIDToTypeID( "ohIn" );
            desc20.putInteger( idohIn, -1 );
            var idohLE = charIDToTypeID( "ohLE" );
            var idSTle = charIDToTypeID( "STle" );
            var idLEzerothree = charIDToTypeID( "LE03" );
            desc20.putEnumerated( idohLE, idSTle, idLEzerothree );
            var idohEn = charIDToTypeID( "ohEn" );
            var idSTen = charIDToTypeID( "STen" );
            var idENzerozero = charIDToTypeID( "EN00" );
            desc20.putEnumerated( idohEn, idSTen, idENzerozero );
            var idolCS = charIDToTypeID( "olCS" );
            desc20.putBoolean( idolCS, false );
            var idolEC = charIDToTypeID( "olEC" );
            var idSTst = charIDToTypeID( "STst" );
            var idSTzerozero = charIDToTypeID( "ST00" );
            desc20.putEnumerated( idolEC, idSTst, idSTzerozero );
            var idolWH = charIDToTypeID( "olWH" );
            var idSTwh = charIDToTypeID( "STwh" );
            var idWHzeroone = charIDToTypeID( "WH01" );
            desc20.putEnumerated( idolWH, idSTwh, idWHzeroone );
            var idolSV = charIDToTypeID( "olSV" );
            var idSTsp = charIDToTypeID( "STsp" );
            var idSPzerofour = charIDToTypeID( "SP04" );
            desc20.putEnumerated( idolSV, idSTsp, idSPzerofour );
            var idolSH = charIDToTypeID( "olSH" );
            var idSTsp = charIDToTypeID( "STsp" );
            var idSPzerofour = charIDToTypeID( "SP04" );
            desc20.putEnumerated( idolSH, idSTsp, idSPzerofour );
            var idolNC = charIDToTypeID( "olNC" );
                var list4 = new ActionList();
                    var desc21 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerozero = charIDToTypeID( "NC00" );
                    desc21.putEnumerated( idncTp, idSTnc, idNCzerozero );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc21 );
                    var desc22 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNConenine = charIDToTypeID( "NC19" );
                    desc22.putEnumerated( idncTp, idSTnc, idNConenine );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc22 );
                    var desc23 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwoeight = charIDToTypeID( "NC28" );
                    desc23.putEnumerated( idncTp, idSTnc, idNCtwoeight );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc23 );
                    var desc24 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc24.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc24 );
                    var desc25 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc25.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc25 );
                    var desc26 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc26.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc26 );
            desc20.putList( idolNC, list4 );
            var idobIA = charIDToTypeID( "obIA" );
            desc20.putBoolean( idobIA, false );
            var idobIP = charIDToTypeID( "obIP" );
            desc20.putString( idobIP, """""" );
            var idobCS = charIDToTypeID( "obCS" );
            var idSTcs = charIDToTypeID( "STcs" );
            var idCSzeroone = charIDToTypeID( "CS01" );
            desc20.putEnumerated( idobCS, idSTcs, idCSzeroone );
            var idovNC = charIDToTypeID( "ovNC" );
                var list5 = new ActionList();
                    var desc27 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzeroone = charIDToTypeID( "NC01" );
                    desc27.putEnumerated( idncTp, idSTnc, idNCzeroone );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc27 );
                    var desc28 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwozero = charIDToTypeID( "NC20" );
                    desc28.putEnumerated( idncTp, idSTnc, idNCtwozero );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc28 );
                    var desc29 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerotwo = charIDToTypeID( "NC02" );
                    desc29.putEnumerated( idncTp, idSTnc, idNCzerotwo );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc29 );
                    var desc30 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNConenine = charIDToTypeID( "NC19" );
                    desc30.putEnumerated( idncTp, idSTnc, idNConenine );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc30 );
                    var desc31 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerosix = charIDToTypeID( "NC06" );
                    desc31.putEnumerated( idncTp, idSTnc, idNCzerosix );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc31 );
                    var desc32 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc32.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc32 );
                    var desc33 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc33.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc33 );
                    var desc34 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc34.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc34 );
                    var desc35 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwotwo = charIDToTypeID( "NC22" );
                    desc35.putEnumerated( idncTp, idSTnc, idNCtwotwo );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc35 );
            desc20.putList( idovNC, list5 );
            var idovCM = charIDToTypeID( "ovCM" );
            desc20.putBoolean( idovCM, false );
            var idovCW = charIDToTypeID( "ovCW" );
            desc20.putBoolean( idovCW, true );
            var idovCU = charIDToTypeID( "ovCU" );
            desc20.putBoolean( idovCU, true );
            var idovSF = charIDToTypeID( "ovSF" );
            desc20.putBoolean( idovSF, true );
            var idovCB = charIDToTypeID( "ovCB" );
            desc20.putBoolean( idovCB, true );
            var idovSN = charIDToTypeID( "ovSN" );
            desc20.putString( idovSN, """c:\photos""" );//Here's where the default folder is suppose to go.
        var idSaveForWeb = stringIDToTypeID( "SaveForWeb" );
        desc19.putObject( idUsng, idSaveForWeb, desc20 );
    executeAction( idExpr, desc19, DialogModes.ALL );
    
  • Now, I have a problem with my domain name, and when I want to publish my site I can't, when you're looking for my website address, you can not found

    Now, I have a problem with my domain name, and when I want to publish my site I can't, when you're looking for my website address, you can not found.

    Hi Esther.

    Are what problem you facing your field?

    What problem face you with the edition?

    Kind regards

    Aish

  • FRM-40735 / ORA-06508 when you call procedure of a fastened package

    Hi all
    I have a problem when you call a procedure in one of my attached libraries. the code is:

    When upper (trim (NOT_MSG_NAME)) = "REN_MSG_REQ_REG_PERMENANT" then SERV. CLFRM_PBL_NRQP_F(:Parameter.NOTIFICATION_ID);

    and it gives me FRM-40735 indicating that an ORA-06508 has occurred during the call to the procedure.
    Important and funny thing is when I add the path to the library, it works very well!
    When I join, remove the path, it won't as I said...

    the location of the library is: D:\DevSuiteHome\cgenf61\ADMIN, the path is added in the FORMS_PATH and all others
    libraries attached to the form in the same way are working well!

    I use the Forms 10.1.2.0.2 generator and the platform is windows and I migrated forms 9.0.4.0.19
    anyone with any ideas what may be the problem?

    Hello

    Please check the path again and also to create working directory by modifying formsweb.cfg.

    hope this helps you.

    Sarah

  • Hello, Ive just purchsed PSE 13 and when you click on the download button, nothing happens. It routes me to a black screen with an icon of Adobe, but that's all. Can someone help me in what I should do next?

    Hello, Ive just purchsed PSE 13 and when you click on the download button, nothing happens. It routes me to a black screen with an icon of Adobe, but that's all. Can someone help me in what I should do next?

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

  • Apex question 5.0 when you call the modal page

    Hello world

    I started work with apex 5.0 and I had a problem when I call a modal page; I have an interactive relationship with this query:

    WITH expert LIKE)

    Select user_id usr, LISTAGG(expert_designation,':') WITHIN GROUP (ORDER BY user_id) wording

    of t_utilisateur, t_expertise, table (xmlsequence (xmltype ('< a > < b >' | replace (user_expert_id, ':', '< /b > < b >') |.extract('/*/*') "< /b > < / a >"))) x

    where extractvalue (value (x), ' / b') = expert_id

    Group of user_id

    )

    Select USER_ID,

    USER_PASSWORD,

    USER_TUSER_ID,

    USER_NOM,

    USER_PRENOM,

    USER_DATE_NAISS,

    USER_DATE_RECRUT,

    USER_DATE_DEPART,

    USER_FONCT_ID,

    Libelle,

    USER_MGR_ID,

    USER_DEPT_ID,

    sys. DBMS_LOB. GetLength (USER_CV_FILE) CV,

    sys. DBMS_LOB. GetLength (USER_CV_CNFCPP_FILE) as CV_CNFCPP,

    ' < a class = "T-t-button - hot" href = "javascript:ajoutCertification('||)". USER_ID |') ; ' > Add < /a > '

    T_UTILISATEUR, expert of t

    where T_UTILISATEUR.user_id = t.usr;


    ajoutCertification() is a javascript function that calls the modal page and pass as a parameter the user id, the body of this function is:


    function ajoutCertification (user_id) {}

    document. Location.href ='f? p = & APP_ID.:19: & SESSION. : & DEBUG. : 19:P19_USCER_USER_ID: "+ user_id +":'

    }

    When I click on the button in the interactive report to call the modal page, I got this error message:

    102 page 19 application dialog box cannot be made successfully. Make sure that the page model used on page 19 is of type template

    'Page of dialogue', with appropriate initialization dialog JavaScript, the dialog box is closed and the dialog cancels code defined.

    any ideas on this problem and I thank you for your answers

    Hello

    See the Notes button which I created declaratively and it works very well.

    I would like to know if you have any questions now

    -Sunil Bhatia

  • Stream error when you call a REST Service

    I am doing a customer REMAINS with AS3, I followed this tutorial: http://help.Adobe.com/en_US/AS3/dev/WSb2ba3b1aad8a27b061afd5d7127074bbf44-8000.html

    My code is as follows:

    import flash.events.Event;

    import flash.events.ErrorEvent;

    import flash.events.IOErrorEvent;

    import flash.events.SecurityErrorEvent;

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.net.URLRequestMethod;

    import flash.net.URLVariables; 


    var url:String = "https://localhost:8443/restcomponent/tesimalex"; 


    var requestor:URLLoader = new URLLoader(); 


    function restServiceCall():void

    {

      trace("Calling REST Service...");

      //Create the HTTP request object

      var request:URLRequest = new URLRequest( url );

      request.method = URLRequestMethod.GET;

      //Initiate the transaction

      requestor = new URLLoader();

      requestor.addEventListener( Event.COMPLETE, httpRequestComplete );

      requestor.addEventListener( IOErrorEvent.IO_ERROR, httpRequestError );

      requestor.addEventListener( SecurityErrorEvent.SECURITY_ERROR, httpRequestError );


      requestor.load( request );

    }


    function httpRequestComplete( event:Event ):void

    {

      trace( event.target.data );

    }


    function httpRequestError( error:ErrorEvent ):void

    {

      trace( "An error occured: " + error.toString() );

    }

    The only difference between my code and that in the tutorial's URL variables, that I commented on, and the url used.

    My REST service is a simple GET, if I type the url in the browser, it shows me that the returned JSON.

    But in my AS3 when I call the method restServiceCall() returns the following error message:

    Error opening URL "https://localhost:8443/restcomponent/tesimalex? An error: [IOErrorEvent type = "ioError" bubbles = false cancelable = false eventPhase = 2 text = "Error #2032: stream error."] URL: https://localhost:8443/restcomponent/tesimalex? »]

    Anyone know whats wrong?

    I really don't know about this link, but in my opinion it's a security issue, because it opens in the browser, also for security reasons! as I see that you have disabled the safe browsing that of why it works in your browser, but not in flash. In any case try to download the file on the server because the good security situation be different then check if it will work there, use a text field to display the data.

  • When you call sub-panels in an exe file, some to run correctly and some don't work at all.

    Hello

    I use LabVIEW 2009 and display various screws in a secondary (one at a time) into an executable.  A few screws properly load and run, while others do not work.  All the screws called VI properties are the same.  When I run into the development system, the code runs successfully.  I don't get any errors during the call to the screw - screw display all their facades like they should, but only a few actually deliver, while others do nothing.  Any ideas would be very appreciated!

    Thank you

    Jason

    Are you running VI separately, or you use the method run a VI?

    If you use the method run a VI, check out error and see if you get an error.

    If you are running separately, make sure that this area of the code actually runs (from your description, it looks that BT is).

    If all screws are supposed to be in the app, I would say that, given the static references for them and having a node property to one of the controls in each VI you want to display in the secondary, which will ensure the that LV will not remove its FP when you build the exe. Looks like this is your case, since you say that you see the FPS.

    If the screws are not in the application (that is, you run live recorded separately), you will need to ensure that they have all the dependencies that they need, because it is possible that they you are missing the vi.lib screws or your own screws not built in the app (since there was no static reference to them). The easiest thing is to build a distribution for each other while giving it a name space. You can do this by using the OpenG constructor, although I've never needed to. The main problem with this is that it will explode the size of the code, because each VI will need a copy of the common stuff.

  • Empty space when you use onClick

    So I test it on the Simulator, but for some reason when I create a button or even an ImageView, there seems to be more space to the right.

    The extra space is 30-40 value of pixels to the right. I want the limits of the onClick to be exactly until the edges of the button or ImageView, not others.

    Is soppose to have that extra, invisable space next to these components? I have all my margins set on 0, and even the padding set to 0. Not sure why he acts like this.

    Yes, space is there.  I have never noticed before.  Just a simple button with onClicked has the it. No other special code.  Even when you use preferredWidth, area by clicking on is larger than the button.

  • "Popup error ' A:\ is not Accessible, incorrect function" when you try to read the "A" drive in Explorer.

    When you try to read a disk in the 'A' drive from Windows Explorer, I get a Popup with a white 'X' in a red circle and a message that "A:\ is not Accessible" "Incorrect function" and an OK button at the bottom.  It happens to any disk, formatted or not, with the files or empty.  I replaced the disk drive - no help.

    I don't know if it's a windows setting went crazy or a motherboard problem.  My BIOS seems correct.  If I do a 'fill' of window hardware in administrative tools he tells me that I have data on the disk.

    I have XP - SP3.

    Any ideas-

    go to a command prompt and type "sfc/scannow" (without the quotes) and let it run... see if this is helpful at all.

    Hope do you feel better soon.

Maybe you are looking for