Use the toggle function: $(‘:submit’).click(function () { $(‘div’).toggle(); });

If you hide several elements located one nextto another, you can assign increasingly faster speed to hiding each element, for example like this: <script type=”text/javascript”> $(document).ready(function(){ $(‘:submit’).click(function () { $(‘#veryslowhide’).hide(‘4000’); $(‘#slowhide’).hide(‘3000’); $(‘#fasthide’).hide(‘2000’); $(‘#fasthide’).hide(‘1000’); }); }); </script> <script type=”text/javascript”>$(document).ready(function(){ $(‘:submit’).click(function () {$(‘#slowhide’).hide(‘1000’);$(‘#fasthide’).hide(‘300’);}); });</script>

Subliminal cut is a cut of only a few frames so that the viewer is unconscious of them but it affects the viewer on the unconscious level, Subliminal cuts are used in The Exorcist. Subliminal cuts of Bourne’s past are used in many scenes in Bourne Ultimatum. William Friedkin: “The subliminal cut is the single […]

A constant is similar to a variable, but you use the const keyword instead of var, and by common convention, constants are always named in all cpital letters. Example: const MY_CONSTANT = 75; The same can be accomplished with a variable, but using a constant leads to stricter, more logical, higher quality code.

Compare these codes: var myArray:Array = new Array(“First element”, true, 3090); or an even shorter shortcut: var myArray:Array = [“First element”, true, 3090]; with this code: var myObject:Object = new Object(); myObject.objectName = “This is the name of the object”; myObject.objectBoolean = true; myObject.objectNumber = 3090;

var myObject:Object = new Object(); myObject.objectName = “This is the oject name”; myObject.objectURL = “http://myobjectsonline.com/theobject.png”;

Both array and generic object allow you to store multiple values in a single object. Unlike an array, an object cn contain specific names (called “properties”), associated with the values — instead of more or less anonimous “indexes” used in an array.

You can address an inner element of a multidimentional array by addressing its index number: var myArray:Array = new Array(); myArray[0] = new Array; myArray[0] [0] = 6789; myArray[0] [1] = 7834; myArray[0] [2] = 1243; trace(myArray[0] [2]);

An array in an array (aka “multidimentional array”) can be created by making elements of an array also arrays. varĀ  myArray:Array = new Array(); myArray[0] = new Array(); myArray[0] [0] = “This is the first element of the first nested array”; myArray[0] [0] = “This is the second element of the first nested array”; myArray[1] […]

I can do this by looping through the array and calling the pop(); method repeatedly.