hansolo Posted March 16, 2010 Share Posted March 16, 2010 having trouble placing an embedding an swf file into my blog. As im brand new to blogging any 1 can help plaeas <embed type="application/x-shockwave-flash" src="http://megaswf.com/view/45f77d831a8499acc01f22bb508d0f0d.html/view/view%20pluginspage=" com="" go="" getflashplayer="" width="400" height="101"></embed> Link to comment Share on other sites More sharing options...
Ingolme Posted March 16, 2010 Share Posted March 16, 2010 I think the problem is that you don't have the right URL in the src attribute. Link to comment Share on other sites More sharing options...
thescientist Posted March 16, 2010 Share Posted March 16, 2010 what shows? I think the src need to be the actual .swf file itself, which isn't what I get when I view that src in the browser. Link to comment Share on other sites More sharing options...
hansolo Posted May 31, 2010 Author Share Posted May 31, 2010 what shows? I think the src need to be the actual .swf file itself, which isn't what I get when I view that src in the browser.do i need to refere to the swf from the url its placed. I dont have a server. Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2010 Share Posted May 31, 2010 if you put an assets source (in this case a .swf file) in your browsers address bar, it should show the asset. If this file is not served locally on your own machine/server, you need an absolute path to it, which should be viewable in a browser, standalone. If you put that address you have in the src right now, it doesn't show something. It needs to link properly in order for it be embedded. Link to comment Share on other sites More sharing options...
hansolo Posted May 31, 2010 Author Share Posted May 31, 2010 if you put an assets source (in this case a .swf file) in your browsers address bar, it should show the asset. If this file is not served locally on your own machine/server, you need an absolute path to it, which should be viewable in a browser, standalone. If you put that address you have in the src right now, it doesn't show something. It needs to link properly in order for it be embedded. how can i refer to my file though which is place on the internet .<embed src="i cant just give the name of the swf file " As i dont have a server. do i refer to url address in the top bar example <embed src="http:// some name of a url" http://www.w3schools.com/flash/flash_inhtml.asp<object width="550" height="400"><param name="movie" value="somefilename.swf"><embed src="somefilename.swf" width="550" height="400"></embed></object>//so i should use an embe tag and an object tag as below Note: In the code above there is both an <embed> tag and an <object> tag. This is because the <object> tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag. Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2010 Share Posted May 31, 2010 right, so like I said, find the address to that file and try using that as the source. If you can't view it in your browser standalone, you can be sure it won't embed properly. Link to comment Share on other sites More sharing options...
hansolo Posted May 31, 2010 Author Share Posted May 31, 2010 right, so like I said, find the address to that file and try using that as the source. If you can't view it in your browser standalone, you can be sure it won't embed properly.what address the url. this so mutc easierr to upload from my own computer. Or i refer to my own cdrive. Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2010 Share Posted May 31, 2010 www.w3schools.com is an address. www.w3schools.com/myflashfile.swf is also an address. If you have your flash file on someone else computer, then you need an address that specifies where the browser can find the asset so it can embed it into the page. So if you go to www.somehostingsite.com/myfiles/flash_for_my_website.swf, you should be able to see it and play it in your browser. That's a good sign, and then you should be able to embed the object into your page, using that address as the source for the tag. if your pages are hosted though, and you have a folder on a server with all your webpages, then you can just put the flash file in the same folder as the page its on, and all you have to do for the source is just src='flash_for_my_website.swf' Link to comment Share on other sites More sharing options...
hansolo Posted May 31, 2010 Author Share Posted May 31, 2010 www.w3schools.com is an address. www.w3schools.com/myflashfile.swf is also an address. If you have your flash file on someone else computer, then you need an address that specifies where the browser can find the asset so it can embed it into the page. So if you go to www.somehostingsite.com/myfiles/flash_for_my_website.swf, you should be able to see it and play it in your browser. That's a good sign, and then you should be able to embed the object into your page, using that address as the source for the tag. if your pages are hosted though, and you have a folder on a server with all your webpages, then you can just put the flash file in the same folder as the page its on, and all you have to do for the source is just src='flash_for_my_website.swf' can i upload the file from my computer then. My computer is not a server just yes or no> gonna have to break this conversation down slowlyso i can understand . Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2010 Share Posted May 31, 2010 Yes, you can upload your file to any server. The src attribute of an embed or object tag needs to be a URL that ends in .swf. If it's not pointing directly to a SWF file, it's not going to load as a Flash movie. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.