[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
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
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
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] Interesting problem - doesn't work without call to trace.
I know this is a few days old, but I have some input. I have seen something similar to this with AS2. Using the WebServices class, when you make a method call on a web service object, you create a pending call object, and one of the properties of the pendingCall class was doLazyDecoding. What this variable specified was whether the player should convert the XML data to native Flash objects right away, or only when needed. I had multiple issues with trying to access information from the return of a WebService call, and the only way to fix it was to set doLazyDecoding to false. Since WebServices send data as XML, it could be, that the same type of issue is occuring here in AS3 with the new XML object. FP is probably doing something in the background with the xml just loaded, and hasn't finished yet when you don't put the trace in. That's just my wacky theory. Ktu On Fri, Apr 17, 2009 at 8:38 PM, Taka Kojima t...@gigafied.com wrote: Hey Tim, I have run into this before as well, with both ActionScript and using alert() in JavaScript. What I concluded was that the trace/alert basically adds a small pause or causes something to happen (i.e. skip a frame or something of the sort) so that the code below it works. I may be totally wrong and this may sound crazy and stupid, but whenever I did something like take the trace out and put the rest of the code into a COMPLETE event for a timer, or had the code run on the next frame with an onEnterFrame, it started working. I know you say you don't think its a timing issue, but instead of the loop try doing a Timer and see if that solves it. On Fri, Apr 17, 2009 at 9:09 AM, Tim Hawkins tim...@googlemail.com wrote: Well, it becomes a null - so if I do select1.toString() in the trace I just get a runtime error.. And I don't want to turn the results of my query into a string, because I need it as an XML ref. 2009/4/17 Glen Pike g...@engineeredarts.co.uk Have you tried the toString or toXMLString for this - check the XML class for the proper function name... Glen Tim Hawkins wrote: Hi Matt, No, afraid not.. I actually use the select1 variable elsewhere, so it's not just that trace which is the problem. Thanks for the suggestion though! 2009/4/17 Matt S. mattsp...@gmail.com Does it make a difference if you write the trace as : trace(formData=+formData); trace(select1:+ select1); On 4/17/09, Tim Hawkins tim...@googlemail.com wrote: Hi, I've come across this a few times in my own code, but haven't seen it mentioned online - though it's a difficult thing to google for. In the following function, if the trace at the top is present, formData traces a load of XML and select1 also traces a load of XML. If I comment out the top trace, formData still traces the same pile of XML but select1 traces null! public function testMakeModelFilterWorks():void { trace(); default xml namespace = NAMESPACE; var select1:XML = formData..select1[2]; trace(formData=, formData); trace(select1:, select1); // etc default xml namespace = null; } Any ideas? I'm getting fed up of leaving 'trace();//don't delete me' at the top of functions. (I don't think it's a timing thing, if I put a 10-item increment-a-variable loop in there instead of a trace the E4X still fails.) t. ___ 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 ___ 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] why is called Vector in AS3? why not TypedArray?
I think it is really stupid, and bothersome as hell with regard to code completion when working with the vector3d class. Just had to vent. Can anyone tell my why? vector is usually a point, combination, or an attack method in my books. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] why is called Vector in AS3? why not TypedArray?
It's probably a Java thing - Java has really annoying typed arrays called Vector too - seems that there should be a big argument whether the mathematical definition of vector should overrule the computer science definition based on age, but then we would all have to reset our screens because 0, 0 would become bottom left, instead of top-right :) Anthony Pace wrote: I think it is really stupid, and bothersome as hell with regard to code completion when working with the vector3d class. Just had to vent. Can anyone tell my why? vector is usually a point, combination, or an attack method in my books. ___ 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] why is called Vector in AS3? why not TypedArray?
Well, the word vector has more than one meaning. This same question was asked sometime ago in stackoverflow, about C++ std vectors. You might like to check it out. http://stackoverflow.com/questions/581426/why-is-a-c-vector-called-a-vector Cheers Juan Pablo Califano 2009/4/27, Glen Pike g...@engineeredarts.co.uk: It's probably a Java thing - Java has really annoying typed arrays called Vector too - seems that there should be a big argument whether the mathematical definition of vector should overrule the computer science definition based on age, but then we would all have to reset our screens because 0, 0 would become bottom left, instead of top-right :) Anthony Pace wrote: I think it is really stupid, and bothersome as hell with regard to code completion when working with the vector3d class. Just had to vent. Can anyone tell my why? vector is usually a point, combination, or an attack method in my books. ___ 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] why is called Vector in AS3? why not TypedArray?
To quote a comment: It's called a vector because Alex Stepanov, the designer of the Standard Template Library, was looking for a name to distinguish it from built-in arrays. He admits now that he made a mistake, because mathematics already uses the term 'vector' for a fixed-length set of numbers. Now C++09 will compound this mistake by introducing a class 'array' that will behave similar to a mathematical vector. Alex's lesson: be very careful every time you name something. Juan Pablo Califano wrote: Well, the word vector has more than one meaning. This same question was asked sometime ago in stackoverflow, about C++ std vectors. You might like to check it out. http://stackoverflow.com/questions/581426/why-is-a-c-vector-called-a-vector Cheers Juan Pablo Califano 2009/4/27, Glen Pike g...@engineeredarts.co.uk: It's probably a Java thing - Java has really annoying typed arrays called Vector too - seems that there should be a big argument whether the mathematical definition of vector should overrule the computer science definition based on age, but then we would all have to reset our screens because 0, 0 would become bottom left, instead of top-right :) Anthony Pace wrote: I think it is really stupid, and bothersome as hell with regard to code completion when working with the vector3d class. Just had to vent. Can anyone tell my why? vector is usually a point, combination, or an attack method in my books. ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] why is called Vector in AS3? why not TypedArray?
Well with regards to the monitor position, I have always thought that the bottom left corner should be 0,0 just as in the Cartesian coordinate system so that increasing numbers go to the right and up on the screen. It makes graphic mathematical equations so much easier. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: Monday, April 27, 2009 11:06 AM To: Flash Coders List Subject: Re: [Flashcoders] why is called Vector in AS3? why not TypedArray? It's probably a Java thing - Java has really annoying typed arrays called Vector too - seems that there should be a big argument whether the mathematical definition of vector should overrule the computer science definition based on age, but then we would all have to reset our screens because 0, 0 would become bottom left, instead of top-right :) Anthony Pace wrote: I think it is really stupid, and bothersome as hell with regard to code completion when working with the vector3d class. Just had to vent. Can anyone tell my why? vector is usually a point, combination, or an attack method in my books. ___ 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] why is called Vector in AS3? why not TypedArray?
http://www.bit-101.com/blog/?p=1659 From: Merrill, Jason jason.merr...@bankofamerica.com Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Mon, 27 Apr 2009 14:12:22 -0400 To: Flash Coders List flashcoders@chattyfig.figleaf.com Conversation: [Flashcoders] why is called Vector in AS3? why not TypedArray? Subject: RE: [Flashcoders] why is called Vector in AS3? why not TypedArray? The term vector is also commonly used in GIS/GPS data to define point-to-point line definitions of sampled areas - the connecting lines or arcs between the beginning and end points. Coming from a GIS background, that was the first thing I thought of when I heard of the new Vector array. I thought the same thing, why not call it TypedArray? Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] why is called Vector in AS3? why not TypedArray?
The term vector is also commonly used in GIS/GPS data to define point-to-point line definitions of sampled areas - the connecting lines or arcs between the beginning and end points. Coming from a GIS background, that was the first thing I thought of when I heard of the new Vector array. I thought the same thing, why not call it TypedArray? Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flex sdk set up question
Sorry to ask a Flex question here but I'm sure one of you knows the answer or at least can point me to the place I can find the answer. I am using Flex builder to build a pure AS project. I have been using the 3.0 sdk without a problem. When I updated the SDK to in order to build a Flash 10 project the compiler can't find the core flash package. So base stuff like MovieClip does not exist. I pretty much just downloaded the SDK and added via the preferences dialogue. I've tried the 3.2, 3.3, 4.0 SDKs with the same results. I'm sure I am missing some step but I'm not sure what. Also, where is the best forum for asking Flex questions? Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flex sdk set up question
Also, where is the best forum for asking Flex questions? The best forum for Flex questions I have found is the Flexcoders list on Yahoo groups. I don't know of a larger more talent-rich, and Adobe employee participated list for Flex. Perhaps there is one, but I am not aware of it. I don't know the answer to your question, but if worse came to worse, you can use FlashDevelop + Flex SDK to do a pure AS3 project. Pointing to the new Flex SDK is pretty straightforward in that app. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders