PDA

Volledige versie bekijken : Detectionkit probleem!


H2web.nl
%Europe/Berlin %443 %2005, 11:38
Ik ben bezig met het invoegen van de detectionkit van Macromedia,
maar!! ik moest de bladiebladiebla.as aanpassen om de redirect in te vullen als er op de pc de juiste versie van Flashplayer was gevonden.
afijn,...heb ik ingesteld dat hij naar de dir: site/index.htm moet gaan om daar dan de site te laden, maar hij BLIJFT naar de dir: flash_content/flash_content.html gaan terwijl ik dat ECHT gewijzigd heb! dit is wat er in de .as staat:

//Macromedia Flash Player Version & Revision Detection
//This is designed to support Macintosh, Windows, Linux, PocketPC versions of the Macromedia Flash player.
//All of this code should be on the first frame of the movie before any other code or assets.
////////////USER SETTINGS////////////
//These variables can be set on the object & embed tags In the HTML that hosts this Flash movie.
//They can be set here if preferred.
//-------------------
//the url that the visitor should be sent to if they do not have the required version of Flash.
altContentURL = "upgrade_flash/upgrade_flash.html";
//-------------------
//the url that the visitor should be sent to if they have the required version of Flash.
flashContentURL = "site/index.htm";
//-------------------
//The required player version necessary to view the content.
contentVersion = 8;
//-------------------
//The 'dot' release of the player necessary to view the content.
contentMajorRevision = 0;
//-------------------
//The revision number of the player necessary to view the content.
contentMinorRevision = 19;
//--------------------
//A flag to autoInstall the player on IE Windows. Basically skips the test here and goes right to the Flash content.
//:TRICKY: This should not be set to true here in ActionScript. If you want to skip the test for IE windows users, set this on the object tag
//Such as "flash_detection.swf?allowFlashAutoInstall=true"
//It must be set in the object tag NOT the embed tag, otherwise you would skip the detection when in Netscape Win.
allowFlashAutoInstall = false;
//--------------------
//A flag to tell the detection code to look up the latest version of the player (see below)
requireLatestVersion = false;
//The following supports "require latest version" and also supports with the rare case when the player versions sometimes get out of synch
//these should be set here in the Flash file and must be updated by the author(you) when Macromedia publishes a new player that you require.
//The following versions should be current as of 01.07.2004
//set up the mac version
MACLatestVersion = 8;
MACLatestMajorRevision = 0;
MACLatestMinorRevision = 0;
//set up the Windows version
WINLatestVersion = 8;
WINLatestMajorRevision = 0;
WINLatestMinorRevision = 0;
//PocketPC version
WINCELatestVersion = 6;
WINCELatestMajorRevision = 0;
WINCELatestMinorRevision = 80;
//Linux version
UNIXLatestVersion = 6;
UNIXLatestMajorRevision = 0;
UNIXLatestMinorRevision = 79;

//--------------------
//:TRICKY: This deprecated code style below is necessary to support Flash 4.
//This utility splits up the version string into usable parts.
//first check to see that the $version is there at all.
if (eval("$version") eq "") {
getURL(altContentURL, "_self");
}
i = 1;
playerOS_str = "";
while (substring(eval("$version"), i, 1) ne " ") {
playerOS_str = playerOS_str add substring(eval("$version"), i, 1);
i++;
}
playerVersion = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
playerVersion = playerVersion add Number(substring(eval("$version"), i, 1));
i++;
}
playerMajorRevision = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
playerMajorRevision = playerMajorRevision add Number(substring(eval("$version"), i, 1));
i++;
}
playerMinorRevision = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
playerMinorRevision = playerMinorRevision add Number(substring(eval("$version"), i, 1));
i++;
}
//if the user wants to check against the latest version (defined in this flash movie) change all the content version info to these latest version values.
if (requireLatestVersion eq "true") {
contentVersion = Number(eval(playerOS_str add "LatestVersion"));
contentMajorRevision = Number(eval(playerOS_str add "LatestMajorRevision"));
contentMinorRevision = Number(eval(playerOS_str add "LatestMinorRevision"));
}
//go ahead with checking the player against the content rather than latest version
if (allowFlashAutoInstall eq "true" && playerOS_str eq "WIN") {
//if we want to autoInstall on Windows go right to the content.
getURL(flashContentURL, "_self");
} else if (playerVersion<contentVersion) {
getURL(altContentURL, "_self");
} else if (playerVersion>contentVersion) {
getURL(flashContentURL, "_self");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision<contentMajorRevision)) {
getURL(altContentURL, "_self");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision) && (playerMinorRevision< contentMinorRevision)) {
getURL(altContentURL, "_self");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision) && (playerMinorRevision >= contentMinorRevision)) {
getURL(flashContentURL, "_self");
}
// This is the failsafe for when all the above is not understood by player version 3 or below.
// This must be the last operation in the detection scheme so do not move it up in the sequence
flash3test = 1;
if (flash3test<>1) {
//This getURL will be called only in Flash versions < 4.0. Please edit the URL as you wish.
//Because of backward compatibility requirement, this address cannot be set with a variable.
getURL("upgrade_flash/upgrade_flash.html", "_self");

zou iemand mij kunnen helpen?
Bedankt!!

pulletje
%Europe/Berlin %449 %2005, 11:47
Weet je zeker dat alles in de eerste frame van je swf staat?, heb je swf met bijbehorend html goed gepublisht?, heb je je ftp geupdate met de nieuwe html EN swf?

even goed controleren!!

H2web.nl
%Europe/Berlin %453 %2005, 11:52
ik heb echt ALLES nagekeken, die SWF file roept alleen die .AS aan,...meer staat er ook neit in die movie, geen verwijzingen niets,
die html,...roept alleen die SWF file aan en ook niet meer als dat, dus het moet in de as staan,

ik heb de server al een keer helemaal leeggegooid en elk filetje er apart opgezet,

weer geen resultaat, heel vreemd, enig idee? :( :( :(

pulletje
%Europe/Berlin %474 %2005, 12:23
ik heb echt ALLES nagekeken, die SWF file roept alleen die .AS aanDAT is dan het probleem. de swf file moet GEEN .as aanroepen!!! het as moet namelijk op het eerste frame van je swf staan!!!!
//All of this code should be on the first frame of the movie before any other code or assets.
DUS: de SWF die als eerste opent moet je voorzien van het as dat je al gepost hebt op de EERSTE FRAME VAN DE MOVIE... het staat er letterlijk in hoor.. ;)