How to pause program execution?
I'm developing a board game. It has the Board class, Coin class and Dice class.
The dice class has an animation to show the dice rolling. The coin class also has an animation to show the coin moving from start square to end square.
When user clicks on the dice the sequence of steps that take place are -
getRandomNumber();
dice.roll();
coin.move();
But the problem I'm facing is even before the dice rolling animation stops, the coin moving animation begins.
How can I pause the program execution so I can move to next line in program only when the animation in the previous is stopped?
or How can I change the logic so that it goes as desired.
Timelines (well, actually KeyFrames) have an action variable, where you can put a function doing whatever you need to do at the end of the key frame.
So, you can make your coin to move at the end of the dice animation (ie. calling coinAnimation.play() in the action of the last key frame of diceAnimation).
Similar Messages
-
How do I pinpoint the program execution?
Hi all,
I am wondering how to pinpoint the program's execution point? I have a problem with all of the loops not stopping properly. I hit the "Hilight Program execution" and it went to one loop, that is, it appeared greyed out, but I can't figure out which case it's stuck in. Is there a way to find the exact *point* of execution?
Thanks,
JasonYou can use breakpoints. The program will pause as soon as it hit the breakpoint. To add breakpoints, right-click in the place where you want it and set it. You can also set probes. The probes activate as soon as the information is available. Then you can be creative with the highlight execution, breakpoints and probes. You can have a fairly good idea on how your program is executing.
Otherwise, try posting your code or an image of your code so we can try to figure out what is going on.
www.vartortech.com -
How do I insert or delete a row in tree during program execution ?
Trying to understand how to edit/modify a tree control during program execution, specifically if I want to add a row or delete a row.
ThanksHi dwjef,
Go through this.I think by going through this you we will get an idea of how to achieve what you are trying.
https://decibel.ni.com/content/docs/DOC-20747
Thanks as kudos only -
Concurrent program execution Error
i have genrated a simple report and copied to linux server,could any on help me how to resolve the error.Eventhough I was Getting the output.
ERROR:
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4349601.
Review your concurrent request log and/or report output file for more detailed information.I have copied the message from the logfile itself for complete reference,plz look in to the following error
ERROR
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
Report Builder: Release 10.1.2.0.2 - Production on Wed Jun 4 16:36:01 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4349601.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Output is not being printed because:
The print option has been disabled for this report.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-JUN-2008 16:36:02
--------------------------------------------------------------------------- -
Program execution during RIMODAC2..will it always reach to cif user exit
Hello ,
We are implementing cif user exit for Purchase Order at R3 side to capture additional date field. So logic to capture additional date field is put in user exit CIFPUR01. We have RIMODAC2 background job for Purchase order running on daily basis.
if there is no change in standard Purchase Order objects. When RIMODAC2 is executed for purchase order Integration models ..will program execution still always reach to R3 user exit part of the program irrespective of if any change in standard purchase order object has happened or not.
Will appreciate your answer.
Thank you
Best Regards
Nilesh PatilNilesh,
I am no longer sure I understand the question.
RIMODAC2 activates the model. Once a model is activated, if someone changes certain specific fields in an R/3 object, then these changes are sent to SCM, either immediately or via change pointers. All this happens irrespective of IM userexits.
If this same field in this same object is changed in R/3, and a userexit also has been implemented, the userexit will execute according to its design, performing whatever task it has been programmed to do.
If you create and implement a userexit, it begins working at that moment in time that it is installed. Data that flowed across 'yesterday' to SCM is not affected. Data that flows across 'tomorrow' will be affected. Data in R/3 will usually only flow across to SCM if there is some kind of triggering event, usually a database 'change' transaction (e.g., ME22N for POs) The mere act of installing a userexit will not generally affect existing data on either side. The userexit only affects data that flows across the IM. Unchanged records in the R/3 database will generally not be sent to SCM by the IM, and will not be subject to userexit processing.
It is not generally the responsibility of a functional consultant to explain the workings of a userexit to a technical consultant. It is enough that the functional identifies the userexit, and specifies the business requirement in as much detail as possible. The developer is then responsible for carrying out the coding. Technicals are generally expected to be competent enough to determine from the userexit docs, and from the surrounding code, how a userexit works. They can also raise a message to SAP. In the end, it is all just ABAP, although userexit implementations can be quite challenging. SAP seldom provides enough details in their documentation. Once the Technical has finalized the code, Functional and Technical together then perform unit testing, before passing the mods to users for integration testing.
If your client's coders are unable to manage the task, perhaps they should engage your company to provide technical expertise, as well as functional expertise.
Best Regards,
DB49 -
Dear Sir,
I have following problem and very desperately looking for the solution .
I have 9ias installed on window-2000 server and on this machine JSP/Servlet is also running .
There is another Unix server also having Oracle 7.3.4 and Pro*C installed .
My requirement is that on receiving a web client request , the invoked JSP must also execute a C program on the unix machine ( the execution of C program creates a text output file on the unix machine ) and after completion of C program execution the output text file must be available to JSP . As a final result of JSP execution this output text file must be returned to WEB Client .
Please guide me how to go about this .
Thanks and Regards
B V MittalCall your C program like this from your controller servlet
Process p = Runtime.getRuntime().exec("c.exe");
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
Then read from your generated file and populate whatever you need into a bean. -
Stopping Mapping Program Execution.
Hi all,
How can I stop execution of a message mapping program based on some condition in mapping?
Is here java code sample I can use in this?
Please help me.
-kanth.Hi,
could you have a look at the following thread please?
Re: XPATH and Receiver Determination
thanks,
kanth.
Message was edited by:
sri kanth -
How to cancel programs in the startvolume?
How to remove programs from startvolume to gain place?
J_J_R wrote:
Also, my phone thinks that I still have songs to download, but I don't want to download them again on my phone because the I have to deal with duplicates.
You won't have to deal with duplicates because iTunes knows they are the same item and won't make duplicates.
You will have to contact -> iTunes support to get them to remove them from yoru download queue
I bought three albums on my iphone, but the downloading was taking forever, so I paused them and finished downloading them on my computer. Now iTunes thinks I have 76 downloads available
iTunes on your computer or iTunes on your iPhone?
Also, I removed some songs that kept coming up as duplicates, but removed the whole album from the phone. It is still fully intact on iTunes, but how can I get it to go back on the phone? I've synced, and tried to manually manage, etc, and it just won't go to the phone!.
Sounds like it is looking at the items in the download queue as the same items you are trying to sync and it (correctly) won't copy them because it would cause duplicates. -
Automatic program execution in the destination system.
SAP allows to include "special objects" into a transport
request which cause automatic program execution in the destinationsystem.
Can anybody let me know how can I do that?Hi,
Do you mean installing/executing some program automatically
on user machine i.e. presentation system.
If yes, then following link will help you, see last section Installing the control
in which one setup file which is already uploaded to SAP Web Repository is downloded to presentation system and then executed on user machine to install the program.
Using .Net Windows Controls in the ABAP Control Framework
Regards,
Vishal -
How to pause external vdos to play it again after played another vdo
Hey! I have a question.
I have many external vdos which I have loaded and randomly play them once at a time by press some keyboard buttons.
Let's give vdos named a,b,c,... and picture this....
When people press a button a vdo A is playing then someone press another button or the same button the vdo B will be played immediately.
The same thing happen to vdo B if someone press any button on keyboard to play vdo C. After every vdo has been played, the program will set all the vdos back so people can play it again now but, I do want it to play in exact same point where it left.
Right now, my code can ramdomly play all the vdo without repeat them untill it plays them all. But I know because I REMOVE the vdo out so that's why the program don't play it again like this: var NewStore:Array = VdoStore.splice(i,1);
I think this way can't make a program to remember the vdo's timeline. But I don't know whatelse can I do to do what I want.
Anyway,
Someone tell me to try out some index to the array and add ++ after playing. Then after index is more than Array's length, just reset index to 0 again.
So...Any suggestion on how to pause many external vdos??use the shuffle function to randomize your videos and then play from index = 0 to index=videoA.length-1:
function shuffle(a:Array) {
var p:int;
var t:*;
var ivar:int;
for (ivar = a.length-1; ivar>=0; ivar--) {
p=Math.floor((ivar+1)*Math.random());
t = a[ivar];
a[ivar] = a[p];
a[p] = t; -
How to trace the Execution of ZReport
I have to Trace the Excecution of a ZReport with it's Select-Options.
I.e. The ZReport contains the MIRO Data and Selection Screen is BUDAT ( MIRO Posting Date)
User Required to Keep trace when this Report is Executed with which Positng Date.
How to trace ZReport Execution? Is it possible?Hi,
Please see STAD transction code.. please refer the below link for more information.
Re: program to find how many times a custom program is executed by user
Regards,
Nagaraj -
Cancel a C program execution or an external exe program execution on demand
I have to trigger the execution of an exe call wait.exe
I have to wait for the end of this wait.exe or to interrupt it if asked by a button
What is the best technique to do this
I try ti use the command exec.vi but I don't know how to interrupt the execution of the wait.exe i just launched
Does anybody know the solution
Thibautthe wait.exe is waiting for end of data acquisition
this is not an open source program so I cannot introduce interrupt
before the same exe was trigerred and on demand interrupted by a C program with the flowwing code::
Attente de la fin de l'acquisition par la cde WAIT.EXE
ZeroMemory(&si,sizeof(si)); si.cb=sizeof(si);
bRetour=CreateProcess(NULL,szCdeWait, NULL,NULL,FALSE,DETACHED_PROCESS,NULL,NULL,&si,&pi);
if (bRetour==TRUE)
// Test de l'etat du process WAIT.EXE jusqu'a ce qu'il soit terminé a moins que l'utilisateur n'arrête le scanning
bArretScanning = FALSE;
do
dwRetour = WaitForSingleObject(pi.hProcess,0); // Test et retour immédiat
if(dwRetour == WAIT_OBJECT_0) break; // Fin du process alors sortie du do-while
// Test du bouton CANCEL de la boite de progression
if (DlgProgression.CheckCancelButton())
// Affichage de la boite de dialogue de confirmation
if (AfxMessageBox(_T("Voulez vous réellement arrêter le gamma scanning ?"),MB_YESNO)==IDYES)
// Indication de l'arret demandé par l'utilisateur
bArretScanning = TRUE;
// Arret du process WAIT.EXE
Retour = TerminateProcess (pi.hProcess, 0); -
How to pause while printing long long stuff
I'm using System.out.println printing several screen of data. How to pause in between, and resume displaying while user presses ENTER ?
thx for reply ^_^Study this program. It is not the better solution for your problem but could work.
import java.io.IOException;
public class Test {
public static void waitForEnter() {
try {
int ch;
while ((ch = System.in.read()) != -1 && ch != '\r') {
} catch (IOException ex) {
public static void main(String[] args) {
for (int i = 0; i < 100; ++i) {
System.out.println (i);
if (i % 16 == 15) {
System.out.print("More>");
waitForEnter(); -
Hiii Everyone,
How to stop execution of a program depending on a condition.
Depending on a condition given in program, i want to stop the rest program execution. Program execution should be stopped at BADI.
Thanks in advance.
Regards
SunilHi,
I think the best is to put a break-point inside the method and check if it's executed or not
I think the best is to put a break-point inside the method and check if it's executed or not
Regards
Kiran Sure -
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "1" does not exist
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading ipv6
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading JBH_Rooms_3
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading foobar
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading heng_lc@tp
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading MYNE
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "MYNE" does not exist
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading RESORT
May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "RESORT" does not exist
May 14 17:17:11 localhost ifplugd(eth0)[540]: Program execution failed, return value is 1.
Whenever I plug into a network, I don't know what does this, but Archlinux oddly seems to go through profiles in /etc/network.d. Why it doesn't simply call dhclient on the wired interface ??
My workaround is to manually setup the wired network everytime.
x220:~$ grep -v '^ *#' /etc/rc.conf | grep . | tail
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="x220"
interface=eth0
NETWORK_PERSIST="no"
WIRELESS_INTERFACE="wlan0"
WIRED_INTERFACE="eth0"
DAEMONS=(syslog-ng @network @net-auto-wireless @net-auto-wired @crond @cpufreq @alsa @sshd @httpd)
Be great how if someone would be kind enough to hint how I should move this to /etc/conf.d/netcfg.
Also it would be great if http://projects.archlinux.org/netcfg.git/ was on github so I could sanely report bugs.
Thanks in advance,The fink version ( /sw/bin/which ) does what you're looking as well--it doesn't recognize aliases though. tcsh and OS X's csh (which happens to be a duplicate of the tcsh executable) do recognize aliases.
I guess the script (/usr/bin/which) is there to either echo one's path when a command's not found or give a different response to aliases. Otherwise one could change the script to:
#! /bin/csh -f
which $arg
exit($?)
Note the added -f...this prevents aliases from being set by csh when they don't exist in the bash shell. But neither script will recognize aliases set in a bash shell.
TiBook G4 Mac OS X (10.3.9)
Maybe you are looking for
-
hello since I downloaded iTunes 8, I have the following problem in the main library, artist names are dissapeared, there is only one: Collections. When I change some albums in no collection instead of yes, then iTunes separates every song from eachot
-
Hierarchy Authorization Aggregate (:)
There is a thread for this question in Bex discussion but this issue is not entirely belong to Bex so I am duplicating here also. I have successfully set up the Cost Center Hierarchy Node variable using authorization in our BI environment. One last i
-
Starting jar-files in Windows XP
I've installed the latest JDK a while ago and everything went smooth until I installed a program to open zip-files (Filzip). After installing this it claimed responsibility for jar-files too, associating the .jar with it. Now all .jar files are of th
-
How long does the mountain lion redemption code take to get?
-
I just upgraded to Vista from XP. My Palm Desktop software seems to mostly be working okay in the operating system, but when I try to "hotsync" my handheld with the Palm Desktop, Windows tells me that I need a driver. It can't find one in the CD, o