ActionScript 3.0 :: Application Domain Management Across Different Domains?
Jun 6, 2011
I've been getting this following error -- when I'm loading a subsidiary SWF into a main one.The sub swf contains the overlays. OverlayOne is a subclass of Overlay.
Code:
TypeError: Error #1034: Type Coercion failed: cannot convert OverlayOne@18684f89 to Overlay.
at HSRawVideoPlayer/setCurrentOverLay()
[code].....
View 2 Replies
Similar Posts:
Jun 3, 2011
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 Replies
Jan 25, 2009
i am trying to load swf from other domain in to my air application. but it gives security sandbox error and i use Security.allowInsecureDomain("*") and it work perfectly in normal Flash but Air gives another eror:
[Code]...
View 1 Replies
Oct 22, 2011
i like to know that there is way to remove all data after unload swf .Calling Loader.unloadAndStop(); remove content and loaded bytes , but loaded classes stays in application domain .If i load it to separated new ApplicationDomain , gc is going to collect them after unload and remove all references ?
View 1 Replies
Dec 15, 2009
I have a question about a TypeError: Error #1034: Type Coercion failed: error. I'm loading a SWF into my application into a child domain of the parent SWF. I thought this was supposed to allow the 2 SWF's to share the class definitions?[code]...
I'm fine as long as I don't create the child domain, or what I think is the child domain. It's obviously the same class definition just with the "@23dr3" after it. I can load correctly if I set the context to the current domain or don't specify it at all.
View 1 Replies
Apr 27, 2011
I have recently uploaded my flex applicaiton on server, it works fine on my system (localhost) but on the production server it tries to access[URL]..which is not available and end up showing "loading" eternally.
View 2 Replies
Apr 23, 2010
Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this?
I have attempted a socket connection and received the following error:
[Code]...
View 1 Replies
Apr 28, 2011
My application currently contains a number of Widgets that are managed by a Widget Manager. When the user clicks on a widget (e.g. a Helper widget), the Widget Manager loads the widget into a separate sibling application domain with the following line of code:
wgtInfo.load(null, null, null, moduleFactory); //wgtInfo = IModuleInfo
However, I am unable to use the widget's variables and functions later on. I attempt to find the Helper widget from the Widget Manager's list of widgets, and I do successfully. But when I try to caste the Helper Widget from type IBaseWidget (the interface all widgets share) to type HelperWidget, I receive the following error:
TypeError: Error #1034: Type Coercion failed.....
This is because the application domain of the class trying to use the Helper widget is different from the application domain of the Helper Widget. I tried to fix this by loading all widgets into the same application domain as the loader:
wgtInfo.load(ApplicationDomain.currentDomain, null, null, moduleFactory);
I now get the following error whenever I attempt to load the Helper widget:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
How can I load my Helper widget into a common application domain that is accessible by the other widgets?
View 3 Replies
Jun 1, 2010
post 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 Replies
Apr 23, 2009
We 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.
View 14 Replies
Dec 9, 2011
I 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 Replies
Nov 16, 2010
I have a SWF that contacts a php script all on the same domain. In the first case both are hosted behind the same domain and communicate with no problem. Everything is working great.However when I take the same markup that embeds the SWF and paste it on another site (using a full qualified path for the swf in both the locally hosted and remotely hosted code), the SWF no longer communicates with the php script I wrote. I added a cross domain file to my site which looks like this.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
[code]....
View 3 Replies
Aug 6, 2011
I have
A.swf - located on sitea.com which loads B.swf
B.swf - located on siteb.com which loads some files from sitec.com
crossdomain.xml
<?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="*" to-ports="80" />
</cross-domain-policy>
I have placed the crossdomain.xml (above) file on each domain root but i still get a Security Error from sandbox when accessing A.swf
securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: B.swf cannot load data from sitec.com"]
I do know that crossdomains problems are meant to be simple
View 2 Replies
Jun 22, 2009
I am working on a project that uses SharedObject and I have a question. I've made a button that downloads a flash screensaver and at the same time also creates a SharedObject which stores a specific id for each screensaver being downloaded. When later the screensaver is installed and run, it should get the SharedObject and read the id from it. When tested locally it works perfect since both the buttons´ and the screensavers´Sharedobject are stored in the same localPath. But when the button is online and the screensaver is local the SharedObject paths don't match.
Is there a way to solve this and make the local screensaver swf read the SharedObject from the same path as the online download button has stored it's SharedObject in?
This is the relevant code in both my swfs:
var _mySo:SharedObject = SharedObject.getLocal("name", "/");
If this won't work, does anybody have another solution to my remote to local screensaver thingy??
View 1 Replies
Sep 9, 2007
My client's site exists on both http:// and http://www. and I have a flash navigation system on the site. All links are absolute values and work fine from the www subdomain but do not seem to work from the http:// domain. It seems strange to me as the links are absolute paths...
View 2 Replies
Jun 21, 2009
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.
View 5 Replies
Nov 5, 2010
My swf works fine when previewed locally but because of flash cross domain issues (link below) doesnt work live. [URL] Ive used a 'crossbrowser.php file to .load in xml but am not having success with the sendAndLoad command. [URL]
View 3 Replies
Apr 22, 2009
So I have an SWF8 file as a player on one domain (unsecure). It loads and plays an SWF8 from another (secure) domain. So far so good. Trouble is, I need the player to send variables to the files it's playing so that links in that SWF will, well, link. I also need the player to receive some movie control commands in return. There must be a rule or two I'm violating, because while the file plays, anything that depends on a variable is just dead.
A note: Both files started out as SWF6. I understand I can only do what I'm trying to with SWF8, so I went through the code and fixed the case sensitive issues and did the conversion.
View 9 Replies
Aug 30, 2009
I have an application with embed swf thatis called from javascript using handleEvent, This was working fine when they were both on same domain but now when i seperated them it returns an error .
View 1 Replies
Apr 12, 2011
I have a.swf, which is the SWF file for my main application, and it's trying to load in b.swf, which contains some additional resources as well as some Actionscript. a.swf lives on sub1.domain.com and b.swf lives on sub2.domain.com (both on the same domain, just different subdomains.) In a.swf, I've loaded the crossdomain.xml from domain.com and also added the following code into both a.swf and b.swf:
Security.allowDomain("*");
Security.allowInsecureDomain("*");
Do I need to load crossdomain.xml in b.swf as well to prevent a security error or is having allowDomain/allowInsecureDomain enough?
Further info:
- Using Flash Player 9
- Using AS3
View 1 Replies
Dec 6, 2011
I have a Singleton class instantiated in Main.swf located at domainA. The file loads Game.swf from domainB via LoaderMax [URL]. When I try to access the Singleton I guess this is not the same as the on instatiated in Main.swf.
View 2 Replies
Mar 21, 2012
I have a website on my server which loads a .swf file and then I want to be able and call functions in that file from javascript.
My server has domain [url]..
View 2 Replies
Jul 9, 2009
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?
View 0 Replies
May 13, 2008
I have two domains pointing to the same swf. So I have domain "A" and "B" where my swf (site) is hosted at "A". Domain "B" loads site "A".
The swf loads some vars from a DB, when seeing site directly at domain "A" I have no problems, but when seeing with domain "B", my site just freezes....giving an error at the Browser and I have to close. This is for FF and IE.
At first I thought this was cross domain policies, so I have put at my swf the following code:
Code:
System.security.allowDomain("B")
View 7 Replies
Apr 1, 2009
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?
View 1 Replies
Jun 7, 2009
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?
View 3 Replies
Oct 1, 2009
I've an swf (loader.swf) hosted inthat justs loads a swf (movie.swf) hostedloader.swf has a preloader. When I execute the movie in flash, it works perfect, but when I upload the swf, the preloader doesn't works. I see 0% and after starts movie.swf normally.Here is the code of loader.swf
Security.allowDomain("www.dominioB.com");Security.allowDomain("www.dominioA.com");var contexto:LoaderContext = new LoaderContext();contexto.applicationDomain = ApplicationDomain.currentDomain;var
[code].....
View 2 Replies
Jan 4, 2010
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)
View 1 Replies
Aug 26, 2011
I am building a flash banner ad which I will traffic among some major ad networks. Is it possible for me to track what sites (or domains) my ad has appears on, without relying on their reporting?
View 2 Replies
Mar 24, 2011
I have a parent swf that loads a child swf and attempts to pass some data into the child.
The process works fine if parent and child are located in the same domain (lets say domainA.com).
As soon as I place the child swf into domainB.com and try to load it, it will load in the parent, but it is not loading the values.
Crossdomain policies are in place (the child does load!), but the params are not sent.[code]...
View 0 Replies