A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: attachMovie..alternatives?

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    26
    Was trying to create instances of a movie clip using attachMovie. Didnt give an error but the instances were not created.

    If attachMovie is not implemented yet in KoolMoves, is there any other way to create movieclip instances dynamically?

    Thanks

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    movieclip.duplicatemovieclip(target,newname,depth)

    Its not exactly the same but is a way to dynamically create movieclips. Attach Movieclip uses the Library function which isn't implemented yet.

    I used it in the Star Cursor that is floating around. I also did a snowflake example using it. Both have been posted here before.




  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Unfortunatly, attachmovie is not implemented yet, as you have discovered.

    The work around would be to use duplicateMovieClip. I usually place the movie clip I want duplicated somewhere off the main stage so that it is not visible, and then duplicate it.

    You can download an example of this from my site at:
    http://www.bridel.org/cogs.zip

    Hilary

    --

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Johnie beat me to it...

    I think we both need to get a life

    Hilary

    --

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Yes, but you know exactly where your examples are located... I have examples all over 4 web spaces and can't remember where I stashed them all. I've got some on a Tripod space, some on a GeoCities space, some on Brinkstar, and the latest Web space Provider I was using to store examples on was 0catch.

    I'm playing with Sharp MotionArt- http://web1.galamo.com/sharpmotionart/

    It's a neat little toy.


  6. #6
    Junior Member
    Join Date
    May 2002
    Posts
    26
    lol. thanks for the help. we used to have slang at college.. put feet.. meant sort of bow in reverence. u both are definitely awesome and friendly.

    seems like all i need to do is post a question and take a short stroll and come back ... and they are already answered by then.

    thanks again. appreciate it.

  7. #7
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    duplicateMovieClip() becomes a "way of life" for me into KoolMoves. ha ha ha
    (It works faster than attachMovie() ,but eats more resources )
    cheers

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