Return a variable expansion

Hello everyone.

I want to return a variable of the extension, it is possible?

What can be done of the extension?

Thank you, best regards.

The post I gave you above steps through how to do exactly what you ask.  The complete source code for all of our Extensions is also available if you want to use for reference

Tags: BlackBerry Developers

Similar Questions

  • How to return multiple variables from a function

    Hello

    As seen below, I tried more then return a variable to a function, but I think I have a syntax problem...

    function hesapla3 (parameter1, parameter 2): (number & & Boolean) / / PROBLEM IS HERE, I have NEED of TWO VARIABLES to RETURN
    {
    var yenideger2:Number = new Number();
    var bol2:Boolean = new Boolean();
    yenideger2 = parameter1 + parameter 2;
    if(yenideger2>80) {bol2 = false ;}
    Return yenideger2;
    return bol2;
    trace (yenideger2);
    trace (bol2);
    }

    You can do it this way.

    You can combine the 2 to 1 as a var

    var tekdeger:String=yenideger2.toString()+"-"+bol2.toString();

    Return tekdeger;

    and then you can split and mount the value returned into variables that you want...

  • How can I return a variable to Captivate non-quiz to an LMS?

    Hello

    I created a reactive business project in Captivate 8. I added not questions quiz or interactions. As the result of a specific button click the user gets a "score". I want to return this score to Moodle. How can I tell Captivate to 'return' value?

    Thank you

    Peter

    There is no way to add a 'score' to a variable, sorry. You can have a variable with a number as a value, not a score. It will be never interpreted as a partition if you want to create a SCORM object. All objects that can have a score to send using SCORM or AICC can be found in the Advanced Interaction (F9) Panel, and you won't find any variables.

    As to transmit the value stored in a variable, as I mentioned earlier, this depends on the LMS. I've been sending variables to Blackboard, and they were visible, but not as a 'partition But I have no idea if Moodle will do the same. Quiz like cpQuizInfoPointsscored and cpInfoPercentage system variables are read-only. It should be possible if you use JavaScript I suppose, not with the built-in feature of Captivate

    Hope that clarifies the situation. I've been blogging on the reporting of custom questions, maybe you will find more details on what I tried to explain here:

    Custom report issues - part 1 - blog of Captivate

    Custom report issues - part 2 - Captivate blog

  • How a process task to return a variable and a response code?

    Hello IDMers,

    I wrote a look ldap code to fetch the Active Directory Manager dn. I want to return a response to the success of this task completion code. But I don't know how to do both at the same time, my code becuause returns DN responsible name of AD and I also want a response code of this task say success, so from that I can do something else?

    Please help me with this.

    Thank you.

    VSN

    Once you read the name managerDN in the adapter code, use IOM API to fill the form of courses, and then continue with the commissioning and return the SUCCESS response.

  • Function to return all the variables in the expression list on 50 G?

    What is the function on the 50G will return all variables used in algebraic exoression list?

    Example entry:

    (x + y) ^ z / x

    output:

    {x y z}

    Hello Chris_Chen,

    the command "LNAME" does what you want, but you get the result as a vector, not a list.

    For example: ' Q ^ 2 - SIN (XT)'-> [Q XT]

    But this can be easily converted into a list: < < OBJ-> OBJ-> MENU-> LIST > >

    Cordially calcpeace

  • Problems to get the Variables of functions

    If possible, could someone explain to me how function to produce variables.  Here's what I'm trying to do.  I have a CSV file that I'm importing.  I would then like to run function for each row in the CSV file and produce able to use in the script.

    For example,.

    I have a function that looks to see which version of windows operating system and will assign a key to license based on this variable.

    Function Determine_Win_License_Key {}

    #$erroractionpreference = "SilentlyContinue".

    $CSV_Guest_OS = $_. Guest_OS

    Switch ($CSV_Guest_OS)

    {

    2003 x 32 {$GuestOSLicense = "License key 1"; break}

    2003 x 64 {$GuestOSLicense = "License key 2"; break}

    2008 x 64 {$GuestOSLicense = "License key 3"; break}

    2008r2x64 {$GuestOSLicense = "License key 4"; break}

    }

    }

    Based on this function, I set the $GuestOSLicense variable to be used later.

    The body of the script looks like this:

    Import-Csv csv.csv | %{

    Write-host "license key of determination."

    Determine_Win_License_Key

    Write-host "the used license key is: ' $GuestOSLicense

    }

    I expect to see what is the license key but all I get output is

    "" The used license key is: ".

    Someone know or understand why the function runs but does not save the variable generated by the function?

    I have several other functions in this script, and each of them do not return the variable.

    It's because you return anything in the service.

    One way to achieve this is

    Function Determine_Win_License_Key {
       param($OS)
       #$erroractionpreference = "SilentlyContinue"
       switch ($OS)
       {
          2003x32 {$GuestOSLicense = "License Key 1"; break}
          2003x64 {$GuestOSLicense = "License Key 2"; break}
          2008x64 {$GuestOSLicense = "License Key 3"; break}
          2008r2x64 {$GuestOSLicense = "License Key 4"; break}
       }
       $GuestOSLicense
    }
    
    Import-Csv csv.csv | %{
       Write-host "Determining License Key"
       Determine_Win_License_Key -OS $_.Guest_OS
       Write-host "The License Key being used is:" $GuestOSLicense
    }
    

    It is also best to pass a parameter to a function, rather than depend on variables in the function, which are initialized defined outside the function.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Using the procedure with multiple output variables in a query

    Hello

    We have a process that takes time, which returns 4 variables as out parameters:
    procedure calc_values(id in number, val1 out number, val2 out number, val3 out number, val4 out number) is
    The id uniquely identifies a product in our database.

    I would use it in a query (or view), in the form
    select s.id, val1, val2, val3, val4 from something s, product_table p
    where s.id = p.id
    I tried the following approach, but I'm kinda stuck

    define the type
    define an array of this type
    write a wrapper function that calls this procedure and returns the results as a table
    * the PivotTable in columns
    * join this with the product table

    It's like I'm on the wrong track, I'm struggling to retrieve the id of the product table in the wrapper function.

    Is there a better approach for this? I'm on oracle 10g

    Thank you!

    Rob

    Below is my interpretation of what you were asked to do. I don't really know what you want to do or what you need to do.

    CREATE TYPE prod_vals_def
    AS OBJECT
     (VAL1      NUMBER,
      VAL2      NUMBER,
      VAL3      NUMBER,
      VAL4      NUMBER
    );
    
    create or replace
    TYPE   prod_vals_tab
    AS TABLE OF prod_vals_def;
    
    CREATE FUNCTION pvals (p_prod_id  NUMBER)
    RETURN prod_vals_tab PIPELINED
    AS
    
      TYPE         ref0 IS REF CURSOR;
      cur0         ref0;
      out_rec      prod_vals_def
                := prod_vals_def(NULL,NULL,NULL,NULL);
    
    BEGIN
      -- CASE replacing SELECT against table I'm not going to create
      CASE p_prod_id
        WHEN 1 THEN
          out_rec.val1 := 1;
          out_rec.val2 := 2;
          out_rec.val3 := 3;
          out_rec.val4 := 4;
        WHEN 2 THEN
          out_rec.val1 := 2;
          out_rec.val2 := 3;
          out_rec.val3 := 4;
          out_rec.val4 := 5;
        WHEN 3 THEN
          out_rec.val1 := 3;
          out_rec.val2 := 4;
          out_rec.val3 := 5;
          out_rec.val4 := 6;
        WHEN 4 THEN
          out_rec.val1 := 4;
          out_rec.val2 := 5;
          out_rec.val3 := 6;
          out_rec.val4 := 7;
        ELSE
          out_rec.val1 := 0;
          out_rec.val2 := 0;
          out_rec.val3 := 0;
          out_rec.val4 := 0;
      END CASE;
      PIPE ROW(out_rec);
    END pvals;
    
    WITH s_tab AS
      (SELECT 1 AS prod_id FROM dual
       UNION ALL
       SELECT 2 AS prod_id FROM dual
       UNION ALL
       SELECT 3 AS prod_id FROM dual
       UNION ALL
       SELECT 4 AS prod_id FROM dual
      )
    SELECT s.prod_id, p.val1, p.val2, p.val3, p.val4
    FROM   s_tab s,
           TABLE(pvals(s.prod_id)) p
    
    PROD_ID  VAL1     VAL2     VAL3     VAL4
    -------- -------- -------- -------- --------
    1        1        2        3        4
    2        2        3        4        5
    3        3        4        5        6
    4        4        5        6        7     
    
  • apex_util.get_email returns null values

    Request Express 4.1.0.00.32

    I created a calculation for a page element to get the email of the user.

    The page is P16_EMAIL_ADDRESS.

    The calculation is a type of PL/sql. The code is:

    DECLARE
    L_EMAIL_RTN VARCHAR2 (240);
    BEGIN
    L_EMAIL_RTN: = APEX_UTIL. GET_EMAIL (p_username = > 'APP_USER');
    END;

    When I check the session information and debugging logs it indicates that the function is to return null.

    I figured I was doing something wrong in the APEX while I created a procedure in the database called the APEX_UTIL. GET_EMAIL. I've run in debug mode and saw that he too returned null. I get the same results with the GET_FIRST_NAME and GET_LAST_NAME functions.

    Can you see what I'm doing wrong? Or give an example of using these functions correctly?

    Thank you

    Steve

    Published by: cranestar on February 28, 2012 09:28

    So if you know, APEX forums supports the use of the [code] and [code /] intended to set aside code segments for ease of reading.

    One thing I noticed in your sample service is this unconditional statement: RETURN NULL;

    Your function can do all sorts of things, but this indicates the function always return explicitly NULL - your behavior. You must declare a variable to store the results of the function call to APEX_UTIL. GET_EMAIL() and return this variable:

    create or replace function L_EMAIL_RTN
      return varchar2
     is
    declare
      v_email   VARCHAR2(240);
    begin
      v_email  := APEX_UTIL.GET_EMAIL(p_username => :APP_USER);
      return v_email;
    end;
    
  • How to access the variable in the child video clip

    I have a flash file that uses php to manipulate a database and returns a variable (data_xml) to document data in XML from the database. In this case, as well as others within the parent company. Now, I have a child movieclip that shows analyzed data, but I'm unable to access the variable from the child movieclip. The code associated with this is:

    var myXML:XML = new XML();
    var myXML = XML (event.currentTarget.root.data_xml);

    and I get the following two errors that point to the second line as the problem:

    1151: there is a conflict with definition myXML in the internal namespace.

    WARNING: 3596: duplicate variable definition.

    I unchecked automatically "declare instances of the scene" because I have seen the one proposed for the 1151: error, but I still have not the same two errors.

    Can anyone help? Thank you!

    You've declared the variable twice. Variable can be declared only once in any scope. So, your code should be:

    var myXML:XML = new XML();
    myXML = XML (event.currentTarget.root.data_xml); Note there is no before var

  • STUCK - indexing a list and with the index as a variable

    Hello world. I imagine that this is not a difficult task, but I can't find any information on exactly what I need to accomplish.

    Let's say I have a table with fruits. The name of the fruitid and fruitname fields.

    I have query select * from fruit by fruitname. Then I take this data and create a list (or a table?) with the fruitnames.

    What I want to do is list the results with their place in the list or a table. Not their fruitid. For example:

    1 Apple
    2 Orange
    3 pears

    Where the 1,2,3 is the order of the list and not any recovered data form the query. I need to use the 1,2,3 as variables separately form the Apple, Orange, pear.

    I've been search in the online help, CFWACK and search for information about indexed lists is cheating on me. I was looking at listgetat but the results will be different each time and it just didn't seem like the solution ListGetAt returns the variable... for example:
    Apple Apple
    Orange Orange
    PEAR PEAR

    Any thoughts? Any help in a new direction is welcome. I use CF7.01 on WinServer2003 and SQLServer2008.

    Google "".  Find the cfml reference manual page and read it.  Pay special attention to the variables are produced by cfquery.

  • HTTPService data object / class variable number

    Hello

    I am building a Flex application with ActionScript classes where the class contains all events management. In a class like:

    {stuff package
    public var xml:XML() = new XML();
    public void MyObject() {}
    public void getData (): void {}
    Here I create an HTTPService object, fill in all the information and send it.
    }
    public void resultHandler(event:ResultEvent):void {}
    XML = XML (event.result);
    I get the XML very well here, but after the end of this call, I can't get this data more
    }
    error handler, etc.
    }


    The problem is that if I want to view/use these data in the result handler, that is fine, but if I try to store these data in a class variable, I can't recover this data from outside the class. If I refer to this object to another object, the data, all right and I can see the xml from the results Manager, but I can't seem to store these data, then pull it out via a class variable, or via a getter method that returns the variable. Is there something I'm missing here? Basically, I want to get the information via the HTTPService and store this information in a class variable that I can access it later. How can I do this?

    Thank you.

    Thanks for all your suggestions. The final problem was indeed the asynchronous nature of data calls HTTPService. I found a series of articles that has highlighted and provided solutions to the issue. An important quote from one of the articles is: "the fact that the web service calls flex are asynchronous have implications on how you design your code." and even, "the asynchronicity of remote calls has a major impact on how you design the customer."

    This is exactly the kind of information was missing and I have not found well-described in the Adobe Flex 3 documentation or tutorials I've read.

    Here are some links to more useful articles I found:
    http://tinyurl.com/34py5p
    http://techpolesen.blogspot.com/2007/09/coping-with-Flex-asynchronous-remote.html
    http://techpolesen.blogspot.com/2007/09/coping-with-Flex-asynchronous-remote_26.html
    http://techpolesen.blogspot.com/2007/11/coping-with-Flex-asynchronous-remote.html

  • Turn on Weblogic Garbage Collection HP - UX Itanium

    Hallo! I'm totally new to WebLogic. I was sent 11 Flexcube Universal Banking on Weblogic 10.3.2 accessing a server Oracle 11 GR 2 on HP - UX Itanium platform. Furthermore, I use Sun's JAVA virtual machine

    However, the deployment of Flexcube is extremely slow, crashes and the server frequently managed overloads. I hope that by implementing the garbage collection, I can solve these problems.
    Please provide me with the syntax to implement garbage collection operation in the architecture described above weblogic. All other boards of adjustment will be welcome. My setDomainEnv.sh script is as below

    Thank you.

    ! / bin/sh

    # CAUTION: This file is created by the Configuration Wizard.
    # Any changes made to this script may be lost when adding extensions to this configuration.

    #---Fonctions start-

    BP = 100
    SP = $BP

    pushd()
    {
    If [-z "$1"]
    then
    return
    FI

    SP = 'expr $SP - 1'.
    EVAL _stack$ SP = 'pwd '.
    CD $1
    return
    }

    popd()
    {
    If [$SP - eq $BP]
    then
    return
    FI
    EVAL cd \${_stack$SP}
    SP = 'expr $SP + 1'.
    return
    }


    #---Fonctions-

    # *************************************************************************
    # This script is used to set up the environment needed to be able to start Weblogic Server in this field.
    #
    # This script Initializes the following variables before calling commEnv to set the other variables:
    #
    # WL_HOME - the WebLogic of BEA installation directory.
    # JAVA_VM - the Java VM you want to use. You can set this environment variable before calling
    # This script from a Sun, or BEA, or everything just have the default set.
    # JAVA_HOME - location of the version of Java used to start WebLogic
    # Server. Depends directly on what JAVA_VM has the value default or the environment.
    # USER_MEM_ARGS - the variable to override the standard memory arguments
    # passed to java.
    # PRODUCTION_MODE - the variable that determines if Weblogic Server is started in production mode.
    # DOMAIN_PRODUCTION_MODE
    # - The variable that determines if the workshop related settings such as the debugger,
    # testconsole or iterativedev must be enabled. Can ONLY be set using the
    command line parameter # named production
    # NOTE: Specify the command line of production parameter will force
    # the server starts in production mode.
    #
    # Other variables used in this text include:
    # Servername - name of the weblogic server.
    # JAVA_OPTIONS - Java command line options for the server. (These
    # will be marked at the end of the JAVA_VM and
    (# MEM_ARGS)
    #
    # For more information, see "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    # (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/overview.htm).
    # *************************************************************************

    WL_HOME="/Oracle/middleware/wlserver_10.3".
    export WL_HOME

    BEA_JAVA_HOME =""
    export BEA_JAVA_HOME

    SUN_JAVA_HOME =""
    export SUN_JAVA_HOME

    If ["${JAVA_VENDOR}" = "Oracle"]; then
    JAVA_HOME = "${BEA_JAVA_HOME}".
    Export JAVA_HOME
    on the other
    If ["${JAVA_VENDOR}" = "Sun"]; then
    JAVA_HOME = "${SUN_JAVA_HOME}".
    Export JAVA_HOME
    on the other
    JAVA_VENDOR = "HP".
    export JAVA_VENDOR
    JAVA_HOME = "/ opt/java6.
    Export JAVA_HOME
    FI
    FI

    # It must reset the value of JAVA_HOME to get AND shortened
    # We do not shorten above because immediate variable expansion will be erase

    JAVA_HOME = "${JAVA_HOME}.
    Export JAVA_HOME

    SAMPLES_HOME = "${WL_HOME}" / samples ""
    export SAMPLES_HOME

    DOMAIN_HOME = ' / oracle/middleware/user_projects/domains/base_domain ".
    export DOMAIN_HOME

    LONG_DOMAIN_HOME = ' / oracle/middleware/user_projects/domains/base_domain ".
    export LONG_DOMAIN_HOME

    If ["${DEBUG_PORT}" = ""]; then
    DEBUG_PORT = "8453.
    export DEBUG_PORT
    FI

    If ["${server_name}" = ""]; then
    Server_name = 'AdminServer.
    Export SERVER_NAME
    FI

    POINTBASE_FLAG = "false".
    export POINTBASE_FLAG

    enableHotswapFlag =""
    export enableHotswapFlag

    PRODUCTION_MODE = 'true '.
    export PRODUCTION_MODE

    doExitFlag = "false".
    export doExitFlag
    verboseLoggingFlag = "false".
    export verboseLoggingFlag
    While [$#-gt 0]
    do
    case $1 in
    /nodebug)
    debugFlag = "false".
    export debugFlag
    ;;
    production)
    DOMAIN_PRODUCTION_MODE = 'true '.
    export DOMAIN_PRODUCTION_MODE
    ;;
    notestconsole)
    testConsoleFlag = "false".
    export testConsoleFlag
    ;;
    noiterativedev)
    iterativeDevFlag = "false".
    export iterativeDevFlag
    ;;
    noLogErrorsToConsole)
    logErrorsToConsoleFlag = "false".
    export logErrorsToConsoleFlag
    ;;
    nopointbase)
    POINTBASE_FLAG = "false".
    export POINTBASE_FLAG
    ;;
    doExit)
    doExitFlag = 'true '.
    export doExitFlag
    ;;
    noExit)
    doExitFlag = "false".
    export doExitFlag
    ;;
    verbose)
    verboseLoggingFlag = 'true '.
    export verboseLoggingFlag
    ;;
    enableHotswap)
    enableHotswapFlag="-javaagent:${WL_HOME}/server/lib/diagnostics-agent.jar".
    export enableHotswapFlag
    ;;
    *)
    PROXY_SETTINGS = "${PROXY_SETTINGS} $1.
    export PROXY_SETTINGS
    ;;
    ESAC
    Maj
    fact


    MEM_DEV_ARGS =""
    export MEM_DEV_ARGS

    If ["${DOMAIN_PRODUCTION_MODE}" = "true"]; then
    PRODUCTION_MODE = "${DOMAIN_PRODUCTION_MODE}".
    export PRODUCTION_MODE
    FI

    If ["${PRODUCTION_MODE}" = "true"]; then
    debugFlag = "false".
    export debugFlag
    testConsoleFlag = "false".
    export testConsoleFlag
    iterativeDevFlag = "false".
    export iterativeDevFlag
    logErrorsToConsoleFlag = "false".
    export logErrorsToConsoleFlag
    FI

    # If you want to override the default Patch Classpath, the library path and the path for this area.
    # Please uncomment the following lines and add a value valid for environment variables
    # define PATCH_CLASSPATH = [myPatchClasspath] (windows)
    # define PATCH_LIBPATH = [myPatchLibpath] (windows)
    # define PATCH_PATH = [myPatchPath] (windows)
    # PATCH_CLASSPATH = [myPatchClasspath] (unix)
    # PATCH_LIBPATH = [myPatchLibpath] (unix)
    # PATCH_PATH = [myPatchPath] (unix)

    . ${WL_HOME}/common/bin/commEnv.sh

    WLS_HOME = "${WL_HOME}" / Server ""
    export WLS_HOME

    If ["${JAVA_VENDOR}" = "Sun"]; then
    WLS_MEM_ARGS_64BIT = "- Xms256m - Xmx512m".
    export WLS_MEM_ARGS_64BIT
    WLS_MEM_ARGS_32BIT = "- Xms256m - Xmx512m".
    export WLS_MEM_ARGS_32BIT
    on the other
    WLS_MEM_ARGS_64BIT = "- Xms512m - Xmx512m".
    export WLS_MEM_ARGS_64BIT
    WLS_MEM_ARGS_32BIT = "- Xms512m - Xmx512m".
    export WLS_MEM_ARGS_32BIT
    FI

    MEM_ARGS_64BIT = "${WLS_MEM_ARGS_64BIT}".
    export MEM_ARGS_64BIT

    MEM_ARGS_32BIT = "${WLS_MEM_ARGS_32BIT}".
    export MEM_ARGS_32BIT

    If ["${JAVA_USE_64BIT}" = "true"]; then
    MEM_ARGS = "${MEM_ARGS_64BIT}".
    export MEM_ARGS
    on the other
    MEM_ARGS = "${MEM_ARGS_32BIT}".
    export MEM_ARGS
    FI

    MEM_PERM_SIZE_64BIT = ""-XX:PermSize = 128 m ""
    export MEM_PERM_SIZE_64BIT

    MEM_PERM_SIZE_32BIT = ""-XX:PermSize = 48 m ""
    export MEM_PERM_SIZE_32BIT

    If ["${JAVA_USE_64BIT}" = "true"]; then
    MEM_PERM_SIZE = "${MEM_PERM_SIZE_64BIT}".
    export MEM_PERM_SIZE
    on the other
    MEM_PERM_SIZE = "${MEM_PERM_SIZE_32BIT}".
    export MEM_PERM_SIZE
    FI

    MEM_MAX_PERM_SIZE_64BIT = ""-XX:MaxPermSize = 256 m ""
    export MEM_MAX_PERM_SIZE_64BIT

    MEM_MAX_PERM_SIZE_32BIT = ""-XX:MaxPermSize = 128 m ""
    export MEM_MAX_PERM_SIZE_32BIT

    If ["${JAVA_USE_64BIT}" = "true"]; then
    MEM_MAX_PERM_SIZE = "${MEM_MAX_PERM_SIZE_64BIT}".
    export MEM_MAX_PERM_SIZE
    on the other
    MEM_MAX_PERM_SIZE = "${MEM_MAX_PERM_SIZE_32BIT}".
    export MEM_MAX_PERM_SIZE
    FI

    If ["${JAVA_VENDOR}" = "Sun"]; then
    If ["${PRODUCTION_MODE}" = ""]; then
    MEM_DEV_ARGS = "-XX:CompileThreshold = $8000 {MEM_PERM_SIZE}"
    export MEM_DEV_ARGS
    FI
    FI

    # Must have a separate trial here because of the immediate expansion of the variables under windows

    If ["${JAVA_VENDOR}" = "Sun"]; then
    MEM_ARGS = "${MEM_ARGS} ${MEM_DEV_ARGS} ${MEM_MAX_PERM_SIZE}".
    export MEM_ARGS
    FI

    If ["${JAVA_VENDOR}" = "HP"]; then
    MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
    export MEM_ARGS
    FI

    If ["${JAVA_VENDOR}" = "Apple"]; then
    MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
    export MEM_ARGS
    FI

    If ["${JAVA_VENDOR}" = "IBM"]; then
    MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
    export MEM_ARGS
    FI

    # If the environment variable USER_MEM_ARGS is set, use it to substitute the values of all THE MEM_ARGS

    If ["${USER_MEM_ARGS}"! = ""]; then
    MEM_ARGS = "${USER_MEM_ARGS}".
    export MEM_ARGS
    FI

    JAVA_PROPERTIES = "-Dplatform.home =, ${WL_HOME} - Dwls.home = ${WLS_HOME} - Dweblogic.home = ${WLS_HOME}"
    export JAVA_PROPERTIES

    # To use Java authorization contract for containers (JACC) in this area,
    # Uncomment the next section please. If there are several machines
    # your domain name, make sure to change the setDomainEnv in the area associated with
    # each machine.
    #
    # - Djava.security.manager
    # - Djava.security.policy = weblogic.policy rental
    # - Djavax.security.jacc.policy.provider = weblogic.security.jacc.simpleprovider.SimpleJACCPolicy
    # - Djavax.security.jacc.PolicyConfigurationFactory.provider = weblogic.security.jacc.simpleprovider.PolicyConfigurationFactoryImpl
    # - Dweblogic.security.jacc.RoleMapperFactory.provider = weblogic.security.jacc.simpleprovider.RoleMapperFactoryImpl

    JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${EXTRA_JAVA_PROPERTIES}".
    export JAVA_PROPERTIES

    ARDIR = "${WL_HOME} / server/lib '.
    export ARDIR

    pushd ${LONG_DOMAIN_HOME}

    # Clustering support (edit for your cluster!)

    If ["${ADMIN_URL}" = ""]; then
    # The part then this block tells us we're starting either a server admin OR we are nonclustered
    CLUSTER_PROPERTIES = ""-Dweblogic.management.discover = true ' "
    export CLUSTER_PROPERTIES
    on the other
    CLUSTER_PROPERTIES = ' - Dweblogic.management.discover = false - Dweblogic.management.server = ${ADMIN_URL} ".
    export CLUSTER_PROPERTIES
    FI

    If ["${LOG4J_CONFIG_FILE}"! = ""]; then
    JAVA_PROPERTIES = "${JAVA_PROPERTIES} - Dlog4j.configuration = file: ${LOG4J_CONFIG_FILE}" "
    export JAVA_PROPERTIES
    FI

    JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${CLUSTER_PROPERTIES}".
    export JAVA_PROPERTIES

    JAVA_DEBUG =""
    export JAVA_DEBUG

    If ["${debugFlag}" = "true"]; then
    JAVA_DEBUG = "-Xdebug - Xnoagent - Xrunjdwp: transport = dt_socket, address = ${DEBUG_PORT}", server = y, suspend = n - Djava.compiler = NONE ""
    export JAVA_DEBUG
    JAVA_OPTIONS = "${JAVA_OPTIONS} ${enableHotswapFlag} - ch - da: com.bea-da: Javelin--da: weblogic... -... ea:com.bea.wli - ea:com.bea.broker... - ea:com.bea.sbconsole..." »
    Export JAVA_OPTIONS
    on the other
    JAVA_OPTIONS = "${JAVA_OPTIONS} {enableHotswapFlag} '-da '"
    Export JAVA_OPTIONS
    FI

    If [! d ${JAVA_HOME} / lib]; then
    ECHO "the JRE is not found in the directory ${JAVA_HOME}." (JAVA_HOME) »
    ECHO "Please change your environment and set the JAVA_HOME.
    echo "variable to point to the root directory of your Java installation.
    popd
    read _val
    output
    FI

    If ["${POINTBASE_FLAG}" = "true"]; then
    DATABASE_CLASSPATH = "${POINTBASE_CLASSPATH}".
    export DATABASE_CLASSPATH
    on the other
    DATABASE_CLASSPATH = "${POINTBASE_CLIENT_CLASSPATH}".
    export DATABASE_CLASSPATH
    FI

    If ["${DATABASE_CLASSPATH}"! = ""]; then
    If ["${POST_CLASSPATH}"! = ""]; then
    POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${DATABASE_CLASSPATH}".
    export POST_CLASSPATH
    on the other
    POST_CLASSPATH = "${DATABASE_CLASSPATH}".
    export POST_CLASSPATH
    FI
    FI

    If ["${ARDIR}"! = ""]; then
    If ["${POST_CLASSPATH}"! = ""]; then
    POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${ARDIR}" / XQRL.jar ' "
    export POST_CLASSPATH
    on the other
    POST_CLASSPATH = "${ARDIR}" / XQRL.jar ' "
    export POST_CLASSPATH
    FI
    FI

    # SUPPORT PROFILING

    JAVA_PROFILE =""
    export JAVA_PROFILE

    SERVER_CLASS = "weblogic. Server '.
    export SERVER_CLASS

    JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${WLP_JAVA_PROPERTIES}".
    export JAVA_PROPERTIES

    JAVA_OPTIONS = "${JAVA_OPTIONS} {JAVA_PROPERTIES} - Dwlw.iterativeDev = ${iterativeDevFlag} - Dwlw.testConsole = ${testConsoleFlag} - Dwlw.logErrorsToConsole = ${logErrorsToConsoleFlag}" "
    Export JAVA_OPTIONS

    If ["${DOMAIN_PRODUCTION_MODE}" = "true"]; then
    "JAVA_OPTIONS =" - Dweblogic.ProductionModeEnabled = true, ${JAVA_OPTIONS} "
    Export JAVA_OPTIONS
    FI

    #--Propriétés of configuration, so that we can save stdout and stderr to files

    If ["${WLS_STDOUT_LOG}"! = ""]; then
    echo "Logging WLS stdout to ${WLS_STDOUT_LOG}".
    JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.Stdout = ${WLS_STDOUT_LOG}" "
    Export JAVA_OPTIONS
    FI

    If ["${WLS_STDERR_LOG}"! = ""]; then
    echo "Logging WLS stderr to ${WLS_STDERR_LOG}".
    JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.Stderr = ${WLS_STDERR_LOG}" "
    Export JAVA_OPTIONS
    FI

    # ADD EXTENSIONS TO CLASS PATHS

    If ["${EXT_PRE_CLASSPATH}"! = ""]; then
    If ["${PRE_CLASSPATH}"! = ""]; then
    PRE_CLASSPATH = "${EXT_PRE_CLASSPATH} ${CLASSPATHSEP} ${PRE_CLASSPATH}".
    export PRE_CLASSPATH
    on the other
    PRE_CLASSPATH = "${EXT_PRE_CLASSPATH}".
    export PRE_CLASSPATH
    FI
    FI

    If ["${EXT_POST_CLASSPATH}"! = ""]; then
    If ["${POST_CLASSPATH}"! = ""]; then
    POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${EXT_POST_CLASSPATH}".
    export POST_CLASSPATH
    on the other
    POST_CLASSPATH = "${EXT_POST_CLASSPATH}".
    export POST_CLASSPATH
    FI
    FI

    If ["${WEBLOGIC_EXTENSION_DIRS}"! = ""]; then
    JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.ext.dirs = ${WEBLOGIC_EXTENSION_DIRS}" "
    Export JAVA_OPTIONS
    FI

    JAVA_OPTIONS = "${JAVA_OPTIONS}"
    Export JAVA_OPTIONS

    # SET THE CLASSPATH

    If ["${WLP_POST_CLASSPATH}"! = ""]; then
    If ["${CLASSPATH}"! = ""]; then
    CLASSPATH = "${WLP_POST_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
    Export CLASSPATH
    on the other
    CLASSPATH = "${WLP_POST_CLASSPATH}".
    Export CLASSPATH
    FI
    FI

    If ["${POST_CLASSPATH}"! = ""]; then
    If ["${CLASSPATH}"! = ""]; then
    CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
    Export CLASSPATH
    on the other
    CLASSPATH = "${POST_CLASSPATH}".
    Export CLASSPATH
    FI
    FI

    If ["${WEBLOGIC_CLASSPATH}"! = ""]; then
    If ["${CLASSPATH}"! = ""]; then
    CLASSPATH = "${WEBLOGIC_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
    Export CLASSPATH
    on the other
    CLASSPATH = "${WEBLOGIC_CLASSPATH}".
    Export CLASSPATH
    FI
    FI

    If ["${PRE_CLASSPATH}"! = ""]; then
    CLASSPATH = "${PRE_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
    Export CLASSPATH
    FI

    If ["${JAVA_VENDOR}"! = "BEA"]; then
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    on the other
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    FI

    1, using Sun's JAVA with HP virtual machine? Why not change to the JVM from HP.

    2, if you use the JDK from HP:

    Add lines to follow in setDomainEnv.sh

    GC_LOG="${DOMAIN_HOME}/bin/${server_name}.GC$$.log".

    MEM_ARGS = "- Xms1024m - Xmx1024m"
    MEM_ARGS = "${MEM_ARGS}"-XX: NewSize = 256 m - XX: MaxNewSize = 256 m - XX: PermSize = 128 m - XX: MaxPermSize = 256 m - XX: SurvivorRatio = 8 ""
    MEM_ARGS = "${MEM_ARGS} - Xoptgc - XX: + PrintGCTimeStamps - XX: + PrintGCDetails - Xloggc: ${GC_LOG}" "
    MEM_ARGS = "${MEM_ARGS}"-XX: + UseSpinning - XX: + HeapDumpOnOutOfMemoryError - XX: + HeapDumpOnly ""

    export MEM_ARGS

    3, you can use HPjmeter to monitor your server instance. It can help you find the problem quickly and easily.

  • Can someone tell me what I'm doing wrong when you create a native extension for iPad? (Very detailed)

    My company is developing a game for iPhone and iPad using Flash cs5.5 and Air3.0

    The customer requires that certain features be supported - these things as GameCenter, rating, etc... which none are currently supported by flash for the iOS.

    However, they provide us with a bunch of xCode example files on how they want things to work.

    My idea was to bridge the gap in functionality by creating a native extension using the xcode source that was given to me, giving me the required functionality.

    But first, I need to truly CREATE a native extension, even just a base echo/hello everyone... I followed all the steps of various guides and tutorials and I have managed to create an ipa and put it on my iPad 2 to test, but when the program starts, nothing happens, I find myself with a black screen. When I comment on the lines of code that initialize the extension, it fires just fine.

    (and Yes, I even tried to put things in try blocks where there was a mistake - no luck)

    So I hope that someone can read through the process of what I do below and point out what I am doing wrong, or what Miss me.

    What I use:

    Mini Mac running OS x 10.7.2 - this is used to run xCode 4.1 build 4B 110

    PC - Windows 7 home 64 bit - running Flash CS5.5 (version 11.5.1.3469) with the 3.0 SDK inside AIR. I also have the sdk 3.0 air in a separate file for the command-line running. (This is my primary development platform)

    The PC has flash builder installed, but I've never really used it, and I don't know how to use it... everything that has been built to date has been done using Flash CS5.5

    So, here's what I did.

    The first thing we do is to create a library static .a on mac.

    I open xcode and create a new project.

    • Select iOS framework and library, then select "Cocoa touch static library.
    • Give it a name, in this case "EchoExtension" and put it in a folder.
    • I then delete the file EchoExtension.h as all the samples I've seen so far do not use.
    • I then add 'FlashRuntimeExtension.h' to the project of the AIR3.0 sdk frameworks folder on my PC
    • I remove everything in my folder ".m", and then, next to several different examples and tutorials, type the following code:

    //

    EchoExtension.m

    EchoExtension

    //

    #include "FlashRuntimeExtensions.h".

    Echo FREObject (FREContext ctx, void * funcData, uint32_t argc, {FREObject argv)

    return argv [0];

    }

    //----------- Extention intializer and finalizer ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ -

    A native context instance is created

    void ContextInitializer (void * extData, const uint8_t * ctxType, FREContext ctx, uint32_t * numFunctionsToTest, const FRENamedFunction * functionsToSet) {}

    Configure the number of functions in this extention

    for ease of reference, set the number of function that will use this extension.

    int FunctionCount = 1;

    set the number of function pointer reference that will use this extention.

    * numFunctionsToTest = FunctionCount;

    create an array to store all the functions that we will use.

    FRENamedFunction * func = (FRENamedFunction *) malloc (sizeof (FRENamedFunction) * FunctionCount);

    create a table for each function entry

    Func [0] .name = (const uint8_t *) "echo"; the name of the function

    Func [0] .functionData = NULL;                    the data type

    Func [0] .function = & echo;             the reference to the real function

    Save the array to a pointer.

    * functionsToSet = func;

    }

    A native context instance is deleted

    void ContextFinalizer (FREContext ctx) {}

    return;

    }

    Initialization of each extension function

    void ExtInitializer (void * extDataToSet, ctxInitializerToSet FREContextInitializer *, FREContextFinalizer * ctxFinalizerToSet) {}

    * extDataToSet = NULL;

    * ctxInitializerToSet = & ContextInitializer;

    * ctxFinalizerToSet = & ContextFinalizer;

    }

    Called when the extension is unloaded

    void ExtFinalizer (void * extData) {}

    return;

    }

    • I'll then 'product', 'building' and it creates libEchoExtension.a
    • I'm copying this .to file on my PC.

    I am now finished with this abandoned mac of God (* shudder *)
    Back on my PC, I create a folder for my test project. For all the intentions a purposes, we will call this "D:\src\EchoExtension" then I create 2 folders, one called "lib" and one called "app". Lib, it's where I'm going to create the actionscript source for my extension.

    • In my lib folder, I create a new fla in flash cs5.5, called "EchoExtension.fla".
    • I create my lib folder, the following:
      • com\extensions\EchoExtension\EchoExtension.as
      • a folder named 'Build' in which I place my libEchoExtension.a file.
    • I have in my EchoExtension.as file, place the following code:

    package com.extensions.EchoExtension

    {

    import flash.events.EventDispatcher;

    import flash.events.IEventDispatcher;

    import flash.external.ExtensionContext;

    SerializableAttribute public class EchoExtension extends EventDispatcher

    {

    protected var _extensionContext:ExtensionContext;

    /**

    * Constructor.

    */

    public void EchoExtension()

    {

    Super();

    Initialize the extension.

    _extensionContext = ExtensionContext.createExtensionContext ("com.extensions.EchoExtension", "main");

    }

    public void echo(Prompt:String):String

    {

    Return _extensionContext.call ("echo") as String;

    }

    }

    }

    • In my main fla, on the first layer of the time line, I put just the following code to make sure that did get file included when I publish the swc.

    import com.extensions.EchoExtension.EchoExtension;

    var ext:EchoExtension = new EchoExtension();

    Stop();

    • I then opened upwards from my fla publication settings, disable the swf - which I don't need, and check the swc and ensure it generates in my generation folder.  «. "/ Build/EchoExtension.swc.
    • I also updated the player Air 3.0 (which I can do because I managed integrated AIR 3.0 along side my AIR 2.6 and can build both without any problem)
    • I then publish the swc. So far so good. No problems.
    • I then made a copy of the CFC and rename it to EchoExtension.swc.zip, how I extracted the library.swf file and place it in the folder of my generation.
    • I then create extension.xml in case of generation that contains the following code:

    " < extension xmlns =" http://ns.Adobe.com/air/extension/2.5 ">

    com.extensions.EchoExtension < id > < /ID >

    < versionNumber > 1 < / versionNumber >

    <>platforms

    < platform name 'iPhone-ARMS' = >

    < applicationDeployment >

    < nativeLibrary > libEchoExtension.a < / nativeLibrary >

    < initializer > ExtInitializer < / initializer >

    < finalizer > ExtFinalizer < / finalizer >

    < / applicationDeployment >

    < / platform >

    < / platforms >

    < / extension >

    • Now, at this point, I'm a little suspicious, because I build for the iPad2... the platform is iPhone... I thought that may be a problem and at some point I have tested the same build on the iPhone4 and had the same results. I also tested using the name of the platform of the iPad-ARM and got the same results... So I don't think that's the problem, but I'm not sure.
    • Now, to make things easier, I created a batch file called "buildane.bat" in my file generation. That's what I use to create my .ane file and it contains the following command line:

    D:\SDKs\AirSDK30\bin\adt-Paquet - target ane EchoExtension.ane extension.xml - CFC EchoExtension.swc - iPhone-ARM library.swf libEchoExtension.a platform

    • I then open a command prompt and run buildane.bat and Ottoman. My donkey is created. My generation file now has the following files in it:
        • buildane.bat
        • EchoExtension.ane
        • EchoExtension.swc
        • EchoExtension.swc.zip
        • extension. XML
        • libEchoExtension.a
        • Library.swf

    Now that I have my swc, donkey and it's time to create my sample application that will be used to test my new extension.

    • I go back to my D:\src\EchoExtension folder and go to the folder app ealier, I created.
    • I then create a new flash project called EchoExtensionTester.fla
    • I open the action script settings, paths to library and add the CFC I created in my D:\src\EchoExtension\lib\build file to my project.
    • On my stage, I create a field called text txtInput, a field of dynamic text named txtEcho, and a couple of buttons called btnClear, btnRuntime and btnEcho
    • I open the first layer of the timeline, and place the following code:

    imports of base.

    import flash.desktop.NativeApplication;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    import the extension of our swc.

    import com.extensions.EchoExtension.EchoExtension;

    the value of our input text to the need the softkeyboard field

    txtInput.needsSoftKeyboard = true;

    Add event handlers to our buttons.

    btnEcho.addEventListener (MouseEvent.CLICK, btnEcho_Click);

    btnClear.addEventListener (MouseEvent.CLICK, btnClear_Click);

    btnRunTime.addEventListener (MouseEvent.CLICK, btnRunTime_Click);

    create our variable expansion.

    var ext:EchoExtension;

    Try

    {

    initialize our extension of echo.

    Ext = new EchoExtension();

    } catch (error) {}

    txtEcho.text = 'Error when trying to create new EchoExtension:\n\n' + e;

    }

    Stop();

    Delete the text echo field

    function btnClear_Click(e:MouseEvent):void

    {

    txtEcho.text = "";

    }

    just to test, put the latest version of the air runtime in our text field, so we can make sure we run air 3.0

    function btnRunTime_Click(e:MouseEvent):void

    {

    txtEcho.text += "\nRuntime version =" + NativeApplication.nativeApplication.runtimeVersion; ".

    }

    call the extension, passing all that is in the text input field and get back and place it in our text echo field

    function btnEcho_Click(e:MouseEvent):void

    {

    txtEcho.text += "\n";

    Try

    {

    txtEcho.text += ext.echo (txtInput.text);

    } catch (error) {}

    txtEcho.text += "\nError call ext.echo:"+ e;»

    }

    }

    • I save the project, Open Air for the parameters of the iOS, then perform the following settings: (Yes, I know... I'll have to use adt to perform the build, but I need to first create the swf file)
      • File: EchoExtensionTester.ipa
      • AppName: EchoExtensionTester
      • Version 1.0
      • Landscape
      • Full screen on
      • Auto orientation is disabled
      • GPU rendering
      • device: iPad and iPhone
      • RES: high
      • Deployment: I use my certificate and profile provisionging that I use for my main project (that works) and defined for the test of the device.
    • I close the window and save again... but before I publish, I opened newly created "EchoExtensionTester - app.xml" which is located in my app folder.
    • I add the extensions <>< extensionID > com.extensions.EchoExtension < / extensionID > < / extensions > to the XML in the file so now it looks like this:

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >

    " < application xmlns =" http://ns.Adobe.com/air/application/3.0 ">

    <>Extensions

    < extensionID > com.extensions.EchoExtension < / extensionID >

    < / extensions >

    < id > EchoExtensionTester < /ID >

    < versionNumber > 1.0 < / versionNumber >

    < file_name > EchoExtensionTester < / name of the file >

    < description / >

    <!-to locate the description, use the following format for the description element. < description > < text XML: lang = "fr" > App English description goes here < / text > < text XML: lang = "fr" > French App description goes here < / text > < XML text: lang = "ja" > Japanese App description goes here < / text > < / description >->

    < name > EchoExtensionTester < / name >

    <!-to locate the name, use the following format for the name element. < name > < text XML: lang = "fr" > insert here the name App English < / text > < text XML: lang = "fr" > insert here the French App name < / text > < XML text: lang = "ja" > insert here the Japanese App name < / text > < / name >->

    < copyright / >

    < initialWindow >

    < content > EchoExtensionTester.swf < / content >

    standard < systemChrome > < / systemChrome >

    < clear > false < / transparent >

    < visible > true < / visible >

    true < fullscreen > < / full screen >

    landscape of < aspectRatio > < / aspectRatio >

    GPU < renderMode > < / renderMode >

    < maximizable > true < / maximizable >

    < minimizable > true < / minimizable >

    < resizable > true < / resizable >

    < autoOrients > false < / autoOrients >

    < / initialWindow >

    < icon / >

    < customUpdateUI > false < / customUpdateUI >

    < allowBrowserInvocation > false < / allowBrowserInvocation >

    < iPhone >

    < InfoAdditions >

    <! [CDATA [< key > UIDeviceFamily < / key > < table > < String > 1 < / string > < string > 2 < / string > < / array >]] >

    < / InfoAdditions >

    < requestedDisplayResolution > top < / requestedDisplayResolution >

    < / iPhone >

    < / application >

    • I save the changes to the xml file and return to Flash. I then publish.
    • The swf file is created as it should be, but then I get the error message:

    Error creating files.

    A native implementation extension 'com.extensions.EchoExtension' required by the application is not found for the target platform.

    • Now, while it is a pain in the rear, I again, this was going to happen because in my reading tutorials and samples, they have all said that you use adt to build the ipa... but that is fine... all I wanted anyway, was the swf, which I now have in my app folder.
    • I close flash because I no longer need and I create a new batch file: (Note: I have change the name of the cert, profile and password for this post)

    CLS

    "D:\SDKs\AirSDK30\bin\adt" - package - target the ipa-ad-hoc - stores pkcs12 - keystore "D:\src\mycert.p12" - storepass MYPASSWORD-putting into service-profile "D:\src\myprovfile.mobileprovision" "EchoExtensionTester.ipa" "EchoExtensionTester - app.xml" "EchoExtensionTester.swf" - extdir... / lib/Build

    Set dummy = p

    ECHO done

    • I then open a command window in my app folder and run build.bat.
    • I wait about 2 minutes...
    • ...
    • ...
    • YAY! My ipa file was created without error reported so far... Time to copy this bad boy to the iPad and see what happens.
    • I opened iTunes, drag "EchoExtensionTester.ipa" to the applications, then synchronize my device...
    • ...
    • YAY! iTunes installed ipa on the device... and there is a white icon bright and shiney for Echo Extension tester...
    • I open the app... and...
    • nothing.
    • I'm waiting for
    • still nothing.
    • I go to the bathroom.
    • I'll be back... still nothing... just a black screen.
    • I press the home button on the iPad, the app minimized, I restore it... nothing... black screen.

    management of human resources. Time to do some trial and error to see if I can figure out what the distribution.

    • As a test, I opened my fla and I comment out the following lines:
      • Ext = new EchoExtension();
      • txtEcho.text += ext.echo (txtInput.text);
    • I then rebuild the swf... get the same error (don't care)... I then rebuild the ipa using the batch file... and reinstall it on the device when it is made.
    • Exactly the same thing...
    • I opened the xml file... and remove the < extensionID > com.extensions.EchoExtension < / extensionID > line, save and re - run the batch file again... Wait for the ipa ends, then run it on the device.
    • I start the program on the iPad and it starts perfectly... with the exception of the commented line of code actually create and call the extension, everything works as it should. The runtime on the device reports as 3.0.0.4080
    • A test, I opened the .fla save and uncomment the 2 lines, I commented out above... keep the xml file extensionID, I re - publish the ipa... of course, this time, it actually creates the flash API, because the id of the extension is not in the xml file.
    • I put the file API with the extension in place on the ipad code... The fire and make the txtInput text and press the button of the echo. I get the following error:
      • Error calling ext.echo: TypeError: Error #1009
    • I suspect it's because I failed to include the extension in the descriptor... but when I build it with the extensionid in the xml file, I just get a black screen. I'm 99% sure that the context of the extension in the ext object is null (because that's what happens when I run Flash debug without extension lines in the xml)

    And here I am stuck.

    Can someone tell me what I am doing wrong or what I forgot to do?

    Thank you.

    Hi can check you if the CFC of the native extension is linked as external?

    Next image can help locate and change the link type of CFC.

    The issue that many people face here (i.e. extension works fast/interpreter mode and only when they are packed in standard mode) occurs only when the SWC of the NE is not linked externally.

    I hope this helps.

    Kind regards

    Mathyas blabla

    IOS of the AIR

  • VARs of the cross between screens

    Hi all

    I am building an application where I want users to be able to put a bunch of default options to a menu item. The option settings will change what fields of data they need to finish in the main screens. What I did is create a screen 'options' that is available from a menu item. My question is how can I return these variables to the other screen?

    Most of the samples does not show this kind of thing. For example, the UserInterface example shows a screen key points of data to the details screen. I want essentially the opposite.

    Any suggestions would be great.

    screens are processed on a stack. If you press a screen, it is displayed, if drill you it gets hidden (and if no reference exists, destroyed by the GC).

    If you want to transfer data from a second screen to the first, you can give the second screen, a reference to the first (hidden with an interface).
    You can call all the methods that you provide via the interface, for example within the onClose method.

    If you have more than one screen or you want different screens to Exchange data write yourself an object which is known to all screens.

    If you post more then an interface to your screens, you can think to put it together in a serviceregistry.

    to clean your code I recommend you use a superscreen that encapsulates all of the methods and variables to all screens that extends from your other screens. global changes in formatting makes it much easier, too.

  • How to assign ListField string empty not focusable?

    I'm used to command below to the default configuration in the search string. And I have set up a callback function to upgrade my listfield.

    ListField.setEmptyString ("search", 0);

    My question is: How can I set this empty string for NON_focusable?

    Thank you.

    LAN

    I think the easiest way is to subclass ListFIeld, isFocusable of substitution by a custom implementation that returns a variable stored, provide setter for this variable 'focus' and update your reminder of the

Maybe you are looking for

  • Windows 7 laptop restarting after being out of hibernation after Windows Update

    A Windows 7 laptop is force a restart after coming out of hibernation when Windows Update is scheduled to run during the time, he was in hibernation. The user doesn't have a choice, even if theNoAutoRebootWithLoggedOnUsers option on windows update re

  • Double monitors

    I use Vista laptop, I connected emachine monitor.  When I go on settings, it shows that as long as the computer 1, computer 2 as being inactive.  How can I change this?

  • Native UI in Flex Mobile Application action bar

    Hi all I managed to port sample WeatherGuesser of FDT Mobile AS Application and market. But how to do so that the port in Flex Mobile application. I would use native look of the action bar, back and all that. are there opportunities to achieve. Thank

  • C - series endpoints and the SRV record

    We just put our two VCS clustered and set our end points to save with a domain name of cluster.  The SRV is setup and works great on our MXP units, but the series C do not search the DNS record and fail to register.  What is the difference between th

  • Where's my photos?   How to make a comeback?

    Working in the library, I was going through images in a folder by deleting duplicates on hard drive. I started with 500 +, was until 390, when she suddenly dropped to 76. How to make a comeback? Still on the hard drive.