ActionScript 3.0 :: Loading IP's From XML / Load Balancing And Failover?

Oct 6, 2009

I have an xml file that contains the ip values (2) to our servers, what I want to accomplish is: 1st read the xml and grab those values, 2nd randomly select one of those ip's and create the rtmp://...path to play the video, 3rd if one of those servers is down then use the other one to play the video and 4th if all servers are down display some sort of message to try again later. I am reading the xml and grabbing those values, I am randomly selecting an ip and creating the rtmp://...path, but where I am having problems is playing the video from the other server. What's happening is that when it hits the box that is down and swithes to the other box it actually show the first frame of the video but it doesn't play. Here is my code in my .as file:

package
{
import flash.display.Sprite;
import fl.video. *;
import flash.events. *;

[code]....

View 0 Replies


Similar Posts:


Flash :: Media Server 4 Enterprise Load Balancing?

Dec 4, 2010

G'day chaps, me and my mates have purchased a copy of Flash Media Server 4 Enterprise edition for use on our web project.  Since we will be transmitting to large amounts of users through this exceptional piece of software, we will be needing to run more than one server at once.  Before going ahead and doing anything against the policies we have decided to post here on the support forums and inquire about being able to run multiple copies of Flash Media Server 4 Enterprise edition with one Serial KEY ( 10 x GigE dedicated servers ).  If this is not possible, how can me and my chappies load balance all the traffic through one Flash Media Server 4 Enterprise edition.

View 3 Replies

Media Server :: Setup A Load Balancing Between Two Servers Or More?

Jan 1, 2012

I have a load balancing problem for example I have two FMS servers I want to make aconnection between them if the first server overload the second can handle the request

View 1 Replies

ActionScript 3.0 :: DNS Load Balancing And Flash Player - Getting Security Errors

Mar 18, 2011

I have some Flash application that loads data (external images, SWFs, XMLs) from the same domain. And it was fine until client decided to add load balancers for server. Now we have a number of complaints from users about security errors. It looks like application can't load external resources treating them as resources from different domain without crossdomain.xml.
One of users that have this problem provided us with following info:

Browser: IE 8.0
OS: Windows 7
Flash Player version: 10.1.102.64

I have spoken with server administrator and he told me that we have load balancers that work like Round-robin DNS. In its simplest implementation Round-robin DNS works by responding to DNS requests not only with a single IP address, but a list of IP addresses of several servers that host identical services. The order in which IP addresses from the list are returned is the basis for the term round robin. With each DNS response, the IP address sequence in the list is permuted. Usually, basic IP clients attempt connections with the first address returned from a DNS query so that on different connection attempts clients would receive service from different providers, thus distributing the overall load among servers.

Finally we have: SWF loaded from IP1, data requested from IP2, crossdomain.xml loaded from IP1. All of them can be accessed through the same domain, but have different IPs.Because of IPs difference, Flash Player ignores crossdomain.xml and triggers security error.I'm not sure it happens exactly like that, since for older versions of Flash Player I have found the following words:

The basis of domain comparison is the domain name, not IP address.

So, I have two questions after all of that: How exactly domain comparison for HTTP-connections works in latest versions of Flash Player? Can two resources obtained by address with same domain name but from different IPs treatened as obtained from different domains? Maybe someone have info about DNS rebinding in different browsers?

View 1 Replies

Media Server :: Stream Failover On Encoder Failure?

Jun 10, 2010

I am using FMLE 3.1, but I presume that any server side solution would support all encoders. A basic version of the problem would be where I have one server and two encoders (with the same video source over SDI). If one encoder fails I want to be able to deliver the feed from the second encoder, without having client side logic. Is this possible?
 
I would welcome a discussion on ways to provide improved resiliency in the live streaming environment. It is amazing that no out-of-box solution is available to provide such basic functionality.
 
Michael
 
BTW: I asked a similar question some months ago but got no answers. Apologies for bringing it up again, but this must be a fairly common problem, as anybody using FMS and FMLE will need some solution. I have tried the livestreamcast application, but had little success. It also appears to be for a much bigger scale than I have, requiring an all origin environment.

View 5 Replies

Media Server :: Setup As Automatic Failover In Event Of A Disaster

Apr 7, 2010

We are planning an implementation that would be setup as automatic failover in the event of a disaster. We only have two physical servers (Windows 2008 R2 based). What is everyone's suggestion? I read a lot about origin-only cluster and origin-edge clusters. It seems like origin-only cluster would work best for this type of fail over but I'm not sure. We would most likely use Microsoft network load balancer built-in on Windows 2008 R2. We have the option of using remote storage but could also do local storage. The types of streaming would be videos loaded to the server (not live). Let me know any suggestions to achive an automatic failover with two physical systems

View 1 Replies

Media Server :: 3.5 Failover Methods Best Setup For Live Stream?

Sep 8, 2010

I have a question regarding FMS 3.5 and live streaming with failover protection. Currently, we are running a single server with FMS 3.5 for our VOD and live streaming events and its been working great. Recently during our last live video stream the server decided to die and naturally the live stream was lost. To prevent such a future scenario from happening, and given that I am on limited budget what would be a best method of prevention. I saw there is limited documentation on setting up origin to edge, or two origin servers (more likely for us since we can maybe purchase one more server at this time) but I do not have access to make network/router changes etc. I do have full access to configure my Windows 2003 servers however.

View 2 Replies

Actionscript 3 :: Prohibit Users From Loading Swf Files By Flash Loader.load() And Only Allow Loading Images?

Apr 1, 2010

I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.

So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?

View 1 Replies

ActionScript 2.0 :: Xml - Load The First Image And Keep Loading The Rest With One Loading Time

May 21, 2008

i was creating my portfolio using xml gallery script from this site. the thing is that it loads one picture at a the with a preloader between each load. is there a way to load the first image and keep loading the rest so there will be only one loading time? here is my action script:

[Code]....

View 3 Replies

Internet Explorer 8 - IE8 With Loading FLASH. SWF Loads And Renders Correctly On Initial Load, But On Any Subsequent Refresh It Fails To Load

Mar 7, 2011

I need some help? Anyone experience this problem before with IE8 FLASH bug? Can not get this to work on all subsequent refresh to the flash. I have a flash piece which simply renders only on the first initial load. After that, if i refresh or visit the page, it does not load correctly. It seems I am having this problem with the swf only on subsequent loading of the page or whenever a refresh happens.

View 1 Replies

Actionscript 3 :: Load SWF Data Without Loading Sound, Then Load Sound Later?

Jan 2, 2011

I have an SWF that's 30MB. Sound files (music) make up 25MB, art and other things make up the remaining 5MB.

Would it be possible for me to load the 5MB of necessary art and other things first to allow the user to operate the app, then after that's all loaded and they are operating the app, load the remaining 25MB of sound files in the background?

UPDATE: Loading SWF (or other entities) externally is not an option.

View 1 Replies

Xml :: Actionscript 3 Load Xml Not Loading Some Tags?

Jun 29, 2010

I'm trying to load some XML into flash to populate some dynamic text fields. The problem I have is that some of the xml tags seem to be ignored by flash.Here's the XML I'm loading:

<?xml version="1.0" encoding="UTF-8" ?><xml>
<node>
<nid>2</nid>

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamically Load A Mp3 And Have A Loading Bar?

Dec 14, 2002

is there any way I can dynamically load a mp3 and have a loading bar? or preloader?

View 6 Replies

Actionscript 3 :: Load ID3 Tags Without Loading Sound In It?

Mar 1, 2010

Is there a way to load ID3 tags in AS3 without loading sound?

View 3 Replies

ActionScript 2.0 :: Load External Swf File With Loading Bar?

May 9, 2004

how to load an external .swf flies with a load bar? from the main.swf

Situation : i have a main.swf fle and i have a button on the main stage containing the code :

PHP Code:

on (release) { loadMovieNum("pics.swf", 2); } 

which takes some sec to load the external pics.swf movie from the main swf.

Situation offered : you can say put a loading bar on the pics.swf flie , so that when it loads it shows the loading bar.

Ans to the offered situation Well i completely denied the idea of loading pics.swf file with containing the load bar inside the pics.swf movie.

Solution required: i want to load the pics.swf (external file) from main.swf file with having the loading bar inside the main.swf file.

View 1 Replies

ActionScript 2.0 :: Loading A SWF - Load A Picture In The Same Kind Of Way?

Feb 28, 2005

I know to load an swf, its like: loadMovie(yadayada); But is there a way similar to the way above but it loads a picture instead?

View 2 Replies

ActionScript 2.0 :: Loading Bar To Load Thumbnails Of Images,

Jun 4, 2007

url....and they are using some kinda loading bar to load thumbnails of images, actually i saw that i many site, and i am bit curious about it.could any one help me out to code this loading bar?

View 3 Replies

ActionScript 2.0 :: Make Loading Pic Load In Centre?

Jun 26, 2008

i want to know how can i centre the position of the image that we load. all these three external images when load are loaded from left top corner.i mean if i resize the images to less width and height they load from top left corner. i want them to load in the centre

View 3 Replies

ActionScript 2.0 :: Loading First Scene While Others Load In The Background?

Aug 13, 2003

The website I'm working on is a Flash swf hovering at about 2 megs, and although on a broadband connection, it still takes a few long seconds - Is there any actionscript that can tell my preloader to display my homepage immediatley after the homepage is loaded, while the rest of my site loads in the background?

stop();
//preloader
st = new Date();

[code].....

View 2 Replies

ActionScript 2.0 :: Load External Swf Flie With Loading Bar?

May 9, 2004

how to load an external .swf flies with a load bar? from the main.swf i have a main.swf fle and i have a button on the main stage containing the code :

PHP Code:

on (release) { loadMovieNum("pics.swf", 2); } 

which takes some sec to load the external pics.swf movie from the main swf.Situation offered :you can say put a loading bar on the pics.swf flie , so that when it loads it shows the loading bar.Ans to the offered situationWell i completely denied the idea of loading pics.swf file with containing the load bar inside the pics.swf movie.i want to load the pics.swf (external file) from main.swf file with having the loading bar inside the main.swf file.

View 1 Replies

Professional :: Load An External Swf Using A Loader To Show While Its Loading

Jul 26, 2010

how to load an external using a loader to show while its loading...my swf which is to be loaded is a gallery having jus one frame on which action script is placed..

View 10 Replies

AS3 :: Loading Facebook Profile Pictures / Can't Load Certain Images

Jul 6, 2011

As the title says im trying to load Facebook profile images into flash using AS3,now im pretty far with this but i hit a blockade.[code]Im obtaining the friends list of the current user through some PHP a friend of mine wrote, and accesing their ID's, which i use to load their profile images.

View 1 Replies

ActionScript 2.0 :: Loading Text Doesn't Load Properly?

Oct 26, 2004

check this out: [URL] this swf does use this code:

Code:
optredens = new LoadVars();
optredens.load("optredens.txt");
optredens.onLoad = function(){
_root.aankomend = this.aankomend;
_root.geweest = this.geweest;
}

as you see in the swf you first have to switch with "aankomende optredens" en "gespeelde optredens" before you can read the aankomende optredens text... why? i just want it to load immediately, so you can read it... without having to read "undefined"

View 4 Replies

ActionScript 2.0 :: Load Movieclips When Main Moviecliploader Are Loading

Mar 30, 2006

I want to load movieclips when my main moviecliploader are loading. So eg I have a loadbar and when its 50 % I want a movieclip to come up. And if the loader is at 70& another movieclip comes up.[code]

View 1 Replies

ActionScript 2.0 :: Loading Bar, Trying To Attach A Pixel Shape To The End Of Load Bar Mc?

Jun 2, 2006

I have a loading bar setup built with 2 objects.My load bar and the loadbar housing, it works by.

loadBar._width = loadBarHousing._width * (percent / 100);

Now my problem is that I would like to add a 2pixel line to the right side of my loadBar_mc and make it sit to the right of the loadBar MC all the way until it completes the fill/load. Obviously I cant just add the shape to the loadBar_mc because that will resize.No sure on where to go from here.I have a file here:[URL]

View 4 Replies

ActionScript 3.0 :: Xml Won't Load / Get Error Loading Xml File Into Firefox

Feb 5, 2010

I have a simple xml file that I'm using to load images.[code]I'm using the name of the base tag as the name of the nav to load the images. So from the xml above the nav button would be "travel & lifestyle".I know flash removes the whitespace but what if I want whitespace there.The xml won't load and I get an error loading the xml file into Firefox"XML Parsing Error: not well-formed"How can I format the xml to keep the space.

View 2 Replies

ActionScript 2.0 :: LoadMovie Not Working - Loading Doesn't Load At All?

Sep 15, 2006

I have a movieclip called masterloader in my flash project, and I have

[Code]....

when it actually loads in the movie, yet the movie I am loading doesn't load at all. It's only a one framed picture.

View 4 Replies

ActionScript 2.0 :: [Flash 8] Loading Bar Inside MC, Wont' Load

Apr 8, 2007

What i have is a preloader on the first scene and when scene 2 is loaded then it plays it.. the problem is not here, the problem is with my loading bar... I have the loading bar on the first frame of my preloader scene but it's inside a movie clip ( at frame 10 as i can remember ). I have this code on it:

Code:
onClipEvent (enterFrame) {
this.gotoAndStop(int(_parent.getBytesLoaded()*100/_parent.getBytesTotal()));
}

Ok, i tried to edit it and all that crap, but whenever i play the movie the bar is fully loaded ( meaning it won't load normally )... I guess the problem is that i'm not giving the path correctly... but i can't figure out how to give it... Ahh, and yeah, the bar is inside an MC called "pre" and the bar is called "bar"...

I don't know if this helps, all preloader codes are the same but here is the code i'm using ( this is placed on the first frame of the preloader scene, and it's not inside any MC, it's only on the first frame with the second frame "looping the first" ):

Code:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();

[Code].....

View 4 Replies

ActionScript 2.0 :: Loading In Externals Swfs And Everytime I Load The Same Swf ?

May 21, 2007

I am loading in externals swfs and everytime i load the same swf (click a different button than go back to it) its speed increases

View 2 Replies

IDE :: Full Movie Not Loading - Only Index SWF Load Online

Mar 1, 2009

Setup: I have an html page with an embedded flash object. The object is an "index.swf" with an empty movie clip on it. External swf's load onto the index swf via the empty movie clip when buttons are pushed.

Problem: On my test server in dreamweaver, the swf's load fine. When I put them on my server and test it online only the index swf loads. not the initial swf or any of the other swf's.

Site: [URL]
Files: [URL]
(index page and home page for your reference)

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved