Menu

Generated frame not shown when moving back???

Developers
2003-04-30
2003-05-01
  • Nobody/Anonymous

    I run into a really strange thing. I'm using JGen 1.3 to create a swf that contains multiple frames, one movieclip on each frame and all on the same layer. I'm basically doing:
    f.removeInstance(depth);
    f.addInstance(inst, depth);

    for each frame. Now, the problem is that when I play the generated swf, it plays just fine going forward. However, when I try to play it backwards, say going from frame 3 to frame 2, the player doesn't seem to re-paint the frame, but whatever was shown on the frame 3 just stays there. I'm positive that I'm able to move the playhead to a previous frame. Only when I go to the first frame that is not generated, the frame is re-painted. Opening the swf file in ASV or doing a swfdump doesn't reveal anything suspicious, everything looks as it should. Could this be a bug or am I possibly doing something wrong here?

     
    • Nobody/Anonymous

      Oh one other thing I forgot to mention. If I put the swf on different layers, everything works ok. So I don't know if should write some additional tag into the frame or do something in a different order.

       
      • Dmitry Skavish

        Dmitry Skavish - 2003-04-30

        oh yeah. I did not notice that you put it on the same layer. it's one of those glitches I was talking about. You do need to put every new instance on different layer for that matter. for example some jgenerator commands which generate lists do exactly the same thing.

         
    • Dmitry Skavish

      Dmitry Skavish - 2003-04-30

      it may be a flash player problem. it is not really smart about that.

      the best way to check is to create some similar movie in flash, then run swfdump/swfparse/jgenerator to see what is generated then do the same with jgenerator. of course providing that going to prevframe in  flash-made movie works.

      the player has its glitches and sometimes the difference between right and wrong (for the player) is very subtle, so you need to pay attention to every difference between flash-made and jgenerator-made movie.

       
    • Nobody/Anonymous

      Dmitry, thanks for an extremely quick reply. Yeah, I figured that I need to put them on different layers. Anyway, just for the sake of argument, what's different in files created by JGenerator and files generated by Flash, since I know that it works if you do the same thing (put movieclips on each different frame, but on the same layer) there? And yes, I ran swfdump and everything there looks the same.

       
    • Nobody/Anonymous

      Dmitry, thanks for an extremely quick reply. Yeah, I figured that I need to put them on different layers. Anyway, just for the sake of argument, what's different in files created by JGenerator and files generated by Flash, since I know that it works if you do the same thing (put movieclips on each different frame, but on the same layer) there? And yes, I ran swfdump and everything there looks the same.

       
      • Nobody/Anonymous

        when you put things on the same layer in flash it does not mean they will end up being on the same layer (depth) in .swf. flash layers are more high level entities than layers in .swf.

         
        • Nobody/Anonymous

          Sure, I know. Anyway, even then, if you create a similar file in Flash (one movieclip on each frame), and then open the swf in ASV or run swfdump on it, it looks exactly the same as the JGen generated file and works, but the JGen file doesn't (going to a previous frame). I'm just curious about it, this is not a real problem.

           

Log in to post a comment.