Page 1 of 1

UI Flashdevelop

Posted: Fri Apr 03, 2020 8:09 pm
by ErikGame
Need a little help!
I am trying to learn to use Vectorian Giotto and flashdevelop to create a UI in cryengine. I followed the tutorial on the documentation to create a dynamic text and a button, and this worked fine.
But now i am trying to follow the youtube tutorial on the cryengine site to create an animated healthbar. I have succesfully gotten the animated bar into a project, but i can't figure out how to implement the code in flashdevelop.
In the tutorial they use the following actionscript:

stop();
function sethealth(health:Number)
{
gotoandstop(health);
}

How do i do this in flashdevelop? For the textbox and the button there was a label : _root.MessageLabel... etc. But how do i reference the animation of the healthbar?

Re: UI Flashdevelop

Posted: Tue May 12, 2020 3:54 pm
by Detrixukaon58
Are you able to post the video you are talking about?



But if your doing custom functions with flash develop, you've gotta do something like this:
Image

you have to do it in the class declaration and have _root before it so that it is able to be accessed globally.