A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Duplicating and Control

  1. #1
    Addicted to Swift denveriv's Avatar
    Join Date
    Aug 2001
    Location
    USA
    Posts
    152

    Duplicating and Control

    Alright... I have been messing with Actionscipt for awhile now.... I have a pretty firm grasp on alot of it but one thing... Duplicating MC and controlling each individual MC. Anyhelp on elaberating on the subject a bit for me would be greatly appreciated

  2. #2
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,744
    i prefer 2 use attachmovie and put a controller clip inside the movie

  3. #3
    Lunatic Baukereg's Avatar
    Join Date
    Nov 2000
    Location
    Lowlands
    Posts
    853
    In Flash, press F1 and search for duplicateMovieClip

  4. #4
    Ultimate Loser
    Join Date
    Apr 2001
    Posts
    35
    I know how to duplicate a MC... thats the easy part. The problem I have though is taking a individual MC and having it do something diffrent. like this is an old question of mine I still can get to work for some stupid reason... in a game I was working on long ago, I have enemy ships fly by and they are supposed to shoot. It got to where the main MC would shoot but none of the duplicated one would, and eventually all the duplictate ships would dissapear.
    www.Super-Saiyan.com
    Flash site is under construction.

  5. #5
    ********* mentuat's Avatar
    Join Date
    Mar 2002
    Location
    out of office
    Posts
    717
    your best bet might be to sit down with a good flash book - or maybe a well documented .fla - I'm sure there must be one on duplicating movieclips. Thats the only way I could get it straight in my head

    your problem might lie in not getting your levels sorted or removing the movieclip that you are duplicating off - a simple way around that is to have

    if (String(_name) != "movieclipname") {

    before your code in the movieclip to make sure you don't delete the original.

    'flash games studio' by friends of ed has some good explanations for duplicating and making the duplicates act by themselves

    http://www.happylander.com/games/earth - my OTT duplicate game test, never finished it *sigh*

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