Communications between 2 separated .swf files AS 3

Hello,
I have spend hours searching it over internet but i have found only codes which solves this problem in Action Script 2.0 like this http://blog.circlecube.com/2008/03/tutorial/local-connection-actionscript-communicate-betw een-seperate-flash-files-tutorial/
and i want to solve it out with action script 3.0
My problem is that i simply want to communicate between two separated .swf files in one HTML page.
So if you have any ideas i would appreciate any help.
thx

You can talk between movies using javascript as the middleman. Here's a link that provides some information on that for both AS2 and AS3...
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683
It can be a little confusing to make it work, so take your time with it.

Similar Messages

  • Trying to properly code a menu with buttons that can go back and forth between external swf files

    I have a project I've been working on that, when properly coded, has a "main menu" with 4 "doors" (buttons). When the corresponding buttons to these "doors" are clicked, it should go to and play an external .swf file. If that doesn't make sense, think of a DVD menu. You click play movie, it plays the movie. When the movie is over, there's two buttons on that swf file to either play the movie over or go back the main menu, which is an external .swf file (Remember, we go to the movie from the menu, which is a seperate file). So far, the buttons work. The menu works. However, from the movie, at the conclusion, when I click the button to go back to the main menu, it displays the movie clip and the buttons, but none of the buttons work. I'm starting to think it has to do with the fact the main menu was written in AS3 and the movie was made in AS2. If anyone can assist me in being to able to keep both files and still navigate between the two, being able to bring up the menu from the movie and be able to play the movie again, and so on and so on, that'd be GREAT. I'm somewhat of a noob to Flash, but I learn quickly and I'm open to any suggestions. Here's the code for main menu, which I guess acts as the parent file, and the movie. If I get this to work, I essentially would duplicate the same actions for the other 4 doors, once I complete the environments for them. Thanks
    Main.Fla/Swf (written in AS3)
    (This is the action on the first frame, that has all the buttons. For this question, I'm just trying to properly code for 'Door4', which is the "door" to the movie.)
    import flash.display.Loader;
    stop();
    var myLoader1:Loader=new Loader ();
    Door4.addEventListener(MouseEvent.CLICK, jayzSwf);
    function jayzSwf(myevent1:MouseEvent):void
              var myURL1:URLRequest = new URLRequest("jayzspeaks.swf");
              myLoader1.load(myURL1);
              addChild(myLoader1);
              myLoader1.x = 0;
              myLoader1.y = 0;
    Movie.Fla/Swf (written in AS2)
    (This is action on the button that returns to the menu)
    on (release) {
              this.createEmptyMovieClip("container",this.getNextHighestDepth());
              container.loadMovie("main.swf");

    At least you're going in the correct (mis)direction. You have AS3 loading AS2. So that's not a huge hurdle.
    I believe all you really need to do is send your Main.swf a signal that the content it loaded (e.g. jayzspeaks.swf) is done and you want to get rid of it.
    The code I pointed you to asks you to (upon download and import then) instantiate it in both AS2 and AS3. They give a very simple easy to understand line of code.
    // as2, load this in jayzspeaks.swf
    var myBridge:SWFBridgeAS2 = new SWFBridgeAS2("connectionID", clientObj);
    // as3, load this in main.swf
    var myBridge:SWFBridgeAS3 = new SWFBridgeAS3("connectionID", clientObj);
    Make sure the connectionID matches between them. Set it to whatever you want.
    When you're done with your as2 loaded content you'd send a signal (over localconnection) back to the AS3 Main like they say:
    myBridge.send("someFunctionToUnloadContent");
    myBridge.close();
    You'd need to make the as3 function "someFunctionToUnloadContent()" (example purposes only name) and it should unload the jayzspeaks.swf that was loaded in the loader.
    Make sure you get that close in there so you don't drill up a bunch of localconnection objects just like the simple source code says.

  • Communicating between two javafx files

    hi,
    i have two javafx files and i want the two to communicate
    that is on pressing a button in one i want the control to be transffered to the other...
    Hw can i do this,
    can any one help

    Hi,
    If you mean communicating between two database, you can create DATABASE LINK.
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_5005.htm
    Thanks

  • Communication between separate .fla files?

    I want to create a site which has a separate navigation menu
    .fla file so the menu anims do'nt refresh everytime a new scene
    loads... Is there a way I can communicate between the separate
    files? I am using the loadMovieNum script to load the menu into the
    main site.
    Thanks to anyone who can help me!!

    Well, first of all, make sure you don't get .fla files
    confused with .swf files. .fla files don't do anything, they are
    the authoring files for the Flash application, the .swf files are
    the one you watch in the Flash Player(in a browser).
    If you are loading a .swf into another .swf using
    loadMovieNum, you can access it by using the _level1(or whatever
    level you loaded it into). _level0 is always your main movie.
    That being said, most people prefer to use
    MovieClip.loadMovie instead, as it gives you more control, and
    loadMovieNum is a little more prone to problems.

  • Navigation Between multiple SWF files

    ok so I'm still working on this project and it got literally huge... at least huge enough to consume all of my 3 GB RAM memory and crash my Adobe Flash CS4. Anyway, I decided to put the site on several swf's but the problem is that I've never done that before so I have no idea how to navigate between them.
    Basically I have a main swf file, inside it there's an image (let's say its instance name is "projects_btn") that should take me to "Projects.swf", and I want to click on an "x" sign (its instance name is "xSign_btn") inside Projects.swf that would take me back to the main swf file "Bnaider2.swf".
    Any suggestions? thanks in advance...

    1. ok that link was very useful, thanks alot. project.swf is loading properly. But I donno what's going wrong, it just doesn't unload the project.swf when I click the xSign here's the code, maybe I've screwed something up:
    //On the main timeline of the project.swf file:
    xSign.addEventListener(MouseEvent.CLICK, xClickHandler);
    function xClickHandler(e:MouseEvent):void
         dispatchEvent(new Event("backHome"));
    // On the main time line of Bnaider.swf file:
    projectsImg2.addEventListener(MouseEvent.CLICK, onProjectsClick);
    function onProjectsClick(e:MouseEvent):void {
         var urlReq:URLRequest=new URLRequest("project.swf");
         var proLoader:Loader = new Loader();
         proLoader.load(urlReq);
         proLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderHandler);
         function loaderHandler(e:Event):void {
              addChild(proLoader);
         function loaderCompleteHandler(event:Event) {
              (event.currentTarget.content as MovieClip).addEventListener("backHome",xClickHandler);
         function xClickHandler(event:Event):void {
              proLoader.unload();
    2. the projects section of my site is divided into four swf's. First "project.swf" should load when I click on projectImg2 inside Bnaider.swf which is working fine so far (but doesn't unload once I click the xSign). Then I want "project2.swf" to load/run once I click on a button instantiated as "nextSwf" inside "project.swf". And on project2.swf as well, there's an xSign that once clicked  it should take me back to Bnaider.swf... and the same thing with the other two swf's. So... I donno, this is really getting too complicated for me, but if anyone could help I would really appreciate it cuz the whole project is due this Saturday and I've still got a few more things to work on as well... Thanks in advance...

  • Establishing a socket connection between a .swf file and a socket-test program (TCP/IP builder - Windows), in AS3.

    I have an issue with a college project I'm working on.
    Using Actionscript 3, I made a simple .swf program, an animated, interactive smiley, that 'reacts' to number inputs in a input-box.
    For the sake of the project, I now need to make the framework for establishing a socket connection with the smiley .swf, and another program.
    This is where I encounter issues. I have very little knowledge of AS3 programming, so I'm not certain how to establish the connection - what's required code-wise for it, that is.
    To test the connection, I'm attempting to use the "TCP/IP builder" program from windows, which lets me set up a server socket. I need to program the .swf file into a client - to recognize it, connect to it, then be able to receive data (so that the data can then be used to have the smiley 'react' to it - like how it does now with the input-box, only 'automatically' as it gets the data rather than by manual input).
    My attempts at coding it are as follows, using a tutorial (linked HERE):
    //SOCKET STUFF GOES HERE
        var socket:XMLSocket;        
        stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // This one connects to local, port 9001, and applies event listeners
        function doConnect(evt:MouseEvent):void 
        stage.removeEventListener(MouseEvent.CLICK, doConnect); 
        socket = new XMLSocket("127.0.0.1", 9001);   
        socket.addEventListener(Event.CONNECT, onConnect); 
        socket.addEventListener(IOErrorEvent.IO_ERROR, onError); 
    // This traces the connection (lets us see it happened, or failed)
        function onConnect(evt:Event):void 
            trace("Connected"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            socket.addEventListener(DataEvent.DATA, onDataReceived); 
            socket.addEventListener(Event.CLOSE, onSocketClose);             
            stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); 
        function onError(evt:IOErrorEvent):void 
            trace("Connect failed"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // Here, the flash tracks what keyboard button is pressed.
    // If 'q' is pressed, the connection ends.
            function keyUp(evt:KeyboardEvent):void 
            if (evt.keyCode == 81) // the key code for q is 81 
                socket.send("exit"); 
            else 
                socket.send(evt.keyCode); 
    // This one should handle the data we get from the server.
            function onDataReceived(evt:DataEvent):void 
            try { 
                trace("From Server:",  evt.data ); 
            catch (e:Error) { 
                trace('error'); 
        function onSocketClose(evt:Event):void 
            trace("Connection Closed"); 
            stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); 
            socket.removeEventListener(Event.CLOSE, onSocketClose); 
            socket.removeEventListener(DataEvent.DATA, onDataReceived);
    Trying to connect to the socket gives me either no result (other than a 'connection failed' message when I click the .swf), or the following error:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/Marko/Desktop/Završni/Flash%20documents/Smiley%5FTCP%5FIP%5Fv4.swf cannot load data from 127.0.0.1:9001.
        at Smiley_TCP_IP_v4_fla::MainTimeline/doConnect()[Smiley_TCP_IP_v4_fla.MainTimeline::frame1:12] 

    Tried adding that particular integer code, ended up with either errors ("use of unspecified variable" and "implicit coercion") , or no effect whatsoever (despite tracing it).
    Noticed as well that the earlier socket code had the following for byte reading:
    "sock.bytesAvailable > 0" (reads any positive number)
    ...rather than your new:
    "sock.bytesAvailable != 0" (reads any negative/positive number)
    Any difference as far as stability/avoiding bugs goes?
    So then, I tried something different: Have the program turn the "msg" string variable, into a "sentnumber" number variable. This seemed to work nicely, tracing a NaN for text (expected), or tracing the number of an actual number.
    I also did a few alterations to the input box - it now no longer needs the 'enter' key to do the calculation, it updates the animation after any key release.
    With all this considered and the requirements of the project, I now have a few goals I want to achieve for the client, in the following order of priority:
    1) Have the "sentnumber" number variable be recognized by the inputbox layer, so that it puts it into the input box. So in effect, it goes: Connect -> Send data that is number (NaN's ignored) -> number put into input box -> key press on client makes animation react. I optionally might need a way to limit the number of digits that the animation reacts to (right now it uses 1-3 digit numbers, so if I get sent a huge number, it might cause issues).
    - If the NaN can't be ignored (breaks the math/calculus code or some other crash), I need some way of 'restricting' the data it reads to not include NaN's that might be sent.
    - Or for simplicity, should I just detect the traced "NaN" output, reacting by setting the number variable to be "0" in such cases?
    2) After achieving 1), I'll need to have the process be automatic - not requiring a keyboard presses from the client, but happening instantly once the data is sent during a working connection.
    - Can this be done by copying the huge amounts of math/calculus code from the inputbox layer, into the socket layer, right under where I create the "sentnumber" variable, and modifying it delicately?
    3) The connection still has some usability and user issues - since the connection happens only once, on frame 1, it only connects if I already have a listening server when I run the client, and client can't re-connect if the server socket doesn't restart itself.
    I believe to do this, I need to make the connection happen on demand, rather than once at the start.
    For the project's requirement, I also need to allow client users to define the IP / port it's going to connect to (since the only alternative so far is editing the client in flash pro).
    In other words, I need to make a "Connect" button and two textboxes (for IP and port, respectively), which do the following:
    - On pressing "Connect", the button sets whatever is in the text boxes as the address of the IP and port the socket will connect to, then connects to that address without issues (or with a error message if it can't due to wrong IP/port).
    - The connection needs to work for non-local addresses. Not sure if it can yet.
    - On re-pressing connect, the previous socket is closed, then creates a new socket (with new IP/port, if that was altered)
    It seems like making the button should be as simple as putting the existing socket code under the function of a button, but it also seems like it's going to cause issues similar to the 'looping frames' error.
    4) Optional addition: Have a scrolling textbox like the AIR server has, to track what the connection is doing on-the-fly.
    The end result would be a client that allows user to input IP/Port, connects on button press (optionally tracking/display what the socket is doing via scrollbox), automatically alters the smiley based on what numbers are sent whilst the connection lasts, and on subsequent button presses, makes a new connection after closing off the previous one.
    Dropbox link to new client version:
    https://www.dropbox.com/s/ybaa8zi4i6d7u6a/Smiley_TCP_IP_v7.fla?dl=0
    So, starting from 1), can I, and how can I, get the number variable recognized by "inputbox" layer's code? It keeps giving me 'unrecognized variable' errors.

  • Full motion recording in separated file then the main swf file . Why ?

    Dear all,
    When you publish your projet with
    captivate 3 , now the full motion recording sequences are in
    separated .swf files ...
    I would have prefer to only have one .swf file with the
    content and one with the skin as it was the case in
    captivate 2 .
    Is there an option I could change to only have the swf file
    and the xx_skin.swf file
    only ?
    Imagine the mess I would have on my learning web site if I
    had more then one swf file for each learning sequences (as I store
    all .swf file in the same folder) :(

    Hi all
    What kiwikangaroo listed is John's method. Since the basic
    process has already been outlined, I'll add some things that should
    be considered as well as a caveat or two.
    First, the existing project should be published to a
    temporary folder. When publishing, it is rather critical that you
    ensure that you are publishing for a Flash 7 target. I believe if
    you choose Flash 8 or 9, the process will fall apart.
    Once you have done this and are at the point where you are
    inserting blank slides, make sure each blank slide is timed exactly
    matching the slide with the Full Motion clip. Then you insert the
    matching Full Motion clip from the temporary folder onto the blank
    slide and delete the original. This will need to occur for all
    slides containing full motion clips.
    There are a few animations out in the gallery that if used,
    will also cause additional .SWF files to be created. This is
    because the animations that do this were published as Flash 8 or 9
    and not 7 or earlier. I've sorted the ones that embed fine and the
    ones that don't. So if you run into this issue, you either don't
    use that particular animation, or you use something like SoThink
    SWF decompiler (or open the .FLA) and recompile it using Flash 7 as
    the target. That is, assuming you have Flash available and know how
    to use it.
    Cheers... Rick

  • Loading class from an external .swf file

    Hi,
    My flash application has lots of resources which will change all the time. In order to keep the the user from having to download my main .swf file over and over again, and in order to keep the main file's size low, I would like to put the resources into separate .swf files and load them dynamically from a url using a Loader.
    Once downloaded I would like to extract the classes that are in the resource swf and use them in the main swf. Can anyone share some code for doing this? Note that I am not just interested in using a symbol from the resource swf. I would like to use a class, with all of its methods and everything, and my main swf does not contain the class definition. Only the resource swf does.
    Thanks!!

    This is a great question for flash programming.
    And when you know the answer to this, you are likely to use it on daily basis like the top level programmers  of an agency.
    ApplicationDomain is your answer and the adobe docs has a chapter on this.
    ApplicationDomain is where all of your classes will be loaded into and when you use a loader you have the ability to target this with the laoderContext.
    AplicationDomain.currentDomain loads all classes into the main app and if your main app already has these classes, then the app uses the parents classes
    new Application.Domain() specifies a seperate repo of classes that are loaded in so that classes in the main app will not be confused by the classes in a loaded swf. that refer to the same names.
    this locks down the communication between the swfs but will use the newer updated classes on the child when a child is loaded in with the same class names as the parents.
    new ApplicationDomain(currentDomain)  will enclose a new repo with the parent repo of the class definitions.

  • Is my Captivate 3 SWF file 508 compliant?

    On the publish screen I did check the 508 box when I
    published the file but what does that really mean?
    I didn't add and text to the "slide accessibility text"
    section on the slides so if I understand it right if they use a
    reading program of some sort it will read the text on the
    powerpoint slide I imported but my audio obviously won't be read
    unless I convert my audio into text and then paste it into each
    slide?
    My slides have a "next" button that doesn't appear until my
    audio has finished.
    This is a new area to me and am under the gun to answer the
    question. I would appreciate any help.

    Hi Ed
    What that option does is to enable communication between the
    .SWF Captivate produces and a Screen Reading application that
    visually impaired users may use. What is fed to the Screen Reading
    software is what you enter into that Slide Accessibility Text area.
    If you already have audio narration, I think it's a toss up
    as to the value the screen readers will offer.
    Cheers... Rick

  • Communication between Applications

    I was wondering would it be possible to communicate (reference Vairables, Method, Functions etc..) between Applications. What I want to do is have my 1st Application return some variables which the 2nd Application will use to construct a Bubble Chart. If this is possible what is the code to reference between the Applications?
    Thanks.

    I made an attempt to try and communicate between 2 .swf files using the LocalConnection, but am not able to get it working. To recap what I was trying to do was:
    1st Application (.swf file) this application after a series of questions are answered I have functions that will calculate the values that will provide the data for the Bubble Chart, my 2nd Application (.swf file).
    Below are my functions that calculate the data for the ArrayCollection to the Bubble Chart. So Curr_Evaluation is what needs to be sent to the 2nd Application.
    public trace("NC is: " +Curr_Evaluation.getItemAt(0).NetworkChance); } public function setCurrEvalNI():void { Curr_Evaluation.getItemAt(0).NetworkInvestment = finalNetInvest.toFixed(2); trace("NI is: " +Curr_Evaluation.getItemAt(0).NetworkInvestment); } public function setCurrEvalNP():void { Curr_Evaluation.getItemAt(0).NetworkPotential = finalNetPot.toFixed(2); trace("NP is: " +Curr_Evaluation.getItemAt(0).NetworkPotential); } function setCurrEvalNC():void { Curr_Evaluation.getItemAt(0).NetworkChance = finalNetChance.toFixed(2); 
    I have a Submit Button on the 1st Application that when clicked I want the data to be sent to the 2nd Application. I have already got a function that handles the click for another purpose as shown below.
    private "Complete with this Process?", "Please confirm:", Alert.YES | Alert.NO, this, submitHandler); } private function submitHandler(evt:CloseEvent):void { if (evt.detail == Alert.YES) { setCurrEvalNP(); setCurrEvalNC(); setCurrEvalNI(); ExternalInterface.call( "SubmitPresentation", "True"); } } function onBtnSubmit(evt:Event): void { Alert.show(On the 2nd Application my code is as shown below
    If anyone can help with putting together with the code that I would need on my 1st and 2nd Application to make the communication between them, it would be appreciated.
    Thanks

  • .swf file as an iView

    Dear SDN Community,
      I have .swf file(demo recording) which was required to put it in the Portal as an iView. For this I have created a folder named Demo in Public Folders in "KM Content" and copied the .swf file. Now, I got the URL for the doucment I have copied in the demo folder and created a URL iView with the URL being /irj/portal/..../../demo.swf.
       This works fine in Firefox but when I tried to open this iView in IE it opens with the URL http://<<server>>:<<port>>/irj/portalapps/com.sap.portal.navigation.toplevel/html/child.html and closes in 15 sec. Can you please advice me here how I can display the .swf file as an iView in IE.
    Thanks!
    Vivek.

    Hi,
    As already said use KM Doc IView, also check these threads:
    https://forums.sdn.sap.com/thread.jspa?threadID=462400
    Normally swf files can also be embedded into HTML files for better control.
    Check this for more:
    https://forums.sdn.sap.com/thread.jspa?threadID=378379
    Regards,
    Praveen Gudapati

  • Communicating between swf files

    movie1.swf has a loader component named myLoader.
    can movie2.swf contain a button instance that will tell
    movie1.swf.myLoader what to load?

    It shouldn't. If sub.swf is truly loaded into _level1 then it
    has no _level0, really this is correct!
    Are you sure you are loading into a _level and not onto a
    depth? Many folks mix the two up.
    If you are having a lot of trouble with this it is generally
    a good idea to set your current project aside for the moment and
    start with a fresh slate. I created two swf files.
    test1.swf has a blue square and code to load an external clip
    into _level1 the code is:
    loadMovieNum("test2.swf",1);
    test2.swf has a movieclip instance of a red circle and the
    following actionscript:
    myClip.onRelease=function(){
    _level0._alpha=50;
    When test1.swf is run I see both my blue square and my red
    circle. When I click on the red circle only the blue square (the
    art work on _level0 from the original swf) is made 50 percent
    opaque. The red circle remains as it was.
    You might want to try a similar test, starting with something
    like I have and moving it toward what you are trying to achieve.
    I'm not sure I understand your
    _level0.myVariable.goDoThis()
    syntax. myVariable seems like a property and properties don't
    usually have methods so I don't quite get it. If myVariable is a
    variable defined in the sub.swf then maybe you need this:
    _level0[myVariable].goDoThis();
    ???

  • Communication between swf

    HI,
    I have a communication problem between to SWF. Here is my code, SwfA is the caller :
    Shared interface between the 2 Swf :
    public interface ItfA {
      // some code
    In the second Swf, SwfB, the document class :
    public class MainB extends MovieClip {
      private var a:Itfa;
      public function start(_a:ItfA) {
        a = _a;
        // etc
    In the first Swf, SwfA:
    public A implements ItfA {
      var mLoader:Loader;
       public function startLoad()
        mLoader = new Loader();
        var mRequest:URLRequest = new URLRequest(“B.swf”);
        mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,  onCompleteHandler);
        mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onprogressHandler);
        mLoader.load(mRequest);
      public function onCompleteHandler(loadEvent:Event)
           var mainB = mLoader.content;
           mainClip.addChild(mainB);
           mainB.start(this);
      public function onprogressHandler(mProgress:ProgressEvent)
        var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
        trace(percent);
    My problem :
    When I test in the fash environment (ctrl + enter), there is no problem, but in my browser it failes and says that A is not an ItfA (TypeError: Error #1034)
    Any idea ?
    Thanks

    Note :
    After some more tests, i've got an error in this case too : if i'am waiting an A object in the second Swf and if the main Swf sends an A object !
    The error :
    TypeError: Error #1034: Type Coercion failed: cannot convert com.test::TyrusGame@6c81f71 to com.test.TyrusGame.
    It's strange because the message seems to mean that the classes are not the same, and they are, because they are from a common file. A and B uses as3 files in a common folder and this folder is added to the classpath of the two projects.

  • Comparision between Modules and SWF files

    I've used modules and SWF files in my flex apps but don't
    seem to see or figure out what the basic difference between the two
    is.
    I'm interested in comparisions *excluding* file size. For
    instance:
    When would one use SWF files instead of Modules?
    Are there things possible/not possible when using one or the
    other?
    Any other pros/cons?

    Obviously you can use Application SWFs to break a large
    application into dynamically loaded parts. Modules were created to
    address the ease-of-use issue. Module SWFs provide an easier
    mechanism for communication between the Modules and main (shell)
    application SWF. Modules also give us a way to enhance that
    mechanism in the future which would be limiting if working solely
    with Applications.
    Further, Modules can be reduced in SWF-size compiling them
    against the symbols loaded in the shell application. This makes
    them much smaller and faster to download. That was possible with
    Application SWFs by using Runtime Shared Libraries. However, using
    RSLs is tedious compared to using Modules.
    I have an example of using Modules on my blog. The example
    covers the size optimization of Modules as well as communication
    with Modules.

  • Communication between thread in the same process using file interface.

    Hi,
    I am developing  driver and i need to communicate between two thread.
    >can anyone guide me on implementing communication between two thread in the same process using File Interface. First thread will be driver and second will be application.I need to send IOCTL like commands using File interface ie is WriteFile(),ReadFile()
    from Host process to driver through file-interface(which run's in driver context).Host process should not be blocked for the duration of the driver to process the command.
    >File-interface will run in driver context and it will be responsible to receive command from application and pass it to the driver.
    what are the complexity introduced?
    >Can anyone also give me the link/reference to get more information on this topic?
    >How to replace IOCTL command's for instance baud _rate change command with a file interface for example with IRP.

    Here  is the detailed query:
    Hardware Abstraction Layer will interact with Driver(Both will be running in complete different process) .there is a IOCTL for command and  File interface for read and write.
    My requirement is:
    Both should run in the same process so HAL will run as one thread and driver as another thread in the same process .I don't want HAL to wait for completion of request and also i don't want driver to be blocked .
    We are planning to use a File Interface for communication between Hardware abstraction layer and Driver
    HAL will send the command or read/write operation to a file interface and driver will get the command or read/write request from the File interface
    There is a flexibility to change Hardware Abstraction layer and also the Driver
    Is it possible to use IOCTL between two thread under same process? if not what other options do we have.
    Can we use File interface to  send command (like IOCTL) between two thread?

Maybe you are looking for

  • Issues after IOS 8.0.2 Update.

    copy and pasting is difficult or impossible. Hyperlinks take 2-3 clicks to load. Tabs refresh too often to make working in tabs reasonably useful at all. Typing has lag between what i type and appearing on the screen.

  • How to save session state for a text item

    hi @averyone, i designed in interactive report with one apex_item.text field, let's name it "count" normally the report has more then one pages. the report should work like a kind of a shopcart. the user enters some data into "count" and moves on to

  • T500 2089 : How do I determine the make and model of the motherboard?

    I do not the identity or make or model of my laptop's motherboard.  My goal is to upgrade the Intel CPU from 2.53 MHtz to something closer to 3.0 Mhtz.  Can I discover this information within hte system, or on the exterior of the laptop? Also, I want

  • Won't open in Windows 7 w/Details

    I have tried everything to install and open iTunes on my computer. Windows 7 Ultimate 64 bit. It installs correctly and opens the agreement but after I agree and click okay - it goes away and nothing more happens. Task manager says itunes is running

  • Can't Change Identity Plate - Help

    I can't seem to change my Main screen Identity plate, Have tried to follow tutorials, walkthroughs etc. still no luck.. The problem that I seem to have is that when I enter the ID Plate setup screen and click on (Enable Identity Plate) button and the