Question 7:
What is the actionscript in flash to solve these following situations:
a. To link from one frame to another frame in the same scene in file
b. To link from one scene to another scene in the same file
c. To link one flash file with another flash file
d. To link flash file with any webpage
Answer:
a. To link from one frame to another frame in the same
scene in file
On
(release){
gotoAndPlay( );
}
-->put frame no or frame label in the bracket
b. To link from one scene to another scene in the same file
On
(release){
gotoAndPlay("Scene 2", 1);
}
-->put scene name in " " & frame no (for example 1 is frame no in scene 2)
c. To link one flash file with another flash file
on
(release) {
loadMovieNum (“flash file name”, level number);
}
-->put file name in " " & level no
-->flash file must be .swf
d. To link flash file with any webpage
On
(release){
getURL("http://www.lescopaque.com
");
}
-->put the url of the website in bracket
0 comments:
Post a Comment