Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.
	Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
			
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Sat Apr 26, 2014 11:09 am
			
			
			
			
			Hi,
I typed some codes in livecode ,when I generated app,I found the file was so big ,more than 11MB.
the codes:
Code: Select all
on openStack
   global theStart
   local thetime
   
   
   put the seconds into theStart
   put the time into thetime
   
   
   answer "Greetings!" & return & thetime titled "Hello World!"
   timeup
end openStack
command timeup
   global theStart
   local theEnd
   
   put the seconds into theEnd
   
   answer "It took you " & (theEnd - theStart) & " seconds to tap that button!" titled "I was Counting"
namefun
end timeup
command namefun
   local userName, theLen, theVowels, tLoop
   
   
   ask "What's your name?"
   put it into userName
   put the length of userName into theLen
   --
   put 0 into theVowels
   repeat with tLoop =1 to theLen
      if character tLoop of userName is among the characters of  "aeiou" then
         add 1 to theVowels
      end if
      
   end repeat
   
   answer  "You have " & thelen & " letters in your name; " & theVowels  & " of them are vowels" 
end namefun
Who can tell me why ? Sorry for my bad english.
thanks.
 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 FourthWorld
- VIP Livecode Opensource Backer
  
- Posts: 10065
- Joined: Sat Apr 08, 2006 7:05 am
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by FourthWorld » Sat Apr 26, 2014 2:38 pm
			
			
			
			
			Which platform, and which LC version?
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 DarScott
- Posts: 227
- Joined: Fri Jul 28, 2006 12:23 am
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by DarScott » Sun Apr 27, 2014 12:21 am
			
			
			
			
			If you built for Mac Universal, you might want to consider Mac Intel.  Look at the checkboxes on the top of the Mac tab of the standalone builder setup.
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 dunbarx
- VIP Livecode Opensource Backer
  
- Posts: 10392
- Joined: Wed May 06, 2009 2:28 pm
						
						
													
							
						
									
						Post
					
								by dunbarx » Sun Apr 27, 2014 2:45 am
			
			
			
			
			DarScott is probably right on.
I made a Universal app with almost nothing in it, and it was 8.6 MBytes. Changing it to Intel only cut that down to 4.5 MB.
Remember that a working LC engine is integrated into your app. The stack itself that I made was 9K. A complex stack might be 900K, if it had no fancy stuff like embedded sounds and videos, but just lots of LC functionality.
Craig Newman
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Sun Apr 27, 2014 5:02 am
			
			
			
			
			FourthWorld wrote:Which platform, and which LC version?
hi,FourthWorld 
thank you for your reply.
I typed the codes with LiveCode Community 7.0 (dp2)  on windows xp sp3 .
 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Sun Apr 27, 2014 5:04 am
			
			
			
			
			DarScott wrote:If you built for Mac Universal, you might want to consider Mac Intel.  Look at the checkboxes on the top of the Mac tab of the standalone builder setup.
DarScott,
I built for android 
thank you
 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Sun Apr 27, 2014 5:13 am
			
			
			
			
			dunbarx wrote:DarScott is probably right on.
I made a Universal app with almost nothing in it, and it was 8.6 MBytes. Changing it to Intel only cut that down to 4.5 MB.
Remember that a working LC engine is integrated into your app. The stack itself that I made was 9K. A complex stack might be 900K, if it had no fancy stuff like embedded sounds and videos, but just lots of LC functionality.
Craig Newman
hi,dunbarx 
I only made the android app and not for other OS.
here is my settings:
			
				
			 
-  my settings
  
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 Simon
- VIP Livecode Opensource Backer
  
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
						
						
													
							
						
									
						Post
					
								by Simon » Sun Apr 27, 2014 5:55 am
			
			
			
			
			Hi blackangeldsf,
I read somewhere that liveCode 7.0 did make very large files (I think they are working on this).
Try liveCode 6.7, or the stable version of 6.6.1
Simon
			
			
									
									I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Sun Apr 27, 2014 9:56 am
			
			
			
			
			Simon wrote:Hi blackangeldsf,
I read somewhere that liveCode 7.0 did make very large files (I think they are working on this).
Try liveCode 6.7, or the stable version of 6.6.1
Simon
Hi,Simon,
OK,I will try the stable version.
Thank you very much.
 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 blackangeldsf
- Posts: 6
- Joined: Fri Apr 25, 2014 6:31 am
						
						
													
							
						
									
						Post
					
								by blackangeldsf » Wed Apr 30, 2014 4:50 am
			
			
			
			
			Yes ,I made a new android app with LC6.6.1,and then the app was only 2.2MB
thanks all.