Link to home
Start Free TrialLog in
Avatar of BobBarker_99
BobBarker_99

asked on

Link to a flash file in my asp.net page

Hello,

I want to link to a flash file (not a local file, but a remote url), and have it display in my webpage.  Is this possible?  How do I do it?
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BobBarker_99
BobBarker_99

ASKER

I added this:
<script type="text/javascript" srcScripts/swfobject.js"></script>
to my masterpage in the head tag

And this:
<script type="text/javascript">
            var so = new SWFObject("images/flash.swf", "banner", "580", "145", "6", "#FFFFFF");so.write("leftContent");so.addParam("WMode", "Transparent")
        </script>

In the "leftContent" div.  

But when I run the page, I get this error:
Microsoft JScript runtime error: 'SWFObject' is undefined

Do you see what I am doing wrong?
The only reason I can think of is when your HTML page is not able to find the swfobject.js file...  That might be abit different if you are using template file in .NET...  Try creating a simple HTML page to test if that works so that you can isolate the issue...

CyanBlue
I tried that and get the same error.  This is my first time using scripts... is there something basic I may be missing?

Can you post the HTML code you were using???

CyanBlue
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial