My app takes a long time to open and is heavy, 43 MB
It is a book of about 200 pages, with some images and music mp3.
That I can do to make it faster and lighter?
...
My app takes a long time to open
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 32
- Joined: Mon Nov 26, 2012 6:07 pm
Re: My app takes a long time to open
How are the images and music stored? As part of the app file or as referenced assets?
-
- VIP Livecode Opensource Backer
- Posts: 32
- Joined: Mon Nov 26, 2012 6:07 pm
Re: My app takes a long time to open
.
The images are part of the app, import to stack,
and the mp3 music are add in copy files.
Is the only way i know
...
The images are part of the app, import to stack,
and the mp3 music are add in copy files.
Is the only way i know
...
-
- Posts: 73
- Joined: Mon Nov 12, 2012 4:13 pm
Re: My app takes a long time to open
You can do the same for images, add images in the copy file section. Then create an empty image (ImageHolder) and reference to the "real" image by script:
Code: Select all
set the filename of image "ImageHolder" to specialFolderPath("engine") & "/images/1.jpg"
Re: My app takes a long time to open
Hola jorge,
better directly use relative pathnames for your images, too, no scripting neccessary, check this:
http://forums.livecode.com/viewtopic.ph ... es#p111641
Best
Klaus
better directly use relative pathnames for your images, too, no scripting neccessary, check this:
http://forums.livecode.com/viewtopic.ph ... es#p111641
Best
Klaus