Then the handler function brings the message to the stage and calls a function in a Python file using the method "", but no data is passed in this case.At this time, Flash takes our data using the method "" and passes it to the handler function subscribed to this callback.Now let’s pass the line "Hello World!" to Flash using the method "flash.call".In Main.py, create the event handler "events.onFlashReady" that will report that the Flash file has finished loading and you can transfer information to it.As the mod already has a Flash part, the second file (Main.swf) should also be added to the mod folder (!), where Main.py is located. The mod consists of two files Main.py and Main.swf (a compiled file from the ".as" project). ![]() ![]() Let’s take the " Hello World! " mod and look at how its Python and Flash parts interact:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |