Swf To Get Info From An XML File That Is Placed In A Different Domain?
Sep 23, 2009Is it possible for a swf to get info from an XML file that is placed in a different domain? And if it is, how can I do it?
View 3 RepliesIs it possible for a swf to get info from an XML file that is placed in a different domain? And if it is, how can I do it?
View 3 RepliesCreated an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.
View 2 Repliespost the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..
View 3 RepliesWe are running FMS3 on Windows 2003 Server. Videos stream and play fine when inside our domain, but outside the domain the videos take anywhere from 20 or more seconds before playing.
After analizing the connections it was determined that the player is randomly trying to access ports until it gets to the one that works, but this is ONLY happening from people trying to view videos from outside our domain.
I have moved a web application from old domain to new domain. I cannot get Flash to engage. I have changed the domain in flash_images.php file to the new domain. I have a flash_box.swf file and I have a js file these are the only flash components that I see--old domain is e.g. www.example.com new domain is [URL]..I am not a flash developer, how do I get flash to work on the new domain?
View 3 RepliesI created some game and would like to let the users play it only on my domain, so to forbid to play it offline or put on some other site. Is there a way to do it? Somehow check domain or so?
View 1 RepliesI have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
View 19 RepliesI want my flash site to convert currency.Therefore I want it to get the currency rates from internet.At first, I wanted to do it by using web services but the one free I found : [URL] doesn't work properly So I decided to use another way by getting my rates from the
following RSS file :
[URL]
All is ok, I got the rates I am interested in by parsing the RSS .But all is ok when I am testing locally, when I put my file on my hosting server, the rates cannot be retrieved anymore, it looks as if there is a connection problem.
it's just not working for me I made a crossdomain.xml file that looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!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>
i put that in the folder with the php file i want to access[URL]..
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
View 2 Replieswhat i need to do is getting the Browser URL. problem is i only have access of FLA file. the SWF file is displayed in an iframe and that iframe will be displayed in some remote server. e.g.
www[dot]parent[dot]com this is the container page of which im trying to get the URL.
www[dot]child[dot]com this is the page that will be displayed inside the parent page iframe and my SWF file will be in in that page.
is there any way i may get php referrer ($_SERVER['HTTP_REFERRER']) info into the FLV file?
how to determine swf publish date/time stamp from within the swf?
I have a template fla used to build apps (in AS3) and would like to know some info about when it was published.
I initially thought it would be in the loaderInfo but it doesn't have the date/time stamp of when it was published (or at least not that I could find)
Loading the text file works just fine until I put the .swf on another domain. How can I still load the .txt file without just putting it on the same domain? Is there some kind of security or permission that I can place into the html or flash?
View 1 RepliesIf I have my .swf files on "SERVER A" and they need to access my video files on "FMS SERVER B", on which server to I need to put a cross-domain policy file?
View 2 RepliesI have a project I am working on, but first I needed to test this. I have a SWF named "index.swf" (with a index.html), that is running on a rented server of mine. [URL].
-The SWF contains 2 layers.
-The first layer contains 2 dynamic textfields names "text1" and "text2".
-The second layer has some actionscript:
ActionScript Code:
stop();
var loadFile:LoadVars = new LoadVars();
loadFile.load [URL];
loadFile.onLoad = function(succes:Boolean){
text1.text = this.variable_me;
text2.text = succes;
}
The "test.php" is located on the second domain. This is the code written in it is:
PHP Code:
<?php echo "variable_me=works&";?>
So the SWF-file on the 1e domain has to load the php file from the second domain. But it doesn't work.
text1 displays: "undefined"
text2 displays: "false"
But if I call the php file in a regular browser (like this "[URL]") it displays:
variable_me=works&
My flash code isn't wrong, i have tested this local. My PHP file is OK.
I have some problems with security file e load xml.
I have u file xml on
[URL]
but the file swf is on
[URL]
in local inside IDE of flash is ok but online don't work
this is as:
System.security.allowDomain("http://www.centrocartucce.it");
//System.security.loadPolicyFile("http://www.centrocartucce.it/slideshow.xml")
var myXML:XML= new XML();
[Code].....
Loading xml file from another domain or host?
View 1 RepliesI'm accessing a server's sockets from the flash client using Flash CS3 professional.However, should I run it in debug mode OR run the .swf file, it doesn't connect.Fine, it's the crossdomain.xml file.I create and host this file using apache webserver, and it is accessible using firefox/ie.loadPolicyFile seems to work, BUT IT DISCONNECTS IMMEDIATELY.What am I doing wrong??
<cross-domain-policy>
<allow-access-from domain="*" to-ports="3300"/>
<allow-access-from domain="*" to-ports="3333"/>
[code].....
I want to integrate following php-file into my Flash-movie, but something still does not work.
Following error message appears:
"This XML file does not appear to have any style information associated with it. The document tree is shown below."
I need to create an application where user can add multiple text boxes in the canvas and export it to image, user will also have the access to save it for future use they can edit it for which i need to store the canvas information to XML file.how can i send the textbox info to XML file so that I can save it?My main problem is to send the canvas info from flash, I have a feature of adding text box dynamically so when someone save the application i need to send the info of all the textbox from flash is there any way to find out the total no of textbox in the canvas and get the info of it to send it out of flash.
View 1 RepliesI'm making a yearbook for my school and I have A LOT of information to be shown on it (in case you were wondering, its a digital year book lol). Theres a certain page that has all the headshots of all the students, and when the picture is clicked, a new scene opens with the information on the student (along with fancy opening animations). Firstly, is that the easiest way to do it, or can i have an overlapping MC that appears over the pictures, fading out or blurring the background, then click an X to shrink and fade out and unblur the background...Secondly, is there a way to create a template thingo for this MC or scene so that it can automatically read data from an xml or text file and place it in the appropriate position for that name. For example-the text would look like this
"bob_bio"
pic:"C:~~obphoto.jpeg"
Info-
[code].....
Below, I will copy the code I am using and I have placed to .fla file and images online, but I cannot place the link here (don't have enough posts yet), so ask me if you want.he script runs perfectly and loads its parameters from the "hardcodedXML" variable. This way, however, whenever the images and their information need to be changed, someone with knowledge of flash and AS will need to open the sourcecode and alter the "hardcodedXML".I am currently assigned to make a renewed website for my employers and would like to enable them (no knowledge of flash or AS whatsoever) to edit the contents of the scroll box. The easiest way for "dummies" is to have a .txt file in the same directory, that contains the stuff that is put in the "hardcodedXML" right now.My actual question/problem: how can I create a txt file that is read by the script, to store the string in "hardcodedXML" (the current string that is hard coded looks like "<photos>...</photos>".I've tried searching Google, but didn't come up with anything.
ActionScript Code:
import fl.data.DataProvider;
import fl.events.ListEvent;
[code].....
I created an mp3 player but i have problems in getting info from XML file (song duration)
[Code]....
I'm new to the action script and problems about creating functions after preload() function i call for firstsong(). I have firstsong(), prevsong() and nexsong() functions and timebar() function that is called in each firstsong(), prevsong() and nexsong() functions. In problems about streaming audio this can't work for me and i come up with an idea that to add each songs time as seconds on XML.
am trying to use this code to load a text file from a remote server to my textfield in flash. Here is my code:
Code:
var myTextField_txt:TextField = new TextField();
var myURLLoader:URLLoader = new URLLoader();
[code].....
How do I write a cross domain policy file which will allow an xml file from [URL] and from [URL]? The only cross domain policy files I've ever used use * as allowable domains I don't want to do this.
View 1 RepliesI am currently trying to modify a hangman game I found on here (URL...). I'm not very good at actionscript and hopefully this will be a good exercise to learn more - I really want to learn how to make games. I have seen hangman games that include clues for words, but the only games I can find that I can read the source in don't have a clue field, and pull the words from an external .txt file. Is there a way of also pulling phrases to be as clues from these files? I could just create another .txt file and make it a new variable, but of course I would have the problem of it not matching the word. I hope i made sense.
View 6 RepliesI'm using a xml file to upload info to a flash app. For the xml I used utf-8 encoding but I'm having a problem the "&" symbol isn't displaying rigth.
View 4 RepliesI want to upload file and get some information from server at the same time. I have the code:
file.addEventListener(Event.COMPLETE, function():void {
trace("complete 1"); });
file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, function():void {
trace("complete 2"); });
When the returning data is not empty, I see:
complete 1
complete 2
But when the returning data is empty, I see:
complete 1
How can I understand that file uploading is compete absolutely even if received data is empty?
my page contains a Loader to load the different parts of the site as swf but i also have a little intro, witch ist a .flv file. i knwo i can�t load a .flv file in the loader class so i can put it into a swf an load it this way. the thing ist, after the intro is completed my page should get the info to change
1. a var which will change the proberties of the loader
2. the color of the Header/Footer
3. initialize a little x tweening with the body
is there a way to get the onLoadComplete info out of the swf witch contains the flv file or do i have to change the loader to a flvplayback component and afterwards back to a loader
and if i have to do so - how do i implement the flvplayback component into my .as file -i tried it and i always get the message, that he cant find the class.