PDA

View Full Version : qt and swf object



nimes
25th April 2009, 19:14
hi, can i launching swf (flash file) inside qt software? and when i clicked a button in swf, can i launching a function at qt?

can i use externalinterface.call method?

The ExternalInterface class is the External API, an application programming interface that enables straightforward communication between ActionScript and the Flash Player container; for example, an HTML page with JavaScript, or a desktop application with Flash Player embedded. Use of ExternalInterface is recommended for all JavaScript-ActionScript communication.

Thank you for helps,

QbelcorT
26th April 2009, 03:21
Hi,
I am not sure about actionscript. I think the correct method would be to use Phonon, it is a multimedia player in QT. There is a player called 'swfdec', google it, that may help.
My flashplayer API is in another application, and I use a communication method between the two processes to play the swf file.
In my flashplayer API application I reserve a region of the framebuffer when an SWF object is playing. Of course the main qt app cannot access this region at the time the SWF object is playing.