dcsimg
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: how to duplicate an attached movie

  1. #1
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143

    how to duplicate an attached movie

    i have attached a movie on the main scene & i want it do duplicate into multiple copies (it is a faded text mc). How to go about this issue?
    Please Help
    Thanx in advance
    Rgds
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    Why not mulitple attachments? Give each a unique name, and thers no need to duplicate.
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

  3. #3
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    max_depth=11

    for (i=1;i<max_depth;i++){
    duplicate("yorattachedMC","new_name" add i,i)
    this["new_name" add i]._x=10*i /// set Xpos of the new MC
    this["new_name" add i]._y=10*i /// set...
    /// etc
    }

    this code dupl. Ur attached movie in 10 new MCs..and set the x,y pos

  4. #4
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    max_depth=11

    for (i=1;i<max_depth;i++){
    duplicate("yorattachedMC","new_name" add i,i)
    this["new_name" add i]._x=10*i /// set Xpos of the new MC
    this["new_name" add i]._y=10*i /// set...
    /// etc
    }

    this is right code...

  5. #5
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143
    Thanx for the script but Nothing seems to work Stoc. I was able to see a lot of errors in the script on loading it in the mc. unable to duplicate it.

    That seems interesting Scud, Can u be a bit elaborate on that
    Thanx
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

  6. #6
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    http://www.s-toc.com/f_kit/attachMC.fla


    ...code was good ...but was html tags problem ...
    I wrote there
    for (i=1;i"lower" than something;i++)...
    and was considerated a html tag...
    that's why ...
    now U have the fla.

    hope it help U

  7. #7
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    and this is what scudsucker told U
    http://www.s-toc.com/f_kit/attachMC2.fla

  8. #8
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143
    Thanx pal, That was very nice of u to have uploaded the fla. Thanx a lot. This has reduced a lot of work for me. Thanx once again
    Rgds
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

  9. #9
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143

    but listen!!!

    after using the script, MY MOVIE HAS STARTED TO RUN AT A VERY LOW SPEED!!!!!. how will i fix that? & the mc appears to be overlapping too much on one another. Where shud i change the values to make it farer & more visible. PLEASE HELP
    Thanx
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

  10. #10
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143

    Please Help!!!

    after using the script, MY MOVIE HAS STARTED TO RUN AT A VERY LOW SPEED!!!!!. how will i fix that? & the mc appears to be overlapping too much on one another. Where shud i change the values to make it farer & more visible. PLEASE HELP
    Thanx
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

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