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.

Similar Messages

  • How to create idoc in real time

    hi guru
    how to create idoc in real time
    thanks
    subhasis

    Hi sahoo,
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30 )
    Create Message Type ( WE81 )
    Assign Idoc Type to Message Type ( WE82 )
    Creating a SegmentGo to transaction code WE31Enter the name for your segment type and click on the Create iconType the short textEnter the variable names and data elementsSave it and go backGo to Edit -> Set ReleaseFollow steps to create more number of segments
    Create IDOC TypeGo to transaction code WE30Enter the Object Name, select Basic type and click Create iconSelect the create new option and enter a description for your basic IDOC type and press enterSelect the IDOC Name and click Create iconThe system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press EnterThe system transfers the name of the segment type to the IDOC editor.Follow these steps to add more number of segments to Parent or as Parent-child relationSave it and go backGo to Edit -> Set release
    Create Message TypeGo to transaction code WE81Change the details from Display mode to Change modeAfter selection, the system will give this message “The table is cross-client (see Help for further info)”. Press EnterClick New Entries to create new Message TypeFill detailsSave it and go back
    Assign Message Type to IDoc TypeGo to transaction code WE82Change the details from Display mode to Change modeAfter selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.Click New Entries to create new Message Type.Fill detailsSave it and go back.
    Reward points if helpful.
    Thanks
    Naveen khan

  • 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.

  • 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

  • How to create a Date or time field that automatically saves current date or time?

    hello,
    i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
    also want to how to stop user to give input in Date/Time field
    currently im putting a Date field but it is accepting user input.
    hoping for quick response
    Thanks in advance!

    You can place the below code in the initialize event of the field to display the current date and time.
    Set the language to FormCalc.
    You can play around the formats to get the desired format of date and time.
    if($.rawValue eq null or $.rawValue eq "") then
    $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
    endif
    You can not restrict the input area in Date time field instead you can validate the input while existing the field.
    (OR) set the field to either readOnly or protected mode.
    Thanks
    Srini

  • Job Chain. How to create Rule based on Time also?

    Hi ,
    I need to check at 9:30 AM that one of the previous step in the existing chain has been completed.
    If not I'd like to do some 'send_notification' Step.
    So, I need to create rule based on Time and 'step_n succeeded'.
    Could you please tell me how to do that?
    Thanks for your help,
    LSY.

    Hi,
    Alberto is right in his approach. You can't say to evaluate the chains rules at 9:30am but you can set an evaluation context of 10 minutes so that the chains rules are reevaluated every 10 minutes.
    Then you can create a rule that says
    if the time is between 9:30am and 9:40am and step_to_check is running or not_started
    then start send_notification_step
    Hope this helps,
    Ravi.

  • How to create bootable iso file from usb flash drive to install windows 7 on macbook early 2008

    how to create bootable usb flash drive from iso file to install windows 7 on macbook early 2008

    I would like to install windows on my mac because I am in engineering school and there a lot of programs I'd like to have on my computer that only run on windows.  And yes I'd like to use bootcamp and I know there must be a way to install off a flash drive.  Do you know of a way?

  • Hi - Re Keynote  I'm trying to figure out how to create a music album on USB flash drive. What I want is a background picture with 'click-buttons' to play each track listed, also similar for embedded videos and photos etc.  Is this possible with Keynote ?

    Hi - Re Keynote  I'm trying to figure out how to create a music album (as an artist) on USB flash drive, (accessible by both Mac and PC). What I want is a background picture with 'click-buttons' to play each track listed, and play in order (like a cd) - also similar for embedded videos and photos etc. This should all be on the one page.  
    Is this possible with Keynote, or any other software package for Mac (am using Macbook Pro) ?
    Gav 88

    Hi there,
    Yikes, it sounds like you've been doing a lot of work on this project... Unfortunately, however, this isn't the Adobe Encore forum, but the Acrobat.com forum. While it seems like an exciting question, we're not able to address issues pertaining to other Adobe products and services. Here's a link to the Adobe Encore forum, where you're more likely to get help for this specific issue:
    http://forums.adobe.com/community/encore
    Sorry not to be of more specific help to you. Best of luck!
    Kind regards,
    Rebecca

  • 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

  • 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 a demo with time limit?  (timebomb)

    Hello,
    I would like to create a demo of a game I made but want to limit the amount of time it will run once installed.  (30 days).
    Is there an xtra or a straightforward way to do this in lingo?

    there is no straightforward way to do it in any programming language. I'm currently developing a Director-specific trial version solution, but it's not ready yet for general/commercial use. Are you looking for a free solution or are you willing to pay?
    Trial Versions are used so users can try out your software and then buy it if the software is something they want. So, there are two parts to trial software;
    1. the code that handles the trial version
    2. the code that handles the product serial and registration/licence keys
    The code that handles the trial version needs to be able to do these things:
    1. Keep track of the trial period. This involves recording the first run date/time and incrementing that date/time when the software is launched each subsequent time and comparing that against the trial period.
    2. Protect against backdating - turning back the computer clock to get more trial time.
    3. Protect against uninstall/reinstall.
    Dealing with all three of these issues becomes complicated; let's look at a solution using a licence file. What about a licence file will solve all the issues listed above?
    1. The licence file will contain the First Run Date (FRD), the Last Run Date (LRD), and other specific user and product info.
    2. A licence file should be encrypted to ensure it cannot be tampered with.
    3. A licence file should be moved to the user's AppData (or equivalent) folder by the installer software (such as NSIS). This ensures the first run date is only ever recorded once... what do I mean by this? If your app had to check first before opening and writing to the license file, then someone could easily circumvent the trial version by deleting the file at which point your application would be forced to move/write the licence file again and the user would be able to start the trial over again. Well, the installer only ever runs once. So, if it copies over the licence file during the installation process then our application, when it runs the first time, only has to check if the file is there; if not then the trial has been tampered with, if it's there then read the FRD, and if blank then we can be sure it's writing the FRD for the first and only time.
    4. The file could be hidden to ensure that an un/reinstallation of your software wouldn't circumvent your trial security. Another method is to write to the registry some entry that's obscure or looks like some other info for your software... this is what's called security by obscurity which is frowned upon in the industry, in general, but there's really no way around it in the case of trial software methods.
    5. A licence file can be used as a red-herring if you want to use an obscure/hidden registry entry to save the real trial version information. If that's the case, you should follow the same steps as above and have your installer write the initial registry entries so it cannot be as easily circumvented by your code checks.
    Encryption is a big part of trial version security. If you're using MX2004 or above then you can find javascript ports of some strong encryption algorithms such as AES or RSA. RSA is an asymmetrical (ie public/private key) encryption algorithm whereas AES is a symmetrical (ie. private key) algorithm. The important things to look for in an implementation are ones that will encrypt a variable length string. These implementations use modes to encrypt fixed length chunks of the string, thus making the core encryption algorithm useful in practical situations such as encrypting variable length strings.
    Creating a trial/registration .dir file (trial window) that gets published with the main application .dir file:
    Below, I've outlined these steps so you can see what I mean. I've tested this process and it's solid, AFAIK. Here are the steps:
    1. Create a project and name it movie1. Add a framescript with the 'go the frame' code on it.
    2. Add a label named 'continue' on the frame just after the 'go the frame' framescript.
    3. Add a button, and this code:
    go to frame "continue"
    4. Now, go into the Publish Settings options and go to the 'Files' tab and add any of your other .dir files you want under the 'Additional Files:' heading (the option to Play every movie in list will be checkmarked by default. Leave it like that).
    5. Now, Publish your project and you will have ONE .exe called movie1.exe which contains two .dir files that have been published.
    6. Open your User Temp folder and observe the folder that's created when you run movie1.exe... no temp .dir file is created when you run movie1.exe
    7. Creating another .dir with this code:
    go to frame "continue" of movie("movie1")
    ...does not work as it's looking for a .dir or .dxr or .dcr and will not work with an .exe.
    What this means is you can create a single executable that runs the trial window with all your trial version code and if everything checks out in the licence file then you can go to the main application movie. The trial window can be used to display the trial information, including a registration section, if you like. Google examples of trial version software to get ideas of what should be included in a trial version display.
    Resources:
    AES encryption written in Javascript: http://www.movable-type.co.uk/scripts/aes.html
    DOUG Article I wrote on creating product keys: http://director-online.com/forums/read.php?2,22279,22303#msg-22303
    Block Cipher Modes: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29
    AES - Wikipedia: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
    RSA - http://en.wikipedia.org/wiki/RSA
    Pseudocode for recording and comparing dates
    FRD = First Run Date
    LRD = Last Run Date -- this one would get updated every time the app was run.
    CRD = the systemDate
    NumDays = 30 -- the number of days for trial version
    dateGood = False
    If LRD > CRD Then
    -- the system clock was rolled back
    dateGood = False
    Else If (the systemDate) > (NumDays + FRD) Then
    -- trial version has expired
    dateGood = False
    Else If CRD > LRD Then
    -- everything is ok, so write a new LRD date in registry or wherever else
    dateGood = True
    Else If CRD = (_movie.systemDate) Then
    -- the dates are both good
    dateGood = True
    Else
    dateGood = False
    End If
    Typical Place to Write Application data to the Registry:
    HKCU\Software\<AppName>\<version>\
    eg. HKCU\Software\TRiShield\1.0\

  • How to create UIComponent at the time of Page Load itself?

    Hi,
    I have to create OuputText Beans at runtime and set the values which i will get from the previous page. My Backing bean is extended of PhaseListners.
    I created Form declarative. At runtime i created PanelLabelAndMessage,OuputText . I attached OuputText to PanelLabelMessage. After this i attched the PanelLabelMessage to Form as getForm1().getChilders().add(PanelLaelMessage).
    But code is executed but my page is not refelcted the changes.
    My query is:
    1. Where i have to add the code? is it in Constructor? OR. afterPhase() method of PhaseListner method.
    Pls suggest how to forward.
    Code:
    Iterator itr_4 = hashWithResult.keySet().iterator();
    while(itr_4.hasNext())
    Object key_4 = String.valueOf(itr_4.next());
    Object value = String.valueOf(hashWithResult.get(key_4));
    System.out.println("In While loop");
    System.out.println("key-------->"+key_4);
    System.out.println("value------>"+value);
    CorePanelLabelAndMessage paneMsg = new CorePanelLabelAndMessage();
    paneMsg.setLabel(String.valueOf(key_4));
    CoreOutputText text = new CoreOutputText();
    text.setValue(String.valueOf(value));
    paneMsg.getChildren().add(text);
    UIComponent panelform = FacesContext.getCurrentInstance().getViewRoot().findComponent("panelForm1");
    panelform.getChildren().add(paneMsg);
    Regards,
    Adhi

    Sorry, I am using ADF 10.1.3.4.

  • How to create a counter (with fixed increment) in DME file

    Hi Experts,
    Is there a way to define a counter in one of the Segment/loop of DME (Such as number of invoices), where we have to increment the actual value of the counter reading by a fixed value, say 2. Example, if the counter can print the invoice numbers as 1,2,3, 4,5 etc. then it should rather print X+2 in each case, i.e. 3, 4, 5, 6, 7 and so on.
    Regards
    Harsh

    Hi Amitash,
    Thanks for the response. Sorry I couldn't articulate my question correctly. Let me try to rephrase.
    I have to print all the invoice details related to each payment document, in the DME output. One of the field in the invoice details is a simple counter, which prints a simple sequence number 1 to 5 (for 5 invoices). This counter can go upto any number depending on the number of invoices (1 to n). Now with the help of aggregation functions I am able to generate such a counter. But here is the twist now. Instead of printing 1 to 5, the counter should print 3 to 8. ( i.e. 1 to n, it should be printing 3 to n+2 ). Is that possible?
    Regards
    Harsh

  • How to create a custom quick time window size?

    I've been streaming all the video on my site with QT7 exported from Final Cut Express. The one thing that's bugging me is that I like to matte off the final video to creat a more widescreen image if possible but this results in black bars above and below the image.
    Is there a way to export to a custom sized window so I miss out the black bars? It must be possible but can't figure this out. I've got QT Pro if that helps

    Mike,
    A ton of tools to do this.
    QuickTime Pro allows you to use "masks" (a simple black and white image file) to hide, or show, part of your display.
    It doesn't require you to export (and add even more compression to an already compressed file).
    I also doubt your files are "streamed" and probably just use "Fast Start" (Progressive download). You need extra software to "stream" and your files are probably don't need the extra bloat of "hint tracks".
    MPEG Streamclip (free) can also be used to crop your videos. This does require a new file (export) but the benefits of the reduced dimensions will compensate with a smaller file size.

  • How to create an event based timer

    Hi,
    I'm using LabView 7.1 and in my application I need a timer/clock which will do the following things depending on imputs
    1. When I pass 1 as an input, the timer should not increament and stay in its previous position.
    2. When I pass 2 as an input, the timer should start increamenting from the previous value
    3. When I pass 3 the timer should clear itself and come back to 0.
    I don't need much accuracy and just resolution of seconds will suffice.
    Can anyone help me out as I'm new to the LabView
    Looking forward for the help
    Thanks

    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
    Attachments:
    timer.vi ‏9 KB

Maybe you are looking for

  • Using null values to change text boxes

    Very simple question I believe. I have a form with rows of data.  All I want to do is say that if a given field in a row "description1" is not Null, then populate another field with a specified value. jA

  • How to continue a loop after roll back callee a Transaction in SOA

    Hi All, I Have main bpel process which calls a external web service which returns  set of records, iiterate through the set, i need to store the each record in AQ Topic. and ack each and every record after storing them in AQTopic. if the Ack fails i

  • E- mail stops working

    Inbox stops working, have to go to restart to get it to work.

  • Linking pdf file to a WPC Banner

    Hello All, Is it possible to link a pdf file to web page composer "banner" which will open on clicking on the banner? I have linked a pdf file to a banner in Web Page Composer. But on clicking the banner its showing "403 Exception. The requested oper

  • Flash Builder 4.5 and Eclipse Indigo (3.7)?

    Hi all, is Flash Builder 4.5 going to work well with Eclipse Indigo (Eclipse 3.7) if I would do a plugin installation??? If not, are there plans to do so? Thanks. Paul