| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
Hallo zusammen, ich habe folgendes Problem: Ich habe ein Flash-Produktkarussell in einem Shop (XT:Commerce) eingebaut, und es funktioniert auch ganz prima. Nur: Das Produktkarussell wird im Firefox 3.5 und Opera 10.10 nur unter der .com-Domain des Shops ausgeführt, nicht unter gleichlautender .de-Domain. Im Internet Explorer 7 läuft es aber unter beiden Adressen. Hier der Code, mit dem das Tool eingebunden wird: Code: <script type="text/javascript">
var so = new SWFObject("productrotator_v6.swf", "productrotator", "536","240","#98bbe3");
so.addVariable("mousecontrol", "0");
so.addVariable("wmode", "opaque");
so.addVariable("quality", "high");
so.addVariable("allowScriptAccess", "always");
so.write("flashcontent");
</script> Ich weiß leider auch nicht, ob der Präfix richtig ist, da ich ein ziemlicher Neuling bin. ![]() Danke & Grüße Jochen |
| | |
| | #3 (permalink) |
| mod_rewrite Registriert seit: Feb 2003 Ort: München
Beiträge: 15.621
|
Holt sich dieses Karussell Daten von einer externen Quelle? Wenn ja, dann mal nach 'crossdomain' suchen…
__________________ RTFM Wie man Fragen richtig stellt. Achim Bindannmalweg Money makes the world go round, fear makes it turn much faster. (New Model Army) |
| | |
| | #4 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
Nein, das ist ein in sich geschlossenes Tool. Die Produktbilder, das Javascript und die Flash-Datei werden auf den Server geladen, ebenso wie eine file.xml, in der die Bilderpfade und Linkziele angegeben werden, z. B. so: Code: <?xml version="1.0" encoding="utf-8"?> <container> <images> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> <node image="rotatorimages/bild.png" link="/product_info.php?info=p71_produktname.html" /> </images> </container> |
| | |
| | #5 (permalink) |
| mod_rewrite Registriert seit: Feb 2003 Ort: München
Beiträge: 15.621
|
OK, zeig mal bitte den Code-Abschnitt, wo das XML geladen wird.
__________________ RTFM Wie man Fragen richtig stellt. Achim Bindannmalweg Money makes the world go round, fear makes it turn much faster. (New Model Army) |
| | |
| | #6 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
Meinst du das hier? Fast ganz am Ende findest du die Zeile produkte.load("file.xml"); Code:
...
function loadImage(i)
{
container.createEmptyMovieClip("loader" + i, i);
container["loader" + i].i = i;
container["loader" + i]._visible = false;
var loader1 = container["loader" + i].createEmptyMovieClip("loader1", 20);
var loader2 = container["loader" + i].createEmptyMovieClip("loader2", 1);
loader1.onRelease = function ()
{
getURL(links[this._parent.i], "_self");
};
loader1.onRollOver = function ()
{
this.createEmptyMovieClip("quad", 19555);
with (this.quad)
{
beginFill(16777215, 10);
lineStyle(1, 0, 0);
moveTo(0, 0);
lineTo(110, 0);
lineTo(110, 110);
lineTo(0, 110);
lineTo(0, 0);
endFill();
} // End of with
};
loader1.onRollOut = function ()
{
this.quad.removeMovieClip();
};
loader1._x = -55;
loader2._x = -55;
loader1._y = -55;
loader2._y = -55;
var xpos = i * 120;
container["loader" + i]._x = i * 10 - 30;
container["loader" + i]._y = 100;
loader2._y = loader2._y + 220;
loader2._yscale = -100;
container["loader" + i].attachMovie("spiegelverlauf", "spiegelverlauf", 10);
container["loader" + i].spiegelverlauf._x = -55;
container["loader" + i].spiegelverlauf._y = 55;
loadBitmapSmoothed(images[i], loader1);
loadBitmapSmoothed(images[i], loader2);
} // End of the function
function showImages()
{
createEmptyMovieClip("vis", getNextHighestDepth());
vis.i = 0;
vis.onEnterFrame = function ()
{
if (this.i < 10)
{
container["loader" + this.i]._visible = true;
++this.i;
}
else
{
engine_3d();
delete this.onEnterFrame;
} // end else if
};
} // End of the function
controls._visible = false;
controls._alpha = 0;
produkte = new XML();
produkte.ignoreWhite = true;
produkte.onLoad = function (success)
{
if (success)
{
images = [];
links = [];
for (var _loc2 in this.firstChild.firstChild.childNodes)
{
images.push(this.firstChild.firstChild.childNodes[_loc2].attributes.image);
links.push(this.firstChild.firstChild.childNodes[_loc2].attributes.link);
} // end of for...in
init();
loadImages();
} // end if
};
produkte.load("file.xml");
function loadBitmapSmoothed(url, target, callback)
{
var _loc6 = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var _loc2 = new Object();
_loc2.tmc = target;
_loc2.onLoadInit = function (mc)
{
mc._visible = false;
var _loc3 = new flash.display.BitmapData(mc._width, mc._height, true, 0);
this.tmc.attachBitmap(_loc3, this.tmc.getNextHighestDepth(), "auto", true);
_loc3.draw(mc);
isLoaded.push(true);
if (isLoaded.length >= images.length * 2)
{
showImages();
} // end if
};
var _loc4 = new MovieClipLoader();
_loc4.addListener(_loc2);
_loc4.loadClip(url, _loc6);
} // End of the function
MovieClip.prototype.blend_in = function ()
{
this._alpha = 0;
this.onEnterFrame = function ()
{
if (this._alpha < 100)
{
this._alpha = this._alpha + 10;
}
else
{
delete this.onEnterFrame;
} // end else if
};
}; |
| | |
| | #7 (permalink) |
| mod_rewrite Registriert seit: Feb 2003 Ort: München
Beiträge: 15.621
|
Naja, die eine Domain merkt halt, dass du das Karussell geklaut hast…
__________________ RTFM Wie man Fragen richtig stellt. Achim Bindannmalweg Money makes the world go round, fear makes it turn much faster. (New Model Army) |
| | |
| | #8 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
Naja, das ist eigentlich ein Karussell, das man kostenlos einsetzen darf, wenn man einen Backlink zum Hersteller einbindet. ![]() Hast du eine Idee, warum es ausgerechnet im IE klappt aber in FF und Opera nicht? Kann ich das irgendwie lösen? |
| | |
| | #11 (permalink) |
| mod_rewrite Registriert seit: Feb 2003 Ort: München
Beiträge: 15.621
| Und warum hast du’s dann dekompiliert..? Kann man sich das ganze mal online ansehen..?
__________________ RTFM Wie man Fragen richtig stellt. Achim Bindannmalweg Money makes the world go round, fear makes it turn much faster. (New Model Army) |
| | |
| | #13 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
@sonar Ich habs nur dekompiliert, weil du mich nach dem Code gefragt hast, wo die file.xml aufgerufen wird ... ![]() Also, im Einsatz funktioniert es auf ISKAY - der Basketball-Spezialist (IE, FF, Opera) und es geht leider nicht auf ISKAY - der Basketball-Spezialist (FF, Opera). |
| | |
| | #14 (permalink) |
| mod_rewrite Registriert seit: Feb 2003 Ort: München
Beiträge: 15.621
|
Okay, sämtliche Daten auf der .de-Domain werden von der .com-Domain bezogen; somit ist es ein Crossdomain-Thema. Warum das allerdings in einigen Browsern funktioniert, weiß ich auch nicht… (im Safari auf Mac funktioniert's übrigens auch nicht)
__________________ RTFM Wie man Fragen richtig stellt. Achim Bindannmalweg Money makes the world go round, fear makes it turn much faster. (New Model Army) |
| | |
| | #15 (permalink) |
| Neuer User Registriert seit: Feb 2010
Beiträge: 8
|
Das bedeutet (habs mal eben gegoogelt, da das völlig Neuland für mich ist), ich muss eine crossdomain.xml ins Root laden mit einem Inhalt ungefähr so: Code: <cross-domain-policy> <allow-access-from domain="www.iskay.com"/> </cross-domain-policy> Oder eher Code: <cross-domain-policy> <allow-access-from domain="www.iskay.de"/> </cross-domain-policy> Geändert von chaploo (16-02-2010 um 21:23 Uhr) |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Wie erkennt Flash, welches MC auf der Bühn gezeigt wird? | Melissa | Flash Einsteiger | 2 | 06-11-2006 15:15 |
| Es wird die falsche Schrift gezeigt ...!!! | loena | Flash 8 | 2 | 19-03-2006 19:35 |
| mediaDisplay wird nur einmal gezeigt :-( | Mr.Twister | Komponenten und SmartClips | 2 | 11-11-2005 16:02 |
| zeilenumbruch wird nur in flash gezeigt.... | softcoded | Flash und Datenbanken | 2 | 05-06-2003 08:17 |
| Schrift wird nicht gezeigt | Stef@nie | Flash 4 und Flash 5 | 2 | 21-03-2003 10:37 |