Best pattern to signal a parent control from a deeply nested child control

#1
The application i created hosts intially a logincontrol.
The login control signals the application with
OnAuthenticationPassed to move states.
This state change removes the login control and loads the
administration control.
this one level nesting is okay to be handled by having the
parent listen to an event the child makes... but when multiple
levels of nesting occurs... chaining events just to propagate the
message up .. is not a flexible solution... example:
The administration control hosts a lot of specific task
controls.
[ArticleManagement - (contains categorymanagement, new
article, edit article -- further nesting controls)]
eventually the session will die out on the server... so when
a task (example: submit new article) the server response will be:
<response>
<isAuthenticated value="false" />
</response>
I will then have to propagate this message up to the
application parent level so that administration control panel is
removed and replaced with the login control.
what is the best way to handle this?
#2
what are common transition patterns when removing one panel
and putting another in its place? [i'm an application developer not
an animator.]
thanks,
Leblanc Meneses

thanks for the bubbling information. for a minute I thought i
had to create a singleton to centralize registering events. I'm
glad the framework manages this inside UIComponent .. less things i
have to worry about.
about animiation: thanks first of all.. looking nice now.
my current implementation works but you can see where the
viewstack starts and ends by when the control and leaves, enters
the scene through the animation.
If i change the viewstack width and height to 100% i loose
the ability to center the inner contents...
i want the viewstack width and height to 100% and still be
able to center vertically and horizontally the inner contents. do
you know how to do this?
Thanks again,
Leblanc Meneses
<mx:states>
<mx:State name="OnAuthenticationPassed">
<mx:SetProperty name="selectedChild"
target="{this.viewstack1}" value="{this.administrationmain1}" />
</mx:State>
</mx:states>
<mx:Script>
<![CDATA[
import flash.events.*;
import mx.effects.easing.Bounce;
public function init():void
//register to global event manager
this.addEventListener("OnAuthenticationPassed",
OnAuthenticationPassed);
this.addEventListener("OnAuthenticationFailed",
OnAuthenticationFailed);
private function OnAuthenticationPassed(event:Event):void
this.currentState="OnAuthenticationPassed";
private function OnAuthenticationFailed(event:Event):void
this.currentState="";
this.viewstack1.selectedChild = this.login1;
]]>
</mx:Script>
<mx:Parallel id="outEffect">
<mx:Dissolve duration="1000" alphaFrom="1.0"
alphaTo="0.0"/>
<mx:Move duration="500" xTo="-9000" xFrom="0" />
</mx:Parallel>
<mx:Parallel id="inEffect">
<mx:Dissolve duration="1000" alphaFrom="0.0"
alphaTo="1.0"/>
<mx:Move duration="500" xTo="0" xFrom="-9000" />
</mx:Parallel>
<mx:ViewStack id="viewstack1" resizeToContent="true"
horizontalCenter="0" verticalCenter="-5">
<comp:login id="login1"
hideEffect="{this.outEffect}" showEffect="{this.inEffect}"
/>
<administration:administrationmain
id="administrationmain1"
hideEffect="{this.outEffect}" showEffect="{this.inEffect}"
/>
</mx:ViewStack>

Similar Messages

  • Best, user-friendly router for parental controls??

    Hi all - I purchased the EA3500 but not sure it's features are the best for my purposes ...  one teenager with a number of devices:
    pc desktop 
    smartphone
    ipod
    macbook
    ipad
    xbox
    I also have an iphone, an ipad, and apple t.v.   I want to restrict his access both the amount of time each day and final turn-off time.   I've read here that there's a bug re: IPv4 and IPv6>   
    Also it has to be really user-friendly for me to set up.  I'm somewhat computer illiterate (not a techy!).
    Recommendations?   Thanks much.  

    I have gathered some useful articles below to help you in setting up the router, configuring parental control settings as well the wireless and knowing more about it that may benefit your network. I hope these will help.
    Linksys Smart Wi-Fi Router, EA3500 Frequently Asked Questions
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=30f459a78aaa42ca9adcb20818346816_EA3500_Frequently...
    Setting up the Linksys Smart Wi-Fi Routers, EA6300, EA6400 and EA6700 using Smart Setup
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=38cde2cfa77a45aaa96187c5ae05fa45_Setting_up_the_Li...
    Changing the basic wireless settings of your Linksys Smart Wi-Fi Router using your Linksys Smart Wi-Fi Account
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=8ce9e83bd3784001aee72da7f1ef48e8_Changing_the_basi...
    Setting up Parental Controls using the Linksys Smart Wi-Fi Account (Video)
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=27042
    How to restrict Internet access on specific times using Linksys Smart Wi-Fi Account
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=88998072f086421d9ec86109576b58e4_Restricting_Inter...
    How to disable restricted Internet access on specific devices using your Linksys Smart Wi-Fi Account
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=9acb174873c24afba2f56aefdf497683_Disabling_restric...
    Setting up the Parental Controls feature of your Linksys Smart Wi-Fi Router
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=0720688ed58d4e458348cfe32f13cb15_KB_EN_V1.xml&pid=...

  • Access parent class from instance of nested class

    Hi,
    I have the following class hierarchy:
    public class BaseClass
    public class ParentClass
      private NestedClass    mNestedClass;
      public ParentClass()
        mNestedClass = new NestedClass();
      protected NestedClass getNestedClass()
        return mNestedClass;
      public static BaseClass createParentClass()
        parentClass = new ParentClass();
        // some code...
        return parentClass.getNestedClass();
      protected class NestedClass extends BaseClass
        NestedClass( int i )
          // some other code...
    }I cannot modify the classes above, as they are third-party and they are subject to changes...
    In my code, I may only use the static method to create an instance of ParentClass, because there is some important code (not accessible outside of the package) instead of the comments. The problem is that the static method only returns me an instance of the NestedClass, but not the ParentClass. For some reasons, I would need to access the instance of ParentClass.
    Is there a way (Java syntax, I mean) that would allow me to access from an instance of NestedClass the corresponding ParentClass instance?
    I know that inside a NestedClass method I may use ParentClass.this, but, as I wrote above, that class cannot be modified. Worse, I am not able to extend it neither, because the constructor is not public (or at least protected)...
    Please, does anybody have the correct answer?
    Thanks,
    Adrian

    There are at least 3 funny things in the code you posted:
    1) an instance of NestedClass cannot be created with "new NestedClass()", because the only constructor is NestedClass(int)
    2) I can't see why a method called "createParentClass" should return an instance of NestedClass
    3) The funniest: I really can't understand why you "may only use the static method to create an instance of ParentClass": if the ParentClass developer didn't want you to instantiate it directly, why did he made the constructor public?
    But the fact is there's no way to access the enclosing object of a nested object if the sw architect didn't want this (maybe including in the interface a method like this:
    class EnclosingClass {
      class NestedClass {
       EnclosingClass getEnclosingObject() {
        return EnclosingClass.this;
    This simply should break encapsulation and object hyerarchy security... really a bad thing I guess!!
    Bye

  • How do I turn on safe browsing or parental controls

    What is the best way to set up parental controls to manage safari google you tube etc

    The only perental controls are listed in Settings/Restrictions where you can enable or disaple apps. You can not control where the iPad goes on the internet. You can only disable the  apps that use the internet. Look at services such as Open DNS  to restrict devices internet access by your home network. These types of services will only work at your home location so it will still have full access to the internet when using other networks.

  • Bug Windows 8.1 upgrade from Windows 8 - Parental Control - Shift in Caldendar

    Hi,
    since I have upgraded the PC of my son from Windows 8 to Windows 8.1,
    I have discovered a bug regarding the parental control features.
    Everything was working fine in Windows 8.
    In Windows 8.1, the software has a shift regarding the settings for opening hours.
    For instance if we are Monday, it will apply the settings of Tuesday.
    The clock and calendar is obviously properly set
    Is anyone has seen the same issue ?
    any fix ?
    Best Regards
    John

    Hi,
    PLease check if your PC region is consistent with the real region.
    Then recreate the child account for test.
    If it works, please re-apply these settings.
    Karen Hu
    TechNet Community Support

  • Do parental control filters like AntiPorn (downloaded from CNET) work during private browsing sessions?

    The community discussion about deleting or turning off private browsing was pretty dismissive. People just said: get a filter. That raises the question, is there anything about the private browsing feature that would insulate it from the monitoring function of a parental control filter? CNET strongly endorsed AntiPorn, a free download, which I'm considering using. So the question is, if Private Browsing gets turned on, will it still work to block objectionable sites? I run Firefox with Windows 7 Starter on an HP netbook.

    Sorry if this comes to late, I just now came across this thread.  I have rtorrent and rutorrent sunning successfully on my x64 Arch Linux install.
    Try putting the "SCGIMount /RPC2 127.0.0.1:5000" line in your httpd.conf file right after the LoadModule lines (it's line 124 for me).
    I seem to recall it not working when I put it at the end of the file.
    Best of Luck!
    Martian

  • Really confused here. I have somehow created both a managed account and an administrator account. The admin acct is now highlighted in system preferences. We are now blocked from using our computer because parental controls keeps popping up.

    In attempting to add a music lesson program for my daughters band lessons we have messed up our computer. I now have both a managed account and an administrator account (both in my name).  It is using the managed account now and not letting use the Internet because parental controls keep popping up. I would like to delete the managed account and get back to the admin account but I have no idea what my login is for the admin account. We have never had to use it before this problem started and what we thought it was when we set it up does not work. Any ideas?

    If the user account is associated with an Apple ID, and you know that account password, the Apple ID can be used to reset your user account password.
    Otherwise, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select  ▹ Restart from the menu bar.
    You should now be able to log in with the new password, but you won't be able to unlock the Keychain. If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it. You’ll need to reset your keychain in the preferences of the Keychain Access application.

  • Want to use parental controls to prevent myself from being able to be on certain websites, but i can't do so on my account because i'm the administrator and parental controls don't work with the administrator. How can i do this?

    go on certain websites, but i can't use parental controls on my account because i'm the administrator. How do i prevent access to websites?

    Thanks for the reply, BUT --- i can't fool myself. I can make all the other accounts i want, but i'll still be able to get into the admin account and therefore have access to the websites i don't want to have access to. Is there a way to block websites from ALL accounts?

  • What is the best parental control software for mac?

    Hi!
    I'm starting to teach my son (8 years old) in the use of Mac computer and I would like to have suggestions about the best software to be installed for a good parental control.
    There is the possibility to localize two language (english and italian)?
    thank you in advance for the suggestions!
    Antonello

    Antam7 wrote:
    There is the possibility to localize two language (english and italian)?
    Every account you set up can be localized in a different language if you want.  So you can have yours in Itallian and your son's in English.  The language is determined by what is at the top of the list in system prefs/language & text/language.  You just drag the one you want there and logout/login.

  • Best parent controls for iPads and iMac running on BT Home Hub

    Hi,
    Despite the great sounds coming from the big ISPs about parental controls, they're determined to make a really simple concept absolutely impossible.
    Firstly, I'm not trying to lock-down my family's access to the net, but I have two boys aged around ten, and being boys they're inquisitive, so are probably getting closer to stumbling across some seriously dodgy content... And I want to try to prevent that... It should not be hard. If I could limit the times they were online, just if browsing gets out of hand (they're kids remember) that would be a handy option as well.
    So on to the technical details... We have a standard BT broadband account that comes into a new BT Home Hub. This is currently our WiFi point. We run a laptop, two ipads, iphones and an ipod touch on Wifi, and have a desktop ethernet'd to the Home Hub. BT offer a downlaodable Family Protection package that allows user accounts to be configured, but this does not appear to work on an iPad or Touch.
    Very shortly, we're about to retire the PCs from family life and install an iMac. So we're getting into a properly Mac environment. I was also considering installing a Time Capsule for back-ups and had considered stringing this in series on the Home Hub, then networking all of the Apple devices off of the Time Capsule.
    Ideally, the controls would be at a us level, or at least by device. I've come across some App options, but this seems like an unecessary layer of proprietary complexity.
    So how Do we deploy parental controls? The simplest option, that BT have failed to realise, would be a network solution that filters everything coming into the house and stops it before it even hits the Home Hub - but that doesn't appear to be an option.
    So what options do we have? Any ideas? I had heard suggestions that I could manage user control via the Time Capsule, but that's proving hard to confirm.
    Happy to supply any further information to help with this query.
    In summary, how do I stop **** getting onto my boys' iPads/Touchs... Should be simple????
    Cheers, Mombee.

    Sorry, but the Apple routers do have any type of parental controls on them.
    If you have not already done so, you might want to take a look at the parental control options offered by OpenDNS.
    OpenDNS Parental Control ...

  • Controlling parent movie from a loaded movie

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3264494197_595630
    Content-type: text/plain;
    charset="US-ASCII"
    Content-transfer-encoding: 7bit
    Hi!
    I have a swf file which I call "Stage" and it contains 3
    scenes.
    In scene 1 of Stage, I have another swf- "Info1." loaded on
    level 10. I know
    how to get Info1 to unload and load Info2 but what I am
    trying to accomplish
    is when I click on Info1, it loads Info2 and it also go to
    Scene 2 of Stage.
    Is there anyway I can do this?
    I appreciate any input.
    Thank you.
    K.
    --B_3264494197_595630
    Content-type: text/html;
    charset="US-ASCII"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Controlling parent movie from a loaded
    movie</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Hi!<BR>
    <BR>
    I have a swf file which I call &quot;Stage&quot; and
    it contains 3 scenes. =
    <BR>
    <BR>
    In scene 1 of Stage, I have another swf-
    &quot;Info1.&quot; loaded on level=
    10. I know how to get Info1 to unload and load Info2 but
    what I am trying t=
    o accomplish is when I click on Info1, it loads Info2 and it
    also go to Scen=
    e 2 of Stage. Is there anyway I can do this? <BR>
    <BR>
    I appreciate any input. <BR>
    <BR>
    Thank you.<BR>
    <BR>
    K. </SPAN></FONT>
    </BODY>
    </HTML>
    --B_3264494197_595630--

    Never mind - I was doing something very stupid and wasn't
    calling the function as a method of a movie clip. I was simply
    calling checkTarget(event) rather than
    event.currentTarget.checkTarget(event); which seems to work.

  • Secured Site from a managed (parental control) user

    I hope someone has a fix for this. I just bought this iMac for my daughter. I have parental controls on and now she can not visit any secured sites. Apple - There has to be a way for her to enter her secured sites (there are a lot of sites for kids that require a secure log in), but still have her on a managed account with parental controls on.
    Please tell me there is a fix for this. I see a lot of questions like this but I have not seen Apple respond.

    For what it's worth, I took your advice and posted the following on the Feedback page. Perhaps others can provide similar advice to the Apple OS management folks, though I do wonder if these ever see the light of day. Will post back anything I hear...
    A number of folks have posted comments on multiple threads in the discussion groups about the inability for accounts with Parental Controls turned on to access the iTunes Store. (I have not posted an additional request/comment/complaint, since there are plenty already posted, and my addition won't help anything, though I have also experienced the problem.)
    But my biggest problem is the obvious lack of any feedback from Apple on this. The only folks who have received any response at all on the issue have heard that "Apple is monitoring the issue." What the heck is that? Is there a forum somewhere where we can see and understand what you are working on? When we might expect some help? I just took the plunge and upgraded to 10.5, and now I'm wondering if I can go backwards somehow. This issue is that big for many of us with kids, most of whom own Macs because they are better all around machines for our kids. But as one poster put it, kids and the iTunes store just sort of go together, and this seems to demonstrate a significant lack of either understanding or concern on the part of the Apple OS developers. Or at the very least, a surprising lack of concern for the importance of communication with your otherwise loyal fan base.
    Any feedback on this would be appreciated.

  • HT201304 iOS parental controls do not prevent the child from changing the device passcode.

    So the parent cannot get into the device at all unless the child provides the passcode. Sure, the device can be taken away until the child provides the passcode, but why don't parental controls just prevent the passcode from being changed?  Either that, or the parental control passcode should allow the parent to get into the device, over-riding the passcode lock.

    We are not Apple iOS programmers.  Just device users like yourself.
    feedback.apple.com is where you should send suggestions.

  • Wtih Parental Controls on, need to allow run application from CD

    Hello
    I have restricted my sons access/login using the parental controls and everything is working well except that some of his apps run from CD i.e. Wiggles stuff
    Anyway, with parental controls on his login does not allow these to run, we get a permission denied error. Is there any preference/control in Tiger or Leopard that will allow his apps to run?
    Thanks
    Rick

    Boot Camp is most likely to work, but requires that you restart the computer to change OSes; nearly all Windows applications will work through this method.
    Parallels Desktop and VMware Fusion run Windows from inside Mac OS X through emulation. Applications which require direct hardware access likely won't work, and this method is slower than Boot Camp. It is more convenient to use, as no restarts are needed.
    CrossOver Mac and CrossOver Games translate the Windows instructions directly to Mac OS X ones. This is the cheapest method if you don 't already have Windows and the least compatible one.
    Stating which applications you want to use will enable more specific advice to be provided.
    (33288)

  • How can I restore Parental Control Settings from Time Machine Backup?

    I was trying to adjust one of the parental controlled accounts for my child.  I disabled parental controls, rebooted, and re-enabled it.  Now all the settings that I had setup before are gone.  How can I restore Parental Control Settings from Time Machine Backup?

    Hi ...
    I've found a solution to my problem.
    Time Machine locates extenal HDD backups differently depending if they were done via a network or via a USB/FireWire/Thunderbolt connection.
    My initial backup was done via a direct Thunderbolt connection. I ran into the above issue b/c the second time when I tried looking for the backup file the HDD was conencted to my iMac and I was accessing it via a network conenction.
    I simply connected the drive directly to my MacBook pro and ... voila. I was able to see the backup, select the iPhoto library and begin the restore.
    Hope this helps.
    BTW - I found this out by reading the 'blue box' selection on this page: http://pondini.org/TM/E2.html
    (Thanks goes to Pondini!)

Maybe you are looking for

  • How to handle a failed transaction in Syclo Agentry SAP Work Manager 5.3

    Hello Experts, I have a transaction created on work order time entry. For some reason, when the transactions fails (when clicked on transmit button), the transmit stops as soon as the error is thrown from ECC. However, this transaction remains on the

  • MediaSource not connected to pla

    How do I transfer newly created playlists and songs from my Mediasource to my Zen Touch? I do not see my Zen anywhere within the Mediasource screen.

  • Not heard about iPhone unlock status since received initial email, please help?

    I submitted the online form to get my iPhone 5 unlocked last week and got the email to say it had been received. However, I need to find out about the status of my submission as I am going abroad this week so would like to use new sim card in my phon

  • My question about JSTL

    First, sorry for not being a native English speaker. I started to learn JSTL for Web application a few days ago. Now I try to create a toy web app just to see how to use those JSTL tags. I created a simple web page as following: <%@ taglib prefix="c"

  • Cancelation

    I called to cancel my service today and I was told that I made a verbal commitment with AT&T for one year. Has anybody ever heard of this? When I signed up it was a month to month service. I never signed anything locking me into a one year contract.H