I'm stuck. Obviously I'm stuck or I wouldn't be posting a new question.
I have a php script that takes information from a database and outputs it to the screen. The information in questions relates to a SWF file that I wish to use to display the members of the network team in our organisation.
Expand|Select|Wrap|Line Numbers
- $lcDisplay .= '<div id="peopleContent">' ;
- $lcSelectTeam =
- "SELECT
- a.ID, a.movieFile
- FROM tbl_people a
- WHERE a.schoolID = $lnSchoolID" ;
- $laTeam = $loDataObject->queryGetData(false, $lcSelectTeam) ;
- if($laTeam)
- {
- $lcDisplay .= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="450" id="meetteam" align="middle">
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="movie" value="' . $laTeam[0]['movieFile'] . '" />
- <param name="quality" value="high" /><embed src="' . $laTeam[0]['movieFile'] . '" quality="high" width="600" height="450" name="meetteam" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
- </object> ' ;
- }
- $lcDisplay .= '</div>';
Expand|Select|Wrap|Line Numbers
- <div id="peopleContent">
- <object id="meetteam" height="450" width="600" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
- <param value="sameDomain" name="allowScriptAccess"/>
- <param value="movie/ty_people.swf" name="movie"/>
- <param value="high" name="quality"/>
- <embed height="450" width="600" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="meetteam" quality="high" src="movie/ty_people.swf"/>
- </object>
- </div>
If you look at the page (http://www.nathanjamesdavies.co.uk/#para1=5|para2=0) you will see that the flash object has loaded but it is not playing. Chenging the school changes the file that is loaded so if you change it to Trinity Academy you should see a SWF that displays one picture that when clicked loads some text.
However, nothing plays. Can anyone shed some light on this for me please. The SWF works if I run it locally but not when run on the test site.
Someone please help me (note the desperation in my voice). If I cannot get this sorted I'm gonna move to away from Flash entirely and switch to an AJAX solution.
Cheers
Nathan