Flash as2 cross subject to access the SWF from another server domain

I have question cross-domain, how do I access the .swf from another swf file without using System.Security.allowDomain() in the swf file, which we are called.

I use 2 domains and I have 2 files swf is a.com (a.swf) and another is of bcom (b.swf) I want to access the file the a.swf b.swf frames, if I use the system.Security.allowDomain() in b.swf file I can access executives. But without using this way I can access the file from another domain.

Because I have a risk to change the file b.swf so I vant to go without changing the file b.swf is any other wey to access frames of the file the file a.swf b.swf. Please someone help me solve this problem.

use a local executable (such as php) to load the b.swf and send it back to a.swf.  for example:

loadSWF.php:

<>

$fh = fopen ("www.b.com/b.swf", "r");

Header ("Content-type: application/x-shockwave-flash");

fpassthru ($FH);

?>

a.fla:

var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());

target_mc.loadMovie ("loadSWF.php");

Tags: Adobe Animate

Similar Questions

  • Loader will load the images from another server, but then we get error on Bitmap operation

    I develop an application that currently uses Loader to get the images to another server.  This should not work now because we are still waiting for the owner of that server to put a crossdomain in place file.  However, it works - sort of .

    Charger can load the images very well, without error.  But then the application has a feature that we are a great duplicate of the image to display in a sidebar, we do this in this way:

    var myBitmap:Bitmap = Bitmap (loader.content);

    and when will we get a Flash player 2122 security error, violation of sandbox.

    So although I hope that all this will fix itself when the crossdomain.xml file is set up, I am confused as to why we get only the sandbox error when we do a bitmap image, and not when we try to initially retrieve the image.

    (By the way: is there a better way to make a "copy" of an image loaded by a loader and change its width and height to display simultaneously in another part of the scene?)  "I have need to change its real dimensions - I just need to change its display width and height).

    Thank you!

    The sandbox allows you to view, not not editing from another server without a cross-domain.

    Therefore, when you try to load up, it loads, it 'read only' and gives you an error when you try to "change" by a new Bitmap out of it.

    This should resolve itself once crossdomain is in place.

    || EDIT |

    I just realized that I have to clarify my statement a bit more.

    When you load images from another server without a crossdomain, it only allows the load for display.  When you try to load data, it will fail.  It is because that data XML, or another type of data is editable by default, and the images are only visible by default.  As a result, the image fails when you try to convert it to an editable form.

  • Password required when trying to map a network drive or access the files from another computer

    I'm trying to set up a home network with a computer that is used as a file server.  I have computers successfully connected in a unique working group and that you can see all of the computers in my 'network', but whenever I try to access another computer or map a drive, I wonder a user name and password.  How can I remove this requirement or solve this problem?

    Hi Kalomar,

    If your computer is on a workgroup, you have the ability to turn password protection on or off. Disable password protected sharing on the computer that is connected and check if you are always prompted for a password.

    1. open the network and sharing Center by clicking theStart button, clicking Control Panel, click network and Internet, click network and sharing Center.

    ·        Click the arrow next topassword protected sharing, and then click turn off password protected sharing

    2. click onapply.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    http://Windows.Microsoft.com/en-us/Windows-Vista/sharing-files-with-the-public-folder

    Note: If you change the password on one computer, you will need to change it on the other computer as well, otherwise you will again be asked a password.

    I hope this helps.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • To access the XML from a different class

    Hi all

    I have a xml class that loads the xml data, I need to access the data of another class. I imported the xml classinto the new class and created a new instance of it. However when I try to access the xml data it come back as null. I understand that it is certainly because when she is called the xml data has not completed loading. How can I get around this?

    XML class:

    package {}

    flash.xml import. *;
    import flash.events. *;
    import flash.net. *.
    import flash.display. *.

    public class xml extends MovieClip
    {
    public var xmlRequest:URLRequest;
    public var xmlLoader:URLLoader;
    public var xmlImages:XML;

    public void xml()
    {
    xmlRequest = new URLRequest ("images.xml");
    xmlLoader = new URLLoader (xmlRequest)

    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    xmlLoader.load (xmlRequest);
    }

    private void xmlLoaded(event:Event):void
    {
    trace (xmlLoader.Data);
    xmlImages = new XML (xmlLoader.data);
    }
    }
    }

    Thanks in advance

    Or even better:

    package {     import flash.events.*;     import flash.net.*;     import flash.xml.*;
    
         public class XMLLoader extends URLLoader     {          public var xmlImages:XML;
    
              public function XMLLoader()          {
    
              }
    
              public function loadXML(url:String):void {               this.addEventListener(Event.COMPLETE, xmlLoaded);               this.load(new URLRequest(url));          }
    
              private function xmlLoaded(event:Event):void          {               trace(xmlLoader.data);               xmlImages = newXML(this.data);               dispatchEvent(new Event("loadComplete"));          }     }}
    

    Use:

    var xmlLoader:XMLLoader = new XMLLoader();
    xmlLoader.addEventListener ("loadComplete", onXMLLoad);

    xmlLoader.loadXML ("images.xml");

    function onXMLLoad(e:Event):void {}
    trace (xmlLoader.xmlImages);
    }

  • To access the files from the computers on the same network.

    We recently bought two Macs and an airport Time Capsule as we were told that it would allow us to access the files from one computer to another. Run us a business out of our home and require both Mac to be able to access the files from each other or have at least a common location to save etc. Both Mac is put back up automatically and lift you under the "Shared" section of the Finder. The airport shows also here as well. I don't understand how to get this to work so that I can share files easily. Any help would be appreciated.

    Open the system preferences sharing pane, start sharing files if necessary, and then use the connection to the server command in the Finder menu go.

    (142670)

  • To access the data from database to a remote computer

    Hi all

    Can someone tell me how to access data from a database, sitting on another computer? I use the Sqlite database. It works fine in my computer. But I don't know hoe to put the database in another computer (server) and access the data from there. In my program, it is essential to do this for a simultaneous use for different users. Someone please help.

    Kind regards

    Cindy.

    I found the solution... http://ConnectionStrings.com/

  • Outlook Express has stopped to let me access the internet from an e-mail.

    Outlook express

    A week ago, Outlook Express stopped allowing me to access the internet from an e-mail.  If someone sends you an e-mail with a WEB address, that it does not connect to it just says connection.  Could not find a way to fix this.  If anyone can help.  Thank you

    Hyperlinks do not work in Outlook Express or in Word (revised 29-Apr-09)
    http://support.Microsoft.com/kb/823301

    Hyperlinks do not work in Outlook Express after you put upgraded to IE7 [or IE8] (revised 29-Apr-09)
    http://support.Microsoft.com/kb/929867

    If still no joy:

    With the permission of MVP Frank Saunders. [RIP]

    If nothing happens when you click on a link:
    Open Windows Explorer or on the control panel.
    Go to tools | Folder options | Types of files.
    Scroll to [NONE] URL: HyperText Transfer Protocol (NOT the shortcut URL: Internet) and select it.
    Click Edit or advanced, depending on your version of Windows.
    Choose 'open '.
    Click on change.

    "Application used to perform action" should read:

    "C:\PROGRAM may EXPLORER\iexplore.exe" - nohome (check the path to)
    Iexplore.exe to ensure that it is correct and use the double quotes).

    DDE should be checked and in the boxes below, you should have:

    #1:
    « %1 »,,-1,0,,,
    #2
    IExplore
    #3 (white)

    #4
    WWW_OpenURL

    Protocol URL: HyperText Transfer with Privacy should be the same.

    If the foregoing is correct, uncheck the box: use DDE.

  • I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file.

    I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file. How can I unlock it please?

    You have Outlook open when you save? You need to close.

    Hope this helps

    Post back if necessary

    ___________________________________________________________

    If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • to access the eprint from iphone problems

    I have an officejet 6500 has more.  I can access the printer from my iphone at home on my home network fine.  When I'm away from home I can not access the printer through the eprint application.  I connected to the eprint and activated / adding the printer.

    Any suggestion?

    Hello

    Seems that there is communication developed here.

    The iphone uses AIRPRINT and EPRINT not. For airprint works, you two units must be on the same network.

    However, you can use Eprint from your Iphone by sending everything you want to print to the adres e-mail provided by the printer when you set up Eprint.

  • Cannot access the files from the internal hard drive that has been converted to drive external hard after the motherboard is dead

    I can't access the files from an internal hard drive that has been converted to drive external hard after the motherboard is dead. I think that my files are still there, as shown in the volume of the player volume ~ 500 gb which is almost completely full. But I can't access most files, including documents and settings. When I took 'ownership' of the folder, I could open the TI but then it showed everything that was in my documents and settings on the computer file I used to open it, not the documents of the car.

    I can't access the files from an internal hard drive that has been converted to drive external hard after the motherboard is dead. I think that my files are still there, as shown in the volume of the player volume ~ 500 gb which is almost completely full. But I can't access most files, including documents and settings. When I took 'ownership' of the folder, I could open the TI but then it showed everything that was in my documents and settings on the computer file I used to open it, not the documents of the car.

    Uhm... I think the issue here is a misunderstanding of what you watch.

    If you want to access your files from the old hard drive - you need to look in the right place.  If the old system was "Windows 7", "Documents and Settings" is the * wrong * place to look and "Users" would be the place to go.

    You * will * take ownership and change permissions on ALL (you want to propagate to all subfolders/files when do - to save time) in order to get them properly.

    New-->: Windows Vista/7 would have your files located in the directory 'Users' of the root of the drive - and then under your username.

    • \USERS\\Desktop\
    • \USERS\\Downloads\
    • \USERS\\Favorites\
    • \USERS\\Documents\
    • \USERS\\Music\
    • \USERS\\Pictures\
    • \USERS\\Videos\

    ... etc...

    Documents and settings to WIndows Vista/Windows 7 is a symbolic link and would lead to what you see if you tried to use it.

  • cannot access the internet from the desktop

    I am able to access the internet through the application of start page, but cannot access the internet from the desktop page. The convenience store has not detected a problem. Does not work via Wifi or wired broadband direct.

    Hello

    Are you using the right Internet Explorer?

    There are two more separate... From the start screen and another completely different for the office.

  • Can I access the guest from the server OS (virtual machine)?

    Hi all

    Can I access the guest from the server OS (virtual machine)? I mean, I would also like to start and discovers a guest OS (VM) directly in the server as in VMware Server 2.0. I would also like to see the graphic on the server management console to manage virtual machines.

    Or do I always have at least two computers? For example, the server ESXi without GUI / frontend access and the client with vCenter, vInfrastructure, blah-blah-blah,...?

    Thanks for the replies!

    Best regards

    Joao Araujo

    You will need the Client or another tool for access (RDP, SSH) a machine separate. ESXi is a very tiny BONES.

  • I use Windows Mail (Vista OS) on my home PC. Can I access my account from another PC?

    Original title: Windows Mail

    I use Windows Mail (Vista OS) on my home PC. Can I access my account from another PC?  If so, how do

    You will need to create an account on the other PC the same as the one you have now.
     
    On both machines:
     
    Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.
     
    On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.
     
    If it doesn't is that for a brief period of trip example, you might be better parcel just connect to the Webmail of your server site.
     
     
  • Access to multimedia files from another server problem

    Currently I am working in a project with streaming video on-demand and using FMS 4.5 .


    " Say the FMS is installed on a machine say ' 121.123.35.34 ' and there is another server"100.54.88.222". where all media files belong Now we need point to this third-party server to play videos of FMS. I did the changes below:

    In the fms.ini file: set VOD_DIR2 = \\100.54.88.222\myvideos

    In the application.xml: added stream: streams >/HR; ${VOD_DIR2} < / flow >

    My request for access to the path of the flv as: source = "rtmp: / / 121.123.35.34:1935/vod/hr/test. Not able to access the video.


    Note: If I say "C:hrvideos" in VOD_DIR2, then I'm able to access videos using the same URL.


    I also tried mapping the path shared the machine to the FMS and then saw the drive mapped path in the VOD_DIR2, but it does not work.

    Please let me know:

    1. If we set up any other parameter videos from another server.
    2. VOD_COMMON_DIR: I modified this similar to VOD_DIR in the directory "C:hrvideos", I am able to stream videos with http, rtmp, but not the jet of abl eto.

    Please let me know we can disseminate via http too as we need to run the f4m manifest file.

    http://121.123.35.34:8134/vod/hr/sample.mp4.

    http://121.123.35.34:8134/vod/hr/sample. F4M


    Thank you

    Anjali

    Hello

    For RTMP: Try mapping to another server.

    For HTTP: Yesy you can change the DocumentRoot directive, but then it will search for content in this folder for all types of applications and not just HDS VOD.

    To configure only HDS - VOD, positioned on the HttpStreamingContentPath:

    Change this HttpStreamingContentPath '... / webroot/vod " to HttpStreamingContentPath" C:/hrvideos "

    Note that the location is now absolute and oblique. Likewise, you can put in a network address.

    Thank you

  • I have different bookmarks I want to keep on each computer, synchronization will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place

    I have not yet used sync, but I sense it's going to be a problem if I do. I have different bookmarks I want to keep it on each computer. Sync will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place? So I think that will erase the bookmarks on the second computer you configured to synchronize. Is there a way to merge bookmarks on every computer in the library of a bookmark that contains all bookmarks on both computers, so I'm not all bookmarks in sync?

    Just to be clear, this is something that we have commented several times in the forum, Firefox Sync adds everything that is already in the device for the account and pushes this info for the rest of the devices.

    So if you have 2 computers with data X and the other with the data from there, once you set up synchronization in both computers you will have X + Y at the same time.

    I hope that clarifies the doubts...

Maybe you are looking for