A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Multiple Depth Problem (really fuzzled)

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    Multiple Depth Problem (really fuzzled)

    Hello everyone,

    Now if I use duplicateMovieclip on a symbol "note1" to name "note1"+i. (i = _root.getNextHighestDepth //or something)

    How do you link to note1+i using startDrag?

    this is what I am thinking but Its not working:

    Code:
    on(release){
    this.duplicateMovieClip("note1"+i,i)
    note1+i.function.on(press) {
    note1+i.startDrag();
    note1+i.function.on(release) {
    stopDrag();
    //Littered with syntax errors eh?

    Well I am still a green hand at AS


    Thanks for any solutions.
    Tongxn
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    your not defining "i" anywhere ie: i=0;

    also wat errors are you getting post the errors..or the .fla

  3. #3
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    I know but I did everything and my question is how to do this:

    note1+i.startDrag();

    I did it with

    _root.note1+i._x = something
    Before and That didn't work either,
    Infact, none worked.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Code:
    _root["note1"+i].startDrag();
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  5. #5
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    OK i'll try.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

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