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

Animate CC. Help to convert code AS 3.0 to Java code

Community Beginner ,
Nov 17, 2019 Nov 17, 2019

Copy link to clipboard

Copied

Hi Everyone,

I'm a newbie. Today i need your help. 

I have a old game with code by ActionScript 3.0 so i want to convert the code to Java.

Can you please help me? This is my code. Please help me to convert it. Thanks a lot.

 

import flash.events.MouseEvent;
stop();
nextBtn2.addEventListener(MouseEvent.CLICK,jumpClick);
function jumpClick(event:MouseEvent):void
{
gotoAndPlay(3);
}

backBtn.addEventListener(MouseEvent.CLICK,backClick);
function backClick(event:MouseEvent):void
{
prevFrame();
}


ngoinha.visible = false;
mc1.visible = true;
import flash.events.MouseEvent;
stop();
checkBtn.addEventListener(MouseEvent.CLICK,checkClick);
function checkClick(event:MouseEvent):void

{
if(viet.text == "me")
{
hiends.text = "right";
ngoinha.visible = true;
mc1.visible = false;
}
else
{
hiends.text = "wrong";
ngoinha.visible = false;
mc1.visible = true;

}
}

 

TOPICS
ActionScript , Code , Error , How to

Views

166

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation