Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sabda : Translate AS 1.0 & 2.0 into 3.0

New Here ,
Jan 10, 2014 Jan 10, 2014

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

TOPICS
ActionScript
281
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 11, 2014 Jan 11, 2014
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines