nageeb2016 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

using swfobject with asp pages #501

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not getting the desired effect when I redo the code in my asp pages.

I have an default.asp page that includes the file I have my flash animation on 
and I put the required information within the head tags of that file:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
            swfobject.registerObject("myFlashContent", "8");
        </script>

Then, in the file that I have my swf file, I have the following:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="932" 
height="250" id="myFlashContent">
                <param name="movie" value="../images/slides.swf" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="../images/slides.swf" width="932" height="250">
                <!--<![endif]-->
                    <img src="flash_banner.gif" alt="Get Adobe Flash!" />
                <!--[if !IE]>-->

                </object>
                <!--<![endif]-->
            </object>

With this config, I keep getting the error:

Active Server Pages error 'ASP 0139'

Nested Object

/includes/topNav_home1.asp, line 30

An object tag cannot be placed inside another object tag. 

Any tips on what I do to solve this problem?

Thank you,

Justin

Original issue reported on code.google.com by JSamuel...@gmail.com on 13 Sep 2010 at 6:45

GoogleCodeExporter commented 9 years ago
You can place the second object tag in an include, asp won't display error 
anymore.

<object id="pub" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
width="1024" height="750">
<param name="movie" value="flash.swf" />
<!-- #include virtual="/includes/flash.txt" -->
</object>

---
Content of your include file :
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="flash.swf" width="1024" height="750">
    <!--<![endif]-->
    <div >
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->

Original comment by mhenneq...@gmail.com on 25 Oct 2010 at 2:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Not a SWFObject bug, closing this thread. If you have additional implementation 
questions, please post them to the SWFObject Google Group.

Original comment by platelu...@gmail.com on 8 Nov 2010 at 5:16