How do I repeat a function that starts immediately?

Hi,
I am using a Timer function to repeat a function however the function only begins (and repeats) after the period set eg. 5 seconds not immediately.
Here is an example of the code:
var myTimer:Timer = new Timer(2000,8);
myTimer.addEventListener(TimerEvent.TIMER, timerListener);
function timerListener (e:TimerEvent):void{
trace("Timer is Triggered");
myTimer.start();
Is there any way to make the function start immediately then repeat?
Thanks
Chris

after timer.start()
add
myTimer.dispatchEvent(new TimerEvent(TimerEvent.TIMER));
this will trigger your function immediately

Similar Messages

  • When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.

    When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message.  I use Exchange 2010 only local users.

    I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
    http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
    CRM Advisor

  • How i can take all record that start for Epi using a select?

    How i can take all record that start for Epi using a select?
    exemple
    select objnr from jest where objnr = 'Epi*'  -
    so don't go

    Is case important? Can it be "EPI"?
    I think case is important, so do it like Shakir showed you, but put it in upper case.
    Rob
    Message was edited by:
            Rob Burbank

  • How do I use a passcode that starts after an hour?

    I have an iphone5s but I do not want to use my fingerprint to unlock it.  How do I use a passcode that activates after one hour?

    I have an iphone5s but I do not want to use my fingerprint to unlock it.  How do I use a passcode that activates after one hour?

  • How can I make a brush that starts and ends in a thin line?

    I am looking to make a brush that I can use for cartooning in CS6 that starts out thin, gets thicker with pressure (I have a cintiq), and ends in a thin line. Does anyone have the expertise to make one?
    Thank you.

    I watched the first half of the tutorial from your link and some parts of the rest. It is a good tutorial. He is using an art brush which profile was created from an elliptical shape with sharp corners which gives that ink kind of appearance which is good for this kind of style. Most of the time though I prefer the appearance of the rounded ends of the calligraphic brushes. Also one advantage of the calligraphic brushes is that it can change its size or the size of the selected strokes with the [ and ] keys on the keyboard while with the art brushes this is done by changing the stroke weight which also can change the weight of calligraphic brushes in addition to the [ and ] keys.
    Like in the tutorial I often use a similar workflow ending up with the brush strokes converted to filled paths but I simply use expand appearance then remove the unwanted parts with the Eraser brush which can be made pressure sensitive in the options that you get when double clicking the Eraser tool. This is less precise than the technique the guy is using in the video tutorial but it is quick, I like  the hand touch appearance of the imperfections, and it also allows me to paint the white (transparent) highlights like for example the highlights on the booths of my cowboy. The Blob brush is the tool above the Eraser in the Tool panel and works basically the same like the Eraser but it adds to the fill of a path and it also has these and more options when you double click it. I use it most of the time in a combination with the Eraser to add or remove final details of illustrations started initially with brush strokes and then expanded. And like in the video tutorial I also like to keep a copy with the stage before expanding the brush strokes in case I need some changes on brush stroke level.
    I also use a different technique for adding new color fills on the illustrations instead of cutting paths with the knife. I don't like the knife because I often do not like the first cut which I may realize later when undo is not the best workflow. What I do is copy paste in front the path and use the pencil tool set to edit the selected paths and change the shape of the selected path similar to using the knife but the pencil has to start and end on the path. The advantage of this for me is that the new fill with the different color is overlapping the original fill behind and when later I decide to change its shape I don't get gaps between the two colors which is what will happen if the knife was used.

  • How to find a line/edge that starts at the same point as the end of another

    I have an edges table of Lat/Lon data and for a specific edge I want to find any other edges that have the same start point as the end point of the given edge.
    I tried the following query:
    select geo_street_id from geo_street s2
    where SDO_LRS.GEOM_SEGMENT_START_PT(s2.geom) =
    (select SDO_LRS.GEOM_SEGMENT_END_PT(s.geom) as geom from geo_street s
    where geo_street_id = 122978214)
    but it gets the following error:
    ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
    Any Ideas?

    1. to compare geometry to be equal you should use appropriate function (SDO_GEOM.RELATE http://download.oracle.com/docs/html/B14255_01/sdo_objgeom.htm#sthref1561) or operators (sdo_relate http://download.oracle.com/docs/html/B14255_01/sdo_operat.htm#i78531) with specific mask EQUAL.
    2. to filter down the resultset in first place you can use the operator SDO_RELATE with mask TOUCH as this will return already the set of lines sharing endpoints, but will also include lines touching eachother not at endpoints (endpoint intersecting the otherone's interior)
    something like
    select geo_street_id from geo_street s2, geo_street s
    where
    s.geo_street_id = 122978214
    AND
    sdo_relate(s2.geom, s.geom,'mask=touch') = 'TRUE'
    AND
    sdo_geom.relate(SDO_LRS.GEOM_SEGMENT_START_PT(s2.geom),
    'EQUAL',
    SDO_LRS.GEOM_SEGMENT_END_PT(s.geom),0.005)='EQUAL'
    3. if you would do this for the full table, an SDO_JOIN (http://download.oracle.com/docs/html/B14255_01/sdo_operat.htm#BGEDJIBF) might be more appropriate.
    4. you might also consider 4 cases:
    start = start
    start = end
    end = start
    end = end
    5. alternative would be to take only the endpoints of your selected geometry and perform a touch with the edges. using the sdo_util.APPEND on the startpoint en endpoint of your geometry will return a multipoint. although there might some specific cases that this would not return respected result I think
    something like:
    select geo_street_id from geo_street s2, geo_street s
    where
    s.geo_street_id = 122978214
    AND
    sdo_relate(s2.geom,
    SDO_UTIL.APPEND(
    SDO_LRS.GEOM_SEGMENT_START_PT(s.geom),
    SDO_LRS.GEOM_SEGMENT_END_PT(s.geom)
    ,'mask=touch') = 'TRUE'
    Let us know how it works.
    Luc

  • How do I add a clip that starts before 1st menu appears

    I need to find out if there is a way for me to show film clip right after I start the DVD and before the 1st menu is shown.
    I only want to show it the 1st time the DVD is placed in a drive.
    Is there a way to do that in DVD SP 2
    Thanks
    Paul

    As David said... but I would definitely use a track and set it as first play, then set the end jump of that to go to the main menu. This is how warning screens, etc, are generally done.
    If you use a menu you'll need to be sure throughout the rest of the DVD that the Title button on the remote doesn't point to your item... using a track will avoid this need.

  • How do you call a function that belongs in a package?

    Hello,
    Can anyone help me with this issue? My intent is to create a procedure that returns a cursor to the results of the query without passing in the cursor to the function. After reading thru online tutorials, I found that I had to create a function, not a procedure.
    I created a .sql file as such:
    create or replace package GetEmployeeCursors is
    type empResultSet is REF CURSOR;
    function Funct1 return empResultSet;
    end GetEmployeeCursors;
    create or replace package body GetEmployeeCursors is function Funct1 return
    empResultSet is
    tmpResultSet empResultSet;
    begin
    open tmpResultSet for
    select * from employee;
    return tmpResultSet;
    end Funct1;
    end GetEmployeeCursors;
    Both the package and package body were created without any problems.
    Then, I tried to call the Funct1() in many ways, including the following:
    call System.getEmployeeCursors.Funct1()
    call getEmployeeCursors.Funct1()
    call Funct1()
    All produced the following error message:
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    How do I call Funct1()?
    Thanks so much in advance,
    --Anna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello Frank,
    Thanks for the information regarding not using the system schema when creating packages.
    I tried what you suggested to call the Funct1 in many ways:
    SQL> mycursor := system.getEmployeeCursors.funct1;
    SP2-0734: unknown command beginning "mycursor :..." - rest of line ignored.
    SQL> mycursor := getEmployeeCursors.funct1;
    SP2-0734: unknown command beginning "mycursor :..." - rest of line ignored.
    SQL> mycursor := funct1;
    SP2-0734: unknown command beginning "mycursor :..." - rest of line ignored.
    SQL> select *
    2 from table(system.getEmployeeCursors.funct1);
    from table(system.getEmployeeCursors.funct1)
    ERROR at line 2:
    ORA-22905: cannot access rows from a non-nested table item
    Could there be something else I need to do before making the function call?
    Thanks alot!
    --Anna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I accomplish this function that control a server application on jav

    Now I write a server application,and want write a control shell to operate it,like start,stop,restart and so on.
    just like the apache server shell and Tomcat 5.0 server shell,but mine shell just add the system configure panel.
    I need your help,Thank u very much!

    just make your server to listen to some specific
    command either in the same port or different port.I don't know what u say,can u give me an example?or very specific introduce.
    how to listen to some specific command in the same port or different port.

  • How to call a java function that is in page header from a process in page.

    Hi,
    Generally we call plsql process from a javascript in the header of that page.
    But i want the other way around.
    Is it possible or is it a completely wrong idea.
    I am thinking so because we are able to call javascripts from items and buttons why cant we do so from a process.
    Thanks and Regards,

    943323 wrote:
    Hi,
    Generally we call plsql process from a javascript in the header of that page.
    But i want the other way around.
    Is it possible or is it a completely wrong idea.
    I am thinking so because we are able to call javascripts from items and buttons why cant we do so from a process.It's a "completely wrong idea". Processes and PL/SQL run in the database on the server. JavaScript runs in the browser on the client. For basuic security reasons the browser must make requests to the server, not the other way round.
    Please update your forum profile with a real handle instead of "943323".

  • How can I know the service that start with oracle 8i in SUN

    as subject!
    Thank You
    Ricky

    Try looking in the bdump directory, the alert file. The actual path should be in your init.ora or config.ora parameter file.
    John Taylor

  • How do i limit the apps that start when Xperia Z boots up? phone

    Other than individually....

    Hello Condukta,
    Here is a link to the Sony Mobile Group who could assist with your question about the Z phone.

  • How do I cancel a download that won't load

    I tried downloading a movie from iTunes. It lost connection and stopped downloading and now none of my apps will update. It just says waiting. How do I cancel the movie that started loading?  I only see the pause and resume buttons on the iTunes download tab. I'm using my iPad and don't have the computer to connect to. Thanks.
    Brittany

    On the iPad, tapping the icon functions the same as pause/resume

  • Repeat on function in ME21N

    Hi,
    Could some one let me know how does this  Repeat On function work (available in account assignement tab) while creating Purchase order using T code ME21N ?
    Thanks
    ArunVijay D

    Hello,
      One of our users noticed that once the 'Repeat' option is turned on in ME21N on the Account Assignment tab, she cannot get it to turn off even for subsequent  purchase orders she creates.   One of our developers was able to duplicate this issue in our Develpment system as well.   We switch off the 'Repeat' (matchstick) under the Account Assignment tab for a line item, and then if we go to the next line, the 'Repeat' option shows as being on again.   Then if we create a second purchase order, this 'Repeat' option is automatically on also.
    We are on ERP 6.0 for EHP4 and have recently upgraded to Office 2007.
    Does anyone know how to turn this option off again so it doesn't automatically stay on for the user?  There doesn't seem to be any setting under the Personal Settings that would affect this.
    Thanks for any help on this.
    Cheryl
    Edited by: Cheryl Hellestad on Nov 3, 2010 5:32 PM

  • ApplescriptObjC: function that is always running?

    Hi Community,
    As much CPU as it will take up, I need a function that is always running. I tried making a function (called theTest for the sake of the test) that has a repeat block in it and displays some dialog every 3 seconds and then calling on it from the applicationwillfinishlaunching_(aNotification), but the application won't finish launching until the function I call on has finished running (which is never because of the repeat block). Does anyone know how i can make a function that is always running without having any interaction from the user? Or if there is already a function that does that that i don't know about? Thanks. Here's the code I tried:
              on applicationWillFinishLaunching_(aNotification)
                             theTest()
              end applicationWillFinishLaunching_
              on theTest()
           repeat
                repeat with i from 1 to 3
                                                           do shell script "sleep 1"
                end repeat
                                            display dialog "Test"
           end repeat
              end theTest

    Ok, so it says this:
    textDidChange:
    Informs the delegate that the text object has changed its characters or formatting attributes.
    - (void)textDidChange:(NSNotification *)aNotification
    Discussion
    The name of aNotification is NSTextDidChangeNotification.
    Availability
    Available in Mac OS X v10.0 and later.
    Available as part of an informal protocol prior to Mac OS X v10.6.
    Declared In
    NSText.h
    But how do I actually use it (sorry, I'm not too great with ObjC). Would i do something like:
    on NSTextDidChangeNotification_(aNotification)
    #stuff
    end NSTextDidChangeNotification_
    Also, how do i specify the text field? Thanks for the help

Maybe you are looking for

  • Getting some error while opening our plugin in InDesign CC Debugger

    Hi, We are loading XML file using our plugin. After opening Indesign documents (Created using the same XML), we have refreshed the tree(using our plugin option). We are getting the below mentioned asserts, 1. Direct model change to database without t

  • JDev 9.0.3.3 Commit issue when using Transaction DataSource

    Hi, Env: JDev 9.0.3.3/WL 6.0 sp1/Oracle 8i We have successfully deployed our application in 3-tier(remote mode) in JDev 9.0.3.2. using JClient, EO/VO, EJB Session Facade (BMT). Now we are planning to use JDev 9.0.3.3 In JDev 9033 with the same code b

  • Bw 3.5 activation

    hi   i have tried to install  FI-AR  and FI-AP  from bc   but before that some of them was already  installed, so there was a problem , kindly guide me how  to resolve the problem,and what is the extract procedure of installing  BC content objects .

  • Enkitec LOV sorting

    I'm using the Enkitec LOV to return columns from a jaro.winkler sql query . The first returned column is the probability of a match in descending order (so the highest probability is at the top of the list). This is much like a spell check in a word

  • CS5 Classroom in a Book Study Group?

    Hello everyone. I just purchased CS5 design premium and am working through most (if not all) of the Classroom in a Book series. I'm currently on Lesson 12 of the Photoshop book and will be finishing the book soon, then moving on to either Illustrator