×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Unhappy Problem with opening big flah applications

    I have created a flash application for s60 5th eddition devices but I when I try to open it, the device displays ' the memory is not enough to open the file'. The file size is 16mb. when I reduce the file into 10mb it works fine but I need to keep it 16mb.
    I tried to pack it in a sis file and it is been installed fine but the device show the same messege when I try to open the application.
    Any ideas what I can do to slove this problem?

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Problem with opening big flah applications

    Hi Abu-Ahmed,
    Welcome to the Flash Lite Discussion Board! I suggest you to try some optimization i.e divide the main swf files into parts and use loadMovie/unloadMovie APIs to load and unload them respectively or if this is not possilbe try to increase the heap size of your Symbian C++ stub by changing config.iReserved2 in .cpp file :
    Create Flash Application with Carbide C++
    For more info read here (under topic Increased dynamic heap) :
    Increase heap size

    Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Re: Problem with opening big flah applications

    Thank you a lot Saji for you replay

    I have tried the seconed suggestion but it didnt work for me and I dont know how to devide the swf file. Could you please tell me how to do so or is there any other way to solve the problem?

    Thank you a lot

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Problem with opening big flah applications

    Hi abu-ahmed,
    I think the second suggestion have to work but may be 16 mb of content using more than the maximum heap memory available to Flash Lite content. By dividing, i simply means splitting the scenes or movieclips of your main swf file into small swf files.For example,if your game has 10 levels then u can make 10 swf files of each level and load the level when it is required by loading the swf file from your main swf file via loadMovie API. By doing so,you can decrease the size of your main swf file which can eliminate the "not enough memory error". Few more points which may help decreasing the size:
    1- Better to use small sound loops then embedding a complete track.(Recommended)
    2- If you have too much sounds in your swf file , you can also make them external to the swf file instead of embedding.
    3- While using images ,good to decrease the size of images via image editing softwares(photoshop) instead of embedding the large images and scaling them in Flash.
    Hope it helps...

    Regards,
    Sajid Ali Anjum

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Re: Problem with opening big flah applications

    Thank you a lot Saji

    I have tried your suggestion to divide my SWF into two files and it worked well to solve the memory problem but I want to load the other file from a specific frame not the first one. For example, I want to but 3 buttons in the main file. One to load the frame No.3 in the other file and the other two buttons to load frame No. 4 and 5 respectively.
    I hope you got the idea.
    I have search the net but I couldnt find how to do so.
    Please help me.

    Thank you a lot

    Abu-ahmed

  6. #6
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Re: Problem with opening big flah applications

    I also want to close the main SWF file when loading that frame in the other file
    Cheers

  7. #7
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Problem with opening big flah applications

    Hi Abu-Ahmed,
    I want to load the other file from a specific frame not the first one.
    I dont think it is possible. What you can do is load the swf file and then goto Frame 3 like this :
    Code:
    var mymc:MovieClip = this.createEmptyMovieClip("mymc", this.getNextHighestDepth());
    mymc.loadMovie("pathToSwf.swf");
    mymc.gotoAndStop(3);
    If the keyframe is quite heavy in graphics,then you can make a swf out of it and load it.
    Code:
    I also want to close the main SWF file when loading that frame in the other file
    You can unload any loaded swf file by using unloadMovie API i,e in above case :
    Code:
    mymc.unloadMovie(); //or
    mymc.removeMovieClip();
    Best Regards,
    Sajid Ali Anjum

  8. #8
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Re: Problem with opening big flah applications

    Thank you a lot Saji for your help and replays.
    The problem has been solved.

  9. #9
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Re: Problem with opening big flah applications

    Thank you guys. Your discussion helped me.

Similar Threads

  1. Problem: Audio Capture/record with APS with big noise (in ulaw)
    By paipeng in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2011-05-17, 14:42
  2. Big problem with Nokia 9500.
    By stanmar in forum General Development Questions
    Replies: 2
    Last Post: 2006-05-10, 07:31
  3. Big Problem with my N70
    By Ricky T in forum Symbian
    Replies: 3
    Last Post: 2006-03-19, 11:34
  4. Big problem with NMMS API
    By reda22 in forum General Messaging
    Replies: 3
    Last Post: 2004-02-19, 14:14

Posting Permissions

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