variable in _global setting... (easy?)

Hello

I seem to have a major problem of programming in flash... but slowly to learn... OK, let's go. I have a this _global variable called X. Must detect what X is, then give it a different value. Can anyone help? Here is my code that works well at first, then it is not...

Can anyone help?

Hi all thank you for your help, I had defined the integers and strings to the _global variable, this is why it did not work properly. Appreciate your comments

Tags: Adobe Animate

Similar Questions

  • Alternative AS3 to the variable path _global?

    Hi, thanks to a very old complicated fla there were buttons that set the variables with _global paths

    such as:

    function menu1_2(Event:MouseEvent) {}

    Global.mode = "hide_hotbox";

    MovieClip (this) .gotoAndStop ("stage_1_b");

    }

    How can I make the variable "hide_hotbox" and others like him accessible and editable from any movie clip - if they be nested in other video clips or on the main timeline, etc.?

    Thank you... (end)... much appreciated

    If you Google "AS3 _global" you are likely to find some solutions to implement global variables in AS3.

  • The system is unable to boot automatically. The BOOT environment variable must be set to a bootable image.

    Hey guys

    I need help, in my company trying to learn switches I flashed my switch all :(

    I now get this error

    The system is unable to boot automatically.  The BOOT
    environment variable must be set with a bootable
    image.

    I downloaded the c2950-i6q4l2 - tar.121 - 22.EA14.tar for the switch, but I'm unclear on how to load the catalyst 2950 only

    switch: dir flash:
    Directory of flash: /.

    3 - rwx 269 env_vars

    7739904 bytes available (1536 bytes used)
    switch: start
    Loading ""...: permission denied ".

    Error loading «»

    Interrupt within 5 seconds to cancel the startup process.
    Boot process failed...
    switch: start
    Loading ""...: permission denied ".

    Error loading «»

    Interrupt within 5 seconds to cancel the startup process.
    Boot process failed...
    switch:

    C2950 Boot Loader (C2950-HBOOT-M), Version 12.1 (11r) EA1, RELEASE SOFTWARE (fc1)
    Updated Tuesday 22 July 02 17:18 by antonino
    WS-C2950-24 from...
    Basic Ethernet MAC address: 00:15:2 b: 46:7 b: 00
    XMODEM file system is available.
    Initializing the Flash...
    flashfs [0]: 1 files, directories 1
    flashfs [0]: 0 orphaned files, orphaned directories 0
    flashfs [0]: Total number of bytes: 7741440
    flashfs [0]: used bytes: 1536
    flashfs [0]: available bytes: 7739904
    flashfs [0]: fsck flashfs takes 4 seconds.
    .. .done boot flash.
    Boot sector file system (bs :) installed, isfd: 3)
    Setting Filesystem block (pb :) installed, isfd: 4)
    Loading ""...: permission denied ".

    Error loading «»

    Interrupt within 5 seconds to cancel the startup process.
    Boot process failed...

    The system is unable to boot automatically.  The BOOT
    environment variable must be set with a bootable
    image.

    switch:
    switch:
    switch: flash
    Initializing the Flash...
    ... The flash is already initialized.
    switch: dir /.
    Unknown cmd: dir /.
    switch: dir

    List of currently registered file systems:

    Flash [0]: (reading / writing)
    XMODEM [1]: (read-only)
    NULL [2]: (reading / writing)
    BS [3]: (read-only)

    switch: 0
    Unknown cmd: 0
    switch: flash_init
    switch: load_helper
    switch: dir flash:
    Directory of flash: /.

    2 - rwx 269 env_vars

    7739904 bytes available (1536 bytes used)
    switch:

    Hello

    It seems that the image is not in the flash memory. Do you know where you downloaded the image? Once we know, we can understand what statement of startup, you need to do to make it start correctly.

    Thank you

    Garrett

  • Problems getting started using Variables and data sets

    Hello

    I am new to this forum and new with scripts in Illustrator and scripts in general.

    I have an XML file that contains a number of data sets each composed of a number of text variables that I want to use to create a trading card game.

    Each trading card consists of a text field for the title of the map and a number of icons, which are instances of different symbols

    I wrote a script to create each map and I can load variables in my using javascript: newCard.importVariables (news leader (xmlPath));

    Now, I need to access the data in the data sets to power the card.

    To provide some context, it's a picture of one of the cards with the art of the placeholder:

    Screen Shot 2013-02-22 at 23.02.29.png

    Currently, for the icon in the upper right corner (the PHASE icon), I use the following code:

    phase = "night";

    phaseIcon = newCard.symbols.getByName (phase);

    phaseIcon1 = newCard.symbolItems.add (phaseIcon);

    phaseIcon1.top = 232;

    phaseIcon1.left = 140;

    I want to be able to do, is to shoot the value during the phase of <>< / phase > TextVariable my dataset XML and insert that into the script, but I don't know how. This is where I'm stuck on how to proceed. Any help is greatly appreciated.

    Thank you

    Nick

    OK, so it takes data sets to be able to get the data of type string, right? This has proved not to be as easy as it seemed

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

    then to get string data that you used the XML to the file instead, your last sample seems fine, I did the same thing then you posted your sample, I used the xml file

    var xmlfile = File.openDialog("Select a valid XML file","XML:*.xml", false);
    if(xmlfile != null) {
        xmlfile.open("r");
        var xmlstring = xmlfile.read();
        xmlfile.close();
        xmlfile = null;
    } else {
    alert("Error opening XML file.");
    }
    var wolfCardsXML = new XML (xmlstring);
    var currentCard = wolfCardsXML.card[0];
    var phaseValue = currentCard.phase.toString();
    
    alert(phaseValue);
    
  • Environment variable is not set after the installation of oracle 11i...

    Hello

    I installed oracle 11i on .After setting environment variable LINUX4AS is not defined. like $OAD_TOP, $APPL_TOP.

    HELP PLZ

    Hello

    What env file that you are trying to source? How do you source the env file?

    Question ".» //APPSORA.env and then check.

    Kind regards
    Hussein

  • Set the FileGlobal Variable for SequenceFileLoad

    Hello community,

    Using 32-bit Teststand 2014

    I do a test on model of batch and I want to change the NumTestSockets in the ModelOptions sequence when loading the file in the sequence. I have created a fileglobals variable, and then set the default value to 1. I tried to change the fileglobals variable in the SequenceFileLoad sequence, but it does not show my fileglobals update variable and just 1 when I run my sequencefile.

    How can I do to change a variable fileglobal when I load my movie file and have it stick, so when I run my the NumTestSockets sequence file is updated?

    The FileGlobal variable values do not persist in the executions. That's why your 'NumberOfControls' variable is reset to its default value of 1 after the recall of SequenceFileLoad is done running. A Variable overall Station would last since its recorded on the disk in the StationGloabls.ini, but it would be available to the entire station rather than just your file of the client's sequence.

    A better solution might be to set the default value in your SequenceFileLoad callback:

    RunState.SequenceFile.Data.FileGlobalDefaults.NumberOfControls = 3

    Hope this helps,

    Trent

  • How to set the rendering = true only when the variable = Y? #ADF

    Hi all

    I'm developing a simple ADF jspx to contain the data in the table and a few questions. One of my requirements is to make a real group of Panel if a variable dispGroup is set to Y.

    I tried to use this EL: rendered = "#{bindings.dispGroup.inputValue?" 'Y' : 'N'}" .

    I would understand if this the correct way to approach it. Is there a better solution. I am open to any suggestions or best practices.

    JDev Version: 11.1.1.4

    Concerning
    JB.

    "#{bindings.dispGroup.inputValue == 'Y'? 'real': 'false'} '.

  • Variable set to NULL Query

    I'm working on a procedure that is using the workflow Oracle EBS application for approval.

    It has been customized by a contractor in the past, but we need to make some changes to it.

    I declared a new variable of number:
    l_req_doc_id               NUMBER :=0;
    The value of the variable l_req_doc_id is set via this SQL:
          SELECT DISTINCT requisition_header_id
                   INTO l_req_doc_id
                   FROM po.po_requisition_lines_all prla
                      , ap.ap_suppliers pv
                      , ap.ap_supplier_sites_all pvsa
                      , po.po_line_locations_all plla                   
                      , po.po_lines_all pla                                          
                  WHERE prla.vendor_id = pv.vendor_id
                    AND prla.vendor_site_id = pvsa.vendor_site_id
                    AND pv.vendor_id = pvsa.vendor_id
                    AND prla.line_location_id = plla.line_location_id   
                    AND plla.po_line_id = pla.po_line_id                
                    AND pla.po_header_id = l_document_id;
    We hit a scenario where some applications are triggered when the value of vendor_site_id on the command line is NULL.

    When this happens, the SQL above will return no rows.

    I wanted to check here if, after his return any rows, SQL will change the value of l_req_doc_id from zero to NULL or would remain at zero when the SQL returns no rows?

    I know it's a silly question, and I could just write some debug statements in the code that works. Unfortunately the complexity of the code, that debugging statements don't always trigger in the way that I expect.

    Any advice much appreciated.

    Thank you

    20100511 wrote:
    I know it's a silly question, and I could just write some debug statements in the code that works. Unfortunately the complexity of the code, that debugging statements don't always trigger in the way that I expect.

    It is pure laziness on your part.
    You could easily create a sample test case to understand behaviour like this

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2      l_num number := 0;
      3  begin
      4      dbms_output.Put_line('Before Select '||l_num);
      5      select 1 into l_num from dual where  1 = 2;
      6  exception
      7      when no_data_found then
      8        dbms_output.Put_line('After Select '||l_num);
      9* end;
     10  /
    Before Select 0
    After Select 0
    
    PL/SQL procedure successfully completed.
    
  • SET the VARIABLE problem

    Hello world!

    I added a line to my report of responses on the tab advanced, prefix section as follows:
    SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1;

    I also put a session variable by using the dashboard line. Then when I start my report, you receive the following error message:

    A general error occurred. [nQSError: 27002] About < GAME >: Syntax error [nQSError: 26012]. (HY000)

    Publ. SQL: SET VARIABLE sv_test = "Test"; SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1; SELECT...

    So, the first SET statement is generated from Dashboard prompt and the second section of a throug prefix. I also tried to exclude 'SET the VARIABLE' section of my report prefix, but it still does not work. What is the correct syntax?

    Help me, please!

    TNX!

    user10203008 the error is in a semi instead of the comma
    SET the VARIABLE sv_test = "Test"<; !comma="" have="" to="" be="" here!="">SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1;

    So you can do this quickly with variable pvVar presentation. And a prefix write
    * SET VARIABLE sv_test='@{pvVar}',SET VARIABLE DISABLE_CACHE_HIT is 1 DISABLE_CACHE_SEED = 1;. *

    It must works.

    Published by: AnTonic January 26, 2011 12:23

  • SQLPLUS set variables for creating table.

    I do the following in SQLPLUS

    set l_date = to_char (sysdate, 'yyyy')
    define l_name = "«mytable"»
    set l_tn = & l_name | & l_date

    SQL > select & l_name | & double l_date;
    old 1: select & l_name | & l_date of the double
    new 1: select 'mytable '. TO_CHAR (sysdate, 'yyyy') of the double

    "MYTABLE".
    -----------
    mytable2010

    But when I use that way, I don't get the YEAR.

    SQL > select ' & l_tn' double.
    old 1: select ' & l_tn' of the double
    new 1: select 'mytable' of the double

    ' MYTABL
    -------
    MyTable


    I want to create table in sqlplus by using the following command:
    create table & l_tn (x number)

    Please let me know what I'm doing wrong here.

    Hello

    (Like TO_CHAR) SQL functions and operators (as |) are not executed in SQL * most orders (as DEFINED).
    Test your variables after you set you will see what I mean

    define l_date = to_char(sysdate,'yyyy')
    PROMPT     &l_date = l_date
    

    Output:

    to_char(sysdate,'yyyy') = l_date
    

    "In other words, l_date is used for a 23 character string, which starts with 't' and contains ' (',',' and ' ')', ', which are not allowed in file names (probably; depending on the system).
    I think you want that it set to a string of 4 characters, such as "2010".

    Use the COLUMN... New_value (or... Order OLD_VALUE) to define a variable substitution to the results of a calculation of SQL.

    I think you are trying to do something like this:

    COLUMN     year_col     NEW_VALUE     l_date
    
    SELECT     TO_CHAR (SYSDATE, 'YYYY')     AS year_col
    FROM     dual;
    
    define l_name = mytable
    
    CREATE TABLE  &l_name&l_date
    ...
    
  • What is the difference between the variable and set

    WHAT IS THE DIFFERENCE BETWEEN

    These different versions when it is done using the keyword "variable" and "set."
    and these two are performed outside 'DECLARE '.


    VARIABLE g_monthly_sal NUMBER
    SET p_annual_sal = 5000

    -I understand that p_annual_sal will be considered to be a TANK.
    -ALSO if DEFINE the variable serves as a macro variable, THEN it is necessary to give it a certain value whenever we define.
    If this is not the case, what value would it replace?

    OR does that mean when we want to specify the data type for a variable binding, we should use VARIABLE and
    When we do not want to specify type we use SET?

    Thank you

    Published by: user6287828 on February 24, 2009 11:03

    Published by: user6287828 on February 24, 2009 11:04

    Both are SQL * most orders. In a real programming environment you will use these constructions (except in a few rare cases of scripts).

    The difference is the way in which the building will be used later. DEFINE looks more like a string copy & paste. Wherever this substitution variable name is found, it will be pasted into the sql * plus the term.
    VARIABLE creates a real variable. You can change the value and if follwos the usual principles of variables (including the link).

    Example can be found in the docs:

    documentation
    Where and how to use the Substitution Variables

    You can use anywhere substitution variables in the SQL and SQL * more orders, except that the first word entered. When SQL * Plus meets a variable substitution not defined in a SQL command * more will prompt you for the value.

    You can enter any string, at the prompt, even a container of spaces and punctuation. If the SQL command that contains the reference must have quotes around the variable and you include here, the user must include the quotation marks when you are prompted.

    SQL * Plus reads your answer from the keyboard, even if you have redirected the terminals input or output to a file. If a terminal is not available (if, for example, you run the script in batch mode), SQL * Plus uses the redirection file.

    After you have entered a value in the prompt, SQL * Plus lists the line containing the variable substitution twice: once before replacing it with the value that you enter and once after substitution. You can delete this list by setting the variable to VERIFY OFF command.

    The use of Bind Variables
    Bind variables are variables that you create in SQL * Plus and then the reference in PL/SQL or SQL. If you create a variable binding in SQL * Plus, you can use the variable as you would for a variable declared in your PL/SQL subprogram and access the variable from SQL * more. You can use bind variables for things such as the storage of return codes or debug your PL/SQL subprograms.

    Because bind variables are recognized by SQL * Plus, you can display their values in SQL * more or reference them in PL/SQL subprograms that you run in SQL * more.

    Creating Bind Variables
    You create variable bind in SQL * Plus with the command VARIABLE. For example

    Ret_val VARIABLE NUMBER
    This command creates a variable binding named ret_val with a NUMBER data type. See the command VARIABLE for more information. (To list all the bind variable created in a session VARIABLE type without arguments).

    Referencing Bind Variables
    You reference bind variables in PL/SQL by typing a colon (:)) immediately followed by the name of the variable. For example

    : ret_val: = 1;
    To change this variable binding in SQL * Plus, you must enter a PL/SQL block. For example:

    BEGIN
    : ret_val: = 4;
    END;
    /

  • How to create impulses cause a pulse width Variable AND at the same time

    Hi all

    I have a NI PCI-6251 that comes with 2 counters, a FREQOUT port and then some DIO, DAC and ADC.  I want to trigger a pulse of variable width (easy to do with two counters) and a frequency closed, exit at the same time.  So, I want to end up with a line that will display TOP for some variable time, while the other exits a train of pulses for a time variable.  It is easy to do if you have 4 counters but I don't have one.  Does anyone have an idea to implement these two things AND making them trigger at the same time with the PCI-6251 card?

    The line is high for as long as your pulse train controlled?

    If so, set up the first counter as output pulse, configure the 2nd as output continuous meter but with the internal of the first counter output as its trigger to pause (pause when it is low).  Start the 2nd meter before the first.

    If not, you will need to use the digital output to replace at least one of the counters (max sampling rate is 10 MHz, so this would give less resolution compared to the time base of 80 MHz counters).  So you would simply write the waveform predetermined in the buffer and he clock at the desired rate and the number of samples to give the signal that you want.  You need to generate some other subsystem as FreqOut clock.

    Best regards

  • How to change a global variable in a function?

    Hello

    I want to change a globalvariable in a function, as a first step I made in this way:

    class Global_output_class
    
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    dim pouet
    
    Correlation_Status = 12
    Call Correlation()
    pouet = Correlation_Status
    
    Function Correlation()
      Dim Global_output_class_sub
      Set Global_output_class_sub = new Global_output_class
    
      Correlation_Status = 1
      fail_part = 2
      End_Exp = 3
    
      Global_output_class_sub.CorrelationStatus = Correlation_Status
      Global_output_class_sub.failpart = fail_part
      Global_output_class_sub.EndExp = End_Exp
      set Correlation = Global_output_class_sub
    End function
    

    In this case: correlation_status receives a value of 12, then I go to my correlationn() function where it became 1

    Then he comes out of the Sub-function and takes the previous value of the program (12) (I hate that)

    To solve the problem I did it this way:

    class Global_output_class
    public CorrelationStatus
    public failpart
    public EndExp
    end class 
    
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    
    Correlation_Status = 12
    Set Global_Output = Correlation()
    Correlation_Status = Global_Output.CorrelationStatus
    fail_part = Global_Output.failpart
    End_Exp = Global_Output.EndExp
    pouet = Correlation_Status
    
    Function Correlation()
      Dim Global_output_class_sub
      Set Global_output_class_sub = new Global_output_class
    
      Correlation_Status = 1
      fail_part = 2
      End_Exp = 3
    
      Global_output_class_sub.CorrelationStatus = Correlation_Status
      Global_output_class_sub.failpart = fail_part
      Global_output_class_sub.EndExp = End_Exp
      set Correlation = Global_output_class_sub
    End function
    

    This way my global value are copied in themselves after leaving the subprogramme

    I had a lot of variables, is there an easier way for the global variable in a function of change keep the value after you leave the service?

    Thanks for the help,

    Fred

    Hi Fred,.

    It is possible to use a global variable defined, but the best way is to use a function call (or procedure call) with parameters. Please first find the right solution for a function call with parameter and the suboptimal way with a comprehensive valiable:

    dim oParameter
    set oParameter = new cGlobal_output_class
    
    oParameter.Correlation_Status = 12
    
    msgbox "Correlation_Status before Call Correlation: " & oParameter.Correlation_Status
    Call Correlation(oParameter)
    msgbox "Correlation_Status after Call Correlation: " & oParameter.Correlation_Status
    
    '-------------------------------------------------------------------------------
    Function Correlation(oPara)
      msgbox "Correlation_Status in the FUNCTION before change: " & oPara.Correlation_Status
      oPara.Correlation_Status = 1
      oPara.fail_part = 2
      oPara.End_Exp = 3
      msgbox "Correlation_Status in the FUNCTION after change: " & oPara.Correlation_Status
    End function
    
    '-------------------------------------------------------------------------------
    class cGlobal_output_class
      dim Correlation_Status,fail_part,End_Exp
    end class
    
    call GlobalDim("oPouet")
    
    dim oPouet
    set oPouet = new cGlobal_output_class
    
    oPouet.Correlation_Status = 12
    
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    Call Correlation()
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    
    '-------------------------------------------------------------------------------
    Function Correlation()
      msgbox "Correlation_Status in the FUNCTION before change: " & oPouet.Correlation_Status
      oPouet.Correlation_Status = 1
      oPouet.fail_part = 2
      oPouet.End_Exp = 3
      msgbox "Correlation_Status in the FUNCTION after change: " & oPouet.Correlation_Status
    End function
    
    '-------------------------------------------------------------------------------
    class cGlobal_output_class
      dim Correlation_Status,fail_part,End_Exp
    end class
    

    Greetings

    Walter

  • Dynamically set the height of the rectangle

    I need to define a rectangle of height according to the items it contains dynamically. I need the container to float its size accordingly.

    For example:

    'Apple' class needs an extra 10 pixels height

    "Pear" class needs an extra height of 10 pixels

    "Peach" class needs an extra 10 pixels height

    So... i f I switch Apple, pear, fishing all on... I have to add 30 pixels to the height of the 'rectBasket'.


    Goal: cart adjusts its height at each rocker. In the rocker by each fruit:

    If (SYM $("..) (Is Apple") (": visible ")) {}

    SYM $(".) Apple"). Hide();

    var htApple = 0;

    } else {}

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

    var htApple = 10;

    }


    var htBasket = htApple + htPear + htPeach;

    Is it important that PEAR and fishery variables have been set into a different scale?

    sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("rectBasket").css ({"height": "htBasket"});

    Place immediately after, shouldn't this resizing the basket?

    No luck.

    I'm a 'high functioning designer' with respect to the code. Can someone correct me with a simple and clear description or give a better method (direct, easy) to dynamically change the height of the "rectBasket"?

    Thank you very much! Grace

    I did it. I forced myself to understand the variables (you can hear me, designers).

    Goal: float a rectangle size, whose elements are oriented, such as when items are turned on, the rectangle grows (if the elements do not overlap each other). An accordion of sorts. Each of the elements is relative to the upper or down, so when the rectangle increases, the elements are drawn out.

    BTW, thanks to resdesign which is always useful to read. His other posts have helped tinkering me together an answer to my specific case. THX!

    Step 1:

    Declare the variable in compositionReady

    Declare variables as elements call later

    var AppleHigh;

    var PearHigh;

    var PeachHigh;

    var ComboHigh;

    Step 2:

    In the code of the rocker of each element (switching power of the Apple, pear, fishing,..), declare the variables in the main code

    var AppleHigh;

    var PearHigh;

    var PeachHigh;

    var ComboHigh;

    Step 3:

    Below it, create a toggle of the value of the variable

    for the class of Apple

    If (SYM $("..) (Is Apple") (": visible ")) {}

    var AppleHigh = 55;

    } else {}

    var AppleHigh = 0;

    }

    for the Pear class

    If (SYM $("..) (Is pear") (": visible ")) {}

    var PearHigh = 55;

    } else {}

    var PearHigh = 0;

    }

    for the Peach class

    If (SYM $("..) (Is Peach') (": visible")) {}

    var PeachHigh = 30;

    } else {}

    var PeachHigh = 0;

    }

    Step 4:

    Below it, declare and set the variable that matches the new height

    var comboHigh is 175 + AppleHigh + PearHigh + PeachHigh;.

    Alert (comboHigh) / / / uncomment to test the value in the pop up window

    NOTE: 175 is the height of the initial base rectangle

    Update: I use it instead

    Declared ' var boxStartSize; "in both: compositionReady and above the rocker in the code of the item

    In the code of the item...

    var boxStartSize = sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("CASE-master-box").height ();

    Gets the entire value of the height

    var comboHigh = boxStartSize + bottomlyHigh + pronounHigh + pseudosHigh + personalsHigh;

    It is therefore only once that I copy this structure all over in different places, I didn't go back to handcode the height of the original rectangle.

    Step 5:

    The score allows you to change the height of the box

    ENTER IN THE HEIGHT BOX.

    sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("CASE-master-box").css ({"height": comboHigh});

    IMP: no quotes on the value of the variable.

    Quotes on the value of the variable were a big obstacle for me. It took me a while to understand this detail. Ugh.

    Step 6:

    Create the same for each rocker of the element, then the height is re-evaluated whenever you change a toggle.

    Step 7:

    Assign/check the relative angle.

    Check on what corner your items received! Select the item, look for the 4 tiny squares next to Global applied icon in the properties panel. Choose a corner. Where the element is fixed in relation to a parent.

    Make sure that the element has a parent via dragging on a div or in a rectangle structure structure.

    Example could look like this:

    RectangleMaster

    > RectangleApple

    > Apple.svg

    > RectangleFruitChoice

    > RectanglePear

    > Pear.svg

    > RectanglePeach

    > Peach.svg

    Here, in this example, RectangleMaster is the parent of RectangleApple and RectangleFruitChoice.  This means that I did slide the rectangles on another rectangle to build the structure. Select the element and choose a corner of the icon of small places accordingly.

    Similarly, RectangleFruitChoice is the parent of RectanglePear and RectanglePeach.

    In this way, you can build a complex and dynamic structure.

    Best of luck to you all, code-ambitious designers out there! /GB

  • Using Variables in Session for a user connection - sometimes they persist... What am I doing wrong?

    Hi all

    I run a site that requires a user login.  I walked up to the construction of this site as almost a complete newb to CF (and dynamic coding in general), and it's been an experience great learing (with lots of help from you guys).

    However, I guess I never learned the correct way to manage a user login.  It seemed to me that I could just test the credentials entered by the user against the stored in a database, and then set a variable containg of registration number of the user session.  So, not only did I would have an easy way to know who was this user and, therefore, what information to serve, but I could test the existence of a valid connection on all pages in the protected folder, by adding this code to my application.cfc in this folder:

    < cfset This.Sessionmanagement = true >
    < cfset This.Sessiontimeout = "#createtimespan (0,8,0,0) #" >

    < cfif NOT isDefined ("session.username") NOT isDefined ("session.password") or NOT isDefined ("session.storeID") >
    "" < cflocation url = "... / index.cfm" addtoken = "no" >
    < / cfif >

    .. .and he continues to run a query and verify that the session.username and session.password correspond to the store defined by session.storeID.  If this is not the case, all session variables are erased and it bounces you to the login page.  When the user clicks on logout, everything I do is remove all session variables.

    This seemed ideal for like a year of work, but lately, I've been doing indicates that the connection does not seem to persist for more than 20 minutes of inactivity.  You can see I specified session variables to stay active for 8 hours (I know that sounds like a considerably long login, but that's what is needed for this application).  I just received this report of a few people, and I myself can't seem to reproduce... I tested an idle connection for 45 minutes now and held it.

    SO: any reason can you think why the session variables may be compensation for some people spontaneously?  Having your router reset his IP address would not invalidate the session or something?  In addition, the problem seemed first appearing after that my improved host all their servers to CF9... could there be a report any with?

    And in a more general way... I go about this completely the wrong way to start?  If Yes, what is the standard way to manage a connection?

    A lot of questions, I know... Thanks a lot for your replies and suggestions!

    Joe

    Unfortunately, it is the nature of the HTTP web requests.  There is NO State maintained from HTTP request to another.  This is normal in the HTTP protocol specifications.

    ColdFusion provides two methods to work around this limitation.  Each method has limits and warnings.  They both rely on the passage of tokens between the client and the server with every request.  These tokens can be passed as variable cookies or URL (GET).  You use the cookie method, which is the simplest and most common. You can experience the limitation of this method.  If something happens to the cookies that the session may be lost.

    You can pass tokens (CFID and CFTOKEN) or JESSIONID through with each request URL query string.  This requires that we add these values for each link, form, cflocation action or other path of the application in our application.  ColdFusion allows the session.urltoken variable to make this easier to do.  The chips will be visible to the user.  If links with an individual token is to share with other users, via e-mail, chat, social networks, etc. and one of those users also use the link for the duration of a session (8 hours apparently in your case).  While the user will access the original user's session.

    Cookies session management is by far the more common choice by the developers of CF.  If these methods do not meet your needs, you would need to go beyond the limitations of HTTP to web applications.  You may be able to achieve with Flex | Air | Flash applications that can be configured to use a connection permanently to the server.  Therefore not suffer nature without cycle State normal HTTP request-response.

    I don't know if a reset of the router would cause cookies to be retired or otherwise invalidated.  But I think that this goes beyond the relm of possibilities.

Maybe you are looking for

  • My iMac G3 Dosent Start Up! Help please!

    Hi my iMac G3 Dosent Boot... When I used it.... he stop it yourself. and it does not turn on AGAIN. I dissconected he of the seizure of power a day later I plugged it in I started, but when the power led was green it closes it self down and has not A

  • for debugger, shortcut moves keyboard focus to the component source from research

    I'm in the debugger and use the search function to find a definition of the function by pressing ctrl + d. I select the function definition.It works great so far, but the focus of the cursor is always in the search window. In general, I now want to s

  • Place the cursor in some indicators

    Hi all I would like to ask if anyone of you knows how to place the mouse cursor in some indicator automatically when the program starts while when I read, in my case 2D barcode, it must be displayed in some indicator automatically. Thank you in advan

  • PlayBook Simulator does not start

    When I try to launch the Simulator Playbook in VMPlayer in Windows 7, I get the following: QNX v1.2b Boot Loader: vmware.ifs Unable to access/dev/hd0 Cannot access/dev/nvram (2) Open(/dev/NVRAM) failed: no such file or directory Mount: Cannot mount b

  • BlackBerry Smartphones Adobe Reader not on my Playbook

    Received my new Playbook yesterday, but Adobe Reader does not appear in the menu. If it's there I can't find it. Someone at - it help him?