Zurück   Flashforum > Flash > Flash Einsteiger

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 30-09-2006, 19:42   #1 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
crossdomain...

hi ich brauch ne anleitung für crossdomain policy....

ja ich hab gesucht 10.000 gefunden und ungefähr 9.836 davon probiert und keiens hat gefunzt.

mit anderen worten ich bin schon mehrfach gescheitert und hab mir dann was gefrickelt...

hat einer bitte bitte einen link zu nem tut das wirklich funzt kann ruhig kompliziert sein...

.... bitte keinen link zu dem adobe MM anleitungen die kenne ich alle und sie funktionieren nicht !
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 19:56   #2 (permalink)
mod_rewrite
 
Benutzerbild von sonar
 
Registriert seit: Feb 2003
Ort: München
Beiträge: 15.621
Hä? Du stellst dich doch sonst nicht so an...

Ne Datei namens 'crossdomain.xml' in die Docroot des Servers, von dem Daten geladen werden sollen.
Inhalt:
Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy 
  SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="www.erlaubte-domain.de" />
  <allow-access-from domain="erlaubte-domain.de" />
</cross-domain-policy>
Und gut. Oder..?
__________________
RTFM
Wie man Fragen richtig stellt.

Achim Bindannmalweg

Money makes the world go round, fear makes it turn much faster.
(New Model Army)
sonar ist offline   Mit Zitat antworten
Alt 30-09-2006, 20:05   #3 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
nein ich hab normal keine probs ...

aber apache = php

seite läuft aber über jetty container.. so gesehen der selber rechner, aber mehrere (insgesammt 5 ) verschiedene server

so meine crossdomain sieht nun so aus..

PHP-Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy 
  SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="localhost:5080" />
</cross-domain-policy>
und liegt in der htdocs meines apache ergebniss des films NaN also undefined ... sobald ichs ausserhalb von flash abspiele
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 20:08   #4 (permalink)
mod_rewrite
 
Benutzerbild von sonar
 
Registriert seit: Feb 2003
Ort: München
Beiträge: 15.621
Achso, na bei so komplizierten Sachen mit Ports und so kann ich nicht mitreden... ich dachte, du wolltest einfach in diesem Internet da Daten von nem anderen Server laden...
__________________
RTFM
Wie man Fragen richtig stellt.

Achim Bindannmalweg

Money makes the world go round, fear makes it turn much faster.
(New Model Army)
sonar ist offline   Mit Zitat antworten
Alt 30-09-2006, 20:35   #5 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
Zitat:
Zitat von sonar Beitrag anzeigen
ich dachte, du wolltest einfach in diesem Internet da Daten von nem anderen Server laden...
rein technich gesehen will ich das auch aber dann sollt ich wahrscheinlich die korrekte ip und nicht localhost eintragen... keine lauwarmen sachen
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 20:44   #6 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
... tat er und es tat sich nix ...

hach ja was liebe ich anwendungs design da hat man wenigstens nicht immer sonen sandbox driss.

... ich bin für jeden rat dankbar, vielleiht wars ja auch nur ein denkfehler meinerseits
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 20:53   #7 (permalink)
Neuer User
 
Registriert seit: Jan 2004
Beiträge: 19
Shon mal den Domainnamen probiert?
Laut der Vorlage wird folgendes erwartet:
PHP-Code:
<!ATTLIST allow-access-from domain CDATA #REQUIRED> 
D.h. für mich dass dort nur der Domainname stehen sollte, deshalb versuche es mit virtuellem Server als Name oder die IP, keine Portangaben.

Nachtrag:
Hilfreich diese Quelle unter Ma../Adobe: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001621.ht ml

Geändert von ImeI (30-09-2006 um 20:59 Uhr)
ImeI ist offline   Mit Zitat antworten
Alt 30-09-2006, 21:16   #8 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
Zitat:
Zitat von ImeI Beitrag anzeigen
Shon mal den Domainnamen probiert?
Laut der Vorlage wird folgendes erwartet:
PHP-Code:
<!ATTLIST allow-access-from domain CDATA #REQUIRED> 
.

Nachtrag:
Hilfreich diese Quelle unter Ma../Adobe: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001621.ht ml
wo wird das erwartet?.. ich mein in welchem document sieht nach html head aus...

danke für den link komischsonst hat gerad der nich gefunzt ...

aber hatte woh vergessen die crossdomain in die flash security zu laden nu gehts
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 21:26   #9 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
Ich dacht Problem gelöst aber ich kanns sehen nur andere leider nicht,
wäre mal jemand so nett und könnte mal eben schauen ob er oder sie rechts in der newsbox was drinn stehen hat an text...


http://80.140.77.195:5080/r5c.html

...danke
ballaballa ist offline   Mit Zitat antworten
Alt 30-09-2006, 22:24   #10 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
ok

hab nun die bestätigung von mehreren bekannten, das es nich angezeigt wird, nehme mal an das ich das vergnügen habe es lesen zu können weil ich das flash noch im cache hab.

nun die frage was isses noch...
ballaballa ist offline   Mit Zitat antworten
Alt 01-10-2006, 02:50   #11 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
keiner?
oder versteh ich bei rootverzechiss (für mich ist das htdoc unter apache) was falsch?

Geändert von ballaballa (01-10-2006 um 09:15 Uhr)
ballaballa ist offline   Mit Zitat antworten
Alt 01-10-2006, 10:02   #12 (permalink)
Neuer User
 
Registriert seit: Jan 2004
Beiträge: 19
Hi,

hier der Inhalt des Adobe LiveDocs.
Zitat:
Allowing cross-domain data loading
When a Flash document attempts to access data from another domain, Flash Player automatically attempts to load a policy file from that domain. If the domain of the Flash document that is attempting to access the data is included in the policy file, the data is automatically accessible.

Policy files must be named crossdomain.xml, and can reside either at the root directory or in another directory on the server that is serving the data with some additional ActionScript (see About custom policy file locations). Policy files function only on servers that communicate over HTTP, HTTPS, or FTP. The policy file is specific to the port and protocol of the server where it resides.

For example, a policy file located at https://www.macromedia.com:8080/crossdomain.xml applies only to data loading calls made to www.macromedia.com over HTTPS at port 8080.

An exception to this rule is the use of an XMLSocket object to connect to a socket server in another domain. In that case, an HTTP server running on port 80 in the same domain as the socket server must provide the policy file for the method call.

An XML policy file contains a single <cross-domain-policy> tag, which, in turn, contains zero or more <allow-access-from> tags. Each <allow-access-from> tag contains an attribute, domain, which specifies either an exact IP address, an exact domain, or a wildcard domain (any domain). Wildcard domains are indicated by either a single asterisk (*), which matches all domains and all IP addresses, or an asterisk followed by a suffix, which matches only those domains that end with the specified suffix. Suffixes must begin with a dot. However, wildcard domains with suffixes can match domains that consist of only the suffix without the leading dot. For example, foo.com is considered to be part of *.foo.com. Wildcards are not allowed in IP domain specifications.

If you specify an IP address, access is granted only to SWF files loaded from that IP address using IP syntax (for example, http://65.57.83.12/flashmovie.swf), not those loaded using domain-name syntax. Flash Player does not perform DNS resolution.

The following example shows a policy file that permits access to Flash documents that originate from foo.com, www.friendOfFoo.com, *.foo.com, and 105.216.0.40, from a Flash document on foo.com:

<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="www.friendOfFoo.com" />
<allow-access-from domain="*.foo.com" />
<allow-access-from domain="105.216.0.40" />
</cross-domain-policy>
You can also permit access to documents originating from any domain, as shown in the following example:

<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Each <allow-access-from> tag also has the optional secure attribute. The secure attribute defaults to true. You can set the attribute to false if your policy file is on an HTTPS server, and you want to allow SWF files on an HTTP server to load data from the HTTPS server.

Setting the secure attribute to false could compromise the security offered by HTTPS.

If the SWF file you are downloading comes from an HTTPS server, but the SWF file loading it is on an HTTP server, you need to add the secure="false" attribute to the <allow-access-from> tag, as shown in the following code:

<allow-access-from domain="www.foo.com" secure="false" />
A policy file that contains no <allow-access-from> tags has the same effect as not having a policy on a server.
Zu der Frage wo man es sieht. Shaue doch mal die DTD XML Vorlage an. Mehr kann's nicht sein.

Gruß
ImeI ist offline   Mit Zitat antworten
Alt 01-10-2006, 11:23   #13 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
also meine crossdomain.xml sieht inwzischen so aus

PHP-Code:
<?xml version="1.0"?> 
<!-- http://localhost/crossdomain.xml -->
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> 
<cross-domain-policy>  
<allow-access-from domain="*" /> 
</cross-domain-policy>
und befindet sich nun in den verzeichnissen
xampp
xampp/htdocs
xampp/xampp/htdocs
xampp/xampp/htdocs/xampp
xampp/apache
xampp/cgi-bin
xampp/php
xampp/xampp/php
xampp/php/php4
....
ich wüsst nich wo ich die sonst noch hinkopieren könnte

dazu hab ich nun in dem newsreader modul sowie auch im hauptfilm der den newsreader auf level 10 läd folgende zeile in allen schlüsselbilden drin

PHP-Code:
System.security.loadPolicyFile("http://localhost/crossdomain.xml"); 

kann mal bitte einer schauen ob er rechts in der newsbox text oder NaN ... stehen hat(dauert 5 sekunden zum laden) , ... weil ich bekomm das immer angezeigt... und ist gerad sonst leider keiner zum testen.... danke

http://80.140.123.185:5080/r5c.html
ballaballa ist offline   Mit Zitat antworten
Alt 01-10-2006, 14:12   #14 (permalink)
Banned
 
Benutzerbild von ballaballa
 
Registriert seit: Sep 2006
Beiträge: 793
hat wirklich keiner 2 minuten zeit um mal den link anzuklicken und kurz zu sagen iss zu sehen oder iss nich zu sehen...?
ballaballa ist offline   Mit Zitat antworten
Alt 01-10-2006, 14:44   #15 (permalink)
ThatIsTheWay
 
Benutzerbild von Dahn
 
Registriert seit: Mar 2006
Ort: Stuttgart
Beiträge: 140
Hallo

bei mir kommt im rechten kasten auch nur
NaN kb total

soviel dazu.
__________________
Gruss
Daniel
Dahn ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 21:51 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele