HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Converting a Flash doc to index.htm for webpage Posted by tmaculate on 17 Jun 2004 at 7:39 PM
Hello everyone!

I ran across this board doing a Google search. I am having a problem trying to get my intro page to load for my website. I made it in Swish, also saved as a Flash, and I renamed it index.htm. After FTP'ing it, I go to my page and all it shows is gibberish. I don't have my Dreamweaver root folder transferred over...is this the problem?

Is there some kind of code I need to add? I would greatly appreciate any help you might provide for me!
Report
Re: Converting a Flash doc to index.htm for webpage Posted by Weirdofreak on 18 Jun 2004 at 11:27 AM
Umm... Flash is Flash, whatever you call it. The reason it displays as gibberish is that the browser assumes it's HTML, which it isn't. I -think- that if you use another browser it would work (IE ignores MIME-types unless it doesn't recognise the extension - or at least that's what I've heard from many anti-IE sites. My own experience would seem to coroborate this as well, but I'm not certain), but saving a Flash movie/whatever as .htm[l] is just icky anyway.

Use a real HTML page, and show the Flash with <embed src="location.swf">. There are a load more properties for that, but never having used it, I don't know what they are. For what it's worth, I don't think the lack of any of them will mess it up.
---
Vote D.

Report
Re: Converting a Flash doc to index.htm for webpage Posted by tmaculate on 18 Jun 2004 at 12:32 PM
thank you for your response.

i think this is where my problem lies. i am in the learning phase of dreamweaver & flash but i am wanting to use this flash file for my intro page on my website and i was told to rename it to index.htm (or save it that way...i tried both).

so in order to play this file on my index page i need not rename it but use a code to play it?

thanks again!
Report
Re: Converting a Flash doc to index.htm for webpage Posted by Jonathan on 18 Jun 2004 at 3:37 PM
: thank you for your response.
:
: i think this is where my problem lies. i am in the learning phase of dreamweaver & flash but i am wanting to use this flash file for my intro page on my website and i was told to rename it to index.htm (or save it that way...i tried both).
:
: so in order to play this file on my index page i need not rename it but use a code to play it?
:
: thanks again!
:
Leave it as a Flash file (e.g. .swf extension). There is no way a browser could tell it's anything but HTML if you give the file a .html extension (OK, it could tell it's invalid, but anyways...) You then need to create an index.html file and "embed" the flash file in that (embed ain't a great word because you're actually referencing the file from your HTML page, like you would an image). If you're using Dreamweaver, look on the Insert menu and you should see the option to insert a Flash movie - this will most certainly do the Right Thing, though what the freak of D-votiness said about embed is going in the right direction.

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.