Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: not2easy

Message Too Old, No Replies

Inserting flash

Is there any better way?

     

lukasz

12:02 pm on May 4, 2003 (gmt 0)

10+ Year Member



I am trying to insert flash into my page and I am using HTML genarated by flash software. In short, it is something like:
<object classid="
codebase="
swflash.cab#version=4,0,0,0"
<param name
<param name
<param name
<embed name
type="application/x-shockwave-flash"
pluginspage="
</embed>
</object>

The problem is that it is too long and doesn`t validate.
Are there any better ways to insert/embed .swf file?

digitalghost

12:15 pm on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member digitalghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member



How about something like:

<div id="divNav">
<object type="application/x-shockwave-flash" data="assets/swfs/buttons.swf" width="174" height="272">
<param name="movie" value="assets/swfs/buttons.swf" />
</object>
</div>
<div id="divContent">
<object type="application/x-shockwave-flash" data="assets/swfs/20k.swf" width="526" height="238">
<param name="movie" value="assets/swfs/20k.swf" />
</object>
</div>

It's not exactly short, but it validates.

lukasz

12:35 pm on May 4, 2003 (gmt 0)

10+ Year Member



Great
It is short, it works, and it validates.
Thank you very much.
Do you know if it will work on all browsers?

digitalghost

12:40 pm on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member digitalghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's been tested with IE5 and above, NN6, NN7, Opera 5 and above and Safari. For NN4.7x we serve up a different style sheet. I wasn't concerned with NN4.7x and probably never will be. :)

I'f you'd like I can send you a link to the site using that code and you can test it with your browsers of choice.

[edited by: digitalghost at 12:42 pm (utc) on May 4, 2003]

lukasz

12:42 pm on May 4, 2003 (gmt 0)

10+ Year Member



Thank you very much again.

lukasz

3:36 pm on May 7, 2003 (gmt 0)

10+ Year Member



Hi
I found the difference.
When I use the short method, it treats the flash more like a picture - while it is downloading it shows broken image (red x). It did not happened while I was using long embedding code. I wonder if it is always like that or I mixed up something. Anyway I will use the short code.

kingkelly

4:54 pm on May 7, 2003 (gmt 0)

10+ Year Member



You can insert it with Dreamweaver. Since theyre the same company, dreamweaver should produce the right code.

universalis

5:55 pm on May 7, 2003 (gmt 0)

10+ Year Member



If you want the page to validate, you need to try the "Flash Satay" method! Here's the link:

[alistapart.com...]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month