A Flash Developer Resource Site

Search:

Type: Posts; User: ZippyDee

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    0
    Views
    4,916

    Vector drawing tool. Where to start?

    So, I'm trying to make a flash vector drawing program similar to the interface that Flash itself uses for shapes, etc. It would obviously not go nearly as in-depth as Flash does with its...
  2. CS3 just have an array of all the sources of the...

    just have an array of all the sources of the images

    imgArray=["img1.jpg","img2.jpg","img3.jpg"];

    then tell it to load one of those

    curImg=imgArray[random(imgArr.length)];...
  3. Replies
    14
    Views
    7,931

    oh, of course. How stupid of me. ...

    oh, of course. How stupid of me.

    myTextVar2=myTextVar;
    for(i=0;i<Wordarr.length;i++){
    var word=Wordarr[i];
    var indx=myTextVar2.indexOf(word);
    ...
  4. Replies
    14
    Views
    7,931

    put this line right after the line "var...

    put this line right after the line "var indx=myTextVar2.indexOf(word);"


    if(!(myTextVar2.charCodeAt(indx-1)>=97 && myTextVar2.charCodeAt(indx-1)<=122) &&...
  5. Replies
    14
    Views
    7,931

    onPress(){ //put it here }

    onPress(){
    //put it here
    }
  6. Replies
    14
    Views
    7,931

    Hmmm... myTextVar2=myTextVar;...

    Hmmm...

    myTextVar2=myTextVar;
    for(i=0;i<Wordarr.length;i++){
    var word=Wordarr[i];
    while(myTextVar2.indexOf(word)>-1){
    var indx=myTextVar2.indexOf(word);
    ...
  7. Flash8 You can use the same concept as what I wrote...

    You can use the same concept as what I wrote above, only set the minDistX, maxDistX, minDistY, and maxDistY differently. You would probably want it to look at the dimensions of the background and...
  8. Replies
    7
    Views
    2,053

    well, the following your cursor is easy. Just use...

    well, the following your cursor is easy. Just use [whatever the movieclip is].startDrag(true);

    Also, Mouse.hide() will make the mouse pointer go away, too.


    The shooting bullets is more...
  9. Thread: Is this AS2?

    by ZippyDee
    Replies
    2
    Views
    765

    No. That is AS3.

    No. That is AS3.
  10. Replies
    14
    Views
    7,931

    for(word in Wordarr){ ...

    for(word in Wordarr){
    while(myTextVar.indexOf(word)>-1){
    var indx=myTextVar.indexOf(word);
    ...
  11. instead of "this._xmouse", use...

    instead of "this._xmouse", use "(this._width-this._xmouse)"
  12. Thread: AS2 Failing?

    by ZippyDee
    Replies
    1
    Views
    817

    Flash8 just put this code on the frame: stop(); var...

    just put this code on the frame:

    stop();
    var keylistener:Object=new Object();
    keylistener.onKeyDown(){
    if(Key.getCode==Key.SPACE)
    gotoAndPlay(<nextframe>);
    ...
  13. Replies
    14
    Views
    7,931

    for each word in array1 while currentword is...

    for each word in array1
    while currentword is still found in the text
    i=position of currentword in text
    newText=substring of text from 0 to i-1
    newText+=random word...
  14. Flash8 var numberOfLayers=3 //here you set your speeds....

    var numberOfLayers=3
    //here you set your speeds.
    trees1.speed=1/40;
    trees2.speed=1/60;
    trees3.speed=1/80;
    //instead of tracking mouse distance on each frame, we'll keep track of
    //the total...
  15. Replies
    4
    Views
    1,098

    Wait, I think I may have misunderstood what you...

    Wait, I think I may have misunderstood what you were asking for. I thought you meant that you wanted the car with the wheels falling off to be at the position that you clicked the mouse.

    Alright,...
  16. Replies
    4
    Views
    1,085

    First of all, the "||" means "or" Try this...

    First of all, the "||" means "or"


    Try this code then:

    clicked=false;
    over=false;
    this.onRollOver=function(){
    over=true;
    }
  17. Replies
    4
    Views
    1,085

    put this code on the first frame of the movieclip...

    put this code on the first frame of the movieclip

    clicked=false;
    this.onEnterFrame=function(){
    if(clicked || hitTest(_xmouse,_ymouse,false))
    this.gotoAndStop("red")
    else
    ...
  18. Replies
    2
    Views
    992

    CS3 when you're adding a tile, just use [whatever...

    when you're adding a tile, just use

    [whatever the tile].onRelease=function(){
    //stuff to do on click
    }
  19. Replies
    4
    Views
    1,007

    just add this to the end of your script. ...

    just add this to the end of your script.

    if(!touchingGround) this.gotoAndStop("spring");
  20. Replies
    4
    Views
    1,098

    Give the car movieclip an instance name (I'll...

    Give the car movieclip an instance name (I'll just use "car") and put this in your main timeline.

    _root.onMouseDown=function(){
    car._x=_xmouse;
    car._y=_ymouse;
    delete...
  21. Replies
    5
    Views
    1,086

    CS3 I'm not really sure what you mean about adding a...

    I'm not really sure what you mean about adding a SWF inito XML scripting. Could you explain a little more?

    It would be helpful if you could post the .fla (or a stripped down version of it) or the...
  22. Replies
    4
    Views
    1,007

    For your first question, you just need to check...

    For your first question, you just need to check that none of the keys are pressed AND the character is on the ground:

    if(!(Key.isDown(Key.UP) || Key.isDown(Key.DOWN) || Key.isDown(Key.LEFT) ||...
  23. Replies
    5
    Views
    1,231

    The Math.random() function randomly returns a...

    The Math.random() function randomly returns a number between 0 and .99999...

    The line Math.random()*300 will generate a random number between 0 and 299.9999...

    However, you don't want this...
  24. Ahh, I think I found it! Instead of this: for...

    Ahh, I think I found it!

    Instead of this:
    for (var i = 0; i<_root.platforms.length; i++) {
    if(this.hitTest(_root[_root.platforms[i]])){
    grounded = true;
    ...
  25. Flash8 if(mc._width>=Stage.width){ ...

    if(mc._width>=Stage.width){
    if(mc._x+(mc._width/2)<Stage._width)mc._x=Stage.width-(mc._width/2);
    if(mc._x-(mc._width/2)>0)mc.x=mc._width/2;
    }
    same concept goes for _y and height/_height
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center