Connecting Tech Pros Worldwide Help | Site Map

PHP loading flash movie

nathj's Avatar
Expert
 
Join Date: May 2007
Location: North Tyneside
Posts: 854
#1: Feb 24 '09
Hi,

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
  1. $lcDisplay        .= '<div id="peopleContent">' ;    
  2. $lcSelectTeam = 
  3. "SELECT 
  4. a.ID, a.movieFile
  5. FROM tbl_people a
  6. WHERE a.schoolID = $lnSchoolID" ;
  7.  
  8. $laTeam = $loDataObject->queryGetData(false, $lcSelectTeam) ;
  9.  
  10. if($laTeam)
  11. {               
  12.     $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">
  13.     <param name="allowScriptAccess" value="sameDomain" />
  14.     <param name="movie" value="' . $laTeam[0]['movieFile'] . '" />
  15.     <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" />
  16.     </object>  '  ;            
  17. }
  18.  
  19. $lcDisplay        .= '</div>';
  20.  
This generates the following:
Expand|Select|Wrap|Line Numbers
  1. <div id="peopleContent">
  2. <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">
  3. <param value="sameDomain" name="allowScriptAccess"/>
  4. <param value="movie/ty_people.swf" name="movie"/>
  5. <param value="high" name="quality"/>
  6. <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"/>
  7. </object>
  8. </div>
  9.  
(code snippet)

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
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#2: Feb 24 '09

re: PHP loading flash movie


It's definitely an issue with your Flash project. Opening the SWF directly in the browser shows the same white screen.

I'll move this to Flash.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#3: Feb 24 '09

re: PHP loading flash movie


Are you able to provide the fla? This way I could have a look at it.
nathj's Avatar
Expert
 
Join Date: May 2007
Location: North Tyneside
Posts: 854
#4: Feb 25 '09

re: PHP loading flash movie


Sure thing here's the fla and the swf and the xml it uses and the two images.
In the xml everything after the first 2 items can be removed - I tried that but it made no difference.

Any help is gratefully received.

Cheers
nathj
Attached Files
File Type: zip movie.zip (539.7 KB, 5 views)
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#5: Feb 25 '09

re: PHP loading flash movie


Sorry for the late response - I'm not used to checking this forum :P

I'll have a look at it now and get back to you in the morning.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#6: Feb 25 '09

re: PHP loading flash movie


After editing the file names (changed Charles(?) Tubby.jpg to ctubby.png and rmclean to rmaclean) and uploading it all to my server, it works.

http://rawr.mahcuz.com/ty_people.html
nathj's Avatar
Expert
 
Join Date: May 2007
Location: North Tyneside
Posts: 854
#7: Feb 26 '09

re: PHP loading flash movie


I shall go and sit in the corner, with my head hung in shame, wearing a large conical hat emblazoned with a 'D'.

I had not uploaded the image files to the site! Also the zip file I sent contained the wrong image files - your help alerted me to this fact.

All that said, with the image files loaded I still have the same issue. I'll try a few things out later on and post back if I get nowhere.

Thanks for your help
nathj
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#8: Feb 26 '09

re: PHP loading flash movie


Well, the images still aren't loading. You can see that the textbox is there, but no images.
  • Check file names
  • File extensions
  • xml file for errors
  • open the images in the browser to make sure they load ok
All the newbie stuff, because even the best make mistakes.

Ok, Nath, np.

Markus.
Reply