A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Create a routine.

Threaded View

  1. #1
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976

    Create a routine.

    Would anyone be able to help me with how to create a routine for a movieclip.

    What i mean by routine is the things a mc has to do before its finished. I can code this by doing it step by step but that will take ages. What i want is. For the mc to move from side to side.

    Eg
    step1 = move right till its at a certain point.
    step2 = wait here.
    step3 = move left till its at a certian point.
    step4 = move right till its at a certian point.
    step5 = wait here.
    step6 = move right till its at a certian point.

    And so on. So what i want to know is how would i do this. I have considered a function. to move the mc. Which calls its next destination from an array. But i wouldnt know how to write it properly.

    My thoughts are the in the arry have to _x cordinantes for each move.

    eg (205, 400, 21, 16) ...

    and in the function

    function move(){

    // call the co-ordinates.And move the mc to that co-ordinante.

    }





    ThankS In AdvancE
    Last edited by hooligan2001; 01-29-2003 at 05:56 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center