Programming books from the ENTER_FRAME ActionScript3 Speaking

2010-02-24  来源:本站原创  分类:Flash  人气:222 

Learning a skill, a more systematic approach is still books. Sometimes, however, provide examples of tutorial books and did not recommend a good programming practice to make the reader take a lot of detours. 7yue this blog is ActionScript3 programming books on some common scenarios to describe the problem.

Contact ActionScript3 programming now more and more fans, they can choose from different angles to learn ActionScript3 Programming: books, tutorials, blog, open source projects and so on. I recently found an interesting phenomenon, that is the part of the tutorial AS3 there exists a small problem is that when providing Mouxie examples for beginners and tutorials, these elements are not from the good start programming experience or habit, but send expect to learn in the future, then understand better, more worthy of the methods used, I wonder why a lot of tutorial or article can not start to provide the best practices relevant content for aficionados? This not only improves the learning efficiency, but also to reduce the learning detours.

For example, the following snippet of code from one of the O'Reilly books

The code book to let developers know AS3 SWF in the treatment of priority is greater than the visual effect, then, on the first section of the code used to illustrate this:

for (var i: int = 0; i <50; i + +) (myClip.x + = 2;)

To illustrate this code in the loop, MC's position would not in accordance with the for loop, as presented x coordinate of the sliding scale, but a direct jump to the end of the last cycle of the location of x coordinates go, this is actually no problem, but The following code, it is said that developers can use Event.ENTER_FRAME event to trigger a listener function, the listener function to deal with the movement of a MC.

myClip.addEventListener (Event.ENTER_FRAME, slideClip); function slideClip (evt: Event): void (if (myClip.x <100) (myClip.x + = 2;) else (myClip.removeEventListener (Event.ENTER_FRAME, slideClip) ;))

Developers time to learn the code, especially beginners, will have a profound impression on the Event.ENTER_FRAME reason that, as his learning curve, since for AS3 in the dynamic treatment for the MC, they will naturally will continue to use ENTER_FRAME, even keep the place in which various processing mechanisms. The result is obvious, a large number of application performance and flexibility with problems, perhaps after some long period of time, to hear Youjiangzuoshui, ENTER_FRAME is a style of programming is not recommended, but recommend us to spend a statement like Timer and so on .

Similar tutorials nothing wrong with the content itself, in order to demonstrate a feature or features, using the most easy way to illustrate the problem, if it is a pre-sales engineer, then this method is perfect, if it is for readers and to learn who this method sufficient to constitute, and does not consider learning costs and efficiency, as it led directly to the developers of common programming Fang Shi, Zhi Dao developers have accumulated some experience, or is paid a certain amount of Daijiazhihou , will find a better way, more of the performance to achieve the same results. So, if writing a book or tutorial, I think the better thing is to take account of the costs and curves of learners, not to achieve their objectives, and allow learners to obtain a practical and desirable approach.

I remember before I discovered this problem in MSDN, the existence of a large number of code and examples, the results used later, it was found is very good and the price of content, I thought, Why not I have to tell me when to learn a better method?

相关文章
  • Programming books from the ENTER_FRAME ActionScript3 Speaking 2010-02-24

    Learning a skill, a more systematic approach is still books. Sometimes, however, provide examples of tutorial books and did not recommend a good programming practice to make the reader take a lot of detours. 7yue this blog is ActionScript3 programmin

  • Daquan share ebook programming books 2010-03-17

    Collection of programming books a few years out of today's share: Including java, javascript ajax, linux C / C + +, python, mysql, oracle, uml, C #, etc. More screenshots: http://sunflowers.javaeye.com/album The resource use of foreign well-known sha

  • Free Programming Books 2013-10-25

    https://github.com/vhf/free-programming-books Index Meta-Lists Graphics user interfaces Graphics Programming Language Agnostic Algorithms & Datastructures Theoretical Computer Science Operating systems Database Networking Compiler Design Programming

  • Java professionals required a list of books and Web site, you must reference 2009-10-15

    Language for Java ™ developers , information overdose is a real problem. New entrants each programmer must face a daunting challenge: to enter the industry is a massive industry knowledge. To learn more about what is too much. For an old hand experie

  • 8) Linux Programming Introduction - Network programming (on) 2010-09-26

    A key feature of Linux system is very powerful to his network. With the increasing popularity of the network, network-based Applications will also be increasing. In this Internet age, master of the Linux network programming technology, and everyone D

  • FAQ for programming.reddit 2015-04-28

    FAQ for programming.reddit Please read this FAQ before you submit a self.programming post. A lot of stuff has been asked and answered before. Go ahead and edit this page to keep it accurate and interesting. Most of this was sourced from comments on t

  • Java to study books 2009-05-15

    1. Java language talking about basic study of the basic Java language books, I am sure you will recommend Bruce Eckel's "Thinking in Java". It is written in a very profound technical books, Java language is not some of the basic foundation of an

  • Java source code and recommended books to read! 2009-11-16

    1. Java language based on On the basis of Java language learning books, I am sure you will recommend Bruce Eckel's "Thinking in Java". It is written in a very profound technical books, Java language is not based on any other part of the capital

  • Some Python programming article online 2010-09-01

    newthreading - safer concurrency for Python security concurrency (1 response) http://www.starming.com/index.php?action=plugin&v=wave&tpl=union&ac=viewgrouppost&gid=73&tid=7607 Several Google App Engine open source program http://www.st

  • 44 classic computer science books 2010-11-12

    Source: http://www.cppblog.com/milkyway/articles/61038.html 1.The Art of Computer Programming Author: Donald.E.Knuth Web site: http://www-cs-faculty.stanford.edu/ ~ knuth / taocp.html Book Info: The book known as the 20th century the most important o

  • Oracle Database 9i/10g/11g art of programming: in-depth database architecture: 2 2011-01-12

    Interactive Network in China New china-pub: Oracle Database 9i/10g/11g art of programming: in-depth database architecture : 2 Oracle prestigious classical masterpiece of the world's top experts, Thomas Kyte Ask Tom! Solve all your Oracle incurable di

  • C # and. NET 4 Advanced Programming: 5th Edition 2011-05-04

    "C # and. NET 4 Advanced Programming: 5th Edition" Basic information Original title: Pro C # 2010 and the. NET Platform 5 edition 4 Original Press: Apress On: (United States) Andrew Troelsen Translator: Zhu Ye Xiao Kui Yao Qilin Zhangda Lei Wang

  • Programming Pearls: Continued (Programming Pearls. Ⅱ revised) 2011-05-27

    Set of enduring classics of computer science deep thinking, practical technologies and interesting anecdotes in a taste of the beauty of computer science "Programming Pearls: Continued" Basic information Original title: More Programming Pearls:

  • Programming Pearls: continued (Programming Pearls. Ⅱ revised edition) 2011-05-27

    Enduring set of profound ideas in computer science classic, combat techniques and anecdotes in an interesting taste of the beauty of computer science "Programming Pearls: continued" Basic information Original title: More Programming Pearls: Conf

  • Oracle Database 9i/10g/11g art of programming: in-depth database Architecture: 2nd Edition 2011-01-12

    China Interactive Network china-pub New: Oracle Database 9i/10g/11g art of programming: in-depth database architecture : 2nd Edition Prestigious of the world's top Oracle experts, Thomas Kyte classic masterpiece Ask Tom! Solve all your Oracle incurab

  • Introduction of a Road VC 2010-03-02

    At the outset, I'm not what master, that is just out of poverty. As good luck, buy a few good book, in the learning process hardly take any detours, no fee what strong a beginning, is now generally a small program can do it. Because I do not know whe

  • java Recommended Reading 2010-07-04

    1. Java Language Fundamentals On the basis of Java language learning books, we certainly would recommend Bruce Eckel's "Thinking in Java". It is written in a very deep technical books, Java language based on some of the basic no other book can s

  • Flash Player runway model data summary 2010-09-16

    Transfer from http://www.cc-space.com/?p=1326 POSTED BY ADMIN | FILED UNDER RIA-related Speaker: Lee Thomason ([email protected]) Translation: Lin Xiaowei ([email protected]) Address: http://blogs.adobe.com/xwlin/2010/04/flash_player_101_-_adobe_max_2

  • iPhone development: in 2009 the development of the field of the hottest things to watch! 2009-04-14

    iPhone development: in 2009 the development of the field of the hottest things to watch - "IPhone development basic tutorial" Media Comments "Dave Mark has always been a Mac programming books The author of the best, and he is now indisputab

  • Depth and comprehensive interpretation of all aspects of Struts 2 2009-06-05

    "In layman's language and Struts 2" First, Struts Overview Struts are used to develop a Model 2 framework applications. This framework can improve the speed of development as it provides the following features to solve the Web application develo