Groups | Blog | Home
all groups > flash (macromedia) > june 2006 >

flash (macromedia) : embarrased newbie


David Stiller
6/12/2006 5:32:40 PM
uknowkk,

[quoted text, click to view]

Yupper. Flash content, like many others -- QuickTime, Java applets,
embedded audio, etc -- require a virtual machine of some sort. In this
case, it's the Flash Player, which must be embedded so the browser knows
what to do with the content.

[quoted text, click to view]

No need for any meta tags. If you have Flash (which you do!), you can
have Flash publish the HTML for you. Just go to your publish settings (File
[quoted text, click to view]
source on the resultant HTML document to copy/paste the <object> and <embed>
tag code you'll find.

That will do it for you. Keep in mind that Microsoft recently changed
the way IE handles active content, so if you want to avoid the "click to
activate" message for your IE users, follow the suggestions at the following
URLs.

This is the code Dreamweaver, Flash, Fireworks, etc.
have been using for years to embed SWFs (with
explanation).
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_4150

Here's the Active Content section of the Adobe
Developer Center.
http://www.adobe.com/devnet/activecontent/

Here's my personal favorite IE Active Content
workaround.
http://blog.deconcept.com/swfobject/

And here's an Adobe article on how to use SWFObject
(written by the software's author).
http://www.adobe.com/devnet/flash/articles/swfobject.html


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."

uknowkk
6/12/2006 9:12:12 PM
Ok, straight up, I never took a computer class before March 06 and it took me
30 min to figure out how to post this message!
I just completed my first quarter which included a class in Flash MX2004 and
one in (X)HTML. I created a crude version of a website (from scratch, no text
editors or shortcuts) for my dad's auto parts store that I hope to polish as I
learn more. Right now though, I would like to insert a banner ad that I did
for my Flash class into my home page. I tried placing the swf file into my
image folder and listing it like I did the images, Bhhaaaa. Obviously that
was no good, but I did achieve correct size and the little red x with alt name
showing where I want it to go. So I looked it up in my textbooks and they
referred me to macromedia's website which totally confused me with too many
options and lots of code I don't understand.

It appears I need to include something in the meta tag to indicate use of a
player, though I don't understand what, and some specific code in the place I
want the banner to appear, and I don't understand what goes there either.

Could anyone help a newbie out in layman's terms please?
Thanks so much!

David Stiller
6/13/2006 2:13:24 PM
[quoted text, click to view]

The sample code you pasted looks fine to me. There are two HTML
elements (two tags) to cover: object and embed. The recommended way, for
years, was to put the object element first, then the embed element inside
it. Looks like you've done that. The object tag is your sandwich, and the
embed tag is some meat that goes between two slices of bread. In addition
to the embed element, you'll need a number of param elements, which go
hand-in-hand with the object element. Call those the cheese and lettuce, if
you like. Note that in most cases, but not all, you'll find a paring up
between params and embed element attbributes (param name=movie is paired
with the src attribute of embed, param name=quality is paired with the
quality attribute of embed, etc.). IE looks at the object element and just
about every other browser looks at the embed element, so you need both.

Have you tried this new code? It really looks fine to me.


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."

uknowkk
6/13/2006 3:06:32 PM
I really appreciate your help! I just got the time to put it into action this
morning. I am unfortunately still a little confused as to exactly which
content to place where. This is what I tried to put in the place I had
previously had a logo (where I now want the banner to go) "
<tr>
<td colspan="1" width="728" height="90"<!--url's used in the movie-->
<a href="http://www.napasponsorship.com/index.html"></a>
<!--text used in the movie-->
<!--


--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,0,0" width="728" height="90" id="naparaceingbanner" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="naparaceingbanner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="naparaceingbanner.swf" quality="high" bgcolor="#ffffff"
width="728" height="90" name="naparaceingbanner" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
</tr>

I couldn't see anything that obviously belongs in the beginning of my page, so
this is all I pasted. I must be missing something? Could I trouble you for
help again, please?

Karen
joeq
6/13/2006 3:52:55 PM
AddThis Social Bookmark Button