| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Jan 2012
Beiträge: 1
| gfx.io.GameDelegate
Hi guys, I have a question about how to use gfx.io.GameDelegate... I am experienced C++ programmer but I am quite new to flash programming and action script.... So I like to ask what I plan to do below is possible or not... I have 2 swfs files which are hosted from a game engine.... One of the swf files (lets say a.swf) defines the following code... Code: gfx.io.GameDelegate.addCallBack("Invent.setStock", this, "_onSetStock"); _onSetStock is defined function in a.swf. Now I have another swf file, lets say b.swf, hosted also from the same game engine (both loaded to the memory at the same time....) but didn't know anything about each other, there is no import or anything like that..... Now I want to introduce new functionality to b.swf and call _onSetStock on a.swf from b.swf with gfx.io.GameDelegate.call... Code: gfx.io.GameDelegate.call("Invent.setStock", __items); Is this possible? I don't know too much about the class loading mechanism of flash but it a.swf and b.swf are loaded from the same class loader (hosted in the same game engine should be like that actually), and while is static gfx.io.GameDelegate.call, I should able to call it actually.... |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |