blu3
02-07-2007, 07:40 PM
Here is a situation, this is my index.html file:
<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>
and i have following AS in my first frame of index.swf:
// 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
*/
The problem is that when i view my page from IE (without Flash 8 or higher installed) i get the text from "flashcontent" div in my index.html and i don't get that express install movie clip from which you can click on "start" button and then upgrade you flash player. Also, if i open the page with IE (with Flash player 8 installed) i get the same thing, text from "flashcontent" tag is displayed like i don't have flash player 8+ installed and that's it. Does anyone know where is the problem?
thanks
<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>
and i have following AS in my first frame of index.swf:
// 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
*/
The problem is that when i view my page from IE (without Flash 8 or higher installed) i get the text from "flashcontent" div in my index.html and i don't get that express install movie clip from which you can click on "start" button and then upgrade you flash player. Also, if i open the page with IE (with Flash player 8 installed) i get the same thing, text from "flashcontent" tag is displayed like i don't have flash player 8+ installed and that's it. Does anyone know where is the problem?
thanks