Stopping at specific y coordinate

I have some graphics that I want to load into my flash file
above the stage and then slide into the stage area the stage area.
I am obviously new to actionscript, but I thought this would not be
too difficult to figure out.
Here's what I have:
On the frame:
//load Graphic Behavior
this.id_error_mc.loadMovie("smart_qc/id_error.jpg");
//End Behavior
On the movieClip named id_error_mc
onClipEvent (enterFrame) {
if (this._y<3) {
this._y += 10;
This movieClip is set at y -300. I want it to drop down and
to stop at exactly y 3. I comes close, but it's off by a few
pixels. When I adjust the speed, it's off even more. When I adjust
the coordinates it's still off. I suspect I am going about it all
wrong, but I have not been able to find anything on the web or in
my actionscript books that can help me solve the problem.

Thanks! That works, but it sort of bounces and does not have
an ease in transition. I have to hit the books and learn some
actionscript.

Similar Messages

  • FLV starting and stopping at specific times?

    Im using the flvplayback to put up a video in my swf.
    in my swf i also have several buttons.
    the thing i want to do is when i for example click a button i want to
    start playing the movie from 5 seconds in it and then stop the movie at for
    example 10 seconds in it. even if the video is 20 seconds long i want to
    be able to stop it automatically at 10 seconds in the movie. the start and stop should be
    controlled from the button..
    i know how to start the movie at a specific time but i dont know
    how to stop it at a specific time. is this possible?
    thanks for helping med out!

    FLVPlayback class has a property playheadTime.You will need to read the value of it periodically - so when a desired time is reached, you implement required functionality.
    To do that you will need to add either Event.ENTER_FRAME listener or instantiate Timer class or setInterval method for reading playheadTime.

  • Loop #  of times, stop at specific frame

    Hi there,
    I'm having trouble finding the answer to a simple (I hope)
    question. I made a flash banner and have successfully added an
    action that will loop it 3 times, stopping on the last frame. Here
    is the code I entered in a separate action layer:
    INSERTED A KEYFRAME IN FRAME 1:
    if (numberOfTimesToLoop<3) {
    gotoAndPlay(1);
    numberOfTimesToLoop++;
    } else {
    stop();
    INSERTED A KEYFRAME IN MY LAST FRAME OF THE TIMELINE:
    if (numberOfTimesToLoop<3) {
    gotoAndPlay(1);
    } else {
    stop();
    Works beautifully, only I need the movie to stop on frame 274
    on the last loop, where I want certain elements not to fade out (I
    have 279 frames in my movie). Can anyone help me out? I'd really
    appreciate it!

    I'm not sure I understand what code I'm supposed to put in
    frame 279 exactly.. There are two elements (on two separate layers)
    that need to stop at that frame on the 3rd loop.. I tried putting
    something like this on frame 279 of one of those layers:
    if (numberOfTimesToLoop=3) {
    stop();
    O so close.... but like with all code its either all right or all wrong.
    the 2 diffrent layers don't matter if your stoping the main timeline.
    go to frame 279 open up your ActionScript window and type in:
    if (numberOfTimesToLoop == 3) {
    stop();
    That is little guy is called a
    Comparison Operator
    http://flash-creations.com/notes/actionscript_operators.php  <==good site discribing them.
    Good luck and I hope it helps
    JT

  • Making a button stop a specific sound

    how do i make a button have a behavior to stop sound?

    dantair wrote:
    > i start off with a slide presentation
    > in the presentation timeline i have objects and graphics
    with sounds come in
    > and end at frame 55
    > i put a layer with a stop action at frame 55
    > i put another layer with a keyframe at frame 55 and i
    attach a music beat to
    > loop to it
    > i want the music beat to turn off when my users navigate
    to the slides
    > or i want to have buttons to stop the music beat loop
    for your case you could have the sound attach to whatever
    frame you going next.
    Set it to loop 0 (zero) and SYNC to STOP. It will stop the
    sound once you enter the
    frame.
    You could as well attach stopAllSounds action but it works
    like purge and you might
    not be able to play it again unless you reload the movie.
    Than there is a movie clip. You can place the sound in movie
    clip frame 2
    and in frame 3 just like above, loop zero and sync STOP and
    have alternate ON OFF sound
    clip but going to frame 2 or 3 from button or frame.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Can I stop one specific folder from being opened by anyone but me?

    I have private files in a folder that is contained within the home folder on my Macbook Pro. I want to lock that folder so that only I can access it. But I do not need to lock any of the other folders on the Mac.
    How do I do this?

    If you just log out of your account, they won't have access to the folder. However, if you created the folder within the root of the home folder, then the permissions allow others to see into it.
    You can either move it inside one of the protected folders inside your home folder (Documents, Music, Pictures, Movies, Desktop, Library), or change the permissions on the folder. It should be set for you to read/write and everyone No Access.
    If you let everyone into your account, then the only way would be to create an Encrypted Disk Image which you store the folder on. Use Disk Utility to create an Encrypted Sparse Image and set a size that will work. Set an encryption algorithm and same the image. Mount it, don't check the box to save the password to your keychain, copy the folder into it and eject the mounted disk image. Open it and make sure you have everything and then delete the original folder.

  • Hierarchical query - Stop at specific leaf nodes - How to in Oracle 9i ?

    Table H -- Master table to build Hierarchical tree
    C -- Child
    P -- Parent
    Table RN -- Table defining Root Nodes
    N -- Node
    Table LN -- Table defining Leaf Nodes
    N -- Node
    The following Query can generate trees starting with the nodes specified in the Table:RN
    SELECT LEVEL L, C, P, SYS_CONNECT_BY_PATH(C,'/') SCBP
    FROM H
    START WITH C IN ( SELECT N FROM RN )
    CONNECT BY PRIOR C = P
    How do I limit the tree to the nodes specified in the LN table ?
    "CONNECT BY" does not support "IN" clause
    i.e
    CONNECT BY PRIOR C = P AND P NOT IN (SELECT N FROM LN)
    Say we have 2 trees
    1-2-3-4-5
    A-B-C-D-E
    RN : 2,B
    LN : 5,D
    Result:
    2,3,4 (5 is excluded)
    B,C (D is excluded)
    Any help is appreciated...

    What about:
    select level l, c, p, sys_connect_by_path(c,'/') scbp
      from (select * from h
             where c not in (select n from ln))  -- filter via an inline view
    start with c in ( select n from rn )
    connect by prior c = p;

  • Stop specific com object process

    I have set up a custom web site monitoring with command:
    New-Object -com InternetExplorer.Application
    Sometimes this IE process got stuck. How do I stop that specific iexplore process? I know I can use stop-process -name iexplore but how do I pin point that to that specific com object process and not some other ie process because I run several web site monitors
    in the same server and those are all unique processes.

    I found this solution, maybe it works:
    $IEProcess = [System.Diagnostics.Process]::Start("iexplore", "-noframemerging")
    Start-Sleep -Seconds 1
    $ie = $(New-Object -ComObject "Shell.Application").Windows() | ? {$_.HWND -eq $IEProcess.MainWindowHandle}
    $ie.quit()
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($ie)
    stop-process -id $IEProcess.id
    Remove-Variable ie
    Remove-Variable IEProcess

  • WLAN has stopped working - Satellite X200/N00, Vista 32-bit Ultimate (SP1)

    When I purchased this laptop earlier this year, everything worked pretty well with no significant issues. A few weeks ago, however, my WLAN connection stopped working -- specifically, it does not get a valid IP address from the router.
    Notebook is a Satellite X200/N00 (PSPBUA). OS is 32-bit Vista Ultimate (SP1).
    It was working fine right up to the point where it stopped working. The router itself still works fine -- I have used the wireless connection with a completely different laptop since having the problem on the Toshiba.
    This seems to be a fairly common Vista issue, but so far everything I've tried has failed to get me anywhere.
    The router is a D-Link DSL-G604T. I have updated it to the latest version of firmware, but this has not made any difference.
    In Vista I have disabled IP v6.
    I have installed the latest version of the Intel wireless driver (v12.1.2.1). The hardware passes all self-tests, the only thing that fails is obtaining the IP address.
    I don't know why the wireless connection just stopped working -- as best as I can recall, I had not installed any new software or updates just prior to it stopping working. It doesn't seem to be a hardware fault.
    One thing I have not yet done is test the connection with a completely different wireless router (e.g., at a public access point).
    That may be instructive, but not really useful, since I need to get it working with the router I have!
    Any thoughts?

    Hi
    There are many different reasons why the IP address cannot be obtained.
    In first case you should check if your firewall is disabled or doesnt prevent the IP address from receiving.
    Secondly you should check if the TCP/IP protocol was set to automatic
    You can find such settings in TCP\IP protocol properties.
    Last but not least I would recommend disabling all security settings on the router and trying to establish the WLan connection.
    Please check if the Mac address filtering was disabled, disable the WLan encryption, and check if the right SSID is in use.
    If it will be possible to establish the Wlan connection then you could enable step by step the single WLan security settings on the router.
    Bye

  • Is there any way to stop a process execution (all instances)

    Hello,
    I´d like to know if there is any way to stop a specific process for execution at the engine without need to undeploy it, since we don´t want to loose process instances when we need to start this process for execution latter on.
    We have a PRD environment with a lot of processes from different departments (developed by different teams and external suppliers) and a feature for stop a specific process and isolate the environment could be very good to do root cause analysis when issues occurs at the environment.
    Sometimes stop a specific process (or some of them) could help in issues investigation that causes the engine to malfunction (lot of audit enabled, some loop bad controlled, lot of concurrent access) but I could not see this option at the webconsole.
    In the version 5.7 one EAR was created separatedly for each process deployed and this could be done stopping the EAR created for that process. Anyone know how to do this at version 6?
    Thanks

    Well the bad news is you are right, there really isn't any way to do this in versions after 5.7
    Starting at 6.0 all projects are deployed under the 'engine ear'. So if you stop the engine, you stop all projects deployed.
    I'm a little concerned that you are first seeing these issues in a 'PRD' environment, is this something that you could set up in a DEV, or UAT, or SIT, or any other environment (That is built similarly) to recreate the issues? - Then undeploy any of the other projects... and isolate the problem...
    -Kevin

  • Stop/start of BW 7.0 system-- how to deal with deltas when moving instance?

    Dear BW guru's,
    we are moving a BW 7.0 system to a new datacenter, where the R3 source systems remain the same.
    What should we consider when we want to stop the system, move it, and restart the next day, when the source systems cannot be stopped?
    Specifically I may need to clear the delta queues in BW before stopping and moving the system.
    After the system has been installed in it's new location, can we just the delta process chains without any other action, and will it extract the delta's from source system where it left of before?
    is there something I am overlooking?
    thanks for tapping your collective brainpower,
    -jh

    Hi,
    When you are miving instance and source would be on during that period then you may look for follwoing.
    Stop the loads and resume the delta after movement.
    If there are some jobs for fetching data in R3/ for BW data source then those needs to be stopped and rescheduled as some time those jobs define the delta in BW.
    If there are pseudo delta or some hardcoding for extracting delte then need to take care of the as well.
    I hope it will help.
    Thanks,
    S

  • EM12c: OS Command job stopped, not being rescheduled?

    This morning I had an OS Command job running long (normally < 10 seconds, this time over 20 minutes). This job is scheduled to run every 10 minutes, so there were 2 skipped executions.
    As with similar jobs, I stopped the run, expecting it to be rescheduled per the defined interval. However this job was not rescheduled and hasn't run since I stopped it this morning. Like I said, other jobs that ran long last week and were stopped were automatically re-scheduled per the job definition schedule. I cannot find why this job has not been re-scheduled.
    Any thoughts?

    Don,
    There is a semantic difference when you stop a job or when you stop a specific execution of the job. User can stop a job from job activity page stop button or using "Stop Job" button on job results page. User can stop a execution by using "stop" button after selecting a job execution in specific job results page.
    In former case job engine would stop the whole job and job will not be scheduled in future. However when you stop a specific execution of job, then job engine consider it as user is intending to stop only the current execution of the job so future run of job will continue to work as is.
    I agree from end user perspective - the message on the confirmation screen is not very clear and we will file a bug and fix in next scheduled version of Enterprise manager.
    -- Ashutosh

  • Create Infinite number of Threads w/unique names, how do I kill/stop one?

    I am new to Java, so please excuse my code if it is not moving and profound :0)
    I'm just glad it 'works'!! no, really!!
    Problem:
    I use the below piece of code to create 100's of
    timers(threads)..all with different names and different
    sleep values.
    I need to add the ability to 'kill'/'stop' a specific timer.
    How do I reference it?
    How do I write the code so I 'kill'/'stop' the right one?
    Can I do it based on the timers name?
    I am aware that I need to add
    while (condition) {
    in the run method....I'm just a little
    confused about how I change the
    condition for a specific thread.
    My java code:
    1. create a thread (I issue it a name and a 'sleep' time)
    2. when the thread wakes up, it:
    (a) makes a call to the database and executes a
    database procedure (the timer name is passed
    in as a variable to the database procedure)
    Any help is appreciated!
    ------1. BEGIN-----Create a new Thread----------------------------------------------
    public void StartThread (String thisTimerName, int thisInterval) {
    new SimpleThread(thisTimerName, thisInterval).start();
    -------1. END----------------------------------------------------------------------------------
    -------2. BEGIN-----Code that creates and starts the new Thread---------------
    public SimpleThread(String str, int newInterval ) {
    super(str);
    Interval = newInterval;
    public void run() {
    try {       
    sleep(Interval);
    catch (InterruptedException e) {
    TimerName = getName();
    insertIntoTimers_Expired(TimerName); //this method makes a connection
    //to the db, and calls a database
    //procedure passing in the timers name
    --------2. END ------------------------------------------------------------------------------

    warnerja-
    first, thanks for a reply!!
    Q:
    how would I correlate the timer I want to 'kill/stop' with it's assigned 'object reference'?
    Say, for example, I create 4 timers:
    LindasTimer, 2000
    JimsTimer, 43000
    SallysTimer, 8000
    JimsTimer, 75000
    Now, a little while later, I decide I want to 'kill/stop' JimsTimer(75000) before it expires/wakes up from sleep.
    Thanks!

  • Starting and Stopping Services Based on Network

    Hi everyone,
    This is something I've been playing with and I'd like to share it with you and get your thoughts.
    The services I want to run at any given point depend on what network I'm attached to. For example, if I'm at home, I'll want avahi-daemon and cupsd started but I won't need iptables, since I'm behind my router's firewall. On the other hand if I'm at an internet cafe I need iptables but not the other two.
    What I've done is set up a script in /etc/NetworkManager/dispatch.d which starts services based on the UUID of each connection (extracted from that connection's file in /etc/NetworkManager/system-connections.
    I'm currently using the following script:
    #!/bin/bash
    IF=$1
    STATUS=$2
    function start_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=inactive"`=1 ]
    then
    /usr/bin/systemctl start "$i".service
    fi
    done
    function stop_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=active"`=1 ]
    then
    /usr/bin/systemctl stop "$i".service
    fi
    done
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "up" ]; then
    UUID=`nmcli --nocheck -t --fields UUID con status`
    case $UUID in
    f5320fcd-43e2-4cc1-ba1a-9606f66b5332)
    start_service avahi-daemon cupsd
    logger "M5DKQ (home network) up"
    5bfff3c5-c349-436b-953b-90de15c854d7)
    start_service iptables
    logger "EVO (4G hotspot) up"
    40d74743-f809-41ce-821c-71f9f40b8513)
    logger "GuestAccess (office guest network) up"
    start_service iptables
    logger "Starting cafe-specific services"
    esac
    fi
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "down" ]; then
    stop_service avahi-daemon cupsd iptables
    logger "Stopped location-specific services"
    logger "wlan0 down"
    fi
    Is there a better way to do this, like maybe a systemd custom target? Is there a cleaner way to script this?
    Thanks in advance,

    Hi Ranga,
    The services dealing with SAP and database(Ex: Oracle in this case) are:
    SAP<SID>_<Instance No.>  (For ex: SAPECC_01)
    SAPOsCol
    Oracle<SID><No>Listener
    OracleCSSservice
    OracleService<SID>
    Reward points if it is helpful##
    Thanks & Regards,
    Santhosh P
    Please change the status to answered if you got the solution...
    Message was edited by:
            Santhosh Kumar P

  • IPod mini stops playing in middle of songs

    After hemming and hawing for a while, I decided to buy an iPod. After all, all the cool people already had one.
    So less than a week ago, I bought a 4 GB iPod mini from Apple's online store. I'm already having a problem.
    I copied music over to the iPod and at first everything seemed fine. Then I realized that several of the songs wouldn't play all the way through. After trying a few again, I verified that they were stopped at specific points. (That is, it wasn't just randomly stopping.)
    At time 1:55 on one song, for example, it would just stop as if it had reached the end of the song and go to the next on the playlist. The display showed the correct length of the song.
    As an experiment, I removed several of these problematic songs from the iPod and then added them again. The exact same problem recurred. Also, the times at which they stopped were the same.
    The songs play perfectly fine on my computer in both iTunes and Windows Media Player. The length of the songs are correctly displayed in WMP, iTunes, and on the iPod. However, the iPod simply won't play them past a particular point.
    Can anyone help me solve this problem?
    If not, can anyone tell me how to go about asking for a refund?

    In case anyone was wondering, I managed to fix the problem.
    The problem was that the format of songs downloaded from iTunes wasn't always working correctly on the iPod due to the digital rights management.
    So, I removed the DRM.
    This was probably illegal. I really have no idea.
    In any case, I was reduced to an act of piracy to get my legally purchased music to play as advertised on my legally purchased music player.
    Ain't technology grand?

  • Systemd service to run command before stopping connman.service?

    [This is my first time creating a thread, I apoligize if there is a more suitable category]
    Hello,
    I would like to run a command at shutdown before stopping a specific service (connman). I need the command to finish before stopping connman as well.
    Is there a good way to do this? I tried searching, but it seems systemd is a bit finnicky when it comes to shutdowns.
    I'd like to achieve this without modifying connman.service (Though this would probably work for me)
    What is the best way to do this?
    Thanks,
    Jacob
    Last edited by frash23 (2014-12-21 13:59:03)

    Hi
    I'm not sure if it would work, but from logic, creating a service file for your command with an "After=" dependency to connman might do it. Assuming that systemd passes the dependencies in reverse order when shutting down...
    Plus use "ExecStop=" to make your command execute at stopping.
    You gotta try this out.
    Regards
    Edit: To test/debug you can probably simply stop connman and see if it pulls the dep (instead of shutting down completely).
    Edit2: Maybe better better use "ExecStop=" inside the connman service files. As you mentioned you copy the original service file from /usr/lib/systemd/system to /etc/systemd/system and make your modifications there. This is the correct way to modify service files.
    Or then do it with a "config" directory, analog to how it's done here: https://wiki.archlinux.org/index.php/au … al_console
    Reference 'man systemd.service':
    ExecStop=
    Commands to execute to stop the service started via ExecStart=. This argument takes
    multiple command lines, following the same scheme as described for ExecStart= above. Use of
    this setting is optional. After the commands configured in this option are run, all
    processes remaining for a service are terminated according to the KillMode= setting (see
    systemd.kill(5)). If this option is not specified, the process is terminated immediately
    when service stop is requested. Specifier and environment variable substitution is
    supported (including $MAINPID, see above).
    Evtl. make sure your links in the .wants directory reference to the correct service file. (Disable and reenable once.)
    Last edited by rebootl (2014-12-21 16:51:18)

Maybe you are looking for