| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
Join Date: Jun 2006
Location: Croatia
Posts: 198
|
Here is a situation, this is my index.html file:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="swfobject.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Seminarski rad - "BrainWave tehnologija"</title>
</head>
<style>
body{padding:0px;margin:0px};
</style>
<body bgcolor="#cccccc">
<!--
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="bgcolor" value="#ffffff" /><embed src="index.swf" quality="high" scale="noscale" salign="lt" bgcolor="#ffffff" width="100%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
-->
<div id="flashcontent">
Kako bi ispravno vidjeli ovu web stranicu morate nadograditi svoj Flash Player, a to možete napraviti <A HREF="http://www.macromedia.com/go/getflash/">OVDJE</A> tako što kliknete na "Install now" dugme.
</div>
<script type="text/javascript">
var so = new SWFObject("index.swf","index","100%","100%","8","#ffffff",true);
so.write("flashcontent");
</script>
</body>
</html>
Code:
// used for express install - not required for plain SWFObject use
// for more info, see http://blog.deconcept.com/swfobject/
#include "expressinstall.as"
// initialize the ExpressInstall object
var ExpressInstall = new ExpressInstall();
// if the user needs to upgrade, show the 'start upgrade' button
if (ExpressInstall.needsUpdate) {
// this is optional, you could also automatically start the
// upgrade by calling ExpressInstall.init() here instead of the following lines
// attach the custom upgrade message ** NOTE: see notes in Upgrade Message movieclip re: types of content to use
var upgradeMsg = _root.attachMovie("upgradeMsg_src", "upgradeMsg", 1);
upgradeMsg._x = Stage.width / 2;
upgradeMsg._y = Stage.height / 2;
// attach the button actions that will start the ExpresInstall updater
upgradeMsg.upgradeBtn.onRelease = function() {
ExpressInstall.init();
}
// if expressinstall is invoked, stop the timeline.
stop();
}
// -----
// alternate usage:
// -----
/*
// test to see if install is needed:
if (ExpressInstall.needsUpdate) { // returns true if update is needed
ExpressInstall.init(); // starts the update
stop();
}
// otherwise, start the movie normally
*/
thanks |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jun 2006
Location: Croatia
Posts: 198
|
There were some problems with my .html code, here is the version that works in case someone is interested:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Seminarski rad - BrainWave tehnologija</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="author" content="Mirko Sabljic" />
<meta name="publisher" content="Mirko Sabljic" />
<meta name="description" content="Seminarski rad - BrainWave tehnologija" />
<meta name="keywords" content="BrainWave, moždani valovi, stimulacija moždanih valova, zvucna tehnologija moždanih valova, mindmachine, neurofeedback, creativitz machine, BrainWave painting, svjetlosni i zvucni uredaj, mentalni fitness trening, povecanje kreativnosti" />
<script type="text/javascript" src="swfobject.js"></script>
</head>
<style>
<!--
html {
height: 100%;
overflow: hidden;
}
body {
height:100%;
padding:0px;
margin:0px;
font-size:12px;
}
#flashcontent {
height:100%;
}
-->
</style>
<body>
<div id="flashcontent">
<p>Kako bi ispravno vidjeli ovu web stranicu morate nadograditi svoj Flash Player, a to možete napraviti <A HREF="http://www.macromedia.com/go/getflash/">OVDJE</A> tako što kliknete na "Install now" dugme.</p>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("index.swf", "Index", "100%", "100%", "8", "#ffffff","true");
so.addParam("scale", "noscale");
so.addParam("salign", "tl");
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
|
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flash Express Install Problem | slunceford | ActionScript 2.0 | 1 | 09-19-2006 02:42 PM |
| Express Install Callback | glick84 | ActionScript 2.0 | 0 | 08-24-2006 08:18 PM |
| flash detection with express install | macsearcher | ActionScript 2.0 | 0 | 01-26-2006 09:28 PM |
| express install; files in use? | madanvil | ActionScript 2.0 | 2 | 12-23-2005 11:02 PM |
| Express install issue | epsnowden | ActionScript 2.0 | 0 | 11-08-2005 10:41 PM |