0
\$\begingroup\$

Flowgraph OnClick representation

I've created a UI in Flash, set up an xml file for it and designed a flowgraph to ensure it displays when I launch. However, clicking on the buttons doesn't appear to do anything, despite me writing a click event in AS, linking to it in the xml, and connecting the function to a level change in the flowgraph.

XML:

<UIElements name="zlogicGUI2">

<UIElement name="GuiV2" render_lockless="1">

<Gfx file="GuiV2.gfx" layer="0">
<Constraints>
<Align mode="dynamic" valign="center" halign="center" scale="0" max="0" />
</Constraints>
</Gfx>

<events>
<event name="OnClick" ExternalInterface="ButtonClickPressed" desc="" />
</events>

</UIElement>

</UIElements>

ActionScript 3 (created in Flash CC)

button_1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void
{
    ExternalInterface("ButtonClickPressed");
}
\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

Cryengine only supports as2 so youll need to use flash cs6.

\$\endgroup\$
3
  • \$\begingroup\$ Fleshing this out with some references would make it a nice answer. \$\endgroup\$ Commented Dec 14, 2013 at 7:43
  • \$\begingroup\$ Someone in the crydev forums actually solved this already. Thanks anyway :). \$\endgroup\$ Commented Dec 15, 2013 at 6:52
  • \$\begingroup\$ Does it still only support AS2? No AS3? \$\endgroup\$ Commented May 18, 2018 at 7:23

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.