468,119 Members | 1,981 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

PHP loading flash movie

nathj
938 Expert 512MB
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
Feb 24 '09 #1
7 3483
Markus
6,050 Expert 4TB
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.
Feb 24 '09 #2
Markus
6,050 Expert 4TB
Are you able to provide the fla? This way I could have a look at it.
Feb 24 '09 #3
nathj
938 Expert 512MB
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, 72 views)
Feb 25 '09 #4
Markus
6,050 Expert 4TB
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.
Feb 25 '09 #5
Markus
6,050 Expert 4TB
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
Feb 25 '09 #6
nathj
938 Expert 512MB
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
Feb 26 '09 #7
Markus
6,050 Expert 4TB
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.
Feb 26 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by kiran | last post: by
3 posts views Thread by VMI | last post: by
1 post views Thread by Marije | last post: by
2 posts views Thread by vimal.424 | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.