Possible to use two views and controllers to work with the same MovieClip?

Gidday

I have a movieclip library I added in a view. The view has a controller and a model.

The current view and the controller are an ok size, but I need another datagrid in the moviclip above addChild, and there is a good amount of features to go with it.

I could continue to use the same view and the controller, but I was wondering how I could addChild datagrid to the movieclip and use a different point of view and the controller, but share the model?

My controller of origin (for short)...

public void Controller1 (sharedModel:sharedModel, stadium: Stadium)

View1 = new View1 (_sharedModel, this, several)

and my opinion...

public void View1 (sharedModel:sharedModel, controller: Controller1, target: Stadium)

I managed to infuse a second point of view one through Controller1...

View2 = new View2 (_sharedModel, Controller2, several)

View1 = new View1 (_sharedModel, this, several, view2)

I addChild (datagrid) in mode 2, then addChild (view2) in view 1 and got the datagrid control to appear where it should.

However, to view 2 does not evolve successfully all the properties of the controller 2.

The other option was to instatntiate a whole new set VC of root, as I've done so far for every major aspect of the project, but then I wouldn't be able to add the datagrid control to the above movieclip.

What is a better way to put in place the add items to a movieclip of two VCs?

See you soon

You already know the answer - you are simply not see the forest for the trees.

If you have the code of the controller like this:

public function get theViewIcontrol (): {SomeViewType}

Return _theViewIcontrol;

}

public function set {theViewIcontrol(value:SomeViewType):void}

If {(_theViewIcontrol)

Remove outgoing view headphones

}

_theViewIcontrol = value;

If {(_theViewIcontrol)

setting properties, add listeners, etc.

}

}

How is it that not connected?

RobotLegs done automatically, through the [insert] metadata tag.  Look at their documentation around mediators.

Note that in RL, the "controller" is not really a thing. The Ombudsman would simply transmit queries of the view for the event bus, and from there, the Control Board would launch everything that controls are necessary.

Tags: Adobe Animate

Similar Questions

  • If I click on "PIN to the browser" the sensitive axis is unselected and vice versa. I need object "PIN at the top of the browser" and 'sensitive pine' work at the same time. Any suggestions?

    In the latest version of muse to adobe, I have me against "PIN at the top of the browser" and 'sensitive pine' work at the same time.

    Now if I choose an object and the axis 'browser', "sensitive pine" is unselected and vice versa.

    The need is for the header with the logo and menu bar to be pinned to the top of the browser, so that the page scrolls in the header bar.

    Now when I click on the sensitive left axis for the logo and the sensitive right pin for the navigation bar, the "pin at the top of the browser" gets deselected.

    Any suggestions or workarounds will be appreciated.

    Kind regards

    Vijay

    Hi all

    Thanks for that bring to our attention. We will consider adding this feature in the future.

    RyanDoyle - it's an interesting hack you have found! Unfortunately, I wouldn't count on that it works like this in the future, as a bug which is to operate. If you drag the screen to change the width of the browser as a Muse, you'll see that the behavior of the elements in the status button (a menu, for example) is different from when exported. However, if you make a small change to your hack, so it should always work: set button "width sensitive" State instead. In addition, I don't see why all parts must be in separate to this job state buttons, but I've only tried a simple example myself.

    An another workaround I used is to create another, more breakpoint. For example, if I have a menu that is pinned to the top left of the browser in the dots stop, then in a breakpoint, I would pin in the center top of the browser. Normally, I wouldn't add more breakpoints, but there is a way that I found to work around the problem. Ryan workaround is perhaps the best way to go if you take my advice and use a status button sensitive width instead of the width of the browser.

    Hope this helps,

    Anna

  • Everything was fine until my Windows 10, lost the start feature, if I ever go back to Windows 7, in this process, I lost my Adobe Reader software, I tried about ten times with different versions and different locations, all with the same download error

    Please forgive me for not knowing how to use this forum, I am an old man and not good at computers, I called Adobe, they said it was my only hope!

    Sorry to repeat

    Everything was fine until my Windows 10, lost the start feature, so I had to go back to Windows 7, in this process, I lost my Adobe Reader software, I tried about ten times with different versions and different locations, all with the same error message that is download "the feature you are trying to use is on an unavailable network resource"... are looking for It seems that it does not find when I search there, and I no longer seem to have the AcroRead.msi... the most difficult file, I try, I get deeper and deeper into things I don't know... I am looking for a simple solution!

    When it gets to this point, it is probably better to start from scratch.

    First of all, download, install and run Adobe Reader cleaning tool to get rid of all remains little. Here is a link to the tool: Download Adobe Reader and Acrobat tool - Adobe Labs

    Then go to the following link to download the full installer for the reader.

    https://get.Adobe.com/reader/Enterprise/

  • in Acrobat 8 Standard advanced editing tool is grayed out in Windows 7 and Windows 10 but works with the same pdf file in Windows XP Professional. Why?

    in Acrobat 8 Standard advanced editing tool is grayed out in Windows 7 and Windows 10 but works with the same pdf file in Windows XP Professional. Why?

    Perhaps because Acrobat 8 is not compatible with Windows 7 or 10.

    Friday, October 9, 2015 at 22:11, thosdelaney [email protected]>

  • Windows Virtual PC will allow me to use Office 2007 and Office 2002/2003 on the same PC without problems?

    I have Windows 7 Enterprise (32 bit) installed with Office 2007. New machine. However, I am a trainer/support specialist and many of my clients have XP Microsoft Office 2002/2003, and I need to provide support. It would be much easier if I had XP and Office 2002/2003, but I know that Microsoft does not recommend the 2 versions on 1 PC. Windows Virtual PC is the solution?

    Yes, that might work.  You can install Windows Virtual PC and Windows XP Mode, and then install Office 2002/2003 in the Virtual PC in Windows XP.  You can then run the Office 2002/2003 programs in Virtual PC, or close the Virtual PC and run them in Windows 7 from all programs > Windows Virtual PC > Windows XP Mode Applications .  You can even have Office 2007 programs and 2002/2003 open at the same time in Windows 7. Boulder computer Maven
    Most Microsoft Valuable Professional

  • Creative cloud is usable on OS (MacOS and Windows 8) 2 with the same account?

    I have 2 computers, a desktop computer with MacOS and a laptop with Windows 8, can I use creative cloud with the same invoice id/account/month on two of them, or do I need to get a second Bill / monthly?

    Thank you

    You can use Creative cloud on two computers.

    Creative Cloud FAQ at https://www.adobe.com/products/creativecloud/faq.html under the section purchases and start-up :

    How many computers can I install the software I download creative cloud?

    You can install the office applications available in creative cloud on your main computer and a backup computer, as long as they do not work at the same time. You will have access to the Mac OS and Windows versions, so if you have a Mac at home and a PC at work, for example, you can install your applications on both. See the page of the product license agreements for more information.

  • Can I use 63-bit Win 7 Home base with the same product key that I used for 32 - bit?

    1 I have win7 64 bit with licesence version hombasic. And now I use homebasic 32bits and 64bits format and install with the same key... So I jst want to know that this process can damage my computer laptop operating system? or there is no problem whatever I did!.

    Original title: Win7

    Well, it will damage her, just that you will not run the 64-bit version, which means, if you have more than 4 GB of RAM installed, Windows 7 Home Basic 32 bit will not support it.

    You should also check that the manufacturer of your computer is using 32-bit drivers for your computer.

    New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.

    This is how the recovery partition is accessible to most popular brands...

    For Dell, press F8 on the keyboard until the Advanced Boot Options menu appears on the screen.

    For HP, press F11 directly after switching on the device

    For LG, press F11 directly after switching on the device

    For Toshiba, press and hold "0" BEFORE and during the power upward

    For Acer, press and hold ALT + F10, as soon as you see the logo

    For Asus, press F9, as soon as you see the Asus logo.

    For Samsung, press F4 to the power upward...

    For Fujitsu, press the F8 key directly after the power

    Advent, restart your computer. Then, press F10 repeatedly until the message "Starting system recovery"

    Sony VAIO, reboot and press "F8" or "F10" repeatedly until the screen "Advanced Boot Options".

  • An affair hotmail, windows live and windows live Messenger with the same user id and password

    Hi, I need help I changed my hotmail password and it will open my homtail account and account window live messanger but it will not open and synchronize my windows live account.  Whenever I try to update asked my server id and password. I put in the same password for the hotmail/Messenger and it goes back to the same request. How can I fix it is there a way to retrieve the id and the password it asks

    Your message has noting to do with Windows Update, Michaela.

    Solutions Center Online hotmail all replaced the newsgroup & email format support 11-Dec-08
    http://windowslivehelp.com/default.aspx

    Solutions for common problems
       http://windowslivehelp.com/solutions/

    The hotmail community forums<=post all="" hotmail-specific="" questions="">
       http://windowslivehelp.com/community/default.aspx

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Two (optimized and Original) iCloud libraries on the same mac.

    Hello

    I have a 2015 MacBook Pro with 256 GB of storage, a drive NAS 3TO and 700 GB iCloud photo library. Currently I have a local library of Photos on the laptop with the Optmize storage option in the Photos, the originals are in the cloud. Is it possible to have a file of additional library with a complete copy (with the originals) of the same library iCloud on the NAS drive? The library on the laptop could store the optimized content and the library on the NAS stock originals of the same library iCloud?

    This way:

    1. I have a backup of the master files of the size if the library iCloud on the NAS in my house
    2. I would have a quick access to the full size of my files so at home - especially useful with videos
    3. I would have access to the photo library to iCloud on the laptop and other devices while outdoors and online
    4. While at home, I would have the ability to switch between libraries (optimized on the laptop, original on the NAS)- but both have the same content.

    Could you let me know if it is by no means achieve this, please? And if so, how.

    See you soon

    None

    1 - photo library can not be on a NAS - it can be on a local disk in Mac OS extended (journaled) format related to a wired ocnnection quick

    2. only the system library synchronizes with ICPL and you can have a library of the system by user - you have two accounts on a single Mac each with its own library to ICPL system synchronization then you might have a library on an external hard drive connected correctly locally in a single account and a local library optimized in another account

    LN

  • use java edition and edition of native at the same time in a single java application

    Hello

    I have a situation where I need to use both versions of berkeley Db at the same time. I have an external library that I use and which requires the Java edition and my own code which uses the native version. Unfortunately, the library source code is not available and I don't want to see my program to use the Java edition.

    Some packages in je.4.0.103.jar and db.jar (version 5.1) contain the same naming structure and classes for example. com.sleepycat.persist.EntityStore. I removed the packages duplicated in je.4.0.103.jar however, it seems that the implementation is slightly different between the two versions I get

    java.lang.NoSuchMethodError: com.sleepycat.persist.EntityStore. < init > (MBCA/sleepycat/I/environment; Ljava/lang/String; MBCA/sleepycat/persist/StoreConfig ;) V

    When I had just two available versions my code for the preserved native version using the packets from the Java edition and an external library maintained on the use of the native version and therefore I had loads of errors.

    So how I differentiate them. The problem is because the two sets of packages have identical names and the names of classes for Java does not know which ones to use. I use eclipse then maybe there is an option where I can say that some classes to use some packages.


    Any ideas?

    Hello

    We do not officially support using BDB and BDB I from the same JVM process.

    It is possible to circumvent this limitation by creating two [url http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ClassLoader.html] Chargers of Java classes which load a file two jar. When you call BDB or BDB I methods, the call should be put in brackets with calls like this that cause the correct class loader to use:

    ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(/* specify correct loader for BDB or BDB JE here */);
    try {
       // do something with BDB or BDB JE
    } finally {
      Thread.currentThread().setContextClassLoader(saveLoader);
    }
    

    We are not experts in the field of chargers for custom classes and we do not have an example of this. We don't him did not ourselves, we know only that users have done.

    I hope this helps.

    Kind regards
    Alex Gorrod
    Oracle Berkeley DB

  • Can I use my Windows 7 disc so my dies of the motherboard and I replace it with the same model?

    I have a disc drive of Windows 7 with many installed programs.  My dies of the motherboard and I do not want to reinstall everything.   If I replace the motherboard or the Machine, what are my options?

    Thank you

    As long as it's the same motherboard, you have a very good chance, that Windows will restart everything in tack. At worst, you may have to reactivate Windows (you will have a period of 3 days).

    Note: If you have an OEM of Windows version you need to 'Try' to activate by phone.

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    J W Stuart: http://www.pagestart.com

  • Two cameras, but only we work at the same time, need help

    I have exceeded the posts here, but not found answers to my type of problem.  I have two WVC54GCAs both have static IP on my local network addresses and I can see them both very well from there.

    I forwarded the port for one to 47624 and the other in 47625 in my router at home and in the configuration of the camera, I specified to use these other ports instead of the default port 80.  When I work and try to view them on the internet by their ip address and port # (e.g. http://22.22.22.222:47624), I get a time-out error, but I see one if I go to 22.22.22.222:80 port (even if the port that I specified in the configuration of the camera was another port).  I used dyndns open port testing tool (http://www.dyndns.com/support/tools/openport.html) that shows 47624 and 47625 are both open ok.

    I can connect to my router on the work 22.22.22.222:8080 and the router logs show the dyndns tool connected to the router via these ports after the test.  I was using a Netgear router and thought that might be the problem, so went out and I have a router Linksys wRT54G2 to see if it worked better, but have the same problem with the Netgear.  Here's the weird part, if I go into the router to work and change one of the cameras to pass to port 80 instead of the other port I would fix for it, I can see that the camera on port 80 despite the camera config always configured to use another port.  So when I remove the first camera port 80 in my router and change the other to port 80, I can see the other as good as this.  I have Comcast as my ISP and a Motorola SB5100 cable modem and can't understand why I'm able to raise over the internet using the spare port settings I specified.  I have spent a lot of time on this, I'd appreciate any help or other suggestions on how to make.

    As far as I know, all Comcast modems are just bridges... no firewall in them at all... The other possibility is that your IT Department at work blocking traffic... have you tried this in any other place outside your local network?

  • Download touch and non-touch application with the same name

    HII I'm doing a new version of an application

    in the new version of the application, I have two separate release touch and non touch.

    so create us the same name of the app and app-world as a separate product with a different version

    and download sound on 22 Dec 2012 but until the pending status

    so exactly what I do if blackberry approvue my request

    When I send an email to app world support rereading as 'is there a reason? why you create the same application again  You can't have two applications in the portal of the same name. »

    Thanks again in advance for proofreading

    I would look to create the same application in charge touch and non touch at the same time.  You can do if your application supports OS 4.7 and later only.

    If you really need to do two different builds, then add the two builds in separate bundles to the same app on App World and use the selection of the device to make sure that your touchscreen package is only for touch devices to screen and vice versa.

  • Work with the same files - is possible?

    Hello

    I would like to run several identical PDF files so that in each separate file I can make bookmarks and comments on various topics that relate to the same content, rather than attempt to differentiate between bookmarks and comments.

    Clearly, I could just duplicate the master file several times, I get it. But what I really want to do, it's often update the master file by adding new PDF files and subsidiary files update automatically with new content without disturbing the existing bookmarks etc. Eventually this will save me a lot of time.

    Please don't tell me that such a straight forward task cannot be achieved within the Acrobat software. If this is the case is an app pack or third-party software that can do?

    No, this is not possible, unless you use an Action or script to insert the new file in the existing files, or something like that. This can happen automatically, in any case.

  • He cannot get two changers of AS2 to work on the same page.

    Hello.

    I really like this particular scroller, I used at the bottom of the page here:

    http://steamandclean.com

    Now I need to use two instances side by side on another page and may not have to work.

    I tried:

    • With same code twice in the frame 1 unchangend.
    • Have two instances of the code, but with him renamed all instance names and variables in the code.
    • Having each scroller in their own video, then add the two at the scene.
    • Have a master fla with background and import two separate sovereigns with each their own scroller - they work independently, but when they import on the same page one of them will not work.

    Here is the AS2, I use:

    Scroller on the left:

    fscommand ("allowscale", "true");

    bar.useHandCursor = dragger.useHandCursor = false;

    space = 20;

    friction = 0.9;

    Speed = 4;

    y = dragger._y;

    Top = main._y;

    bottom = main._y + mask_mc._height - main._height - space;

    dragger.onPress = function() {}

    Drag = true;

    this.startDrag (false, this ._x, this._parent.y, this ._x, this ._parent there + this ._height, this ._parent .bar ._height);

    scrollEase();

    };

    dragger.onMouseUp = function() {}

    this.stopDrag ();

    Drag = false;

    };

    bar.onPress = function() {}

    Drag = true;

    If (this ._parent ._ymouse > this ._y + this ._height - this._parent.dragger._height) {}

    This._parent.dragger._y = this ._parent ._ymouse;

    This._parent.dragger._y = this ._y + this ._height - this._parent.dragger._height;

    } else {}

    This._parent.dragger._y = this ._parent ._ymouse;

    }

    scrollEase();

    };

    bar.onMouseUp = function() {}

    Drag = false;

    };

    moveDragger = function (d) {}

    If ((dragger._y == y + bar._height-dragger._height & & d == 1) |) (dragger._y == y & & d ==-1)) {

    clearInterval (myInterval);

    } else {}

    dragger._y += d;

    scrollEase();

    updateAfterEvent();

    }

    };

    up_btn.onPress = function() {}

    myInterval = setInterval (moveDragger, 18, -1);

    };

    down_btn.onPress = function() {}

    myInterval = setInterval (moveDragger, 18, 1);

    };

    up_btn. OnMouseUp = down_btn.onMouseUp = function () {}

    clearInterval (myInterval);

    };

    MovieClip.prototype.scrollEase = function() {}

    dragger.onEnterFrame = function() {}

    If (Math.abs (dy) == 0 & & drag == false) {}

    delete this.onEnterFrame;

    }

    r = (this._y-y)/(bar._height-this._height);

    DY = Math.round(((top-(top-bottom)*r)-main._y)/speed)*friction);

    main._y += dy;

    };

    };

    Right scroll

    fscommand ("allowscale", "true");

    bar2.useHandCursor = dragger2.useHandCursor = false;

    space = 20;

    friction = 0.9;

    Speed = 4;

    y = dragger2._y;

    Top = main2._y;

    bottom = main2._y + mask_mc._height - main2._height - space;

    dragger2.onPress = function() {}

    Drag = true;

    this.startDrag (false, this ._x, this._parent.y, this ._x, this ._parent there + this ._height, this ._parent .bar2 ._height);

    scrollEase();

    };

    dragger2. OnMouseUp = function() {}

    this.stopDrag ();

    Drag = false;

    };

    bar2.onPress = function() {}

    Drag = true;

    If (this ._parent ._ymouse > this ._y + this ._height - this._parent.dragger2._height) {}

    This._parent.dragger2._y = this ._parent ._ymouse;

    This._parent.dragger2._y = this ._y + this ._height - this._parent.dragger2._height;

    } else {}

    This._parent.dragger2._y = this ._parent ._ymouse;

    }

    scrollEase();

    };

    bar2. OnMouseUp = function() {}

    Drag = false;

    };

    movedragger2 = function (d) {}

    If ((dragger2._y == y + bar2._height-dragger2._height & & d == 1) |) (dragger2._y == y & & d ==-1)) {

    clearInterval (myInterval);

    } else {}

    dragger2._y += d;

    scrollEase();

    updateAfterEvent();

    }

    };

    up_btn2.onPress = function() {}

    myInterval = setInterval (movedragger2, 18, -1);

    };

    down_btn2.onPress = function() {}

    myInterval = setInterval (movedragger2, 18, 1);

    };

    up_btn2. OnMouseUp = down_btn2.onMouseUp = function () {}

    clearInterval (myInterval);

    };

    MovieClip.prototype.scrollEase = function() {}

    dragger2.onEnterFrame = function() {}

    If (Math.abs (dy) == 0 & & drag == false) {}

    delete this.onEnterFrame;

    }

    r = (this._y-y)/(bar2._height-this._height);

    DY = Math.round(((top-(top-bottom)*r)-main2._y)/speed)*friction);

    Main2._y += dy;

    };

    };

    If need be I can download the fla files, but I see no option to attach a file

    Thanks in advance!

    ggaarde

    Screen shot 2012-11-15 at 12.02.28 PM.png

    You are welcome

Maybe you are looking for

  • Disk is too slow or overloaded system

    In one of my projects, every time, he gets at the helm of the 9 it still gives me the "disk is too slow or overloaded system' warning. I have 24 GB of RAM, 6 core 3.33 ghz processor, my project running on an external hard drive, and I froze all my tr

  • Battery drains when out of State

    I was very happy with my Razr M. I travel a bit and have noticed that the battery runs out in less than 6 hours and the phone is hotter than normal when I'm out of State. I don't have this problem when I'm at my home port. The lowest level of the bat

  • How to count the edges within the great period of door?

    Hello I use a PXI-6624 counter/timer in Visual Studio C++ with Meassurment Studio. I want to count the edges on a signal within a high period of an input signal.I found the documentation entries "CTR n CBC", "CTR n GATE" and "CTR n to THE. My idea is

  • Library Microsoft visual c ++ runtime library: runtime error! R6002 - floating point not loaded

    Name of the operating system Microsoft Windows XP Professional Version 5.1.2600 Service Pack 3 Build 2600 Manufacturer of operating system Microsoft Corporation Name of system IBM-265D34C41A8 The IBM system manufacturer System model 18307BA System Ty

  • On my other computer, I forgot password 2 and I am infected. What should I do?

    Before the infection My other computer is running Windows 7. In total, I have 3 accounts: which 2 are accounts of the administrator and the other is a standard account. I forgot the passwords for the accounts of 2 Administrator and so I use my last s