Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Cannot convert a simple movie clip targeting AS3 to HTML5 (Really new to HTML5 Flash CC)

$
0
0

Please! Can a good soul convert this to HTML5? I tried everything! I need see where I'm wrong... This works flawless in as3, but everytime I tryed to convert it to js, it stops... Someone?! :/

buttonOne.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayAtFrame);

function fl_ClickToGoToAndPlayAtFrame(event:MouseEvent):void
{ mc.gotoAndPlay(2); }

stop();

I already tryed this:

var _this = this;
this.buttonOne.addEventListener("click", fl_ClickToGoToAndPlayAtFrame);
function fl_ClickToGoToAndPlayAtFrame(event) { // Note: Types are not supported either.
  _this.mc.gotoAndPlay(2);
}

It works in a empty fla, but not on the i'm working:

I just wanna to call the mc (with a effect) and at same time go to frame 348 and play... I'm uploading the original fla I'm working on... Please, help me to find what is wrong?

www.agenciacreh.com.br/downloads/home.fla  (here the fla file!)

Thanks!


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>