(Flash) air for iPad/iPhone development practices

Source: Internet
Author: User

Flash has provided the air for iPhone function since. Let's get started.

 

The difficulty of Flash Air for iPad is to apply for an Apple certificate, because if you have to pay for the release to the Apple Store ($99), I will skip the certificate application here. You can go to Baidu to find a tutorial.

 

Development Program:

Because I'm just testing, this code is a bit tricky ....

Open flash cs5 and choose to create an air for iPhone project.

This document creates a class samplelength as follows:

Package {<br/> Import flash. display. sprite; <br/> Import flash. events. mouseevent; <br/> Import flash. text. textfield; <br/> Import flash. text. textfieldtype; <br/> public class samplelength extends sprite {<br/> private var txt2: textfield; <br/> private var txt4: textfield; <br/> Public Function samplelength () {<br/> var txt1: textfield = new textfield (); <br/> txt1.text = "my present to you :"; <br/> txt1.width = 300; <br/> addchild (txt1); <br/> txt1.x = 30; <br/> txt1.y = 30; <br/> txt2 = new textfield (); <br/> txt2.border = true; <br/> txt2.width = 50; <br/> txt2.height = 20; <br/> txt2.type = textfieldtype. input; <br/> addchild (txt2); <br/> txt2.x = 30; <br/> txt2.y = 60; <br/> var txt3: textfield = new textfield (); <br/> txt3.text = "try"; <br/> txt3.width = 300; <br/> txt3.selectable = false; <br/> addchild (txtt3); <br/> txt3.x = 30; <br/> txt3.y = 100; <br/> txt4 = new textfield (); <br/> txt4.text = ""; <br/> txt4.width = 300; <br/> addchild (txt4); <br/> txt4.x = 30; <br/> txt4.y = 130; <br/> txt3.addeventlistener (mouseevent. click, testlength); <br/> // defines the event processing function <br/>}< br/> private function testlength (EVT: mouseevent) {<br/> var Len: int = txt2.text. length; </P> <p> txt4.text = "Wild luozhuang master"; </P> <p >}< br/>}

 

Post-compilation and release. Select the certificate and description file for release.

Tip: the release speed is very slow. It is recommended to debug and release again.

 

Real machine test:

Because fruit indicates that only object-C programs can be used

It is unwise to submit the information to the store.

This is an iPad attack.

You can simply use iTunes to upload the file.

 

The method is simple:

Open iTunes

Select "file"> "add to Database" and select the generated file.

It will be OK after synchronization.

 

 

 

Finally, we are very much looking forward to developing more interesting programs for our small pad phone ....

For more information, see Adobe official documentation.

Development and testing platform:

 

Windows 7 64bit SP1

Flash, CS 5.5

 

# ITunes 10.1

IPad 4.2.1 cracked

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.