RE: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip
Just in case anyone else experiences problem with the tab index property set in the accessibility panel not working properly, I found that setting the tab index with code seemed to do the trick E.g instructionsBtn.tabIndex = 1; selectBtn.tabIndex = 2; highscoresBtn.tabIndex = 3; learnBtn.tabIndex = 4; btnSoundOff.tabIndex = 5; No idea why the property panel didn't work. I am publishing for Flash 6 so probably something that has been fixed by now. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip
I tried the tabChildren code and still the buttons do not highlight when the tab key is pressed. Any other ideas why these buttons are not being highlighted? The panel that is displayed has various keyframes, each with different panel variations on. Each of these panels has a text entry field to allow the user to enter their nickname. I have used the following code to focus the text entry field. Perhaps this is causing problems? Selection.setFocus(objGame.popupPanelObject.nicknameTxt); My buttons are the following paths: popupPanels.submitBtn popupPanels.playAgainBtn I have just tried adding the following code in a function that is called when the panel keyframe displays but still no joy:( popupPanels.submitBtn.tabEnabled = true; popupPanels.playAgainBtn.tabEnabled = true; Btw here is my code to display the pop up panel, just in case there is anything here that would affect it. function createPopupPanel() { var strInstanceName = "popupPanels"; var strLinkageName = "popup-instructions"; var numDepth = 10010; objGame.popupPanelObject = objGame.thePath.attachMovie(strLinkageName, strInstanceName, numDepth); objGame.popupPanelObject.tabChildren = true; objGame.popupPanelObject._x = -30; objGame.popupPanelObject._y = -30; } Any ideas anyone? Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Weyert de Boer Sent: 27 April 2009 11:04 To: Flash Coders List Subject: Re: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip Did you enable tabChildren on the dynamically displayed movieclip? myClip.tabChildren = true ? tabChildren : Boolean Determines whether the children of the object are tab enabled. tabEnabled : Boolean Specifies whether this object is in the tab order. Yours, Weyert de Boer On 27/04/2009, at 7:47 AM, Paul Steven wrote: > I am trying to ensure all the buttons in my movie are accessible > with the keyboard only and have run into a problem where several > buttons within a movie clip that is dynamically displayed are not > being highlighted by the tab. > > Basically I have 2 buttons on screen that are placed via the > timeline. And I dynamically display a game over panel that has a > "Submit" button and a "Play Again" button within it. I have used the > accessibility properties panel to assign a tab order to these 2 > buttons. However when the panel is displayed these 2 buttons do not > highlight when the tab key is repeatedly pressed. It just highlights > the other 2 buttons, alternating the highlight between the 2. > > Anyone any insight into why these buttons are not highlighting? Do I > need to use some action script after the panel has been displayed to > set the accessibility? > > Btw the game is being published as Flash 6 Action Script 1. > > Thanks > > Paul > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip
Hi Weyert, No I didn't. I wasn't aware you could. I assume that the default is therefore not to enable them. Only one way to find out I guess. Many thanks Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Weyert de Boer Sent: 27 April 2009 11:04 To: Flash Coders List Subject: Re: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip Did you enable tabChildren on the dynamically displayed movieclip? myClip.tabChildren = true ? tabChildren : Boolean Determines whether the children of the object are tab enabled. tabEnabled : Boolean Specifies whether this object is in the tab order. Yours, Weyert de Boer On 27/04/2009, at 7:47 AM, Paul Steven wrote: > I am trying to ensure all the buttons in my movie are accessible > with the keyboard only and have run into a problem where several > buttons within a movie clip that is dynamically displayed are not > being highlighted by the tab. > > Basically I have 2 buttons on screen that are placed via the > timeline. And I dynamically display a game over panel that has a > "Submit" button and a "Play Again" button within it. I have used the > accessibility properties panel to assign a tab order to these 2 > buttons. However when the panel is displayed these 2 buttons do not > highlight when the tab key is repeatedly pressed. It just highlights > the other 2 buttons, alternating the highlight between the 2. > > Anyone any insight into why these buttons are not highlighting? Do I > need to use some action script after the panel has been displayed to > set the accessibility? > > Btw the game is being published as Flash 6 Action Script 1. > > Thanks > > Paul > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip
Did you enable tabChildren on the dynamically displayed movieclip? myClip.tabChildren = true ? tabChildren : Boolean Determines whether the children of the object are tab enabled. tabEnabled : Boolean Specifies whether this object is in the tab order. Yours, Weyert de Boer On 27/04/2009, at 7:47 AM, Paul Steven wrote: I am trying to ensure all the buttons in my movie are accessible with the keyboard only and have run into a problem where several buttons within a movie clip that is dynamically displayed are not being highlighted by the tab. Basically I have 2 buttons on screen that are placed via the timeline. And I dynamically display a game over panel that has a "Submit" button and a "Play Again" button within it. I have used the accessibility properties panel to assign a tab order to these 2 buttons. However when the panel is displayed these 2 buttons do not highlight when the tab key is repeatedly pressed. It just highlights the other 2 buttons, alternating the highlight between the 2. Anyone any insight into why these buttons are not highlighting? Do I need to use some action script after the panel has been displayed to set the accessibility? Btw the game is being published as Flash 6 Action Script 1. Thanks Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Tab accessibility of buttons within dynamically displayed movie clip
I am trying to ensure all the buttons in my movie are accessible with the keyboard only and have run into a problem where several buttons within a movie clip that is dynamically displayed are not being highlighted by the tab. Basically I have 2 buttons on screen that are placed via the timeline. And I dynamically display a game over panel that has a "Submit" button and a "Play Again" button within it. I have used the accessibility properties panel to assign a tab order to these 2 buttons. However when the panel is displayed these 2 buttons do not highlight when the tab key is repeatedly pressed. It just highlights the other 2 buttons, alternating the highlight between the 2. Anyone any insight into why these buttons are not highlighting? Do I need to use some action script after the panel has been displayed to set the accessibility? Btw the game is being published as Flash 6 Action Script 1. Thanks Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders