Page 1 of 1

Scaleform 4 and ActionScript 3

Posted: Sun Apr 10, 2022 1:49 pm
by thesunofman
I'm trying to test out Scaleform 4 and ActionScript 3 swfs. I'm converting my swfs to gfx using Scaleform 4 exporter. The Flash movie is active, but no ActionScript 3 seems to work. Even simple flash methods like Stop() & gotoAndPlay() don't work. The Actionscript 2.0 seems to work fine as usual. Is Scaleform 3 enabled by default and Scaleform 4 needs to be manually turned on perhaps?

Re: Scaleform 4 and ActionScript 3

Posted: Mon Apr 11, 2022 7:57 am
by BattleDrake

In order to utilize Scaleform 4, open up your .cryproject in whatever text editor you prefer, and add the CryScaleform plugin. The line should look like this when you're done
{ "guid": "", "type": "EType::Native", "path": "CryScaleform" }

Our documentation pages will be updated soon with this information :)

Re: Scaleform 4 and ActionScript 3

Posted: Tue Apr 12, 2022 1:06 pm
by thesunofman
Works wonderfully! Looking at defining my functions in xml, and am wondering if it's possible to expose as3 functions that are in say a .as document class? Or must the as3 code be on first frame of the timeline?