Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-07-2007, 06:40 PM   #1
blu3
Senior Member
 
blu3's Avatar
 
Join Date: Jun 2006
Location: Croatia
Posts: 210
Default swfObject with express install problems

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>
and i have following AS in my first frame of index.swf:

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

*/
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
blu3 is offline   Reply With Quote
Old 02-08-2007, 08:29 AM   #2
blu3
Senior Member
 
blu3's Avatar
 
Join Date: Jun 2006
Location: Croatia
Posts: 210
Default

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>
blu3 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Express Install Problem slunceford ActionScript 2.0 1 09-19-2006 01:42 PM
Express Install Callback glick84 ActionScript 2.0 0 08-24-2006 07:18 PM
flash detection with express install macsearcher ActionScript 2.0 0 01-26-2006 08:28 PM
express install; files in use? madanvil ActionScript 2.0 2 12-23-2005 10:02 PM
Express install issue epsnowden ActionScript 2.0 0 11-08-2005 09:41 PM


All times are GMT. The time now is 01:41 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.