Information Technology Reference
In-Depth Information
A word about ActionScript syntax:
It is very important to make sure that you follow the correct syntax when
writing ActionScript. The syntax is the grammatical correctness of the
written language. Similar to the punctuation do's and don'ts of the English
language, ActionScript has the type of grammatical structure. It is much
simpler that the English language.
• In ActionScript, a semi colon ends a line of code ; .
stop() ;
• Words or strings of characters need to be in quotations when they
are in parentheses() . The parentheses hold the arguments to apply
to the statement.
on(press){
gotoAndPlay(scene1,2);
{
Brackets }{ break off sections of code to execute a sequence of
commands.
on(press){
gotoAndPlay(scene1, 2);
{
10. In the ActionScript panel type on (press)
then we must set off the function from the vent by using brackets {
so now the code should look like this:
on (press) {
From the action topics choose Global Functions>Browser
Network>getUrl.
Now the code should look like this:
on (press) {
getUrl ()
We need to add the url location and browser window method for the link.
Here is the final code:
on (press) {
getUrl (“index2.htm”, “self”);
}
Search WWH ::




Custom Search