lars.saalbach Posted September 10, 2012 Share Posted September 10, 2012 Hello Unigine-Team, I tried arround a little bit with Flash Widgets and got a "simple" problem, i don't know how to solve but i think its an easy thing for you :). In attachment you find the "flashTest.zip" file. Here's my problem: I'm trying to call a function out of a class object with flash but it's not working at all. I also tried to add the Flash Widget in the class and call the function there, but that don't work also. I just get the "exception" 20:18:04 Interpreter::getFunction(): can't find "testCall" function PS: If the testCall function is placed in the cpp it works. Hope you can help me. Best regards Graphefruit flashTest.zip Link to comment
manguste Posted September 11, 2012 Share Posted September 11, 2012 You simply need to specify a proper namespace: Engine.worldCall("Graphetest::GraphetestClass::testCall"); ui_layout.zip Link to comment
lars.saalbach Posted September 13, 2012 Author Share Posted September 13, 2012 Thanks manguste, its working thanks for this great help! But one further question: So I can't call variables with its functions in flash or? Cause its a little bit strange that I can call a public function in a class without initializing a variable and use these? Best regards Graphefruit Link to comment
manguste Posted September 25, 2012 Share Posted September 25, 2012 The idea is you can call simple functions from within a class, but you cannot call methods that deal with a class instance. Link to comment
Recommended Posts