Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1646 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Faulty Code?

Thread title: Faulty Code?
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
12-01-2005, 10:31 PM
#1
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old  Faulty Code?

How do i embedd Flash in a HTML document, i did it the way W3 Schools said but it dosen't work... Here is my code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>GethinOakes.com ~ Please Choose Your Destination</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 
</head>
<body bgcolor="#d2e8ff">
<p align="center">
<object width="550" height="400">
<param name="movie" value="http://www.gethinoakes.com/index.swf">
<embed src="http://www.gethinoakes.com/index.swf" width="550" height="400">
</embed>
</object>
</p>
</body>
</html>
Cheers from me and Gethin

12-01-2005, 10:36 PM
#2
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

Yeh I'm not really a coder so I don't see the problem, and still don't with www.gethinoakes.com - loads perfect for me... but yeh if you can help Techno figure it out then I guess your helping me.

Thanks in advance

12-01-2005, 10:40 PM
#3
brendan is offline brendan
brendan's Avatar
Status: Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 189
iTrader: 0 / 0%
 

brendan is on a distinguished road

  Old

is something wrong with the .swf file itself? i opened up http://www.gethinoakes.com/index.swf and all i got was a blank blue page

12-01-2005, 10:42 PM
#4
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

When I open up the swf at
http://www.gethinoakes.com/index.swf

I get the text, and everything that should be there... the swf file is only 5kb, do you have flash player 8?

12-01-2005, 10:59 PM
#5
brendan is offline brendan
brendan's Avatar
Status: Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 189
iTrader: 0 / 0%
 

brendan is on a distinguished road

  Old

Originally Posted by How2Freelance
When I open up the swf at
http://www.gethinoakes.com/index.swf

I get the text, and everything that should be there... the swf file is only 5kb, do you have flash player 8?
nope, good call... and my work firewall prevents me downloading it so i'll wait till i get home to look at it on my mac

12-02-2005, 12:04 AM
#6
jamesyfx is offline jamesyfx
Status: Member
Join date: Jan 2005
Location: Manchester
Expertise: Design
Software: TextEdit
 
Posts: 1,009
iTrader: 0 / 0%
 

jamesyfx is on a distinguished road

Send a message via MSN to jamesyfx

  Old

I think it needs to be soemthing like

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" data="http://www.gethinoakes.com/index.swf" type="application/x-shockwave-flash" width="550" height="400">
<param name="src" value="http://www.gethinoakes.com/index.swf" valuetype="ref" type="application/x-shockwave-flash" />
<embed type="application/x-shockwave-flash" src="http://www.gethinoakes.com/index.swf" width="550" height="400"></embed>
</object>

I'm no flash man.,. I just pulled it from somewhere else. >.> hehe.

I just remember from somewhere that weird classid mumbo jumbo.

12-02-2005, 12:26 AM
#7
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

The flash loaded for me..

By the way <embed></embed> is not valid xhtml! (just thought I'd tell you)

12-02-2005, 01:36 AM
#8
xZaft is offline xZaft
Status: Member
Join date: Jul 2005
Location: Massachusetts, US
Expertise:
Software:
 
Posts: 428
iTrader: 0 / 0%
 

xZaft is on a distinguished road

  Old

Yeah, there is another way. Let me get it.....

HTML Code:
<object type="application/x-shockwave-flash" data="SWF FILE" width="WIDTH" height="HEIGHT">
<param name="movie" value="SWF FILE" />
</object>

12-02-2005, 01:43 AM
#9
blaineevans is offline blaineevans
Status: I love this place
Join date: Dec 2004
Location:
Expertise:
Software:
 
Posts: 688
iTrader: 0 / 0%
 

blaineevans is on a distinguished road

Send a message via MSN to blaineevans

  Old

Hmm it seems to work for me, so I dont what the problem is.. I really like the simplicity btw

12-02-2005, 02:33 AM
#10
bcd is offline bcd
bcd's Avatar
Status: Junior Member
Join date: Oct 2005
Location: Cali
Expertise:
Software:
 
Posts: 96
iTrader: 0 / 0%
 

bcd is on a distinguished road

Send a message via AIM to bcd Send a message via MSN to bcd Send a message via Yahoo to bcd

  Old

Here's a great List Apart article on embedding Flash while still abiding by XHTML standards. I'm pretty sure that's the method xZaft described

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed