Marshall plan: how to pass data between the main field and sub-application

Hello

I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

Thank you

SW

Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

see if he thinks there's a swfBridge.

Tags: Flex

Similar Questions

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • How to check latency between the ESX host and SAN

    How to check latency between the ESXi host and SAN

    Hi friend

    Below KB will solve your need:

    VMware KB: Using esxtop to identify problems of performance of storage to ESX / ESXi (several versions)

    Under discussion can help you get more insight:

    Best values LVAD/cmd (ESXTOP)?

    Learn ESXTOP @ latency:

    vCenter and Esxtop to storage i/o bottlenecks to avoid

    Very detailed blog on ESXTOP:

    http://www.yellow-bricks.com/ESXTOP/

  • messages between the main thread and the FX application thread

    I run a thread of the Application of FX for a main thread using Application.launch [described here: {: identifier of the thread = 2530636}]

    I try to have the application thread return information on the main thread, but Application.launch returns void. Is there an easy way to communicate between the main thread and the thread of the Application?

    So far, I googled and found:
    -MOM (Message Oriented Middleware)
    -Sockets

    Thoughts/ideas/examples are appreciated--especially examples ;)--now I try to use Sockets to show/hide the application and data transmission.

    What is the preferred method? Are there others that I did not find (gasp) via Google?

    Dave.

    Published by: cr0ck3t on April 30, 2013 21:04

    Published by: cr0ck3t on April 30, 2013 21:05

    Is there an easy way to get a reference to these objects to both the main thread and the thread of Application FX - called via Application.launch () since the main thread? Or what I need to use Sockets or MOM?

    Not much to do with the concurrent programming is what I would call easy. It looks easy - but it's not.
    You can do kind of what you're describing using Java concurrency constructs without using sockets or a package of Message Oriented Middleware (MOM).
    With the Java concurrency stuff you really implement your own form or MOM light.
    If you have quite an application is complex with many messages of comes and goes, then a sort of package for MOM such as the camel and ActiveMQ (http://camel.apache.org) is useful.
    ---------
    You can find a sample of the various interactions of thread with JavaFX here:
    https://gist.github.com/jewelsea/5500981 "Simulation of dwarf dragons using multiple threads to eat."
    Related code is just demo-ware to try different competitive access facilities and not necessarily a recommended strategy.
    If your curiosity, you can take a look and try to work out what it is, what it does and how it does.
    The main reason followed is that of a blocking queue:
    http://docs.Oracle.com/javase/6/docs/API/Java/util/concurrent/BlockingQueue.html
    ---------
    Note that once you call launch of the main thread, no subsequent statement in the main method will be different until the JavaFX application terminates. If you can't start from the main thread and communicate with the main thread JavaFX application. Instead, you need to spawn another thread (or a set of threads) for communication with the JavaFX application.
    ---------
    But really, in most cases, the best solution with the simultaneity is not care at all (or at least as little as possible). Write everything in JavaFX, use the animation of JavaFX framework to time related things and the simultaneity of JavaFX utilities for when you really need multiple interaction of wire.
    http://docs.Oracle.com/JavaFX/2/threads/jfxpub-threads.htm
    ----------
    For additional assistance, you may be better off describing exactly (i.e. really specific) what you're trying to make in a new question, perhaps with a solution of the sample in a http://sscce.org NBS

  • What is the relationship between the main timeline and timelines of symbol in Adobe Flash Professional CC?

    I am new to Adobe flash and tried to create an E-card for a class. My teacher said that it is better just to have a keyframe for each layer in the main timeline and do all the clips of animation and film on the deadlines of each symbol. I'm having a hard time to understand how it works. To illustrate my confusion, let's start with an example.  I have a kite I want to start flying to frame 20. The kite is a symbol, so I create movement to 20 image interpolation in chronology of the wing. 20 on the symbol Timeline frame occurs at the same time as frame 20 of the MAIN scenario, or are they completely separate instances of time?

    Part of my mission, is should I use code snippets to add an element of interactivity to the Ecard. My confusion about the timeline affects my ability to do so. My teacher said that you need a stop on the first keyframe code to make sure that things will not start before you click the play button. Can I put the stop action on the main timeline or in the timeline of each symbol, or both?  Let's say I want to create a button that makes the kite flies when I click it. Where to play action 'go to and play', in the Assembly of the wing?

    I would greatly appreciate any help from the community. I'm the kind of person who needs to understand how things work. I searched for days, watch videos and read articles, but I still need to find a resource that effectively dissolved my confusion on this subject. So if anyone knows of any tutorials that explain how the main timeline and symbol timelines coincide, please share them with me. Thank you very much for your time.

    (P.S. are CC Animate Adobe and Adobe Flash Professional CC the same?)

    Thank you both for responding. Yes, your answers were useful, but a bit Advanced. I hope that you don't mind me asking a few follow-up questions.

    For Pete47-

    So I put my stop() in the main timeline. How the actionscript in the main timeline code works on the chronology of the wing if the two are separate?  Why not put the ActionScript on chronology of the wing? Clearly, there must be an interaction between the main timeline and symbols, right?  When you say "you can drag the symbol on the main timeline and it will run when you start", what do you mean by that? Like GETTING started, in the main timeline or in the scenario of the symbol? As you can see I am very confused by there!

    For Colin.

    I thought that Pete said you want to only have a keyframe in the main timeline. Then, when you said... "you can do it with an interpolation of the main timeline... from the beginning to the final position," why would you animate the motion on the main timeline? Why not in the chronology of the wing, can create another symbol of the tail in this period?

    And if the schedules of chronology and main symbol are separated, how SYNCHRONIZE you together different symbols to their movement to work together? And why should it be like that anyway?

    I am new to the community here, the last thing I want to say because you two sounds very knowledgeable on the Flash. How did you get your start? Did you start by watching the tutorials, read the manual, or something else?

    Once more, you have my abundant thanks for taking the time to help.

  • How to filter dates between the current date and the number of dates past

    Hello

    On the answers, how can I do to return a report that contains data between the current dates and 31 days in the past?

    Users want to connect display the report and the report should show only data 31 days to the date of the day... How would I be able to set it up on the answers that since I have not access to RPD?

    Please let me know

    Thank you

    use the date filter between current_date and timestampadd (sql_tsi_day, -31, current_date)

    fixed

  • OOP - how to pass variables between the branches of the object, but not instances of VI

    I have a main VI where a thread object goes through some subVIs initialization and then branches off into several parallel loops. My understanding is that each branch becomes a separate instance of the object. Data is passed between the loops using global variables, wrapped in the accessors (I can change this if someone has a better approach - reducing to a minimum the memory and the CPU usage is very important).

    I need to have a large number of instances of the main VI running at the same time. What would be the best way to ensure that the data transmitted between the loops of one instance of VI do not interfere with the data transmitted between the loops of another instance of VI?

    Thank you for your understanding.

    Ah, you're right. Stupid mistake on my part. It's all working now. The corrected code is attached.

  • How to pass data to the tables according to the value of the first 4 digits of 7 strings of numbers

    I want to sort incoming data, in several bays based only on the first 4 digits of each string.

    For example, a hexadecimal string may be 41322033333533 which is A1 3353.

    A1 is a sensor. particularly, and I want to send all data from the A1 to a table. I have 8 sensors data and want to send the data to separate the bays of sensor. My sensor names are A1, A2, A3, T1, T2, T3, W1

    I will use a structure of the matter, for loop and a comparison of '=' for the data. However, I want to only compare the first 4 digits of the string and I can't find an operator for this. Any advice on how to proceed would be appreciated.

    With a thread like this

  • How to pass data in the drop-down list to two separate outputs

    Hi all

    currently I have a drop-down list named chg with this value:
    ValeurRet += "< option >" + bean.getCode () + "-" + bean.getDescr () + "< / option >";
    Therefore, the value of my combo would be sth like this: 00000 - something

    the problem is that when I recover data return selected in the list, the value will be a string as above and not two separate the value.

    I need to pass the value here in order for me to compare the string containing the data in my database:
    nim.setCode (RutString.getParameterToString (request, "chg"));
    nim.setDescr (RutString.getParameterToString (request, "chg"));

    Now the data in my database is the following:
    Code: 00000
    DESC: something

    given that the above value is contained in the chg rather than the reverse, I couldn't use AS for my select statement.

    So is it possible for me this problem? Thnks in advance for your help!

    You can do two things:
    (1) pass the selection string from the sql query and use the sql functions (or pl/sql) to cut the chain and use only the part you are looking for (SQL has a SUBSTR function and others that allow you to do this)
    (2) you want to at any time in your workflow in a java class, you can do this with the String methods and the parts of the query string.

    Timo

  • Passing data between the component main enforcement through custom methods and custom

    Similar to what this article is talking about, I have a custom list that contains a list of names of State of the United States in chains. (Let's call this states.mxml) #comments http://www.boyzoid.com/blog/index.cfm/2006/11/22/Flex-Custom-Components-and-Custom-Methods

    I create an action script that is included in my states.mxml like < mx:Script source = "myScripts.as" / > so that I can call the method in mySpcripts.as

    Now, what I want to do is, whenever I click on an item in the list, I want this string is displayed on the Application of the hand (on a canvas or Panel) as a label.

    I don't know how I am supposed to refer to the canvas and wood, which lies on the main of the application of myScripts.as
    Is there a way to create an action script file where methods can reference components for the main application and the custom component file?

    Thank you

    this.parentApplication.canvas.label should do what you are looking for

  • The distribution of applications and data between the disk SSD and HDD

    I recently installed an SSD in my Macbook Pro (late 2011) instead of the DVD player. I want to install OS X on it, by replacing the current OS X on the original hard disk, I will continue to use for storing files. How should I allocate its use in car? OS X and applications on the data files on the hard disk of 500 GB and SSD?

    The first series of instructions will partition and format the newly installed SSD disk then install OS X on it. The second block will help you configure OS X on the SSD with your data on the HARD drive.

    Clean Install of El Capitan on a new disc

    1. Restart the computer. Immediately after the chime, press Command + Option + R until a globe appears.
    2. The Utility Menu appears in 5 to 20 minutes. Be patient.
    3. Select disk utility, then click on the continue button.
    4. When loading disk utility, select the drive (generally, the entry Out-bumpy) in the list aside.
    5. Click the Partition tab in the main window of disk utility. A panel will fall.
    6. Set the GUID partition scheme.
    7. Define the type of Format Mac OS extended (journaled).
    8. Click on the apply button, then click the fact when it is active.
    9. Quit disk utility and re-enter the Utility Menu.
    10. Select reinstall OS X and click on the continue button.

    How to use an SSD with your HARD drive

    If you want to use an SSD as boot with your existing HARD disk drive, as the disk 'data', here is what you can do.

    After installing the SSD, you need to partition and format the SSD using disc utility disc. Then install OS X on the SSD. Once installed OSX boot from SSD. Startup disk preferences to set up the SSD as the boot volume.

    Open the preferences users and groups. Click the lock and authenticate you. Or CTRL - RIGHT click on your username account list in the sidebar and select Advanced Options in the context menu. You will see a field called "Home dir: ' on the far right, you will see an Edit button. Click on it. In the file dialog box, navigate to the location in house now located on the HARD disk (disk HARD/users/user_name /.) Select the folder, click the Open button. Restart the computer, as shown. When the computer starts, it will now use the home located on the HARD drive folder.

    Another more technical method involving the Terminal and the alias is discussed in depth here: using OS X with a SSD and HDD - Matt Gemmell configuration. It's my preferred approach because I can choose which records of the House, I want to on the HARD drive and I don't want to. For example, I like to keep Documents and library files on the SSD because I frequently access their content.

    Make sure that you keep the bootable system entirely on your HARD drive where you need it.

  • 4.1 pass data to the text field new page deletes the data after colon

    I work with APEX 4.1 in Amazon RDS, an upgrade is not possible.

    The problem is that if I click on a link in my report and pass the description field to the next page in a section of the text, if there are two points in the data, any data that was in the description after the colon disappear. The research that I did suggest to disable the app escapes in safety, but that seems to work only for version 4.2, the option does not appear in the 4.1.

    Usually, I prefer to use a record id rather spend a bunch of string from one page to another. However, you can try to use a collection to store the values of passage. Once the new page is loaded, you can extract the value from the collection in the element you are interested in.

  • Need to concatenate the put date in the form field and the numeric field

    Hello

    I have a date field and a 4-digit numeric field in my form. I want to concatenate these fields in a new field in the following format: "YYYYMMDD [4-digit numeric field]."

    For example

    Date: June 4, 2015

    Number: 1234

    Concatenated field: 201506041234

    When I try to concatenate the value of date, I get the string value is entered instead of the actual date (e.g. "4 June").

    Thank you.

    OK, the script might like:

    Get the values of field as strings

    var sDate = getField("date1").valueAsString;

    Var Nums = getField("number1").valueAsString;

    Convert string to date in a date object

    Kai var = util.scand ("mm/dd/yyyy", sDate);

    Concatenate number and the date strings

    var sDateNum = util.printd ("YYYYMMDD", letter) + nes;

  • Best-how-how to share data between the case of the event?

    ... more, which would be the best way to disable a case of event if another case of event has not run yet?

    I store the table a landslide enter a while loop that surrounds the structure of the event, then your data is readily available to any event.  However, you will need to wire data in and out of each case of the event table, which can be done easily with the connected tunnels.  If you need display the table of data as well, put an indicator inside the while loop while out of the structure of the event, connected with the registry to offset.

  • How to pass data to the Spark skin class

    Hello

    I created a music skin to my spark component, and I would like to add another mode of this skin, how can I pass id mode during my skin?

    Maybe this will help you

    http://TV.Adobe.com/watch/Flex-in-a-week-day-5/creating-custom-skin-properties/

Maybe you are looking for