A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: .HTML or .SWF?

  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    74
    Hello,

    Can someone please explain to me the purpose of the HTML page that is generated when you publish a movie please?

    I see in the folder there is "my.HTML" and "my.SWF".

    The reason for my question is that when I play the HTML page, everying work OK, but when I run the .SWF, it runs, but there is an error on one off my buttons.

    How can this be so?

    Thanks :)

  2. #2
    Senior Member nepdude's Avatar
    Join Date
    Feb 2001
    Location
    Canada
    Posts
    960
    The html is useful for several things like inserting metatags for search engines, inserting javascript functions, positioning the swf file in a specific location of the browser window, etc.
    The first thing that comes to mind is that the button probably has some javascript. Javascript works only when viewing it in the browser.

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Toronto, Canada
    Posts
    701
    To place a flash movie(swf) on the web it needs to be embedded on a html page. If you were just going to make a small swf and place it in another program like dreamweaver then you will not need to publish the html becuase dreamweaver is html based. Sometimes you place one swf inside another swf; then you only need the html for the main swf.If you are not placing the movie on the web you do not need the html file.

    Taz

  4. #4
    Fan of Doritos alty29's Avatar
    Join Date
    Mar 2002
    Location
    Philly.
    Posts
    2,422
    swf makes it bigger

  5. #5
    Member
    Join Date
    Aug 2002
    Posts
    74
    OK, Thanks.

    When uploading my flash to the internet, which file do I upload?
    At the minute I have an index page with some javascript in that detects whether your computer has the flash player, if so, it opens up the movie. I haven't embedded the .swf anywhere, I just simply point to it and it opens.

    I have only uploaded the .swf that is produced from publishing the movie, so does this means that any of the javascript in my flash movie won't work?

    Do I need to upload the .HTML file that is produced by publishing aswell/instead?

    Thanks





  6. #6
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hi,,,

    As said above.....you have to upload both the swf and the html file...if you want stuff to work correctly.

    Cheerio

    RanTen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center