Online Resources

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Best Practices In Teaching

    View: 
Actionscript is a very powerful language made by macromedia. Learning actionscript can be tricky until you get your mind thinking the same way actionscript does. Actionscript is evolving at a very fast rate into a top programming language. With the release of ActionScript 3.0 excepted in the next few months it's important to get use to good 2.0 practices.



So what are correct 2.0 practices?

Correct 2.0 practices would include strict data typing all variables, function return values and values excepted. Strict data typing can also be used in classes which is another great 2.0 practice. OOP is Object Orientated Programming; OOP is like an advanced external function. Languages such as Java are purely OOP all programming done is Java uses classes. The advantages to classes are they can be re-used time and time again. They can be extended with additional classes, They can be shared and there great for organization. Once you start programming things over 1000 lines of code things can get very complicated and some times impossible because you simply don't know what goes next. This is where classes come in classes with organize your entire site into manageable sections. An example of using classes would be a members system. You could create a members class in that class could contain a signup function that registers the users checked for blank values and further validation. You could then have a login function which checked the users name and password against the database and returned a value of true if the username and password supplied match that of the database. OOP really is the future of programming without OOP you will struggle with medium to large sized projects. Another huge advantage to OOP is when working in a team you can simple work on a class each and modify or extend another persons class. Where as without OOP would have to look through maybe 10,000 lines of code to find 5 lines of code that needed modifying. Good 2.0 practices would also be using movieclips instead of buttons. Movieclips have far more functionality than buttons ever could actionscript 2.0 can do just about anything to movieclips change the coulor, size, shape, movement, the list goes on and on. Buttons really are the past the future is movieclips.

How to define strict datatypeing

for example to define a variable as a number we would use

var - to signal what we are defining is a variable.

thename - anything you like to idefntie the specific variable.

:number - the datatype this could be a number, boolean or string.

= - to define what will be inside the variable.

4 - the value that sites inside the variable.

; - just to end the line of code

So in full

var thename:Number = 4;

String and boolean would look as follows.

var thestring:String = hello;

var theboolean:Boolean = true;

If you wanted to make something happen when a user clicked a movie clip the correct 2.0 code to use would be:

nameofthemovieclip.onPress = function ():Void {

//what you would like to happen in here.

}

We define the function as void so that actionscript does not except a retuned value.

If we were to put expected values inside the function we would use:

myfunc = function (mynumber:Number):Void{

//code goes here

}

So remember to always use correct 2.0 practices and your code will shine.
More Articles from
Assembly Jobs From Home
British American Insurance Company
Control Systems In Business
How To Earn Money On Internet
Will Young I Think I Better Leave Right Now
The Choice between Yes and Yes: A Psychological Revelation
"How To Deal With Freeloaders In Your Business
"How to Burn out Stress Instead of You!"
"Advanced Confidence Training" for Corporate Motivation
"Are you living your true "Authentic Self"?"
"Houston, we have contact." Attracting Clients at Expos!
"Feedback, thats all coaching really is." and other myths?
"...what Makes You Better?"
"He Hate Me": Turning Their Bad Attitude Into Your Great Results
Facing Angry Bears
How To Earn Money with your Membership Site?
How To Earn Money with your Membership Site on ecommerce ?
"21 Tips on How to Start a Home-Based Business "
"Bead-Dazzle:" Bead Makings Rich And Colorful History
» More on
  • Related Articles
  • Author
  • Most Popular
•Best Practices For Teaching, by Michel Dionne
•Best Practices In Assessment, by Jerry Fondale
•Best Practices In Development, by Will Kenny
•Best Practices In Education, by Ben Needles
•Best Practices In Instruction, by Phil Morettini
Ashley Peach has sinced written about articles on various topics from Dog Care, web development and Pets. Ashley Peach - Owns , and. Ashley Peach's top article generates over 49500 views. to your Favourites.
A Good Multi Vitamin
You may also need to increase your fluid intake while taking nonprescription guaifenesin.
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors