Highlighted

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

Community Beginner ,
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

43

Likes

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

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

Community Beginner ,
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

44

Likes

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
Nov 17, 2019 0

Have something to add?

Join the conversation