My health box text box is a movie clip with the instance name hpBar, currently it shows the value as blank. I need to make it so instead of the results being printed as a trace they are printed in the textbox.
Ah i can believe i did that again.
Right now its the trace window that opens and gives the reports. Can i make it so instead its the health bar that goes down and when it gets to 0 it says game over?
I just got 4 errors saying :
**Error** Scene=Scene 1, layer=Health, frame=1:Line 1: Statement must appear within on/onClipEvent handler
var hpAmount = 100;
**Error** Scene=Scene 1, layer=Health, frame=1:Line 2: Statement must appear within on/onClipEvent handler
var numEnemy = 8...
I swear i couldnt tell you how much you have just helped me, thanks so much.
..although i do have another problem.
onClipEvent (load) {
hpAmount = 100;
}
onClipEvent (enterFrame) {
this._width = _root.hpAmount;
if (_root.hpAmount>100) {
_root.hpAmount = 100;
}
if (_root.hpAmount<0) {...
I have put this in the background scene which was the first scene of the movie and this is the only thing in it.
numEnemy = 8;
for (i=1; i<=numEnemy; i++) {
var enemyMC:MovieClip = this.attachMovie("enemy", "enemy"+i, 100+i, {_x:Stage.width-50, _y:30*i});
enemyMC.onEnterFrame =...
numEnemy = 8;
for (i=1; i<=numEnemy; i++) {
this.attachMovie("enemy", "enemy"+i, 100+i);
}
This spawns one bad guy and positions it in a stationary position in the top right hand corner of the screen, the enemey needs to be reproduced and move around from the right side of the screen...
Hello, im a bit of a flash amature but im having ago at creating a small game, the graphics are pretty awful but it seems to work. The problem im having is I use the following
numEnemy=8; for (i=2; i<=numEnemy; i++){ enemy1.duplicateMovieClip( "enemy"+i, i+100 ); } score=0;
To duplicate...
Hello, i have a database that imports data then run queries on it on the fly. This is all as an onclick event. I also want to export the query results in the same event. I have a spreadsheet template and i want to export the results for each set of query results to a formatted excel worksheet...
It returns only that names i need?? How do i know what name i need? I understand about the email address thing, id also avoid it.
Sorry to not be getting it but what does this do then?
Set qdf_My = CurrentDb.CreateQueryDef("qdfDesired", "Select Sum([" & tbl_Field & "]) From " &...
what does this line do??
SELECT Name FROM MSysObjects WHERE (((Left([Name],4))<>"MSys") AND ((Type)=6 Or (Type)=1));
Also someone told me that the following method should work..
-- This returns the first row which is headers
SELECT TOP 1 * FROM myDumpTable
-- Combined with the data you...
the problem is that with each import the amount of rows and columns will change.. the file been imported shows the data from different nodes so depending on how many nodes are tested the amount of data will change.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.