ActionScript 3.0 :: File To Load Data From Multiple Sources/domains?
Nov 5, 2009
I am trying to get my flash file to load data from multiple sources/domains. It works perfectly in the development environment, but as soon as you launch the swf locally or online, it doesn't load the xml data from external domains.
I am trying to create a login system where a user would be able to login inside of one flash game on say, [URL], and then that same login data would be preserved for all the games on [URL] and also the games on [URL] and [URL] I am new to shared objects in flash so if anybody knows of a way to do this in either php, as3, html, js (or a mixture of all) then that would be great.
(PS. I would prefer not to use a method that requires a javascript bridge to retrieve cookies as this is impossible for games that are played on game-portal sites where only a swf file is used)
I've written an app that parses Atom and RSS feeds from a few popular sites, and reacts to this data. Everything works fine when I run the .swf locally, but fails when uploaded. Is there a security setting I should be aware of?
I've been trying to work on a web portal for updating a website I am creating. I originally duplicated a write-to-.txt php script and duplicated it for each of my pages, but for some reason it isn't working out very well as I assume they are fighting with each other. I am looking into creating what I assume is called an array, so that I can store 5 separate data pieces in one text file but I can't seem to find a tutorial that is close to this. the closest I can find is a guestbook tutorial but it is very out of date. I would like to be able to store multi-line text (so that paragraphs and breaks are preserved) from 5 different input boxes and then retrieve that data upon loading of the input boxes and in a different page which would be the actual content of the website.
I need a method to be triggered by a MouseOut event but I also need it to receive a property created by another method which is updated by a MouseOver event. I have tried damn near everything I can think of.
The following code show's how I would like to reference the underMouse property created by the menuOver method.
The thing I'm not understanding is how to have the menuOut method retrieve the most current underMouse property before it executes since both methods are triggered at the same time.
ActionScript Code: menu.addEventListener(MouseEvent.MOUSE_OVER, menuOver); menu.addEventListener(MouseEvent.MOUSE_OUT, menuOut); public function menuOver(event:MouseEvent):void
[Code].....
I've tried adding a String parameter in the menuOut method such as:
public function menuOut(out:MouseEvent, over:String):void
....but of course i get the expected 2 arguments error everytime a MouseOut event is registered.
I just recently created a news ticker using the tutorial on Kirupa; however, I have not been successful at getting my xml data to show up on the news ticker. I have my xml file stored on and my website will be stored on Savannah State University's server. I do not want to have my xml file on the same domain as my website because it will be on my school's server and they don't allow access to their server. I want to be able to update the news ticker freely.
I have a rather big (34 MB) Flash CS4 AS3 swf being loaded as a whole into a preloader like l.load(new URLRequest("sample.swf")); What are my options to minimize loading time? Can I split the swf and load from several servers? I'm dynamically loading images from the library:
var myBitmapDataObject:myBitmapData = new myBitmapData(100, 100); var myImage:Bitmap = new Bitmap(myBitmapDataObject); addChild(myImage);
Right now I'm declaring/referencing every single image in order to get it included in the compiled clip. Any better way? Haven't got round to using Flex yet.
Let's say you wanted a flash movie to load the same SharedObjects no matter where it is accessed. Is this possible and how would you set up the parent movie to transport the SharedObjects?
I am testing a locally run SWF (in debug standalone player) that tries to load data from a remote URL using URLLoader class. I have enabled useNetwork flag in the SWF. As I said, the SWF is running in standalone player, it is not embedded in any page in any browser.As I understand, it still cannot load any external non-visual resource, if the site it tries to load from does not have a crossdomain.xml file, or if that file does not include the domain hosting my SWF. Correct?
I am loading multiple images into a class instance and I would like to keep track of how large the complete amount of loaded data is at any given point.I have grabbed the totalbytes from my directory of images via a PHP script... but collecting the new bytes from the ProgressEvent on each image seems tricky for some reason.Let's assume that the totalBytes variable is correct and that I am totally unfamiliar with the way that ProgressEvent works.Does an event get fired every time ProgressEvent gets a new byte? If not, how do I keep track of the current total bytes?[code]
I'm struggling setting up 4 live audio sources with fms 3.5. I have 4 streams input from our studios into 1 encoder server. From here I need to pass it to the internet via 4 FMS 3.5 servers. I do not want to have 4 * 4 encoding sessions on the encoder in order to service the 4 FMS servers. Is there any way to pull the streams from the encoders? I have also tried configuring explicit connections using 1 server as an origin server and 3 as edge servers but being a live stream the load and connections seem to get passed to the origin server which will eventually not handle the load. I've looked through the application.xml server settings but cannot seem to see any noticeable settings?
Can Flash Media Encoder handle several video sources and live srteam them all at the same time? We want to stream a few over the air broadcast sources using Flash Media Server v3.0. Is it possible to install several TV tuner cards into a PC and have Media Encoder live steam each of them at the same time? If not, can several copies of the software run on the same machine (each with it's own video source live streaming)?
So I have this button that when I click on it I want it to load two different text files into two different text boxes. This code works just fine for loading 1 file into one box,but not when I try to do the other thing. Whats wrong with it?
I have some .mov files want to stream to Flash media server by ffmpeg. i have already tried to stream a single .mov by FFMPEG command in terminal and it works, the FMS can display the thing i streaming in live.Now i want to stream multiple files as one source, i tried to use above command one by one, but it seems Flash media server stop the streaming when file1 is finished, then start the stream with file2.It makes the stream player stopped when file1 is finish, and i have to refresh the web page in order to continue on file2.i am calling the FFMPEG command by a C program in linux, i wonder is there any method that i can prevent the FMS stopped when i switch the file source in FFMPEG? or is that possible to let FFMPEG constantly deliver the stream by multiple files source without stopped when a file finish
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request? ( 2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?
I'm currently working on a project that contains a lot of data, about 14.000 records. This means an xml file of about 3mb. Now my question is: Should I use the xml file to load all the data at once, or should I use a webservice, that provides the data when I need it? Keep in mind that I'm new to webservices. And if I'm going to use a webservice: How do I store the data, in a mySQL database?How fast is a webservice?
I've got several archived text files - 040107.txt,040207.txt, 040307.txt, for example - and I want to be able to build a dynamic link which loads whichever file is selected intothe Flash movie. This list needs to be able to build itself as Iwrite new files every day and add the old ones to the archive.
The three text fields below (txt1, txt2, txt3) are in three different frames (1, 2, 3)... With my current code, text data from my xml file seems to be uploaded only in the textfield in the first frame. How do I load the other items from my xml file into the other textfields?
Code: var myXML:XML = new XML; var myXML:XML = new XML; myXML.load("file.xml"); myXML.ignoreWhite = true;
I have an XML file with 1 parent node that has 1 child node inside it. The parent node is straight forward. It only has one attribute.
The child node has 3 attributes in it - Title, Photo, URL
I want my Flash file to have 3 containers - 2 Text list containers and 1 image holder. The first text container will load all of the Names of parent node. The second text container will load all of the Title of the child node.
The 3rd container will be a MC holder that will load the Photo and will link it to the URL specified in child node.
How do I script my Flash file?
Right now, my script is as follows and it successfully loads the name from parent node in one of the containers. I'm confused with other two!
Code: function onXmlLoaded(success:Boolean) { if (success) { // make a handle to the root node in the xml
We are mainly developing On-line web application works on Flash Movie remixer which remixes more than two flash movies (Picture In picture), SWF layers, Run-time special effects (Chroma-key, fire filter, etc.) and sound layers.This site is similar to the [url].... Recently we were having an issue that user should render the remixed movies and layers to one flash movie file (FLV format).
i built and application that load multiple sound files play it in a sequence as the user order them but i wonder is there a way to save this sequence into one mp3 or wav file
I notes that a lot of programmers on this site use xml to load data into swf file?? Can you explain me why??? For all of my years of work i never found a xml to be a good solution. And now I have to remake such file, who was made by some XML freak, to work on my new web project. What |I could write whit 5 lines of simple php loadVars() - from database... I have to use some XML parser ... And that will strech about to 250 lines of parsing...
I need to load in some data from a relatively simply .ini file, but its not turning out as straight forward as I thought it would be. The data in the ini file always takes the form of:
I have a swf file, which plays 6 videos one after the other in a loop. This file is very huge so it is taking more than a minute for it to start playing after the page finished loading. I have taken the original video file, and split it into 6 files. I plan to have 6 tiles in the flash file as soon as the page loads, and when some tile is clicked, the video is loaded dynamically only that video or swf file so that it saves the loading time and once this is done, i want it to revert back to the main page with tiles. I am just starting off with flash and I have no clue how this is possible in flash. I am not asking for code, i need some tips to get started.