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;
}
}
Have something to add?