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\$
0
\$\begingroup\$

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

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Fleshing this out with some references would make it a nice answer. \$\endgroup\$ – MichaelHouse Dec 14 '13 at 7:43
  • \$\begingroup\$ Someone in the crydev forums actually solved this already. Thanks anyway :). \$\endgroup\$ – Paul Ferris Dec 15 '13 at 6:52
  • \$\begingroup\$ Does it still only support AS2? No AS3? \$\endgroup\$ – Nikos May 18 '18 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.