Send an event from one class to another

I have been racking my head hit the walls on every corner on this issue. Heh, if I had hair on my head that it would have been all ripped off hours, not days ago! Good, hours. =)

The problem:

I have two classes of documents. The main document class creates an empty clip and adds to the scene in which classes of second published swf is loaded in. The second document class has a button for the scene in which once clicked fair traces "Hello" in the output window.

What I want to do, is when you click on this button, an event is dispatched to the second class of document, to the main document class. Now, I googled all this world known and attempted to implement the examples without result. I am really at a loss at this moment yet stubbornly, I intend to keep hitting my head against the problem.

Below, I glued the two classes of documents less examples I tried to implement so far.

Any contributions to this number will be most graciously appreciated!

~ e

And as an alternative, you can leave the bubble of the button event... (the second parameter of the event set to true)

Tags: Adobe Animate

Similar Questions

  • Is anyway to send a message from one computer to another homegroup?

    Is anyway to send a message from one computer to another homegroup?

    Hi westreg,
     
    Welcome to the Microsoft Windows answers Forum community!
     
    What message do you send?
     
    Here is a link to 'How to use Homegroup?': http://windows.microsoft.com/en-us/windows7/help/home-sweet-homegroup-networking-the-easy-way

    I hope this helps!
     
    Thank you, and in what concerns:
    Aziz Nadeem - Microsoft technical support.
    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • How to send values textbox from one screen to another screen

    Hello guys

    can anyone tell me that how can I get the value of the editField from one screen to another screen.

    Please provide the code.

    Thanks in advance

    Click on a single screen Button.of. Pass the value of the textField like this.

    class first extends MainScreen implements FieldChangedListener
    {
        public first()
        {
            ....................
            Declareation of textField and other controls.
        }
        public void fieldChanged(Field f, int context)
        {
            //on the clicking on the Button here the code
            if (f== button)
            {
                String str=textfield.getText();
                UiApplication.getUiApplication().pushScreen(new second(str))
            }
        }
    }
    
    // another screen
    
    class second extends MainScreen
    {
        public second(String str)
        {
            //Now str contain that values.
        }
    }
    

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • How to move code from one class to another?

    I have a .fla file.

    Here, I have a few keyframes with labels.

    On the .fla file in the property in the field of the class I have adde class MyMatching.

    I also have the main code:

    package 
    {
         import flash.display.MovieClip;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         
         public class MyMatching extends MovieClip 
         {
              var play_btn:MyButton = new MyButton();
              var kyky:MyTimer;
              
              public function MyMatching():void
              {
                   welcomeScreen();
              }
              
              public function welcomeScreen():void 
              {
                   stop();
                   trace("working");
                   play_btn.x = 210;
                   play_btn.y = 300;
                   addChild(play_btn);
                   play_btn.addEventListener(MouseEvent.CLICK, goToLevel_1);
              }          
                   
              public function goToLevel_1(event:MouseEvent)
              {
                   trace("level 1");
                   play_btn.visible = false;
                   gotoAndStop('Level1Screen');               
                   if (kyky==undefined) {
                        kyky = new MyTimer();
                   }
              }
         }
         
    }
    

    And I have another class:

    package 
    {
         import flash.display.MovieClip;
         import flash.display.Stage;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Stage
         {
              import flash.utils.getTimer;
              var gameStartTime:uint;
              var gameTime:uint;
              var gameTimeField:TextField;
              function mainFunction():void
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime=getTimer();
                   gameTime=0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
              function showTime(event:Event)
              {
                   gameTime=getTimer()-gameStartTime;
                   gameTimeField.text="You plaing: "+clockTime(gameTime);
              }
              function clockTime(ms:int)
              {
                   var seconds:int=Math.floor(ms/1000);
                   var minutes:int=Math.floor(seconds/60);
                   seconds-=minutes*60;
                   var timeString:String=minutes+":"+String(seconds+100).substr(1,2);
                   return timeString;
              }
         }
         
    }
    

    Ho can I play MyTimer class code in the function goToLevel_1 (this furnished function in my main class MyMatching)?

    Thank you.

    First your class MyTimer is sloppy and poorly written.

    Why does go on stage? The more compact class to extend the circumstances is Sprite.

    In addition, it is very important to get the habit of data type declarations. Not only it is advisable, in your case the good compiler will throw error because even if you return the string, function returns nothing.

    In addition, it is important to declare namespaces as public private and protected within the classes. No function clickTime (): String but private function clockTime (): String or publicfunction clickTime (): String.

    How to show your time elsewhere - you just create instnace of it and add it to the list of disaply:

    var myTimer:MyTimer = new MyTimer();

    addChild (myTimer);

    That said, your class should look like this:

    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.display.MovieClip;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Sprite
         {
              private var gameStartTime:uint;
              private var gameTime:uint;
              private var gameTimeField:TextField;
    
              public function MyTimer()
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime = getTimer();
                   gameTime = 0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
    
              private function showTime(event:Event):void
              {
                   gameTime = getTimer() - gameStartTime;
                   gameTimeField.text = "You playing: " + clockTime(gameTime);
              }
    
              private function clockTime(ms:int):String
              {
                   var seconds:int = Math.floor(ms / 1000);
                   var minutes:int = Math.floor(seconds / 60);
                   var timeString:String = minutes + ":" + String(seconds + 100).substr(1, 2);
                   return timeString;
              }
         }
    }
    
  • Sending data from one component to another

    I want to send data from one component to another.

    Both are on the page of Main.mxml

    What is the best way to do it (without going into a frame)

    Who send data up to the main.msml via an event then complex treatment of vars public and pick up in the second pane, but is it possible to go straight?

    Thank you

    Dan

    Once the element keeps one reference to another. Or you set it to a global var shared by two components.

    C

  • I can't receive an attachment from one computer to another in my wireless network

    Whenever I try to send an email with an attachment from one computer to another in my wireless network, the attachment comes through.

    I changed it in plain text... and it works!

    You are the very welcome. (It was my first suggestion).

  • I can't move files from one folder to another on Windows Vista.

    Hello

    I can't move files from one folder to another in windows Vista.
    It is quite frustrating.
    I am an administrator of the account.
    I get an error saying that I don't have permission to do the action.
    It is said: Destination folder access denied. You need permission to perform this action. Then the buttons 'Try Again' and 'Cancel '.
    Help, please!
    Here is a link to an image of the error I get when I try to move a file:
    Thank you
    Jeremy

    Explorer

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

     

    To see if a fix is available

    In Control Panel (and select Classic discovered in the left pane) select reports on the problems and Solutions (problem of type in the START search box), go to historical problem, right-click of your error and choose check for the Solution.

    You can also right-click and choose Details for more information. Post these details here. The name of the Module fault is important information.

    If the problem affects Panel press the Windows key + R and type wercon (or type it at a command prompt).

     

    Close the browser and start a command prompt

    • Close Windows Explorer
    • Start - All Programs - Accessories - right on command prompt and choose run as administrator.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete then Task Manager.
    • Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.

    Then to restart the Explorer after trying all of the following

    • Press Ctrl + Alt + Delete and choose Task Manager
    • In the Task Manager, click the file menu and then click new task (run) and enter explorer
     

    If you cannot start the Explorer at all

    • Press Ctrl + Alt + Delete and choose Task Manager
    • Under the processes tab, click Show processes from all users to elevate to administrator
    • In the Task Manager, click the file menu and then click new task (run) and type cmd
    • Other things you can try typing

      Explorer
      Explorer c:\
      Explorer/e, c:\
      wercon
      control
      Iexplore
      Rstrui

    If you cannot start a folder window you can use the Browse button in the new task dialog. Don't forget that you must right click and choose Open rather than double-clicking.

     

    Reregister the shell registry entries

    It is important that each order is accepted. If the command fails it means the file is damaged and must be repaired.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    regsvr32 /i shell32
    regsvr32 /i urlmon.dll
    regsvr32 RPCRT4.dll
    regsvr32 PROPSYS.dll
    regsvr32 MSCTF.dll
    regsvr32 cscui.dll
    regsvr32 rsaenh.dll
    regsvr32 timedate.cpl
    regsvr32 ATL DLL
    regsvr32 OLEACC.dll
    regsvr32 actxprxy.dll
    regsvr32 USERENV.dll
    regsvr32 msshsq.dll
    regsvr32 NaturalLanguage6.dll


    regsvr32 thumbcache.dll
    regsvr32 WINTRUST.dll
    regsvr32 MMDevAPI.DLL
    regsvr32 audioses.dll
    regsvr32 audioeng.dll
    regsvr32 ExplorerFrame.dll
    regsvr32 msi.dll
    regsvr32 FirewallAPI.dll
    regsvr32 netshell.dll
    regsvr32 pnidui.dll
    regsvr32 QUtil.dll
    regsvr32 c:\windows\system32\wpdshserviceobj.dll
    regsvr32 WINHTTP.dll
    regsvr32 C:\windows\system32\qagent.dll
    regsvr32 C:\windows\system32\portabledeviceapi.dll
    regsvr32 wbemprox.dll
    regsvr32 wbemsvc.dll
    regsvr32 fastprox.dll
    regsvr32 imapi2.dll
    regsvr32 wshext.dll
    regsvr32 gameux.dll
    regsvr32 msxml6.dll
    regsvr32 vbscript.dll
    regsvr32 jscript.dll
    regsvr32 wshext.dll
    regsvr32 wshom.ocx
    regsvr32 wshcon.dll
    regsvr32 scrrun.dll

     

    Delete the folder and the settings of the Menu

    This will remove the settings are saved for each file that you visit. Also the order of the start menu.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder" /f

    Delete the thumbnail and icon Caches

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    attrib - r s h '% userprofile%\AppData\Local\*.db '.

    del "% userprofile%\AppData\Local\*.db".

    Disable thumbnails and previews

    Damaged documents and particularly corrupt pictures or videos, can cause Explorer crash all trying to generate a thumbnail or an overview. This miniature and previews active option off.

    If you can start the Explorer, previews is Union on the command - folder and Search Options - framework of tasks use classic Windows foldersbar.

    Thumbnails are organized on the command bar - folder and Search Options - view tab - and check under Advanced settings - always show icons, never thumbnails and uncheck Show icon file in the pictures.

    If you cannot start the Explorer close Explorer as above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000000 f

    Turn around after testing the Explorer.

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000001 f

     

    A boot is a way to explore

    It can be caused by a shell extension.

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

    The Explorer is built on addin programs called Extensions of Shell. The standard is provided by Microsoft, but programs add their own.

    • Download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    • Close Windows Explorer
    • Start Autoruns by right-clicking and choose run as administrator
    • Click on the menu Options - Filter Options and check hide Microsoft entries and disable include empty locations
    • Go to the Explorer tab and uncheck everything to the left.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete and choose Task Manager.  Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.
    • Click the file menu and then click new task (run) and enter explorer

    If this can help, reactivate ½ at a time to identify those who. If this does not help, restart AutoRuns and go to the all tab and uncheck everything that it and restart. If this can help, reactivate ½ at a time to identify those who.

    Run Microsoft Fixit

    Microsoft has a range of automatic programs to solve common problems. To see problems explore

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/en-us

    For the visit of the list the most comprehensive

    http://support.Microsoft.com/FixIt/en-us

    When you choose to download, choose the option to run on another computer. You can then save it to your hard drive. Open the folder, open the folder fix this laptop and run Run Fix It. It will contain all 27 FixIt.

    Recycle Bin
     
    If the problem is the trash bin remove the storage folders. It will be automatically re-created next time you delete a file or open the Recycle Bin. It will remove the trash and the files it contains for all users.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    RD C:\$RECYCLE. BIN/s/q
     
    then repeat for each drive to change the drive letter, for example
     
    d:\$recycle Rd. BIN/s/q
     
    e:\$recycle Rd. BIN/s/q
     
     
    If the Office does not start
     
    This will create a new empty by user and common desktop computer. This will allow to test if a file on your desktop to start the Explorer.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    MD "% userprofile%\DesktopTest".
     
    Add reg "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% USERPROFILE%\DesktopTest" /f
     
    MD "% public%\desktopTest".
     
    Tracking Add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" v "Common Desktop" REG_EXPAND_SZ /d "% Public%\DesktopTest" t f
     
    To restore default after having tested if begins to explore.
     
    Set ExpFix1 = % user
     
    Set ExpFix2 = % profile
     
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    Set ExpFix1 = % Pub
     
    Set ExpFix2 = % lic

     
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common Desktop" /t REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    You will need to disconnect then.
  • How to transfer several photos from one folder to another

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    ==========================================
    You can select multiple by holding your CTRL key while left
    by clicking on the thumbs or file names.

    You can also select groups of photos by selecting one...
    While holding down your shift key and select another further
    fixing the list. All photos between the two selected will be
    chosen too.

    Move photos from one folder to another.

    With the thumbnail selected... type... CTRL + x. sa is the
    keyboard shortcut for "cut". Selected thumbnails are
    bland and appear grey.

    Open the folder that you want to move the photos to, and then type...
    CTRL + V. sa is the keyboard shortcut for paste.

  • BSOD after copying the large number of files from one disk to another

    Hello. I hope you can help because this issue is very frustrating. Just built a new PC:
    -Gigabyte Z97X Gaming 7 mobo
    -8 GB Corsair vengeance 1866 mhz
    -EVGA GTX 770 video
    -CPU Intel 4770K
    -two hard drives of 1 TB WD black in RAID 1
    -one ADATA 256 Gb SSD as drive OS
    -a 1 TB drive Toshiba
    -Windows 7 64-bit professional
    -F3 Bios Rev

    System can work very well for everyday, but when I copy large number of files from one disk to another (i.e. 70 000 files, 80 GB), shortly after (10 to 30 minutes), I get a BSOD bugcheck.

    I ran MEMTEST86 for hours without error. I can run PRIME95 with max heat without error. And as I said, it seems to be fine until I do a copy of large files. It seems not to matter to this disc, I copy to/from. Start WIndows, I see no activity CHKDISK. Ideas?

    Log name: System
    Source: Microsoft-Windows-WER-SystemErrorReporting
    Date: 25/06/2014 19:55:50
    Event ID: 1001
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: Daddys-PC
    Description:
    The computer was restarted after a bugcheck.  The bugcheck was: 00000124 0 x (0 x 0000000000000000, 0xfffffa8008788028, 0x00000000bf800000, 0 x 0000000000200401). A dump was saved in the: C:\Windows\MEMORY. DMP. Report ID: 062514-6692-01.
    The event XML:

     
       
        1001
        0
        2
        0
        0
        0 x 80000000000000
       
        32358
       
       
        System
        Daddys-PC
       
     

     
        0 x 00000124 (0 x 0000000000000000, 0xfffffa8008788028, 0x00000000bf800000, 0 x 0000000000200401)
        C:\Windows\MEMORY. DMP
        062514-6692-01
     

    No problem, thank you!

    All attached files of the DMP are the verification of bug WHEA_UNCORRECTABLE_ERROR (124) .

    A fatal hardware error occurred. This fatal error data error Architecture WHEA (Windows Hardware).

    If we run one! errrec on the 2nd parameter of the bug check (address of the WER structure), we get the following:

    ===============================================================================
    Section 2: x 86 / x 64 MCA
    -------------------------------------------------------------------------------
    Descriptor of @ fffffa8008788138
    Article @ fffffa80087882c0
    Shift: 664
    Length: 264
    Flags: 0x00000000
    Gravity: Fatal

    Error: Internal unclassified (Proc 4 row 1)
    Status: 0xbf80000000200401
    Address: 0x00000000fee00040
    Misc.       : 0 x 0000000000000086

    Internal unclassified error, this implies that it is not publicly documented and there is no way to identify the error.

    -----------------------------------------

    1. AppleCharger.sys is listed and charged, which is the driver GIGABYTE on / off Charge. See here for more information - http://www.gigabyte.us/MicroSite/185/on-off-charge.htm

    Very annoying software, so please uninstall ASAP!

    2 remove and replace Norton with Microsoft Security Essentials for purposes of troubleshooting temporary, as it can be at the origin of the conflict:

    Removal of Norton- https://support.Norton.com/SP/en/us/home/current/solutions/kb20080710133834EN_EndUserProfile_en_us;JSESSIONID=841A6D40BA6872C47697C6C6B19C8E11.4?entsrc=redirect_pubweb&PVID=f-home

    -MSE http://Windows.Microsoft.com/en-us/Windows/Security-Essentials-download 

    3 uninstall Gigabyte Saver Easy, Easy Tune, as well as all the another bloatware Gigabyte, it is very problematic.

    4.

    2: kd > lmvm marvinbus64
    start end module name
    fffff880' 04c 51000 fffff880'04 c 95000 MarvinBus64 (postponed)
    Image path: \SystemRoot\system32\DRIVERS\MarvinBus64.sys
    Image name: MarvinBus64.sys
    Timestamp: Fri Sep 23 17:17:03 2005

    Pinnacle Studio Marvin Bus driver, dated 2005. Too old to work with the operating system, so please delete the software + the device (if any).

    5 please remove your Rainbow Tech/SafeNet USB security device if there is no update for its software, device drivers are too old.

    -----------------------------------------

    If all else fails, there's only so much you can do with an error like this, checking until it boils down to a faulty processor that needs to be replaced. Start from 1 and work down:

    1. make sure your temperatures are the norm and nothing is overheating. You can use a program such as Speccy if you want to monitor the time - http://www.piriform.com/speccy

    2 clear your CMOS (or optimized load BIOS default) to ensure that there is no parameter incorrect BIOS - http://pcsupport.about.com/od/fixtheproblem/tp/clearcmos.htm

    3. make sure that your BIOS is up to date.

    4 if all else fails, the only one left to do is replace your CPU because it is defective.

    Kind regards

    Patrick

  • navigate from one screen to another sc

    Hello

    I have a java Application with some screens Developpers.

    each screen is in a different java file.

    I want to navigate from one screen to another screen, but I can't UST copy the following code: Pushscreen (new BilanScreen());

    How can I do?

    Yes, it is expected that pushScreen cannot be called from the class of the screen, as the original method belongs to the UiApplication class... So if you want it to be used in a form, then you should go:

    UiApplication.getUiApplication().pushScreen(new Screen's Instance);
    

    However, before doing so, I suggest you to skip the old screen. This can be done:

    UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication.getActiveScreen());
    

    See you soon...

    Note: Through the thread sticky by tbilisoft, KB articles and videos of developer for effective development...

  • How nagivate values from one page to another page as well assured in different modules like po and pon

    How nagivate values from one page to another page as well assured in different modules like po and pon?

    I tried using the session values, hashmap, and Transaction. But none worked.

    Please help me on this.

    Dilip thanks.

    My problem is solved.

    I solved the issue.using the main concepts of java.

    By importing a package into other package and then instantiate the required class.

    Kind regards

    2793235.

  • transmission of data from one container to another

    Hello

    Let's say I have two containers (Container1 = application, Container2).  Container1 receives data from user, do some search database and displays Container2 with database search results.

    -Container1 (call and display)-> Container2

    Below shows how I use a bindable variable in container1 for transmitting data of container1 in Container2.  Also shows how to display Container2 of container1.

    <! - Container1 - >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML ">


    ....
    [Bindable] public var foo:String = 'bar ';
    ....
    private void loginHandler(event:LoginEvent):void
    {
    mycontainer2 = new Container2();
    mycontainer2. Name = "mycontainer2";
    this.addChild (mycontainer2);
    }
    < / mx:Application
    >

    I am data access in Container2 as follows:

    <! - Container2 - >

    {mx.core.Application.application.foo}

    T1) is there a better way to transfer data from one container to another and to access the data?

    Q2) is the only way to call and display of the container1 Container2?

    Q3) how can I return to container1 Container2, i.e. Container2 call and display container1

    Container2-(back to)-> container1

    Best practices call for the use of custom events to share data between components. Here is my message from Flex 3 cookbook on the theme:

    http://cookbooks.Adobe.com/index.cfm?event=ShowDetails&PostID=15466

    To easily switch between containers 1 & 2 use a ViewStack, the gold standard for this interaction and manipulate the selectedIndex and selectedChild property:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=navigators_3.html

    If this post has answered your question or helped, please mark it as such.

  • Can I turn off the change of focus from one object to another?

    Hello.

    I have a game where i control a MC with the arrows on the keyboard, when I click outside of the application flash and back in the MC loses focus. The focus moves to a button in the scene. What I have observed, is that Flash Player has a built-in control, which moves the focus from one element to the other with the arrow keys.

    Is there a way I can disable the change of focus from one object to another?

    Thank you.

    Why you need such a thing...

    Is it true that you lose the focus of your video clip and that's your keyboard listeners do not work?

    And you want to work.

    For this situaton I ideally add my Council key on the stage event listeners and the rest of the creation of the logic accordingly.

  • How to migrate from VO Extension from one Instance to another

    Hello

    How to migrate YOUR Extension from one Instance to another.


    Thank you
    Vishnu

    Move the files VO.xml and class as usual in the other environment.

    Also move the .jpx for the project and run the jpx importer.

    Thank you
    -Anil

  • How to transfer a project from one computer to another file

    Hello

    In order to burning a DVD on my laptop that is older, I'm trying to transfer a working from a library folder and insert it into another on the old computer. I used a USB key. All the data has been transferred, but how do i:

    1) enter a library on the old computer? I DID this, but it will not appear in the Final Cut. I "Showed the content" and it allowed me to put the file in THIS library, but it will not appear in the column "libraries."

    (2) create its OWN library on the old computer?

    Thank you.

    Mike Scully

    Stay out of the whole library. This is a complex database. If the components have moved the database becomes useless. Pretty much all you need to do inside the library can be done from the inside of the PCF.

    If you cannot move the entire library from one machine to another on an external drive, you can move a project of a new library. That will copy only the clips used in the project. You can take it on the other machine. You can also export a master file and consider on the other machine to make the DVD. It is perhaps the simplest.

Maybe you are looking for

  • Why is there no account settings in my Tools menu?

    Reading support for Thunderbird in order to set up a signature, I realized that my Tools menu has no account settings. How to retrieve or set up a signature in a different way? Thank you!

  • What do the different 'SyncOptions '?

    The first thing that is unclear is the SyncOption refers to what happens just to the point that the system is configured to use synchronization, it is how the device will interact with synchronization over time, or both. For example, October 1 the sy

  • NEITHER MAX unknown status and entry name box missing

    I have a lot of instruments connected via a USB-GPIB. It was working fine. Several instruments came out for calibration, but are now back. All aliases are gone. Visa alias names that I use in my application LV cannot connect. In MAX for an instrument

  • Dot Net framewrk unhandled exception - cannot anchor balloon

    During the connection, after a few minutes, a Dot Net framework exception occurs indicating that he cannot anchor a balloon to the place = 1215 X, Y = 913.  The window says click on continue and the attempt of wll application to ignore the error, cli

  • TOOLBAR ICONS: I CAN'T FIND MY VOLUME ICON

    I CAN'T FIND MY VOLUME ICON