Coding in Flash

Normal and Expert mode

During basic Flash course you used Normal mode of Action sPanel. It meant that if you needed to enter the script you simply double clicked or dragged the action from the Action Tool panel.

From now on you will mainly use Expert mode of Actions Panel. Expert mode allows you to type and change code directly in the Code Window. Still it’s possible to double click or drag code fragments from the left, but it will be less help to you. It is advisable to do even though it will take a bit more time and lead you to errors sometimes. In exchange you will have an opportunity to master your code writing skills and learn more about ActionScript syntax.

Find a button with Arrow pictogram at the right side of Actions Panel. Using it you may switch from Normal to Expert mode. Type something in the code window and try to return back into Normal mode – it will be not possible – only valid programming code may appear in Normal mode and if you typed something meaningless from ActionScript point of view – you need to delete it or fix in Expert mode.

Now let’s do a small exercise.

By working on this module you found that when you type the code in the Expert mode matching options are displayed for you. For example when you typed on ( , after the parenthesis had been typed Actions Panel displayed tips with a set of possible events for the button. In other cases (for example after getURL list of necessary parameters is shown. Those “tips” may help you a lot with manual coding.

Next