www.webdeveloper.com
Results 1 to 5 of 5

Thread: Flash Object in HTML Page - IIS

  1. #1
    Join Date
    Aug 2009
    Posts
    3

    Flash Object in HTML Page - IIS

    Hello all,

    I am a newbie and trying to develop a web site with HTML over IIS.

    I have inserted a flash (swf) object into the html code and am able to see the object displayed via IIS (right-click virtual directory and browse).

    However, it does not show if I try to access the same page via IE with http://localhost/Other. Only the text gets displayed.

    What could be the reason.

    Thanks.

  2. #2
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Sorry but I don't quite follow what you are saying. When you "right-click virtual directory and browse" are you displaying the whole HTML page or just the .swf?
    If so that could just mean that the .swf is in fact in the directory, not that the coding to display it is correct.
    If it does not display in IE, does it display in any other browser? How are you placing the .swf on the page? using the old <object><embed> or are you using swfobject or some other javascript?
    Without a little more info, it's kindof hard to tell what the problem may be.
    Best of luck,
    EfV

  3. #3
    Join Date
    Aug 2009
    Posts
    3
    I am displaying the whole page. It is giving the same result in IE and FireFox. The code is below.

    Thanks.

    <html>

    <head>
    <title>favorites / bookmark title goes here </title>
    </head>

    <object data="C:\test\FlashObjects\logo.swf" type="application/x-shockwave-flash" width="1000" height="106">
    <param name="movie" value="C:\test\FlashObjects\logo.swf">
    </object>

    <body bgcolor="white" text="blue">

    <h1> The Other Page</h1>

    This is the other page.

    </body>

    </html>

  4. #4
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Looks like the problem is most likely a pathing issue. The data=".... part should be the path to the .swf relative to the Web page on which the .swf is located. So depending on the name of the folder in which the Web page is located (let's just say the Web page is in the "test" folder), the path would be
    Code:
    data="FlashObjects/logo.swf"
    and
    Code:
    param name="movie" value="FlashObjects/logo.swf">
    So remove the reference to C: and us forward slash to denote folder levels.
    EfV

  5. #5
    Join Date
    Aug 2009
    Posts
    3
    Thanks. It is working now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles