Orionsbelter Posted May 29, 2008 Share Posted May 29, 2008 how do add a .flas file using php? what is the code for this? Quote Link to comment Share on other sites More sharing options...
craygo Posted May 29, 2008 Share Posted May 29, 2008 why use php just use html. Only need php if you are getting the file name from a database or something. Ray Quote Link to comment Share on other sites More sharing options...
DarkWater Posted May 29, 2008 Share Posted May 29, 2008 Your question makes no sense. At all. Please elaborate a bit. >_> Quote Link to comment Share on other sites More sharing options...
.josh Posted May 29, 2008 Share Posted May 29, 2008 add it to what? You can generate .swf files in php using libraries out there like the MING library, but as far as I know, there is no way to generate a flash source file (.fla) through php. If this is not what you are asking, then be more specific. Quote Link to comment Share on other sites More sharing options...
Orionsbelter Posted May 29, 2008 Author Share Posted May 29, 2008 i have a .fla file which is just a flash file and need the code so that it'll show on a webpage. this can be owt php java html anycode that'll make it show. Quote Link to comment Share on other sites More sharing options...
rondog Posted May 29, 2008 Share Posted May 29, 2008 you embed the SWF not the FLA... Download dreamweaver and their is code that is automatically generated when you insert a SWF or use google. http://www.w3schools.com/flash/flash_inhtml.asp I dont know why you think this is PHP specific. and if you need to get the FLA to SWF, you need flash to export it. Quote Link to comment Share on other sites More sharing options...
.josh Posted May 29, 2008 Share Posted May 29, 2008 yep. your blah.fla is a source file. You need flash to compile it into a .swf (I think there are also some free programs out there that will do that, but not 100%, might want to google it). Once you do that, you would use the html embed tag to put it on your webpage. Moving to html help. Quote Link to comment Share on other sites More sharing options...
haku Posted May 29, 2008 Share Posted May 29, 2008 I don't know why this was moved to CSS - it's not a CSS issue! Javascript if anything. I personally use swfobject. It's standards friendly and works in all major browsers. And since it's supported by google (which is fairly recent), you can rest assured that they will probably support it for some time to come. Quote Link to comment Share on other sites More sharing options...
.josh Posted May 29, 2008 Share Posted May 29, 2008 sorry I meant to move it to html I highlighted the wrong forum in the dropdown. edit: Oh I see what happened. The thread was originally in the PHP help forum and I meant to move it from there to html help but someone else beat me to it when I was still on that screen so it was already here when I highlighted it and ended up highlighting the next one which was css. Quote Link to comment Share on other sites More sharing options...
soycharliente Posted May 31, 2008 Share Posted May 31, 2008 This is how I embed .swf files. <object type="application/x-shockwave-flash" data="./path/to/file.swf" width="50" height="50"> <param name="movie" value="./path/to/file.swf" /> <param name="loop" value="true" /> alt : <a href="./path/to/file.swf">file.swf</a> </object> It validates in XHTML 1.0 Strict Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.