Copy link to clipboard
Copied
Anyone can help me, to translate this AS 1.0 & 2.0 into 3.0 below?
Many thanks before.
(1) fscommand("fullscreen", true);
(2) stopAllSounds();
(3)
mySound = new Sound();
mySound.attachSound("music");
mySound.start("", 1000);
note: "music" is a sound linkage file from library
(4)
on(release){
getURL("http://www.facebook.com");
}
(5)
Anyone can find what is wrong in my command below?
instanceName.addEventListener(MouseEvent.ROLL_OVER, playStart);
function playStart(evt:MouseEvent):void {
_root.plant_mc.flower_mc.gotoAndPlay("start");
}
In this case i want to control "flower_mc" movie clip that located in : root >> plant_mc
Copy link to clipboard
Copied
3) var sound:Sound = new Sound();
sound.load(new URLRequest("somesong.mp3"));
sound.play();
4) The code needs to be in the timeline lke your number 5 code would be
instanceName.addEventListener(MouseEvent.CLICK, goFacebook);
function goFacebook(evt:MouseEvent):void {
naviigateToURL(new URLRequest("http://www.facebook.com"));
}
5) There is no "_root" in AS3... the closest usage to it that works would be ... "MovieClip(root)"
Find more inspiration, events, and resources on the new Adobe Community
Explore Now