Actionscript 2

  • warning: Creating default object from empty value in /home/curiousm/public_html/blog.curiousmedia.com/modules/taxonomy/taxonomy.pages.inc on line 34.
  • strict warning: Non-static method view::load() should not be called statically in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display.inc on line 1877.
  • strict warning: Declaration of views_plugin_display_page::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display_page.inc on line 481.
  • strict warning: Declaration of views_plugin_display_block::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display_block.inc on line 193.
  • strict warning: Declaration of views_handler_field_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/handlers/views_handler_field.inc on line 641.
  • strict warning: Declaration of views_handler_sort_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/handlers/views_handler_sort.inc on line 82.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.

Cleaning Up My if() Statements

This isn't AS3 specific, but I have recently started using one line if() statements when possible. They can be slightly confusing the first few times you encounter them, but once you get used to it they really help clean things up. So anyways, instead of:

if(something) {
    thenDoThis();
}

You can do this:

if(something) thenDoThis();

I could be mistreated.