Skip navigation
Currently Being Moderated

How can SWF file embeded in website?

Dec 2, 2011 4:44 AM

Hi

I have a swf file, how can i embeded in website which code is used.

thanks

Manoj

 
Replies
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 5:05 AM   in reply to manojb05

    In your websites source file add the following code where you want to display your swf...

     

    <embed src="swf file directory here" width="550px" height="400" />

     

    Hope this helped

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 5:10 AM   in reply to manojb05

    If you have Flash, then have Flash publish an html page for your file and then copy/paste the code for that file in your html page.  If you do not have Flash, try using swfobject to embed the swf file in your html page.  Here is a link to obtain and explain it...

     

    http://code.google.com/p/swfobject/

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 5:18 AM   in reply to manojb05

    If you have Flash you can create an fla that has the same dimensions as your file and publish the html page code for that file.  Then you just need to change the swf file name in the code to agree with your swf file name.

     
    |
    Mark as:
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 5:32 AM   in reply to manojb05

    Use the code i said

     

    I used to use the way ned uses but welcome to HTML5 my friends

     

    Open your index.html file of your website in notepad, change the swf directory in the following code and then paste this code into notepad and click save.

     

    <embed src="swf file directory here" width="550px" height="400" />

     

    BAM! You are done!

     
    |
    Mark as:
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 5:40 AM   in reply to manojb05

    It is up to the user to have flash supported on there computer

     
    |
    Mark as:
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 5:49 AM   in reply to manojb05

    If they don't have flash then it is their fault but you can add a caution link or something to inform them that it requires flash player like so, use this code....

     

    <html>

    <embed src="swf file directory" width="550px" height="400px" /><br />

    <p style="font-family: arial;">If you don't have flash player, please </p><a href="http://get.adobe.com/flashplayer/">Click Here!</a>

    </html>

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 5:52 AM   in reply to manojb05

    If trhey do noit have the Flash Player oin the browser then they cannot view Flash content.  If their browser does not support HTML5, which many still in use do not, then the code Mcbain provided will not work either.  You are better off sticking with code that supprts a wider audience, but if youy are happy only having limted viewers you can use whatever you choose.

     
    |
    Mark as:
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 5:56 AM   in reply to Ned Murphy

    This person sounds like a beginner so a short and simple answer is good. But the old html as you suggested ned is a bit to big for this beginners knowledge

    You have your 2 methods to pick from now manoj and ill go ahead and say this question is answered, Goodluck!

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 6:08 AM   in reply to manojb05

    Go to the link provided in my original reply and use that for your file.   They will explain how to add code to check if the player is not available so that you can provide alternative content.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 6:08 AM   in reply to McbainGames11

    There is nothing good about providing bad information.

     
    |
    Mark as:
  • McbainGames11
    287 posts
    Jun 17, 2011
    Currently Being Moderated
    Dec 2, 2011 6:23 AM   in reply to manojb05

    This is not flash it is html? And i know more than you so how can you judge the advice i am giving?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2011 1:23 PM   in reply to manojb05
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 5, 2011 11:41 PM   in reply to manojb05

    you're welcome

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2011 4:24 AM   in reply to manojb05

    You're welcome

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 26, 2012 6:33 PM   in reply to manojb05

    html5 is the future, we could upload our video files without flash extension, and the html5 video can be well played on all browsers, apple ios, android devices and other. Add the video tag with your video file, and it is easy to view online. we only need to convert all of your videos to html5. Such as google swiffy, Html5 Movie Maker and so on, both them could work well on video to html5 conversion

    source:

    https://www.google.com/doubleclick/studio/swiffy/

    http://www.html5-movie-maker.com

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points