Cross domain scripting at run time using local connection flash AS2

Hi
     I want to do live video streaming using FMS and FMLE in Flash As2. Suppose 100 users watching video online and I want to show message to  all 100 users using the Local connection.
If I am sending message using different browser in same pc then I can get the message which was send from another swf file but I am checking from another pc then message not coming in receiver swf file.
Please find the code below. 
receievemovie.swf
// Code in the receiving SWF file
this.createTextField("result_txt", 1, 10, 10, 100, 22);
System.security.allowDomain("*")
System.security.allowInsecureDomain("*")
var my_lc:LocalConnection = new LocalConnection();
my_lc.allowDomain = function(sendingDomain:String) {
domain_txt.text = sendingDomain;
return true;
my_lc.allowDomain = function(sendingDomain:String) {
return (sendingDomain == "*");
my_lc.allowInsecureDomain = function(sendingDomain:String) {
return (sendingDomain == "*");
my_lc.methodToExecute = function(param1:String) {
    result_txt.text = param1
myResult.text=param1
my_lc.connect("lc_name");
sendmovie.swf
System.security.allowDomain("*")
System.security.allowInsecureDomain("*")
var sending_lc:LocalConnection;
var sending_lc:LocalConnection = new LocalConnection();
sending_lc.allowDomain = function(sendingDomain:String) {
return (sendingDomain == "*");
sending_lc.allowInsecureDomain = function(sendingDomain:String) {
return (sendingDomain == "*");
myButton.onRelease = function(){
sending_lc = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", sendMsg.text);
sendMsg.text="Message has been sent"
If you have any other way to do it please suggest me to do that.
Thanks & regards
Sunil Kumar

Hi, go to
Flash Resources , you can
find a java application that can serve policy files to resolve this
problem.

Similar Messages

  • Cross-Domain Scripting in OC4J

    Hi,
    I was wondering if anyone could help us find a way to enable cross-domain requests on our OC4J container.
    We're working on version 10.13.40!
    We would like to expose our web services to other applications inside our organisation (which operate from another url). We would also like to expose them to localhost since we are using them to test our application on our local machines.
    If anyone has any more information on this topic, please let us know!
    Thanks in advance!
    Maarten

    I didn't exactly get you
    Let me explain my problem. I am trying to access a BI Publisher's web service from outside the domain. My BI Publisher is hosted on OC4J. When I call this web service from inside the domain I get the expected response.
    The header of the response does not have Access-Control-Allow-Origin parameter in it. When I run the same code from outside, the status of my XMLHttpRequest object (my browser is mozilla) is set to 0 which means that the server is rejecting my call and I assume this is because this call is made from a place outside the domain.
    I have learned that Access-Control-Allow-Origin parameter controls the script requests which come from a place outside the domain
    I want to know a mechanism to set Access-Control-Allow-Origin parameter in OC4J. I searched the documentation and this parameter is not mentioned. Is the name of this parameter different in OC4J. If so what is it and where is it.
    Thanking you in anticipation of your help
    Regards,
    Vishal

  • Xml Socket  policy to connect to a range of IPS cross domain scripting

    Dear,
    I have a problem with connecting to other servers rather the
    one who has served the swf file.
    i was facing the problem even on the same machine , so i have
    provided the policy file , to be served before opening the
    connection, and it works, but still in IE6 i was just skiping the
    requset-policy-file that is sent by the movie and it works, rather
    the other browsers didn't like this way. At that time i have
    written the code to check for the header , and send back the policy
    file.
    the policy file that i am using is the following:
    PolicyFile = @"<?xml
    version=""1.0""?><cross-domain-policy><allow-access-from
    domain=""192.168.1.100"" to-ports=""843""
    /><allow-access-from domain=""192.168.1.101""
    to-ports=""843"" /></cross-domain-policy>";
    My hope is to be able to connect to 192.168.1.101:843 , and
    my server web is the other ip .
    Best regerds

    Hi, go to
    Flash Resources , you can
    find a java application that can serve policy files to resolve this
    problem.

  • Appending in file and supplying file name at run time using File Adapter

    Hi,
    Can we use File Adapter to write in a file in append mode. i.e. a BPEL process opening a file appending some text and closing the file each time it called.
    Another query is can we create the file at run time with the supplied file name?

    In order to append to a file, we can use Append="true" in the interaction spec for the File/Ftp adapter.
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="/home/adapter/output"
    FileNamingConvention="OutputFile.txt"
    NumberMessages="1"
    Append="true"
    >
    Filename we can specify in wsdl...

  • How to dynamically validate users at run time using connection pools ?

    Hi Folks
    We are facing a peculiar situation . We have established connection to our
    oracle 8i database using Oracle Thin driver using conenction pooling at the weblogic
    server . We set up connection pools at the console to set up connections to thge
    oracle 8i database. However the user name and password is always static when
    we create the connection pool at the console .
    How do i dynamically validate other users using the same connection pool ??
    Eg - The connection pool at design time in the console uses user A and password
    - passA . Now at run time lets say I prompt the user for a login screen and want
    to trap the user id and apssword parameters entered by the user and use it with
    the connection pool created earlier . I tried using the below code snippet :-
    Properties props = new Properties();
    props.put("connectionPoolID", "Oracle_Thin_Driver_Pool");
    props.put("user" , userId );
    props.put("password",userPass);
    myDriver = (Driver) Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = myDriver.connect("jdbc:weblogic:pool", props);
    But always it connects to the database using the userid and password set in the
    console while creating the connection pool . So how i get the connection pool
    to validate my current userid and password entered through the login screen ??
    Thanks in advance
    Keith

    Hey Bob.
    So I assume you're -completely- working with built executables?  You're not going to work in the editor environment to modify your projects at all?
    If this is the case, then having a generic deployment phase at the beginning of the executable (with a "setting up hardware for your app" splash screen) isn't a bad idea -
    Check the binary on the target, ensure it matches the binary you have on the host machine (in case you ever decide to update).
    If they don't match, FTP the new file down to replace the old one.
    FTP the ni-rt.ini file, ensure the startup exe is enabled and is pointing to the correct location.  
    If it's not enabled or not pointing to the correct startup file, modify the .INI file and FTP back to the target.
    If you had to update the INI file, ask target to reboot itself.  Wait 30 seconds, and wait for target to become available again.
    Connect to the target. If you cannot connect, reboot target.  If the target comes back and you still cannot connect to the app, notify user.
    That's almost exactly how we handle installation and deployment via MAX.  
    The big assumption here is that the built executables were all built with the same version of LabVIEW Real-Time.  If not, you'd need a system replication step in there to make sure the proper version of LabVIEW is on the target before launching the built .rtexe.  
    -Danny

  • Cross domain scripting: error #2048

    Hi,
    This is my first entry in this forum but I already found a lot of answers by browsing it. However, altough many references seem to solve the problem I'm hurting on, it doesn't seem to work for me...
    Now, here's the case:
    I made a flash web site that will be hosted on an external web server (let's call it server «www.external.com»).
    My flash needs to get some info from my internal server (let's call it «www.internal.com»).
    On «www.internal.com», I don't have access to the root, only to the folder «myfolder» so my website reads like this: «www.internal.com/myfolder».
    Being aware of some sandbox security issues, I made a crossdomain.xml file and uploaded it to «www.internal.com/myfolder/crossdomain.xml» to provide acces to «www.internal.com/myfolder» from «www.external.com» wich is the following:
    <?xml version="1.0"?>
    <cross-domain-policy>
         <allow-access-from domain="www.external.com" />
         <allow-http-request-headers-from domain="www.external.com" headers="*"/>
    </cross-domain-policy>
    In my flash, there is the code i use to retrieve my info:
    Security.loadPolicyFile("http://www.internal.com/myfolder/crossdomain.xml");
    var myData:URLRequest = new URLRequest("http://www.internal.com/myfolder/myapp/datarequest.cfm");
    var loader:URLLoader = new URLLoader();
    loader.load(myData);
    That's where I get the raging error #2048 in an error #2044 telling me this (excuse the french, my player and I use this language):
    Error #2044: securityError non pris en charge : text=Error #2048: Violation de la sécurité Sandbox : http://www.external.com/flashapp.swf ne peut pas charger de données à partir de http://www.internal.com/myfolder/myapp/datarequest.cfm.
    According to what I saw and read, loading a policy file should allow me to access info. Once I read that the crossdomain.xml file absolutely had to be on the root of the web server, unfortunately, I don't have access to the root.
    There surely is something wrong with what I am doing, anyone has a thought?
    Thanks in advance and sorry for the long message...

    just a guess here - it looks mainly as though you are on the right track, and you are correct if you so not have access to the root, then you must target the crossdomain.xml location as you have specified.
    the one thing i don't see that you have listed here is a call to:
    Security.allowDomain("www.external.com");
    which *might* be the issue

  • How to open directory in run time using java

    Hi All
    i hava problem for open a directory in run time in java.please help me with code.

    Please elaborate what you mean by opening a directory. You can at all times access directory content via the File class.
    File myDir=new File(<pathToDir>);
    File[] directoryContent=myDir.listFiles();

  • How do I call a function using local connection?

    I have 3 Flash banners on 1 page that run through a synched animation together. At the end of the animation, there is a replay button in each of the 3 banners. I want the replay button when clicked in any of the banners to call a replay function in all 3 banners. Is there any easy way to do this? Using localconnection?
    The banners are already using a local connection for the syching of the animation, if that helps.
    Thanks!
    Elliott

    I take it back... I figured it out. I just needed to paste the function below into each of the other banners...
    Thanks! :-P

  • How to create widget Dynamically at run time using action script

    i have created  widget's in my application . but in the main page i want only selected widgets to be displayed..
    lets say i have 3 categories of users for which i've created 3 widget groups i.e. search , update , report. with in these groups i have number of widgets. if user belongs to searchUser category only search widget group has to be displayed in my main page, if user belongs to updateUser group i want to display search and update widget group in my main page and so  on..
    thanx

    Assuming these widgets are always on your main page, you could bind the visible parameter of the widget to variable, and then set that variable depending on the users group.  So you could mark your groups search =1, update =2, report =3.  Have a Bindable variable that you can set corrisponding to the group of the current user
    [Bindable]private var groupLevel:int;
    then in your search widget tag, set the visible parameter like so visible={(groupLevel>=1)?true:false}
    user widget would be visible={(groupLevel>=2)?true:false}
    and report widget visible={(groupLevel==3)?true:false}
    that should allow the widget so appear for the appropriate group.

  • Maintenance scripts never run?/using terminal

    Hi everyone! I am a very new Mac user and am finding at times it to be completely daunting.
    So my question/problem is this: I shut down my computer nightly, and from what I have researched, it does not perform maintenance. I did a Terminal command to find when my script last ran and received this:
    ls: /var/log/*.out: No such file or directory
    Does this mean the scripts have never run? Can I change the default times these are executed?
    I also went into the launchdaemons folder and it is empty. Does that mean anything?
    I could really used a dumb down version of any answers, I have never used a Mac before I bought one, and actually just learned of the Terminal program today. I have been to The X Lab and read through that site, and searched the forum here.
    Sorry for all the questions, I am so confused and terrified of damaging this computer.
    Thank you in advance!

    Welcome To  Discussions irach!
    Here is some additional info.
    As Kappy posted, if you turn the Mac off nightly, the Background Maintenance Tasks, are never run.
    These can also be run, using a Third-Party utility, or manually using Terminal, to run the CRON Commands.
    I use MacJanitor, when necessary.
    INSTRUCTIONS TO RUN CRON MANUAL COMMANDS
    Quit all applications/programs.
    Navigate to HD > Applications > Utilities.
    Double click on Terminal, to open.
    At the prompt, type:
    sudo periodic daily
    Press Return.
    Enter your Admin password when prompted, then press Return.
    This will execute the daily script that is sheduled to run every night.
    When completed, repeat this procedure, but change the command to:
    sudo periodic weekly
    This one rebuilds a database or two, and usually takes somewhat longer to complete. It is scheduled to run once a week.
    Repeat again, with command:
    sudo periodic monthly
    Or they can all be run in one pass, which is preferable, with this command:
    sudo periodic daily weekly monthly
    When the tasks complete, and return to the prompt, you may quit Terminal.
    Restart the Mac, and run Repair Permissions.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    Rerun RP, until the only messages reported, are listed here Spurious Permissions Errors Using: 10.4.x, authored by Michael Conniff.
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • Cross domain load?  It looks all local to me!

    So I'm getting hefty security issues to pop up. This flash
    .exe file runs on its own, but pulls from other servers on the
    network. Its for some internal communications.
    My main .swf (my exe) loads in a local file. the local file
    loads in a flashpaper document. My doc crashes, or I get this...
    *** Security Sandbox Violation ***
    SecurityDomain '
    http://devs/pl/PPT/PPTtest2.swf'
    tried to access incompatible context
    'file:///C|/Documents%20and%20Settings/jmilan/Desktop/pl%5FII%5FFLAs%5Fv2/PPT.swf'
    *** Security Sandbox Violation ***
    SecurityDomain '
    http://devs/pl/PPT/PPTtest2.swf'
    tried to access incompatible context
    'file:///C|/Documents%20and%20Settings/jmilan/Desktop/pl%5FII%5FFLAs%5Fv2/PPT.swf'
    *** Security Sandbox Violation ***
    (it goes on forever)
    I've been looking through tutorials, and trying various
    things, but I feel that maybe I know too little about this to be
    making an accurate judgement (none of them are "really working").
    I tried the System.security.allowDomain, but I wonder why i
    need to do this. I use http: because its all local network, but
    users don't always have permission-- so I haven't been using the
    direct server names.
    Any ideas?

    Because the swf file is on a server (
    http://devs), it will treat local files as
    a different domain.
    I have been trying to do the same thing, but with a local XML
    file. I never was able to get it working myself, but you can see
    some of the steps you might try here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1229298

  • Limit the Oracle query run time using Pro*C

    All,
    I would like to limit my sql query for say a duration of only 10-15 secs. I do not want to kill the oracle process but send a signal to the C program with some message that " its taking more time"
    Is there an param which I can use it to limit, without killing or shutting down the oracle session or process.
    Thanks in advance

    My answer is only for 1. problem (about ORA-01458)
    I think that you use declaration for cursor C0 with a varchar
    variable before you ininitialize length (member .len of varchar
    structure) of this variable.
    It's famous that many errors come from uninitialized varchar
    variables in Pro*C.

  • Mx:Script function + run time error

    Hi,
    I am calling an mx:Script function from a combo box in Flex 2
    in a "change" event..... e.g:
    <mx:ComboBox id="discountType_cb"
    change="changeDiscountType()">
    in the function I am changing the "text" values of some
    labels within the application depending on the selected value of
    the combobox etc..... e.g:
    public function changeDiscountCode()
    if(discountCode.value == "abc")
    validityDates.text="def"
    The application runs without any errors and the function
    seems to work and do what is expected to do... although I get the
    following runtime error when the combobox is changed:
    "TypeError: Error #1009: Cannot access a property or method
    of a null object reference."
    Any suggestions?
    Jon

    oh yeah, sorry - I miss-printed the combobox... it is meant
    to be:
    <mx:ComboBox id="discountCode_cb"
    change="changeDiscountCode()">
    thus the same same question / problem applies but with the
    corrected combobox
    Jon.

  • A tree-view in HTML page with nodes generated with java script in run time is not visible in the UI Automation Tree. Need Help

    I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
    <iframe>
    <table>
    <tr>
    <td>
    <treeview id="tv1"></treeview>
    </td>
    </tr>
    </table>
    </iframe>
    In UIA, i am able to traverse till the tree view but not able to see it.
    I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement. 
    I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element. 
    i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
    But trying the reverse way like navigating from root element to tree node, was not getting the element for me. 
    Please help me with suggestions or inputs to resolve this issue. 

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

  • Ui configuration at run time using role config key and object type

    Hi experts,
    Let me start by admitting that I am very new to the crm webui. I have a requirement in which I need to create a few z business roles and unique role config keys for them. And I have been given some requirements like below.
    - Access to Account, Service Request, Knowledge Article and FACT sheet data
    - Able to display all service requests.
    below is the processing logic that I have been told.
    Using the role config key, different view configurations would be created for respective components in
    the component workbench.
    Based on the business role, respective role config key would be picked up and the corresponding
    view would be displayed on UI.
    In addition to this, in the IMPL class of the component work bench, DO_CONFIG_DETERMINATION
    method could also be used to specify which role config should be picked up.
    Do they mean that using same role config key, I need to create more than one UI configuration? I was also told by some one that I need to create the configuration according to ui objects and sub object and then inside the  DO_CONFIG_DETERMINATION methode, I can check the role config key and hard code the ui object and the sub object. But I do not know how to create them.
    Could anyone tell me from where I can start and how to achieve this task?
    I apologize if my question is very basic.

    Do they mean that using same role config key, I need to create more than one UI configuration? I was also told by some one that I need to create the configuration according to ui objects and sub object and then inside the DO_CONFIG_DETERMINATION methode, I can check the role config key and hard code the ui object and the sub object. But I do not know how to create them.
    Could anyone tell me from where I can start and how to achieve this task?
    I apologize if my question is very basic.
    You can do the following
    a) Go to the view you want to create a new configuration.
    b) Choose 'Copy Configuration' .
    c) There you would be asked to enter the Role Config Keys , Object Name & Sub Object Name. You can choose your own names for Object Names & Sub Object Name.
    d) go to DO_CONFIG_DETERMINATION. There based on your logic you can load the configurations this way
            IF (your_condition) EQ abap_true.
              CALL METHOD me->set_config_keys
                EXPORTING
                  iv_object_type          = 'your_object_type'
                  iv_object_sub_type      = 'your_sub_obj_type'
                  iv_propagate_2_children = abap_false.
    Regards
    Kavindra

Maybe you are looking for

  • No Data Found for SQL query

    Hello, I have a simple SQL query in a report. select       null as "Complete",          a.col1,          a.col2,          a.col3,          a.col4,       b.col2 from      TableA a, TableB b where   a.id = b.idThere is a known issue in apex 4.0 that is

  • How to Get the Login Window and/or Bypass Login Items?

    Greetings, folks! This is a silly question, but the old standby of "hold down the shift key" doesn't work in 10.6.1: What key(s) need to be pressed to get the LogIn window and then after LogIn, to bypass LogIn Items? Thanks!! Richard Fairbanks

  • OWB 9.2 Client Crash

    We installed OWB 9.2 (on Windows NT 4.00.1381) and the client is crashing when we login. The repository is 9i. Any idea what could be the issue here. It generated the following logfile: An unexpected exception has been detected in native code outside

  • Finding Backed Up Parts

    Had to reinstall my OS and neglected to click the save user settings. Doh. Everything is backed up on Time Machine, but I can't find my 1) Firefox bookmarks, and 2) Addresses for Address Book. Can anyone direct me in finding and updating those? I'm a

  • Access to BEX Query

    Hi, A user has been asking for access for running one of the query in BEX designer. How do you grant access to a user for running a particular query in designer. Can some please guide me. Thanks.