开发者

control loaded flash file using php or js

开发者 https://www.devze.com 2022-12-12 05:37 出处:网络
is there a way to write a program in php or javascript that can load a flas开发者_StackOverflow社区h file and interact with it? (click on buttons and such)JavaScript

is there a way to write a program in php or javascript that can load a flas开发者_StackOverflow社区h file and interact with it? (click on buttons and such)


JavaScript Here's a good example of Flash/JavaScript interaction using the YouTube Chromeless Player.

PHP While you could use a query string to retrieve data from a php file or have a PHP file pre-populate FlashVars you can also use PHP with amfPHP for more robust database interaction.

ActionScript Maybe these links will help: Basics of using the External Interface or External Interface


There are many ways to work server/client/flash interactions into your presentations, but for what purpose would probably be the question you should be asking. I've developed a chat client that interfaces with a jabber server through java and in turn with a Sony MMPORG game. There are many interactions between the client(browser), the server(s) and of course flash. Considering it was a flash application the interaction needed to be there in order to make the entire experience a lot more intuitive and useful for the end-user.

You can see the screenshots of this client here: EQ2 Web-Chat Client - Javascript/Actionscript/DHTML by DrLouie - Jabber/Java Communication by PC(Pierce Courtney)

Unfortunately you cannot access the live client unless you have an active Sony Station account for EverQuest 2. Keep in mind this was developed way back in 2004, so if it was possible then, it's a lot more possible today. It's a fun way to develop flash interfaces! Even more fun is finding the possibilities of flash/javascript/server interactivity, which tends to be somewhat limitless to an extent...


Look at the ExternalInterface if you are using Flex.

http://blog.flexexamples.com/category/externalinterface/


Yes, you can load a flash file (.swf) into html document and make it interact with php, but! flash is the responsible of the interaction, sending data to php, so the swf file should do it, using the loadvariables() function.

good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消