Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't load a .swf in a frame!

Status
Not open for further replies.

FanOZakk

Technical User
Apr 4, 2005
11
CA
I have a short intro shockwave video file which I am trying to load in a frame, and it will not do so! If I open the frame separately so that it's the only frame in the browser, it works fine, but as soon as there's more than one frame running, it won't do a thing. Here's my code...

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="x" height="y">
<param name="movie" value="./hudec.swf" />
<param name="bgcolor" value="#000000" />
<param name="quality" value="high" />
<embed src="./hudec.swf" type="application/x-shockwave-flash" pluginspage=" bgcolor="#000000" quality="high" width="182" height="133" loop="no"></embed>
</object>

Thanks very much!
 

Are all frames in the same domain? It could possibly be a security issue (somehow).

Have you tried changing the filename from "./hudec.swf" to just "hudec.swf" in both places?

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Thanks man, I just tried changing the filename around like you said, but tht didn't help. And right now I'm testing the site on my computer, so they're all local files.

In netscape, the object doesn't even load, in IE, a white box appears, but nothing else.
 

Do you really have:

Code:
width="x" height="y"

or do you have real values?

Have you tried putting real values in?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
I can't believe I missed that. I fixed it, but that wasn't the issue, it's still doing it. Great catch, though! No doubt it's contributed to the problem!
 
<html>
<title>Asessippi Ski & Board Club</title>
<frameset cols="16%,84%" border ="0">
<frame src = "./sidebar/sidebar.html" name = "side_frame" noresize>
<frameset rows="28%,72%" border ="0">
<frame src = "./sidebar/topbar.html" name = "top_frame" noresize scrolling="no">
<frame src = "mainpage.html" name = "main_frame" noresize>
</frameset>
</frameset>
</html>
 
The file object is actually intended to load in the sidebar, so I changed the sidebar width to a pixel value, and put a "*" in for the remaining space in the frameset.

Still no luck.
 

Do you have a URL we can see the problem at?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
No success with that one. Thanks anyhow, Clive.
 

You have 3 open body tags in your sidebar:

Code:
<body bgcolor="#000000" vlink = "#bbbbbb" link = "#bbbbbb">
<body text = "#0000cc" bgcolor ="#000000" link = "#3300FF" vlink = "#FF3300" alink = "#000000" >
<body text = "#0000cc" bgcolor ="#000000" link = "#3300FF" vlink = "#FF3300" alink = "#000000" >

You also have no closing body tag, and no head tags around your title tag.

I would be fixing those before trying to get any of the page code to work.

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 

Your main page also has an open body tag with no close body tag, and a title tag outside the head section. You really should sort these basic errors out site-wide - in fact, I cannot find a single closing body tag on ANY page!

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Wow, coupla rookie mistakes there. Fixed, but still didn't affect the shockwave issue...thanks!
 

And the SWF file cannot be found in the same folder as the page which is calling it - another reason it might not be showing.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Yeah, yeah, I have a problem with </body> tags. Is there any real syntax basis for closing tags everywhere, or is it just a dotting the I and crossing the T kinda deal?

I fixed that page and will be moving on to all of the others shortly, at any rate.
 
By the beard of Zeus!

I re-targeted the vid file using the entire URL,
IT WORKS!

Giggidy giggidy giggidy giggidy!

Thanks EVERYONE here for your advice throughout! Even if it didn't directly fix the problem my code has been cleaned up, and the whole page is better off for having done so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top