problem with duplicateMovieClip

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default problem with duplicateMovieClip

    I can't get to duplcateMovieClip(), createEmptyMovieClip(), or
    createTextField(), when using vars like this :

    //just some vars for example
    var i = 0;
    var startX = 5;
    var startY = 5;

    var depth = this.tekst.getDepth()++;
    var txtName = "txt"+i;
    _root.createTextField(txtName, depth, startX, startY, 400, 20);
    depth++;
    //or
    this.tekst.duplicateMovieClip(txtName, depth);
    //won't work either !
    //end

    If i use trace() the vars read clear the names that they are given !

    What am I doing wrong ??



    m.stenbaek Guest

  2. Similar Questions and Discussions

    1. duplicateMovieClip problem
      - I have a clip collection somewhere in my movie, adress stired in _global.Album - I have a clip elsewhere in the same movie where I want a copy of...
    2. duplicateMovieClip question
      Hi everybody, Sorry if this is a basic question, but I'm having issues with the duplicateMovieClip command. Using MX 2004 professional. The...
    3. duplicateMovieClip {help please}
      hello all, here is what i am tring to do. i want take the value of an array(value1) and apply that value to a movieClip(square) then duplicate the...
    4. Problem with stopDrag for DuplicateMovieClip
      Hi. This is my first time posting. I will appreciate any help given. I am currently working on a flash application to help train users for an...
    5. DuplicateMovieClip
      im trying to reference my duplicatemovieclips that i created and give them an "onpress" function. i am able to change the duplicates alpha and...
  3. #2

    Default Re: problem with duplicateMovieClip

    change your var depth=this.tekst.getDepth()++ statement to:

    depth = this.tekst.getDepth();
    depth++;
    kglad Guest

  4. #3

    Default Re: problem with duplicateMovieClip

    Thanks but the depth tracing OK s? i cant understand if that's tha problem. Besides i have tried this with out anny result - sorry
    m.stenbaek Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139