Search:
Type: Posts; User: nowever
Search:
Search took 0.05 seconds.
-
-
ok, how bout leave the "q1" out, do the sort, then add it to the beginning.
frames = ["q2","q3","q4","q5","q6","q7","q8","q9","q10","q11","q12","q13","q14","q15","q16"]; ...
-
what about adding frames[0]="q1"; after the sort...
frames = ["q1","q2","q3","q4","q5","q6","q7","q8","q9","q10","q11","q12","q13","q14","q15","q16"]; frames.sort(arrayRandomizer);
frames[0]="q1";
-
continue will take you out of the current loop iteration.
break will end the loop.
for (i=0;i<=10;i++){
if (i==4) continue;
trace (i);
}
output:
-
sure, just use _parent.currentframe and _parent.totalframes to view the current position and length of the root timeline from a movie clip. (or _root.currentframe and _root.totalframe).
if you...
-
this will do it:
this.onEnterFrame=function(){
if (this._currentframe<this._totalframes){
if (this._alpha<100) this._alpha++;
}
else {
this.stop();
this._alpha--;
-
i see, try this._totalframes or this._currentframe
-
try this... make a function that fades to 0 then deletes it's mc. trigger this on frame 40 or so.
i.e.
actionscript on frame 40:
this.onEnterFrame=fadeandkill;
define this on root...
-
one simple way is to have each movie clip in the array move towards the movie clip before it. i.e. eggs[x]._x (goes towards) eggs[x-1]._x
-
onEnterFrame has nothing to do with the timeline. it is purely programmed logic. it does not loop through the timeline when activated, but runs its own code (or a function), until deactivated.
-
-
i would say yup on the splitting data part. anytime you combine data into a single text piece (i.e. x,y) you will have to take it apart again. pretty easy though since it's all in the same format...
-
would it be myArray[i] = Number(34342); i think what might be happening in your example is it makes the array var, typecasts it as Number then changes it to String (cause of a bug maybe, i had the...
-
it's just a reference to a variable i on the _root. the _root is the top of your variable and mc hierarchy. so if you had a movie clip called top that was under root it would look like _root.top,...
-
i've seen this before when reading in values, they come in as text, not numbers. try 'forcing' it either when you read them in or when you compare them.
-
added a variable called adv and a button called advance. also a variable called newtime that addes the getTimer and adv together. advance button is a toggle, 0 or 20. also put it all in a function...
-
i believe your outside clip's onPress with the startDrag is overriding the inside clip with the textbox form. ways to fix this are: put a background graphic behind the form that has the onPress and...
-
first you need to know the distance between the two points for x and for y (x1-x2), then divide by 2 and add to the second coord. like this:
centerX = x2+(x1-x2)/2;
centerY = y2+(y1-y2)/2;
-
if(this.hitText(_root.ballLimit_mc) is all you need, i think.
-
are your files to load up on the server ? also, loadMovie requires a target, i think. F1 ftw....
-
sure. np. the var is true is because you have two things that are controlling the movie clip (mc). so when the nextframe() happens, it doesn't care what the actionscript in the mc is, it just goes...
-
add this line after your getRandomURL001(); in your lvLoadURL001.onLoad
intid = setInterval (getRandomURL001, 10000);
-
just add _xmouse values to your condition statement:
if (_root._ymouse > 150 && _root._ymouse < 250 and _root._xmouse > rectangleleft && _root._xmouse < rectangleright)
for your other problem,...
-
the startDrag() has parameters to define the grab point, top, left, right, and bottom boundaries.
-
n=0.123456;
for (i=0;i<=10;i++){
nf= (n*Math.pow(10,i));
ni=int(nf);
if (nf==ni) {
trace (i+" digits after the decimal");
break;
|
Click Here to Expand Forum to Full Width
|