Creating a counter

i already posted this before but that seems to only work on counters and button clicks in the same scene
i am using actionscript 1 and 2
i have created 18 scenes
scene 3 to 7 are questions
each time an answer is correctly answered, the counter should increase by 1
i want scene 18 to have the number of answers answered correctly
example:
when you click on the correct answer on 3, i want the counter in scene 18 to increase by 1
the actionscript already on the correct answer is:
on (release) {
     gotoAndPlay ("Scene 3", 4);
so far i have created a counter on scene 18 with the actionscript on the timeline with a dynamic text box with nothing else done to it:
_root.counter = 0;
a button to go back to the start of the quiz and to reset the counter back to 0 is on scne 18 with the actionscript:
on (release) {
     _root.counter = 0;
     gotoAndStop ("Scene 2", 1);
state anything i have done wrong and suggest a way to correct it
thank you for your help

the counter is supose to be on scene 18
when i  click on the correct answer, i want the counter to increase by one
each question is on a different scene though

Similar Messages

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

  • Create a counter for the rows in a table using script editor?

    Hi ,
    I want to add afield in a particular table  with first field is its serial number . How to use scripting editor to fill the serial number ?
    How to create a counter ?
    Edited by: Rajan.Dexter9 on Jan 30, 2012 9:40 PM

    Hello Rajan,
    Create a field in the table and name it as 'SERIAL'.  Create a variable called 'count' with default value as 0.  Now in script editor, for javascript language and calculate event, write the following script.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    for (var i=0; i <= fields.length-1; i++)
         if (fields.item(i).name == "SERIAL")
              count.value = count.value + 1;
                     this.rawValue = count.value;     

  • Steps to create the counter based Maintenance plan

    Hi!
    Can any body give "Steps to create the counter based Maintenance plan"
    (Mater Data,Transactional Data and Customizing Data creation)
    Regards,
    MDSFR

    hi
    please refer the following link
    http://help.sap.com/saphelp_46c/helpdata/en/fe/67ef189d6f11d189b60000e829fbbd/content.htm
    regards
    thyagarajan

  • Creating a Count at Header level..

    Hi Experts,
    What do you mean by creating a "count" at Header Level & Item Level?I have a Key Figure called PO Count(which counts the total number of Purchase orders),but my client says that this KF just counts the PO's at Item level and that they need a count at Header level.
    Any help on this would be appreciated.
    Thanks
    Aravind Pattabiraman

    Hi,
    if ur still not able to do that
    goto EEWB
    Enter the Project Name
    Right click on the Enhancement---->Select back to previous version.
    <b>Please Reward Points & Mark Helpful Answers</b>
    To mark Helpful Answers ;click radio Button next to the post.
    RadioButtons
    <b>o</b> Helpful Answer
    <b>o</b> Very helpful Answer
    <b>o</b> Problem Solved.
    Click any of the above button next to the post; as per the anwers
    <b>To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers</b>

  • Creating multi counter plan using LSMW

    Hi,
    I am trying to create multi counter plan (transaction IP43) using LSMW. I am using direct input object 0460 for creating it. Object has IBIPMPLA structure as header. How can i pass multi counter data in it ? Problem is line item level values like 'Maintenance cycle' (ZYKL1) are at header level structure IBIPMPLA.
    Anyone has cretaed multi counter using this object, please help me with it.
    Thanks,

    Hi,
    creating multi counter plan using LSMW
    Try this link,
    http://www.sapfans.com/forums/viewtopic.php?f=7&t=217834&p=1059434
    It will helps to you.
    Regards,
    Sekhar

  • Create a counter(in a query) by how many unique items are in a document num

    Hi,
    Is there a way for me to create a counter(in a query) by how many unique items are in a document number?
    If you look at the bold amounts below they have two unique item numbers 3 & 11. Because of that data is being duplicated in the InfoSet. The Subtotal needs to be 13500 instead of 27000. The two subtotals above are correct. I was thinking if I can create a create a counter(in a query) by how many unique items are in a document number (in this case it would be 2). And then if i divide Quantity by that counter, i shall get the correct value of 13500.
    How can i do this?
    Thanks
    Doc Num                  Item #       Quantity
    5900001759     11     2,700
    5900001759     11     5,400
    5900001759     11     2,700
    5900001759     11     2,700
    5900001759          13,500
    5900001890     7     2,700
    5900001890     7     5,400
    5900001890     7     2,700
    5900001890     7     2,700
    5900001890          13,500
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     5,400
    5900002176     11     5,400
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176          27,000          
                             54,000

    Create a New Calculated Key Figure
    From the context menu for the Formula Variable, choose New Variable
    Choose the Processing type as Replacement Path
    In the next screen, select the Characteristic Info Object based on which the number of documents is to be displayed in the report (For example: Document Number / Order Number).
    Choose Next.
    In the Replace Variable with drop down box, choose Attribute Value.
    In the Attribute drop down, select Characteristic Reference (Constant 1).
    Choose Next.
    On the Save Variable page, an overview of the settings made for the variable will be displayed.
    Confirm the entries and Choose Finish.
    Open the formula variables directory and use Drag & Drop to transfer the formula variable
    To avoid the warning message, the formula variable is multiplied by 1
    The most important step here is to set the Time of Calculation to After Aggregation in the KF properties.
    (by Default the Time of Calculation is set to After Aggregation)
    The new calculated key figure is available under Calculated Key Figure in the Key Figure directory, and can be included in the query definition using Drag & Drop.
    Hope this help
    Rgds

  • How do you create a counter/or increment a number in SQL Developer?

    How do you create a counter/or increment a number in SQL Developer?
    for example:
    x = x + 1; // add 1 to the value of x
    Thanks,

    Thank you for your help. In reply to your comment I notice that I forgot the colon ":" when I "DECLARE x = 0;"
    When I fixed the "DECALARE x := 0;" the code works fine. See below:
    SET SERVEROUTPUT ON
    Declare
    x integer :=0;
    BEGIN
    -- use a FOR loop to process a series of numbers
    FOR i in 1..3 LOOP
    x := x + 5; ---// add 1 to the value of x
    DBMS_OUTPUT.PUT_LINE('Counter: ' || TO_CHAR(x) || ' Square: ' || TO_CHAR(i*i));
    END LOOP;
    END;
    ---------------- OutPut ----
    anonymous block completed
    Counter: 5 Square: 1
    Counter: 10 Square: 4
    Counter: 15 Square: 9
    ====================================
    Thank you again and greatly appreciate your feedback.
    Have a great day!!

  • Problem in creating a Counter in Update Routine

    Hello,
    I'm trying to create a sequential counter for an InfoObject through the infoobject transfer routine. I would like to use this unique counter as a key field in DSO. I'm using a function module to do that. But the data load fails and there seems to be a problem in it.
    Could you throw some insight to this or is there another routine that might suffice this? Please suggest.
    DATA:RESULT1 TYPE /BIC/OIZOC_COUNT.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'TDNAME'
    *   QUANTITY                      = '1'
    *   SUBOBJECT                     = ' '
    *   TOYEAR                        = '0000'
    *   IGNORE_BUFFER                 = ' '
    * IMPORTING
        NUMBER                        = RESULT1
    *   QUANTITY                      =
    *   RETURNCODE                    =
    * EXCEPTIONS
    *   INTERVAL_NOT_FOUND            = 1
    *   NUMBER_RANGE_NOT_INTERN       = 2
    *   OBJECT_NOT_FOUND              = 3
    *   QUANTITY_IS_0                 = 4
    *   QUANTITY_IS_NOT_1             = 5
    *   INTERVAL_OVERFLOW             = 6
    *   BUFFER_OVERFLOW               = 7
    *   OTHERS                        = 8
      RESULT = RESULT1.
    Thanks.

    Number range object is sensitive thing in SAP, there are some std. number range object or you can create your own, number range objects can be year dependent which means you can define number range by year (I dot think that will work in your case, unless you have year also in the key field of your DSO). T-code to create/display number range object is SNRO.
    Make sure you get some input from ECC-functional guy of your team regarding this. I would suggest you to create your own number range object for this couter purpose.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/2a/fa0365493111d182b70000e829fbfe/frameset.htm

  • Creating a counter in excel, not using prompt

    Hi,
    I am running a script with lots of calcs... these ones are hard coded (not using a prompt at all), therefore whenever I run the script it takes at least 1 min  to finish.
    I'd like to know if there is a way to use a time counter (macro) or something in order to display the amount of time left to update the results in Excel.
    Thanx in advance.
    Velázquez

    When you are speaking about script logic doing calculations you can not know how long it will take the generate queryies
    It can be 1 second doing a selection for 1000 records and it can be 1 minutes for 1 000 000 records.
    So you can not have a counter saying the time left because you don't know how long it will take.
    Something can be created if it is really necessary but it will take quite a lot of effort for an information which doesn't provide any help because it is not reliable.(are too many factors having impact for calculation time to do a good estimation).
    Regards
    Sorin Radulescu

  • How to create Interchange counter in Seeburger

    Hi Folks,
    May I please ask for your help on how to create/setup an interchange counter in Seeburger or if you have any guide available?
    What I am trying to do is to have an incremental value for the element ISA013. The current value is "000000001".  Hence for the next file that will enter XI, ISA013 will now have a value of "000000002".  IEA02 will then have the same value as ISA013.
    ISA00          00          ZZxxx            ZZxxx        0125080826U04010000000001OP|'
    IEA1*000000001*'
    Thanks a ton!

    Hi lex,
    Is seeburger is installed in your XI Box.
    Then  there are standard Functions available for Permanant counters and variables.
    You have to import the SeeFunctions.jar into the Archives
    and have to construct the UDF's using the standard methods provided by the java class files.
    no need to do the manual coding as all the script for the functions are given in the SEEBURGER Permanent Counters and
    Variables for SAP Exchange Infrastructure Configuration Guide.
    Cheers
    Sunil

  • Creating Cycle Count

    Hi,
    I want to create new cycle count and looking for steps
    the requirements is
    every week I get list of item counted on a specific sub-inventory/category by store incharge
    I will load them in to cc interface
    then use will approve adjustments.
    what the step needed to do?
    thanks,
    7Z

    After some tries I have done the steps needed but now the issue is I want to run cycle count on specfic category(items) on weekend .
    Is there a way to do this?
    What I would be doing is that after the cycle count on specific items I would update the interface table and set approval to auto.
    mvh

  • How to create a count up timer in flash ...

    How do you make a count up timer in flash? I have the custom counter I made in photoshop and I can get it to count up, but not with the dynamic text field I've created in flash, what do I need to do.......
    simpl code:
    var startT:Number = 1;
    var endT:Number =8000000;
    var tf:TextField = this.createTextField('counter', this.getNextHighestDepth(), 10, 10, 300, 22);
    onEnterFrame = function ()
        if (startT >=endT)
            delete onEnterFrame;
            tf.text = String(endT);
        else
            tf.text = String(startT);
            startT += 1;

    You are using AS2 code, so you should start by setting your file up to publish for AS2 code.  If you do that then the code you show will work.  If you have further issues with it you should posyt in the AS2 forum.

  • How to create a counter?

    I need help in creating this scenario.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)
    I have done something like with the help of some people like this below:
    REM SERVEROUTPUT must be set to ON to display output with DBMS_OUTPUT
    SET SERVEROUTPUT ON FORMAT WRAPPED
    CREATE OR REPLACE PACKAGE BODY LOG_COUNTER AS
    PRAGMA SERIALLY_REUSABLE
    PROCEDURE INCREMENT_HOME_NON_LOGIN IS
    v_cnt NUMBER (6);
    BEGIN
    SELECT COUNTER INTO v_cnt
    FROM PORTAL_HOME_NON_LOGIN_LOG
    WHERE TO_CHAR(LOGDATETIME, 'DD-MON-YYYY H24') = TO_CHAR (LOGDATETIME, 'DD-MON-YYYY H24');
    DBMS_OUTPUT.PUT_LINE('RECORD FOUND. -- INCREMENT COUNTER '
    + v_cnt);
    EXCEPTION
    WHEN NO_DATE_FOUND THEN
    DBMS_OUTPUT.PUT_LINE ('RECORD NOT FOUND -- INSERTING RECORD ....');
    INSERT INTO PORTAL_HOME_NON_LOGIN_LOG
    (LOGDATETIME, COUNTER)
    VALUES (TO_TIMESTAMP (SYSDATE, 'DD-MON-YYYY HH24'), 1);
    COMMIT;
    END INCREMENT_HOME_NON_LOGIN;
    END LOG_COUNTER
    Thank You.

    SQL Developer refers to an application, not you. You'd get more response on the "SQL And PL/SQL" forum.
    Regards,
    K.

  • How to create performance counter based on no. of errors generated in application log

    i have written custom events into application log and am able to see those events as alerts in the scom console and now i want to see how many event errors are generated for every 15mins.(interval)performance counter with same event source or id. how can
    i get started with this 

    Hi,
    Please try to create event monitor Triggered on Count:
    Trigger on count consolidation of events lets a monitor require multiple occurrences of the same event in a specified time window before it changes the health state to an error. The time window can be rotating time duration of specified length or
    a specific window based on day of the week.
    Trigger on count consolidation resembles trigger on timer consolidation except that multiple occurrences of the event are required instead of just one. When the time window is reached, the event count is returned to zero, and the specific number of events
    must detected before the time window expires again for the health state to be changed.
    More details:
    Event Monitors
    http://technet.microsoft.com/en-us/library/ff629447.aspx
    Regards, Yan Li

Maybe you are looking for

  • Macbook MID-2012 crashing every day (Kernel Panic)

    Hi! I hope I'll find some help here. My new Macbook (MID 2012) is crashing everyday. I read that this might be a RAM issue (maybe due to the fact that I installed 16GB 1600Mhz of Crucial), but this would really surprise me because I only got this iss

  • Conversion of String to big integer

    Here we have Converted a Big Integer to String using String.valueOf() in the server side. Now when the reciever has String convert back to Big Integer.. Pls help

  • How to find the 1(one week) performance of the system

    HI every one in my recent interview he has asked this question i have checked the sar options through man pages but i couldnt understand ... can any one please tell me how to find the on week performance report of a system...... please tell me how i

  • List of Pricing conditions for a material

    Hi, How can I view the list of all pricing condition types maintained for a material. Is it possible in standard SAP? Thanks.

  • HP C4780 driver won't download from ftp site

    Help,  I can find the driver I need for a Windows XP installation of the C4780 printer.  The following site hangs up and does not download: http://ftp.hp.com/pub/softlib/software11/COL28119/​mp-715553/PS_AIO_06_C4700_USW_Full_Win_enu_140_175​... Can