📜 ⬆️ ⬇️

Flash application for iPad without any problems with screen size and pixelling

Hello!
Not so much time has passed since Flash became available on Apple mobile devices. Judging by the manual from the official packager from Adobe, building a Flash application on the iPhone is a rather trivial task.
However, the situation with the iPad is not as we would like.

The article provides a secret recipe for how to create a Flash application just for iPad.

IPA packaging


In order for our application to be poured through iTunes onto a device or placed on the AppStore, we need to generate an IPA file. To do this, you need to download the specified official package , follow the instructions specified in it, according to which we need the usual compiled SWF of our application, the generated .mobileprovision and .p12 signature.
To make it clear to the packer how to build it, a application.xml application descriptor is created.

I will note that the Flex framework will not be able to be used, the packer will fall with kresh. It is possible that there are solutions, but I still do not know about them.
')

Problem


And here is the problem:
image
The fact is that the application compiled under the iPhone will occupy the size of the iPhone screen on the iPad, i.e. not at all expected 1024x768, even if you explicitly specify the size of the initialWindow in the descriptor or stage. If you press a button (2x), we will have artifacts in the form of stretched pixels, i.e. the resolution is still the iPhone.

Universal solution


- ... If you deploy to the full, there is a raster visible or normally scaled?
- Noticeable.
- * u some kind of go to you! SchA get dressed - come.
- Come on.

At one o'clock in the morning, I and the comrade of kivsiak set about solving the problem through pair programming, brainstorming, google and beer.
Less than four hours, as a universal panacea was created. The whole problem lay in the poorly documented parameter of the descriptor, which is called the iPhone. By registering it in this way, we get a long-awaited, full-screen iPad application, which looks quite like native!

Here is a secret recipe.

<? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  1. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  2. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  3. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  4. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  5. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  6. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  7. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  8. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  9. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  10. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  11. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  12. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  13. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  14. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  15. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  16. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  17. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  18. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  19. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  20. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  21. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  22. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  23. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  24. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  25. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  26. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  27. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  28. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  29. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
  30. <? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .
<? xml version ="1.0" encoding ="utf-8" ? > < application xmlns ="http://ns.adobe.com/air/application/2.0" > < id > ru.your.application.id </ id > < filename > yourFileNameForApplication </ filename > < name > yourApplication </ name > < version > 1.0 </ version > < supportedProfiles > desktop mobileDevice </ supportedProfiles > < initialWindow > < content > release/yourSWFFile.swf </ content > < transparent > false </ transparent > < visible > true </ visible > < fullScreen > true </ fullScreen > < autoOrients > true </ autoOrients > < aspectRatio > landscape </ aspectRatio > < renderMode > cpu </ renderMode > < width > 1024 </ width > < height > 768 </ height > </ initialWindow > < iPhone > < InfoAdditions > <! [CDATA[ < key > UIDeviceFamily </ key > < array > < integer > 1 </ integer > < integer > 2 </ integer > </ array > ]] > </ InfoAdditions > </ iPhone > </ application > * This source code was highlighted with Source Code Highlighter .


And here she is ny-ka ...


The source code of the project with a panacea, Ant build file for assembly is located on this link on deposits .
The test application itself was taken from an article by Christian Cantrell , in which the author, although trying to show how this problem is solved, didn’t work.
Do not forget also that in the project libs you need to add the AIR SDK , otherwise the code from Christian you will not compile.
In the build file, you need to adjust the path, enter your Application ID, register the store pass from the certificate, and also upload .p12 and .mobileprovision. Ant-pack-ipa's goal will collect an IPA file (ad-hoc) for the iPad, which will be ready for upload to the iPad. Remember to save the .mobileprovision file next to it. For use in production, you need to replace the ipa-ad-hoc symbols in build.xml with ipa-app-store.

In the case of ipa-ad-hoc, the formation of an IPA package will take from 16 to 25 (!) Minutes.

By the way, IPA is a regular ZIP archive.

To download:
- SWF wrapper to IPA from Adobe .
- AIR SDK .

Related Links:
- Making iphone application on Flash CS5
- Writing multiscreen AIR apps
- A branch on the Adobe forums, generated by kivsiak after drinking a beer and synthesizing a recipe. I recommend to unsubscribe in her questions, because this will not be noticed by the Adobe community abroad, where iPad development is already in full swing.
- Running iPhone apps on the iPad (without the Pixeling!) - a terrible unworkable hack that put us on the right track.

On the “zagoladka”: Space On-Air - a simple toy, written in Flash for the iPhone - for fun.

Source: https://habr.com/ru/post/105833/


All Articles