PDA

View Full Version : Help, with simple question!


aac
08-02-2001, 04:28 AM
I have just started with Flash, and decided to hire a professional to make flash animations for me. The only problem is: "How the heck do I put them on my site!?!"

I have them uploaded (from e-mail) into my hard drive, but now what. (I use a site builder that is on my webhost...) Maybe I am just messing up on the HTML coding. I typed it as: <img src="the_flash_image.swf"> but all that appears is a box with an "x" in it. I know it (the flash animation) isn't an image but what... what... is it?? Please assist,

Ian

kingarturo
08-02-2001, 05:12 AM
First of all you have to upload the swf file to your server and if you're just using a site builder it doesn't seem like your uploading anything. Find out if your host allows you to use FTP programs. Then I would suggest using Dreamweaver to embed your movie. If your can't get Dreamweaver or you don't know how to use it then somebody else has to step in here to give you the htm code. I'm not an htm guy.:( You have to use <embed>....I think.

Hope that helps.

Peace.

RealBBoy
08-02-2001, 11:26 AM
a quick search trough macromedia site...

aac
08-02-2001, 03:44 PM
Ok, I'll do that kingarturo.

Veljko, trust me I already did that... and couldn't find it. I tried to view other sites with Flash Intros, to take the HTML coding (and change a little bit around). But I dought that will work, and kingarturo I do have access to FTP (file transfer protocal), I'll try to do that... Thanks.

red penguin
08-02-2001, 04:39 PM
dreamweaver would be the easiest solution for creating an html doc with swf embedded...
If you don't know anything about html, then whomever you got to create yer swf's, ask them
to supply you with the basic published html doc which flash will surely spit out at the
same time the swf is published. This code you can then take and paste into whatever html doc
you want. The important things are the embed and object tags. Take everything in there.

You also, as mentioned above, will have to use yer FTP to upload the swfs in question and make
sure the paths are set the same.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=Stranger WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="Stranger.swf"> <PARAM
NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#0D0000> <EMBED src="Stranger.swf" quality=best bgcolor=#0D0000 WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

this is what's important...
NOTE that flash doesn't do a very good job of using quotes!
You might want to add them yourself...

[Edited by red penguin on 08-02-2001 at 11:41 AM]

aac
08-02-2001, 05:29 PM
Red Penguin,
I have mastered HTML, DHTML, JavaScript, etc. The only thing is, is that I just started Flash. For all Flash is, is (almost) like a .mov processor engraved into the website with HTML coding. I just wasn't sure what I needed to place on my website in order to play a flash animation. I saw the HTML you listed above, I will see what that can do for me.

red penguin
08-03-2001, 11:47 AM
Then, master of HTML and the like, you should have NO problem using the OBJECT & EMBET tags to put yer swf's online...
Glad I could help OBI WAN...
-red

aac
08-03-2001, 09:55 PM
red penguin,
It makes logical sense that if I just started with Flash I never truly used the scripts that Flash use (i.e. embed, etc.) Everything else is a peice of cake. I know flash is basically the same as a movie engraved (embed) into a site. I simply didn't know how to say that in HTML.

Thank you for responding Einstein.

-AAC

red penguin
08-04-2001, 09:12 AM
Agreed...thinking helps...just add the object & embed tags to yer repertoire...
a+

aac
08-14-2001, 10:25 PM
Of course, thou smart penguin.

Thank You for your excellent assistance and great attitude.
aac

zekebru
08-15-2001, 12:45 PM
I'm glad I wasn't part of that discussion!

Now, if you still want a solution . . .

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="Movie1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Movie1.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

You need to replace the "src", of course, and the width and height. Other than that, it should work fine. Notice that there are two "src" parameters -- one in the embed and one in the object tag. They are needed for the different browsers.

A word of explanation -- "embed" generally only works in IE, as it is actually an ActiveX components - that's where the classid comes in. The object tag is there for the sake of Netscape.

Have fun,

[Edited by zekebru on 08-15-2001 at 07:52 AM]

defrex
08-15-2001, 03:48 PM
ya, you can do it like that. but for people like me who don't care to write a ton of code or use sertyin fetures only acsesable using embed, theres a simple way.

<iframe src="whatever.swf" hieght="you guessed it, height" width="###">

make sure you defign the hieght and width to the exact height and width or a dragon will jump out of your monitor and eat you.

zekebru
08-15-2001, 03:53 PM
iFrames are only supported in IE 3.0 and higher and Netscape 6.

source: http://hotwired.lycos.com/webmonkey/reference/browser_chart/