you can use mod Flash Module displays a Flash / SWF file as a module. Useful for flash headers, menus, and much more. Uses parameters to control some of the more important flash player settings including Width, Height, Window Mode and Flash Player Version. The Flash Module can also display your SWF using an external Javacript file (for IE6 and IE7) and can be used multiple times on a single page. *** New version 3.0+ provides alternate HTML display when flash not detected.
Hey How do u sloved the problem.
I have the same problem. I create swf game, which call php, which get username. When i open the php from joomla external link it works, but when i open it from swf BUTTON ( which is in joomla component for games) it doesn work. I cant make flash part of joomla site.
The button url is mysite.com/myphp.php
Like most CMS Joomla creates virtual paths so when calling external .php your flash file needs to account for the virtual paths. It fails mostly because you are calling a wrong path.
When I use CMSs like Drupal or WordPress, I use an absolute address for the Flash .swf and/or Flash assets.
Sometimes it's also helpful to set up a separate new folder on the Web site other than the standard folders set up by the CMS so that you can aways upload to and use that as an address. Some CMSs like WordPress, append year and/or month to folder names, so they change over time.... so go around that and create your own folder that never changes.
That will make pathing issues less of a problem.
Best wishes,
Adninjastrator