It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Linking to Flash

Linking to Flash

Postby Ash on Mon Jan 02, 2006 11:43 am

In my newest website I have made a splash page that you click to enter but it does not work is there any special script that you have to use when linking to flash.

This is the HTML I am using
Code: Select all
<a href="http://www.freewebs.com/Corrosionsblog/home.htm">
<img src="http://www.freewebs.com/corrosionsblog/other%20images/enter.swf" border="0" /></a>
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Mon Jan 02, 2006 11:50 am

Yep.

Code: Select all
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="460" height="273">
            <param name="movie" value="Link%20to%20other%20site.swf">
            <param name="quality" value="high">
            <embed src="Link%20to%20other%20site.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="460" height="273"></embed></object>


Is the code that Dreamweaver uses for adding Flash animations to the page.

Though if you try validating your site it will come up with errors due to this code so there must be a better way to do it. But I am not sure how yet.

Also if you what to make it a link to somethig like the code you have used you need to put that in the Flash file by use of action script.
I could not get it to work anyother way, there might be an easyer way but I dont know it.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Mon Jan 02, 2006 11:59 am

Cheers for the help.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Sat Jan 07, 2006 4:31 pm

Right well I have just made a new site and I have made it so it is a valid XHTML 1.1 and CSS.

I came accross a problem with inserting Flash and keeping it valid coding.

Well here is the answer check it out.

Link
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Sat Jan 07, 2006 5:44 pm

That will become usefull. Thanks. Most recenly I made a website in college to hold My Flash E learning package and other things and that seemed to work fine.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Sat Jan 07, 2006 5:47 pm

Yeah it works ok using the same code that dreamweaver uses it just wont pass W3C validation.

Cos the embed tag is not valid XHTML.

http://validator.w3.org/
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England


Who is online

Users browsing this forum: No registered users and 8 guests