Inserting Flash on html or xhtml page
I've typically used Dreamweaver to insert my Flash movies in
html pages. However, the code inserted by Dreamweaver CS3 does not
validate and I've read there are better ways to do it. Several
people have recommended swfobject (
http://blog.deconcept.com/swfobject/
). Is swfobject a good solution for todays browsers or is there a
better approach that works across most common browsers (Firefox,
IE6, IE7, Safari)? This is a sample page that works in most
browsers, but sometimes the flash element cannot be viewed in
Firefox:
http://www.jimmoondesigns.com/pg/package.html
IMO, I don't think you'll find a better method than using
SWFObject. I
recommend it, and use it on all our sites.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
Similar Messages
-
I am using Dreamweaver CS4.
I am attempting to put a Flash Video (.flv) file on a standard HTML page in Dreamweaver.
When I either click the Insert Flash Video in the Common tab on the Dreamweaver toolbar, or if I choose Insert > Media > FLV to inert the video, I get the standard Dreamweaver FLV interface. I make my choices, click OK, and when the video is place on the page, I get the following dialog box:
"While executing inspectSelection in flvProgressive.htm, a JavaScript error occurred."
with an OK button.
If I preview the page, all that loads are the various buttons of the skin that I have chosen and no video.
Anyone have an idea what is going on?
maylandmacAre you sure you aren't working with a template driven page?
When you insert media files into DW, it must write code in the <head> tags to reference Scripts necessary for Flash media to work on the web.
If you're working with a page that was created from a Template, the DWT page must have editable regions in the <head> tags, or you won't be able to add media to your web pages.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Problem inserting Flash movie into a Dreamweaver page
Hi, I've inserted a .swf movie on this page. It used to work, but doesn't now. In Dreamweaver (CC), when I highlight the movie and click 'Play' in the Property Inspector it works (but doesn't in 'Live' view within DW).
Please be gentle about my code. I'm a hobbyist and started this site about 7 years ago so don't have time to keep up with latest coding trends! Answers re. non-appearance of movie only, please.Flash really isn't the way to do this anymore, very few people viewing your site with a mobile device are going to be able to see your .swf. Adobe stopped mobile Flash development a few years back and most devices that used to be able to see Flash, no longer ship with a Flash plug-in. Certain devices, like all Apple iOS devices, never had the ability and there is no way to add it to those.
Since it appears when uploaded, I would guess the reason it doesn't work locally likely has something to do with your machine's security settings, especially if Microsoft is involved in the equation somewhere. If it works when uploaded, you're good to go.
HTML5 <video>, CSS3 and jQuery (javascript) are now the default for video and animation for websites since they're compatible with virtually all devices used to browse the internet. -
Help inserting a flash video into my web page
Hello!
I'd love some help inserting a flash video into my web page. My web page is hosted by Viviti, templated, and edited online. I can add html to it, and I have the html source for my flash video. I also have uploaded the flash file to the server. Since I am very html illiterate, though, I need some help rewriting the html script so it can be published. There are two problems- firstly, no 'headers' or 'body' allowed in the script- these are already a part of the template. Secondly, I don't know how to rewrite it to refer to the uploaded files. It's also imperative that the full screen mode functions. I've pasted the source code for the flash video here. Please help!!!
Thanks!
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Drag and drop labelling</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
if (!version)
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
return version;
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
return flashVer;
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1]; // "2,0,0,11"
versionArray = tempString.split(","); // ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
return false;
function AC_AddExtension(src, ext)
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
function AC_Generateobj(objAttrs, params, embedAttrs)
var str = '';
if (isIE && isWin && !isOpera)
str += '<object ';
for (var i in objAttrs)
str += i + '="' + objAttrs[i] + '" ';
str += '>';
for (var i in params)
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
str += '</object>';
else
str += '<embed ';
for (var i in embedAttrs)
str += i + '="' + embedAttrs[i] + '" ';
str += '> </embed>';
document.write(str);
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '720',
'height', '440',
'src', 'Drag and drop labelling',
'quality', 'medium',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Drag and drop labelling',
'bgcolor', '#ffffff',
'name', 'Drag and drop labelling',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Drag and drop labelling',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="720" height="440" id="Drag and drop labelling" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="Drag and drop labelling.swf" /><param name="quality" value="medium" /><param name="bgcolor" value="#ffffff" /> <embed src="Drag and drop labelling.swf" quality="medium" bgcolor="#ffffff" width="720" height="440" name="Drag and drop labelling" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>What you basically need to do is copy the sections of content from the code you show into the template (assuming the template already provides the <head> and <body> sections of the page. So in the head section of what you show, take everything starting with...
<script language="JavaScript" type="text/javascript">
all the way down thru...
</script>
, inclusive (in the head section only), and paste that into the head section of your template.
Similarly, take everything that lies between the <body> ... </body> tags (exclusive of the body tags) and paste it into the body section of your template wherever you plan to display the Flash file. -
Script adding on to my flash on html page
errors in page. this script is getting into my html page with
the flash im adding into. my page does not show in the internet
after upload. www.aurorabiomed.html/flashretreat.html. everytime i
add a flash file into my webpage this script is added and my page
has errors. it was not happening before i reformatted my harddrive
and reinstalled dw8
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<script src="../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','120','height','600','src','assets/retreat07','quality','high','pluginspage','http://w ww.macromedia.com/go/getflashplayer','movie','assets/retreat07'
); //end AC code
</script><noscript><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="120" height="600">
<param name="movie" value="assets/retreat07.swf" />
<param name="quality" value="high" />
<embed src="assets/retreat07.swf" quality="high"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="120"
height="600"></embed>
</object></noscript>
</body>
</html>What is the location of this page in the folder structure you
show?
> is there something wrong with the source
> path of the script?
If you are getting the wrong path to the linked file, then
your local site
is not properly defined.
> - mainwebsite_html folder
> + assets folder
> flashretreat.html
> - scripts folder
> - templates
If the page you show below is in fact flashretreat.html, then
the link that
DW adds is correct - you have to go up one folder level, find
the Scripts
folder (I'm assuming you made a type in showing lower case
above) and then
find the required script in that folder -
<script src="../Scripts/AC_RunActiveContent.js"
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"web_rookie" <[email protected]> wrote in
message
news:[email protected]...
> in the preferences window, under code rewriting i
disabled active content
> for
> 1. insert using browser safe scripts &
> 2. convert tags to scripts on file open.
>
> my page works fine now. if i enable this options and the
scripts folder is
> also uploaded my page has errors. is there something
wrong with the
> source
> path of the script? i tried transfering the folder
inside my webpage
> folder
> together with the html pages and assets folder rather
than at the root
> folder
> but still gives me the same error.
>
> - Site - Biomed (C:Biomed)
> - mainwebsite_html folder
> + assets folder
> flashretreat.html
> - scripts folder
> - templates
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <title>Untitled Document</title>
> <script src="../Scripts/AC_RunActiveContent.js"
> type="text/javascript"></script>
> </head>
>
> <body>
> <script type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=7,0,19,0','width','120','height','600','src','assets/retreat07','quality
> ','high','pluginspage','
http://www.macromedia.com/go/getflashplayer','movie','as
> sets/retreat07' ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=7,0,19,0" width="120" height="600">
> <param name="movie" value="assets/retreat07.swf"
/>
> <param name="quality" value="high" />
> <embed src="assets/retreat07.swf" quality="high"
> pluginspage="
http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash" width="120"
height="600"></embed>
> </object></noscript>
> </body>
> </html>
>
Text
Text
> -
Loading HTML or PHP page in flash
Hi,
I would like someone to tell me if there is a way to load html or php page in flash just like a movieclip without actually navigating from the flash player(by using getURL code). Basically, I am wondering if there is a way to load a html file just like we load movieclips and perform all the functions of html page.
Thanks,
AbinashNo. Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields). So to display an html/php file is not possible.
-
Flash Object not viewable within page
Hello, I've been having trouble adding a Flash content into pages (which I'm quite innexperienced at). My homepage for example, is supposed to be a flash site. But for some reason it does not play when inserted to an incredibly simple webpage, as you can see here; www.ethanguillemette.com
Instead of the flash site appearing, there is simply an empty white box. Now interestingly enough, the flash object is fine in and of itself, and can be viewed without problem (albeit far too large!) here; http://www.ethanguillemette.com/flashsite.swf
The following is the code for the index page. Pretty much all I did was create a wrapper, center it, and add a background color:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ethan Guillemette - Web Designer</title>
<style type="text/css">
body {
background-color: #91919B;
.flashwrapper {
margin: auto;
height: 480px;
width: 900px;
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<div class="flashwrapper">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="480" id="FlashID" title="Ethan Guillemette Flash Site">
<param name="movie" value="flashsite.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flashsite.swf" width="900" height="480">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
Does anyone know what hairbrained thing I'm doing wrong? Any help would be much appreciated!Just as general info I'd like to add a couple of my observations.
There seems to be a number of very similar problems popping up in other Forums recently related to this same issue. I'm thinking that a recent Flash pluggin update is causing some of these problems.
For example, I can't see the .swf files in either of hans links... I haven't updated my Flash pluggin for awhile (10.0.45.2). OK, I can understand if I can't view the .swf.
But here is a similar problem posted over in the Flash Forum:
http://forums.adobe.com/thread/868573?tstart=0
I get a "download latest pluggin" message when attempting to view the posters page:
http://www.brendaportfolio.co.uk/test.html
However, I can direct download the .swf and view it just fine.
So the problem is not that I don't have the correct version pluggin for that particular .swf, but rather that I don't have the correct pluggin as required by the embedding code used, specifically:
<param name="swfversion" value="11.0.0.0" />
older versions of his .swf/pages used an embed method calling for older version of "swfversion" as a param, those work just fine.
So my guess is that in this posters case, the newer version pluggin IS required for his .swf, since I can't view the page. The old CS3 version, which used the old "AC_FL_RunContent" embed method only called for version 9 pluggin, while the .swf itself requires the latest pluggin.
Perhaps a lesson to be learned is that when creating Flash content, you may not want to always develop for the very latest version of Flash Player, since not everyone has updated their browers. A second lesson/observation is that the embed method used in CS5 (swfobject_modified.js) seems to be putting the cart before the horse, requiring the latest pluggin update even if the .swf does not need it.
Now I am all for using .swfobject, but NOT to display the Flash. swfobject is not needed, nor required to display Flash on a Web page. If the Web browser has the Flash pluggin a .swf will display just fine with some simple code like this:
<object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">
<param name="movie" value="path_to_file/file.swf">
<param name="SomeOtherParam" value="ParamValue">
</object>
no other code, swfobject, or AC_FL_RunContent needed.
The purpose if using .swfobject is to provide Flash detection (not Flash display) and display alternate content if the Flash pluggin is missing or not up to date. But it appears now that the version of .swfobject used in CS5 has incorporated "get the latest version pluggin no matter what" rather than "get the appropriate pluggin for this .swf".
And yet one of the most powerful features of .swfobject is the most overlooked and underused, that of allowing you to create alternate content for SEO purposes. That alt content can completely remedy I Know Nothing at all's concerns:
On another note, you are aware that a 100 % Flash navigated site is the worst thing you can do from an SEO standpoint right?
From an old post:
If you think that Flash is somehow bad for SEO, it's time to dispell that MYTH!
If fact, in some circumstances I'll use Flash INSTEAD of just HTML because then I'll have better SEO than with just HTML alone.
http://www.worldbarefootcenter.com/
The link to World Barefoot Center in the above post is just one example. View the source code and you see a couple paragraphs of text along with regular HTML links.... but what displays is the Flash version of the image and Flash links.
The client provided the artwork for the page... and that's what they wanted to use a .jpg image. Well yes, that could be done in HTML but it would be virtually invisible to Google. So Instead I converted the image into a Flash .swf and used swfobject to display the Flash. swfobject allows you to create alternate content inside the <div> which also holds the Flash .swf, then when the page is loaded it detects if the browser has the Flash pluggin. If it does, it displays just the Flash content, if not, it displays the alternate content. Since almost everyone has the Flash pluggin, for most people the Flash version of the <div> will display.
The alternate content for that <div> can be any regular HTML text, images, media player, links, etc., anything that you would use if you were not using the Flash. Now the best part is that the alternate content can be "over the top" as far as optimizing for SEO, since it will not be seen by most viewers.
Here's another example of SEO with Flash.. again, the page is just a single image provided by the client:
http://www.ksowetsuits.com/
View the source code. The alt content is paragraph after paragraph of information about the site, including lists and links. If it was just the HTML, it might be kind of a boring Home page. But for SEO I can go "over the top" in promoting the site, since most viewers will never see that part... but it's all indexed by search engines. The end result is BETTER SEO using Flash than just HTML.
On another Web site, a Flash video is displayed, the alt content is the complete text narration of the video. Now how many people would take the time to read that if they could just watch the video instead?? again, better SEO with Flash than without. In fact in one case we had first page search result from that video narration within 4 hours of posting the page.
On still another site with a Flash video, the alt content is another video, but a .mov version, which will, in effect play Flash video on the iPhone (not possible you say??). Well since the iPhone does not have Flash pluggin, it simply displays the .mov version of the video, while everyione else sees the Flash version.
So anyway, if Flash is a part of your Web development, you should look into using swfobject and alternate content.
http://code.google.com/p/swfobject/
Best wishes,
Eye for Video
www.cidigitalmedia.com
Best wishes all,
Adninjastrator -
I often insert .swf files in my html pages however, lately I
have been trying to insert flash movies in the middle of a bunch of
text. I do something similar with and then, using the property
inspector's align dialog box, I either set the image to be on the
right, the left, or one of the other options. By doing that, the
image looks the way I want it to with the text wrapping around it.
I see that the same type of options appear in the property
inspector when I insert a .swf file but I don't get the desired
result as I do with images. The only way I can fake the look I want
is by putting the flash movie in it's own cell in a table and
breaking up the text above,below or next to the movie the best way
that I can but this is not reliable and I sometimes end up with too
much white space. Is there a parameter I need to set or a style to
add to the swf object? I'd appreciate any suggestions.Thank
you.This file is not on the server -
http://www.lacybayliss.com/Scripts/AC_RunActiveContent.js
but this one is -
http://www.lacybayliss.com/web/Scripts/AC_RunActiveContent.js
This means that your link is not properly made to the script
file in the
head of that page, OR that your site definition is not
correct.
<script src="../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"triple red eye" <[email protected]> wrote
in message
news:fofl7t$2tg$[email protected]..
>I have two sites with this issue:
>
>
http://www.lacybayliss.com/web/index.html
>
> and
>
http://www.lacybayliss.com/espre/index.html
>
> thanks
>
> -
Trying to insert flash video onto website
I'm using Dreamweaver and have been trying to embed a flash
video onto my web page. I have inserted the proper file, but I
think I need to reference the start.exe file to get the movie to
play. Any help? This is the code so far:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
name="biz" width="600" height="400" id="biz">
<param name="movie" value="
http://www.twosapair.com/SteelExternalAll.swf">
<param name="quality" value="high"><param
name="BGCOLOR" value="#0000FF"><param name="LOOP"
value="false">
<embed src="
http://www.twosapair.com/SteelExternalAll.swf"
width="600" height="400" loop="false" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="biz"
bgcolor="#0000FF"></embed>
</object>It's not a mime problem. It's a file not there problem.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"G" <[email protected]> wrote in message
news:eq1lid$10q$[email protected]..
>I have in the past had to change MIME types - but thats
on a MS server,
>yours is apache... Does the same thing apply ?
>
> Checkout -
>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00001577.html
>
> Gerry
>
>
>
>
http://www.UsableHost.co.uk
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:epvi8g$f8j$[email protected]..
>>I see the Scripts folder, but this file is still not
there -
>>
>> <embed src="FLVPlayer_Progressive.swf"
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "LexFaure" <[email protected]>
wrote in message
>> news:epvi04$f0u$[email protected]..
>>> Thanks guys - this was a great help - ofcourse I
did not post the folder
>>> or the
>>> swf files. Sorry for such basic errors.
>>> But the pages still do not work. Now I get a
square for the movie - but
>>> nothing happens?
>>>
>>
>>
>
> -
Flash not showing up on page but works through direct link
So I just inserted a flash object into my dreamweaver page.
The flash works fine the direct link here works: http://www.abbottsports.com/tennis/flash/tennismenu.swf
But when you visit the page: http://abbottsports.com/tennis/adulttennis.php
it's just blank space.
Here is my flash code:
<object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="597" height="115">
<param name="movie" value="flash/tennismenu.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="/htdocs/Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/tennismenu.swf" width="597" height="115">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="/htdocs/Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>Lots of conflicting info here.
The page you linked to is using a different .swf:
<param name="movie" value="flash/topslideshowtennis.swf" />
which calls for swfversion (actually this means which Flash version to use)
<param name="swfversion" value="6.0.65.0" />
which is a really, really old version.. not sure if that even works.... change to version 10.
Since you have the .swf in a different folder than the HTML Web page, there could very well be pathing problems if the Flash uses any external files ... like images or .xml files. Are there any other Flash related files besides the .swf? What else is in the "flash" folder?
Your code posted above probably won't work either
<param name="swfversion" value="15.0.0.0" />
There is no Flash player version 15 (yet)... change that to version 10 also.
Then there is the matter of coding errors on the page... of which there are many!
Validate your code here:
http://validator.w3.org/
Best wishes,
Adninjastrator -
Inserting FLASH into Dreamweaver cs3
I am trying to build a VERY basic website in Dreamweaver. Using their single fixed column, centered,template, i would like to ad 2 flash items, a menu and small movie, in to he top of the column. (Both flash items are larger than the column with, if that matters,i was going to resizxe them nce i got this part of the cose correct)
For some reason the flash movie shows in my Dreamweaver preview, but not when i load it live online @ www.srg-buffalo.com.
The address i have used for the flash movie is: http://www.srg-buffalo.com/flash/header_v8.swf
The website is hosted at www.swq-buffalo.com, if you want to check out the source code.
I have no idea what I am doing wrong, i thought it was pretty simple, there is no flash block via my go daddy host.
How i inserted it via dreamweaver cs3:
Insert> Media> Flash.
URL= http://www.srg-buffalo.com/flash/header_v8.swf
What am i doing wrong?
Thanks for any help.Thank you,
That rung a bell.
I uploaded both saved .SWF documents to the Scripts directory.
There was also a Scripts dirrectory saved with index.html, in this directory was the AC_RunActiveContent.js file,any thoughts on that?
i uploaded it to scripts,along witht he others, and the space dedicatd to the flash events is there, but they are not showing.
http://www.srg-buffalo.com/
D. Jude Bulera
Buffalo, NY
[email protected]
Date: Wed, 17 Aug 2011 12:45:32 -0600
From: [email protected]
To: [email protected]
Subject: Inserting FLASH into Dreamweaver cs3
When you insert the SWF, you shouldn't have to actual type anything - it's a browse and select process and will automatically enter the correct path to the SWF. Then you have to upload the page and the SWF file. This next part I think has changed in later versions of DW, but in CS3 I'm pretty sure the process will also create a folder named Scripts. This folder along with it's contents also need to be uploaded.
> -
Inserting Flash video and playback question
Hello,
I am using Dreamweaver CS4 and I have inserted a Flash movie into a web page. It's working fine, except that I would like it to automatically go to a different web page when the video is done playing. Is there a setting for this within Dreamweaver itself or do I have to write an HTML script of some kind to make it do that?
Help and advice are appreciated. :)
Thanks, ryanI don't have any experience at all with Actionscript. Do I have to buy Flash? Or can I access/edit it as part of Dreamweaver?
-
Hi all,
I know this question has been asked before, but I've tried
all the solutions offered and none worked.
I am using the command "Insert -->Flash Video" to insert a
video on a web page (using DW8). Plays locally, but not after
upload. Scripts folder and both the skin and
FLVPlayer_Progressive.swf file are uploaded to the appropriate
places. I've tried on multiple computers and in multiple browsers
and can't figure why it won't work.
Here it is on a
test page. Should play in box and flv file is only a little
over 1MB.
Any suggestions would be very appreciated. I'm ready to pull
my hair out.
Thanks in advance.Guessing here but, is there supposed to be a blabla .flv file
on the server
or in your code?
"ptvsavant" <[email protected]> wrote in
message
news:f8df88$dn2$[email protected]..
> Hi all,
> I know this question has been asked before, but I've
tried all the
> solutions
> offered and none worked.
>
> I am using the command "Insert -->Flash Video" to
insert a video on a web
> page
> (using DW8). Plays locally, but not after upload.
Scripts folder and both
> the
> skin and FLVPlayer_Progressive.swf file are uploaded to
the appropriate
> places.
> I've tried on multiple computers and in multiple
browsers and can't figure
> why
> it won't work.
>
>
http://channel2.org/test/new07/vidtest.html
Should play in box and flv
> file is
> only a little over 1MB.
>
> Any suggestions would be very appreciated. I'm ready to
pull my hair out.
>
> Thanks in advance.
> -
FMT and SQL tablibs not recognised in JSF2 xhtml page
The following xhtml page produces the html source shown below. However I can't get it to process the fmt and sql taglibs correctly. I had this working prior to using xhtml pages. I had a look a the J6EE tutorial (Chapter 6 - Facelets) which mentions all the other tab libraries, but not those two. What are the available alternatives ?
other.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
xmlns:sql="http://java.sun.com/jsp/jstl/sql"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xml:lang="en" lang="en">
<fmt:setBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="translations" scope="session"/>
<f:loadBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="faces_translations"/>
<h:head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<c:if test="${pageContext.request.requestURI ne '${pageContext.request.contextPath}/autoLogout.jsf'}">
<meta http-equiv="refresh" content="1800;url=${pageContext.request.contextPath}/autoLogout.jsf"/>
</c:if>
<title><fmt:message key="PageTitle" bundle="${translations}"/></title>
<script src="${pageContext.request.contextPath}/scripts/common.js" type="text/javascript"></script>
</h:head>
<h:body>
<h1>Other</h1>
<h:form>
<h:outputText value="#{faces_translations.Yes}"/>
</h:form>
<h:outputText value="#{faces_translations.Yes}"/>
</h:body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:sql="http://java.sun.com/jsp/jstl/sql" xml:lang="en" lang="en">
<fmt:setBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="translations" scope="session"></fmt:setBundle>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="1800;url=/autoLogout.jsf" />
<title><fmt:message key="PageTitle"></fmt:message></title>
<script src="/scripts/common.js" type="text/javascript"></script></head><body>
<h1>Other</h1>
<form id="j_idt10" name="j_idt10" method="post" action="/other.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_idt10" value="j_idt10" />
Yes<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-9208139216578266380:-4314993053830858838" autocomplete="off" />
</form>Yes</body>
</html>okay here's the code for the whole procedure. Some variable names have been changed but it's otherwise the same code:
DECLARE
v_total_cost NUMBER(10,2);
v_deposit NUMBER(10,2);
v_remaining NUMBER(10,2);
v_payment_type varchar2(2);
v_checkbox varchar2(4000);
v_user varchar2(4000);
v_bok_paid varchar2(1);
v_msg varchar2(4000);
BEGIN
v_total_cost := :P100_COST;
v_deposit := :P100_DEPOSIT;
v_remaining := v_total_cost - v_deposit;
v_payment_type := :P100_PAYMENT_AMOUNT;
v_checkbox := :P100_CHECKBOX;
v_user := :APP_USER;
--wwv_flow.debug('before condition');
if v_checkbox != '' AND :P100_RADIO = 'CD' THEN
v_bok_paid := 'Y';
else
v_bok_paid := 'N';
end if;
--wwv_flow.debug('after condition');
IF v_payment_type = 'D' THEN
:P100_AMOUNT_TO_PAY := :P100_DEPOSIT;
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_deposit, v_payment_type, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_remaining, 'L','N', null, SYSDATE, v_checkbox, v_user);
ELSIF v_payment_type = 'F' THEN
:P100_AMOUNT_TO_PAY := :P100_COST;
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_total_cost, :P100_PAYMENT_AMOUNT, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
END IF;
:P100_TRANSACTION_FLAG := '1';
if v_bok_paid = 'Y' then
v_msg := '<div>Message clipped</div>';
--send confirmation email
GLO_CORRESPONDANCE.proc_corr_controller(
:P100_BOOKING_MEMBER_ID,
:P100_BKG_ID,
null,
v_msg,
'E',
'Payment confirmation',
null
end if;
END;Thanks :) -
How do I get a button in Flash point to a https page of PagSeguro.
How do I get a button in Flash point to a https page of PagSeguro. Programming they provide is this:
<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
<form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">
<!-- NÃO EDITE OS COMANDOS DAS LINHAS ABAIXO -->
<input type="hidden" name="itemCode" value="AC0DD53E5757C9F774629F9937513499" />
<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/120x53-comprar.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
</form>
<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
If I past this programation in start HTML, I see border white in my page.
I wrote a book and this schedule is to send to a secure site for sale
I development my site in Flash 4 and now CC6. Export in Html
www.escalasdecores.com.brExcuse me for my ignorance.
I put the schedule as show below and generates an error when I export
Scene 1, Layer 'Actions', Frame 350, Line 119, column 11 in 1061: Calling a possibly undefined method send through a reference with static type flash.net: URLLoader.
Which is in line urlLoader.send (urlRequest);
I used Snippets
This programation:
/* Evento de clique de mouse
Clicar na instância do símbolo especificada executa uma função na qual você pode acrescentar seu próprio código personalizado.
Instruções:
1. Acrescente seu código personalizado em uma nova linha depois da linha que diz "//Iniciar seu código personalizado" abaixo.
O código será executado quando se clica na instância do símbolo.
button_7.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
// Iniciar seu código personalizado
var urlLoader:URLLoader=new URLLoader();
var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");
var urlVariables:URLVariables=new URLVariables();
urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";
urlRequest.data=urlVariables;
urlRequest.method=URLRequestMethod.POST
urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLoader.send(urlRequest);
// Este exemplo exibe as palavras "Mouse clicado" no painel Saída.
trace("Mouse clicado")
// Encerrar seu código personalizado
Maybe you are looking for
-
Hi, I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while." I rebooted and it didn't fix the problem. I just g
-
How do you transfer songs,apps and photos from one IPod 4G to another IPod 4G?
I got a new IPod 4G for christmas and I want to transfer all my apps,photos, songs and everything from my old one to my new one. The old IPod is a 8GB and it's storage is full and my new IPod is a 32GB. Help me please!?!?!?!?
-
Display size in fullScreenMode
i hava a class which extends Canvas. because i need a fullScreenApplication i used this.setFullScreenMode(true); this works quit good, but when i use getHeight() and getWidth() in order to receive the height and width of the whole display, i unfortun
-
How to change branding image of Portal?
Hello All, This topic may sound very common to you al but i have tried soem basic steps but no success so i am posting this thread. I want to change branding image of portal log on page. I have navigated to this path. S:\usr\sap\EPD\JC00\j2ee\cluster
-
Change the document's language to French when iWork and Mac OS are both EN
How can I do that? It's driving me mad, Keynote is underlining every single word of French I type because it is looking them up in the English dictionary. In Pages, I can do this manually when needed (although it's a major pain and has to be redone f