Welcome to TalkGraphics.com
Results 1 to 10 of 33

Hybrid View

  1. #1
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Assigning Actions Withing a MovieClip

    Egg, you are right. You could compensate by having an array of frame counts for the individual MCs , and use that to adjust the nextFrame timing, but then it's getting fiddly.

    Thanks for spotting my lowercase 'f', the _parent.nextFrame() should do what Availor wanted.

    Paul
    IP

  2. #2
    Join Date
    Sep 2004
    Location
    Denver, CO
    Posts
    533

    Default Re: Assigning Actions Withing a MovieClip

    I know you mentioned not using LoadMovie, but that's a simple way I might choose to do what you mention. Although I would use LoadMovieNum. Not that Egg and Paul don't have something with what they where showing. You could have a master movie with one frame. Have it load the intial movie when it starts at a certain level, then have the LoadMovieNum command on the last frame of the loaded movie that loads the next movie into the same level. Flash automatically unloads the first movie. It can only have one movie per level. Just a thought.

    Red

    Big Plan Creative - Napoleon had one . . . Einstein had one . . . Do you have one?
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,942

    Default Re: Assigning Actions Withing a MovieClip

    Red

    I've no argument with what your saying apart from the fact that you may need to come back to a fla file in 12 months and edit it.

    One of the big problems with Flash A/S is that very soon you can find yourself knitting spaggettii.

    How often have you placed an MC on the stage with no content on the first frame, returned a few months later and searched endlessly for it?

    Red, your idea is as good as Paul's & mine, it's just which is the best way to follow it in the future.
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  4. #4
    Join Date
    Sep 2004
    Location
    Denver, CO
    Posts
    533

    Default Re: Assigning Actions Withing a MovieClip

    Those are excellent points Egg!

    Many times when I first started coding AS I would look back at a previous project, scratch my head, and wonder what I was thinking. Either I couldn't remember, or I thought that was just a really complicated way to code and didn't know why I chose that method. I've learned the hard way to comment everything, and then keep it as simple as possible. Which leads to a good point, Availor, once you get your code working, comment it well. That way in the future, as Egg mentions, you'll be able to understand what you were pulling together and why.

    I like your analogy of knitting spaggetti! I often go through that when a client wants me to modify someone elses coding, particularly when the original developer didn't comment.

    Red

    Big Plan Creative - Napoleon had one . . . Einstein had one . . . Do you have one?
    IP

  5. #5
    Join Date
    Nov 2004
    Location
    Israel
    Posts
    2,538

    Default Re: Assigning Actions Withing a MovieClip

    Hey guys thanks alot for your help. I've read some books and the _parent thing is supposed to work, though I don't understand why it doesnt work for me :-)

    Anyway. My point was to create an animation which will begin another animation as it ends. Since I intend making a rather large file I want it to contain a frame for each movie, that will go play the next frame on the scene after the first movie ends.

    I need to find a cheap domain and my site will be up shortly!
    Last edited by Availor; 08 June 2006 at 10:54 PM.
    IP

  6. #6
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Assigning Actions Withing a MovieClip

    Quote Originally Posted by Availor
    Hey guys thanks alot for your help. I've read some books and the _parent thing is supposed to work, though I don't understand why it doesnt work for me :-)
    My original suggestion was to use "_parent.nextframe (); ", Egg spotted my capitalisation error, since it should really be "_parent.nextFrame(); ".

    The capital F really counts, so perhaps that's the problem?

    Paul
    IP

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,942

    Default Re: Assigning Actions Withing a MovieClip

    Availor,

    If you let me know what version of Flash your using I'll upload a zipped fla file.
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

 

 

Bookmarks

Posting Permissions

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