Skip navigation
Currently Being Moderated

time delay after published to .app ! but not in .swf

Mar 9, 2013 6:56 AM

Tags: #cs5 #flash #swf #actionscript #animation

Hi!

I have a very annoying problem that I can't fix it for a week now. I have created a game, a very simple game, with three scenes. It is a kind of catching and shooting balls game thing controlled by mouse. it's done now and dosen't has any sound , just a simple game with graphic. I tested its .swf and totally fine but, after I published to .app, I've realized that the MC I put in the background in the second scene is slower... it is delay. So This background plays can't finish itself before the scene end.

 

I'm using Macbook Pro OS X 10.6.8 2.4GHz Intel Core i5 4GB 1067 MHz DDR3

And made this game by Adobe Flash CS5, Action Script 2

use Flash Play version 10.1.52.14 (10.1)

 

 

In my oppinion, I don't think this problem happens because the AS2 because everything is fine in .swf and I don't have any sound file in the game.

 

Pleaseeee! Help me! May be I miss something?

 

Thanks.

 
Replies
  • kglad
    72,373 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 9, 2013 7:08 AM   in reply to just-the-human

    use cacheAsBitmap and cacheAsBitmapMatrix everywhere you can.

     
    |
    Mark as:
  • kglad
    72,373 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 9, 2013 7:49 AM   in reply to just-the-human

    you need to enable the cacheAsBitmap property of that movieclip.

     

    here's an excerpt from a book i wrote:  http://www.adobe.com/devnet/flash/articles/optimizing-flash-performanc e.html

     

    check the section of cacheAsBitmap and cacheAsBitmapMatrix.

     
    |
    Mark as:
  • kglad
    72,373 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 9, 2013 8:20 PM   in reply to just-the-human

    what is your target platform?

     
    |
    Mark as:
  • kglad
    72,373 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 10, 2013 7:10 AM   in reply to just-the-human

    yes, that answers my question.

     

    you really are publishing air files.

     

    in that case, you must use actionscript 3, not the actionscript 2 you showed.

     
    |
    Mark as:
  • kglad
    72,373 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 10, 2013 9:23 AM   in reply to just-the-human

    well, it's possible to create an main air swf that uses as2 but it's not easy and you can't use any air-only classes.

     

    when you select air as your publish target in flash pro, you shouldn't even be allowed to select as2.  are you allowed to select as2?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points