Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash player in a scrip?? anyone who can help please.. 1

Status
Not open for further replies.

tom356

Technical User
May 1, 2002
37
Hi

I have a website were i can upload swf files, but after
the upload the movie does not play, it gos to my image-bin.
Do i need some kind of plug-in in my scrip or a flash player..

does someone know a code to put in the scrip or html??
or maybe im wrong on both..
thank you..
 
Your question seems to have nothing to do with PHP at all.
For a basic idea how to include a flash movie in a page ask in the HTML forum.
 
thank you for you help, not sure anyone did understand what i was saying, the swfs are uploaded automatic so i can put the html in the page, it is on scripted pages, can you tell me what to look for here? is it a code for the php?
of is it a html i add?
thank you
 
Flash files are played on your page if your browser has installed flash plugin and they are properly embedded on the page. Currently, using <object> would work best. Consult some of the flash sites on how to correctly set up the <object> tag for the website. Next you have to see what your php script is doing when you upload. If it just adds them to a folder, then you will need to add some script that will embed the files in a page as well. But without seeing what is actually done, we can hardly help.
 
Vragabond thank you for your help, you seem to be the only one who understands me, its the way i explain it i think, not so well, anyway i put the code
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" WIDTH=370 HEIGHT=300>
<PARAM NAME=movie VALUE="1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="1.swf" quality=high bgcolor=#FFFFFF WIDTH=370 HEIGHT=300 TYPE="application/x-shockwave-flash" PLUGINSPAGE="</OBJECT>

like you say and it works, is there a different on for flash mx and swish as well, do you know the code for them please?

thank you
 
Actually we all understand the issue, its the question wasn't well formed.

In any event, both Flash and Swish produce swf files, played thru the flash player. I assume that the real question is

"How do I dynamically choose which movie to play?"

So the code would change to
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"[/URL]
 WIDTH=370 HEIGHT=300>
 <PARAM NAME=movie VALUE="1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="$my_FlashFile" quality=high bgcolor=#FFFFFF  WIDTH=370 HEIGHT=300 TYPE="application/x-shockwave-flash" PLUGINSPAGE="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>[/URL]
</OBJECT>

In the above, you can write code to go thru the directory of flash files and play a random one or list them and use a link to have the user play the one that they want.

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top