AS3 Mobile Development Starter Notes

Source: Internet
Author: User
Tags addchild

1. Do not set applicationdpi, otherwise full screen on different devices will have problems

2. The contents of the package at the time of publication are related to the "Bin-release-temp" folder

The resource files under 3.SRC will be copied to the Bin-debug folder themselves, and if the resource files are large, it will cause the compilation to be slow

4. At the time of publication, the inclusion of the file can be selected only the SRC folder under the resources file, the file will be slow, the solution is to set the resource file as the source path reference. This resource file is also copied to Bin-debug.

If you have a different step, just refresh the referenced file under SCR.

5.capabilities.screenresolutionx;

The value of the Capabilities.screenresolutiony is only assigned when the application starts. It is also related to the current equipment.

6. <aspectRatio>landscape</aspectRatio> settings apply to landscape display at startup. Plus <autoorients>false</autoorients> You can just keep going sideways.

There are UI controls in the 7.LIB.SWF,

Load with new Applicationdomain (Applicationdomain of Main SWF)

To this._checked = This.getchild ("_checked") as CheckBox in code;

8. SWC folder has been designated Libs, can not build a subfolder to put SWC (do not recognize), the solution is to add more than one SWC specified

9. How do I see which Ari SDK version is currently used in my flex? Locate the Adl.exe under the Bin directory in the Flex SDK, right-click Properties, and select the Versions tab to see

10.getDefinitionByName is the class or other thing that gets the application domain

AS3 Mobile Development Starter Notes

11. Batch Copy files:

xcopy C:/USERS/ADMINISTRATOR/DESKTOP/MYBAR.SWC "E:/WEIDING/MYBAR.SWC"

Batch Startup program

Start "Flash" "E:/weiding/soft/flash.exe"

12.a>>1 is equivalent to A/2

13. If a display object is Scale,bitmapdata.draw, it does not use its scaled content. Need to do this: _local4.draw (_local3,_fadeoutmatrix);

14. Mask best addchild in the container. Because if the zoom is not addchild,parent, only the MC is scaled, not scaled mask

15. All resources in the boot layer will not be exported, can be used with confidence, will not increase the SWF volume

16. In the Debug configuration check "Clear Application data every time you start", each time you debug it will help you delete the file in the application store directory, instead of deleting the

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.