A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: help help !!!!!!

  1. #1
    Senior Member cyber reaper's Avatar
    Join Date
    Apr 2004
    Location
    israel
    Posts
    272

    help help !!!!!!

    OK i have several questions about using a .clone() command

    1)what do i need to put in the () ?
    2)how can i control the clone (set his x & y and so...)
    3)is there any web site i can get a good information about using
    3DFA command (what each one does)

    please help me ASAP...
    ok....what ?

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    The help file is actually pretty useful.

    Also the samples demonstrate alot of things well. Other than that the only tutorial site (the one I ran) is no longer. This board is your best bet, do a search of this forum and you will find many examples by myself and others still available online.


    As to clones:

    to make a clone of an element you just

    myclonetomake=element.clone()

    to set properties of the clone

    myclonetomake.x=10 etc.

    The best thing to do when doing more than one clone of an element is to make an array of clones that way you can reference them in a loop.
    PHP Code:
    ball=element("paint 10")
    balls=new Array
    for (
    x=0;x<10;x++){
     
    balls[x]=ball.clone()

    this makes an array of 10 balls you can then reference them in loop or individually like balls[0] etc.

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