Anyone here familiar with Flash?

Discussion in 'Game Development General Discussion' started by mairsil, Jun 19, 2008.

  1. mairsil

    mairsil Officer at Arms

    Joined:
    Apr 20, 2005
    Messages:
    3,425
    Likes Received:
    153
    I've got movieclips nested within movieclips that playback properly the first time, but completely screwup the playback rate (about 10x speed and jerky) for ALL movieclips when they are played a second time. Any thoughts?
     
  2. Dreamcast

    Dreamcast Intrepid Member

    Joined:
    Jul 17, 2007
    Messages:
    619
    Likes Received:
    35
    Are they on the stage at runtime or are you placing them there dynamically with Actionscript? What do they contain? If it's for a game and you're using CS3, you might want to try using the sprite class for a little better performance.
     
  3. mairsil

    mairsil Officer at Arms

    Joined:
    Apr 20, 2005
    Messages:
    3,425
    Likes Received:
    153
    All of the assets are statically placed on the timeline (main and movieclip as appropriate). The best way to describe the setup is to think of one movieclip as a deck of cards, each frame containing one card. Each of those cards, in turn, is an animated movieclip (library FLV). In actuallity, its a slot machine that I'll be releasing in the next couple of weeks, but the functionality is easier explained this way.

    The problem is when the "deck" movieclip is placed on a layer spanning multiple scripted frames which try to control the game states (initialization, game, help, bonus, etc.) and transitional animations. Even if everything is initialized and controlled through event listeners on the first timeline frame, changing between frames (let's say going from frame 2 to 3 for a different phase, and then back to 2 for the main game) only works properly once. Trying to do it a second time causes the animation speed for everything to freakout.

    The only workaround I have found is to initialize and control everything in the initialization frame and let the timeline "sit" on a non-scripted frame 2. It works, but completely defeats the purpose of using the timeline for animation control.
     
  4. PhantasyStar

    PhantasyStar Well Known Member

    Joined:
    Jul 11, 2004
    Messages:
    1,551
    Likes Received:
    19

    Yeah, he's really fast...
     
    Last edited: Jun 27, 2008
  5. mairsil

    mairsil Officer at Arms

    Joined:
    Apr 20, 2005
    Messages:
    3,425
    Likes Received:
    153
    Yeah, and it really helped to have that edit including the quote to know what the hell you were talking about... :katamari:
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page