Actionscript 3 :: Share A Class Between Domains?

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


Similar Posts:


Flash :: Share Cookie / Data Between Multiple Domains And Swf's

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

Actionscript 3 :: Share The Text Area From One Class To Another Class?

Feb 16, 2012

This is the class text.as3

private function showTextArea():void{
textField = new TextArea();
canvas.addChild(textField);
}

This is the code to create the text area,i want to pass the text area to another class(text2.as3).Is it possible?

View 1 Replies

Actionscript 3 :: Share TextArea Component In Multiple SWF - Runtime Share Library?

Jan 12, 2011

How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)

View 1 Replies

ActionScript 3.0 :: Share One Singleton Class Between 2 Swf

Jan 23, 2012

I'm trying to load swf from 127.0.0.1 into my main.swf with Flash Pro

Both swfs have Singlenton class

How to make it that loaded swf use Singlenton of main.swf ?

I did
ActionScript Code:
var lc:LoaderContext = new LoaderContext();
lc.applicationDomain = ApplicationDomain.currentDomain;
myLoader.load( new URLRequest("http/127.0.0.1/loaded.swf"),lc);

anyway I have 2 different Singlenton classes one comes with loaded.swf another in main.swf and variables not shared

is any way I can merge this values?

View 5 Replies

ActionScript 2.0 :: Multiple Games Share The Same Class?

Feb 24, 2009

I have a bunch of games each in there own directory with there own classes. I need to make 1 global directory with a class in it that all my games can use.

The reason for this is if I need to make a change to this class, I don't want to have to keep copying it into each game folder.

View 2 Replies

ActionScript 3.0 :: 3 Instances Of 1 Class Share Variable?

Feb 22, 2009

I have a button class and I made 3 instances of that button class as.. btn1, btn2 and btn3 Is it possible for the btns to share a global variable or something? For instance what I am trying to do. if btn1 is pressed it triggers a global variable "isClick = true" and if I click on a different button (btn2 or btn3) it checks to see if isClick is true then it calls a function A if not then calls different function B.

View 1 Replies

ActionScript 3.0 :: Share External Class Files With Multiple SWFs?

Sep 9, 2010

Is there a way to share common .as files with multiple swfs?

View 5 Replies

Adobe Flex 2 Projects With Same Class Share That Class Between The Two Projects?

Dec 24, 2009

i have several flash projects and i have common classes. is there a way to share these classes between the project so i won't need to copy it to all the project when ever i modify something?

View 2 Replies

Flex :: SWF Access Across Domains?

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

Actionscript 3 :: Crossdomain.xml Across 3 Different Domains

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

Actionscript 3.0 :: SharedObject Over Different Domains

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

ActionScript 2.0 :: GetURL From Different Sub Domains

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

IDE :: Transferring Xml Data To Swf Across Domains?

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

ActionScript 1/2 :: Pass Variables Between Domains?

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

Javascript :: Flex - SWF On Separated Domains?

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

Actionscript 3 :: Loading One External SWF Into Another SWF Across Domains?

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

Flash :: Control It With Script When Different Domains?

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

ActionScript 3.0 :: Loading Data From Other Domains?

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

ActionScript 2.0 :: Two Domains Pointing To 1 SWF - ERROR

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

ActionScript 3.0 :: Load Data Files From Other Domains?

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

ActionScript 3.0 :: Loading SharedObject Across Multiple Domains?

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

ActionScript 3.0 :: Preloader With Swf In Different Domains, Not Working Online?

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

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

Flash :: Track What Pages (domains) A Banner Ad Appears On?

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

ActionScript 3.0 :: Load Child Swf In Different Domains And Passing Params?

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

ActionScript 3.0 :: Playing Sounds From Other Domains Vs Security Sandbox?

Oct 26, 2011

I put my music player to one domain and music files to the other one (i.e.:[URL]. As the player's setup is via xml file I just set there to look for that .mp3s with given url. I thought I need to put some crossdomain.xml to the domain with mp3s but meanwhile my music player doesn't need it and loads all the music from other server and plays.. So, do I need some policy file or so as I thought, or maybe my thoughts are outdated?

View 9 Replies

ActionScript 2.0 :: [MX 2004] Access _global Variables Between Domains?

Apr 6, 2005

Is there or is there not possible to access _global variables between domains? on [URL] i have index.html and index.swf. Index.swf then loads main.swf from [URL].In index.swf i have a _global variable that i want main to use. When calling for it all i get is undefined. The only way to access it is if i call for it using _parent or _root.

I have allowed the domains to communicate using

System.security.allowDomain("http://www.Domain1.com");
System.security.allowDomain("http://www.Domain2.com");

I have also put a crossdomain policy file on both servers..cross domain policys since i CAN access the variables and functions using _parent and _root...or is it?

View 7 Replies

ActionScript 2.0 :: Load XML Cross Domains With Proxy File?

Jan 23, 2006

I'm using a working proxy.php, and passing it a url variable.

I think the problem is that the url variable I'm passing is a php file itself with a query on the end of it.

My proxy.php file sits in the same directory as the .swf.[code]...

View 1 Replies

ActionScript 2.0 :: Flash Program Functions Differently For Different Domains?

Apr 15, 2012

I have a linux distribution server, SME Server, and I use it to direct several domain names to a website on the server. My Flash program is a data driven directory that uses PHP constructed XML files to create the directory. I have been successfully using this Flash directory for some time using one particular domain, ictytranscripts.dyndns.org. I've since added a second domain name that I want to replace the first with, but for some reason the Flash program cannot read the XML files, or something. Whatever it is, the directories are not showing up.

There is nothing in the ActionScripts that have any reference to the old first domain name. I cannot imagine what is making the difference. Here is a test page showing the Flash program working successfully (I assume):

[URL]

And now the same page from different domains that direct to the same page:

[URL]

Notice that in the first the Flash program comes up, but there is no data displayed and in the second, there is no Flash program displayed at all.The XML files seem to be generated without any problems. [URL]

View 1 Replies







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