A Flash Developer Resource Site

Search:

Type: Posts; User: nowever

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    442

    heh..... no.

    heh..... no.
  2. Replies
    3
    Views
    708

    ok, how bout leave the "q1" out, do the sort,...

    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"]; ...
  3. Replies
    3
    Views
    708

    what about adding frames[0]="q1"; after the...

    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";
  4. Replies
    3
    Views
    6,971

    continue will take you out of the current loop...

    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:
  5. sure, just use _parent.currentframe and ...

    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...
  6. this will do it: ...

    this will do it:


    this.onEnterFrame=function(){
    if (this._currentframe<this._totalframes){
    if (this._alpha<100) this._alpha++;
    }
    else {
    this.stop();
    this._alpha--;
  7. i see, try this._totalframes or this._currentframe

    i see, try this._totalframes or this._currentframe
  8. try this... make a function that fades to 0 then...

    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...
  9. Replies
    1
    Views
    489

    one simple way is to have each movie clip in the...

    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
  10. onEnterFrame has nothing to do with the timeline....

    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.
  11. Thread: [F8] code help

    by nowever
    Replies
    5
    Views
    493

    yes, or a variable.

    yes, or a variable.
  12. Replies
    13
    Views
    735

    i would say yup on the splitting data part. ...

    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...
  13. would it be myArray[i] = Number(34342); i think...

    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...
  14. Thread: [F8] code help

    by nowever
    Replies
    5
    Views
    493

    it's just a reference to a variable i on 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,...
  15. i've seen this before when reading in values,...

    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.
  16. Replies
    1
    Views
    484

    added a variable called adv and a button called...

    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...
  17. i believe your outside clip's onPress with the...

    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...
  18. Replies
    2
    Views
    390

    first you need to know the distance between the...

    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;
  19. Replies
    3
    Views
    360

    if(this.hitText(_root.ballLimit_mc) is all you...

    if(this.hitText(_root.ballLimit_mc) is all you need, i think.
  20. Thread: Proper Linkage

    by nowever
    Replies
    3
    Views
    362

    are your files to load up on the server ? also,...

    are your files to load up on the server ? also, loadMovie requires a target, i think. F1 ftw....
  21. Replies
    3
    Views
    361

    sure. np. the var is true is because you have...

    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...
  22. add this line after your getRandomURL001(); in...

    add this line after your getRandomURL001(); in your lvLoadURL001.onLoad

    intid = setInterval (getRandomURL001, 10000);
  23. Replies
    3
    Views
    361

    just add _xmouse values to your condition...

    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,...
  24. Replies
    3
    Views
    388

    the startDrag() has parameters to define the grab...

    the startDrag() has parameters to define the grab point, top, left, right, and bottom boundaries.
  25. n=0.123456; for (i=0;i

    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;
Results 1 to 25 of 60
Page 1 of 3 1 2 3




Click Here to Expand Forum to Full Width

HTML5 Development Center