Skip to main content
Participant
January 11, 2014
Question

Sabda : Translate AS 1.0 & 2.0 into 3.0

  • January 11, 2014
  • 1 reply
  • 298 views

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

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
January 11, 2014

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)"