ActionScript 3.0 :: Code For Access/shortcut Keys/Accessibility?
Sep 22, 2008
I have figured out how to add tabs to text by makinginvisible buttons and using the accessibility panel, but haven'tbeen able to get access keys to work (there is a place to add theshortcut on this panel). I have read that I need to enter somethinglike "Control+I" in the field for shortcut, but I don't know whatcode to add to the frame to get it to work.
View 1 Replies
Similar Posts:
Oct 27, 2010
I cannot find Pan anywhere in the shortcut key explorer thing. I want to add the middle mouse button click to the Pan behavior.
View 7 Replies
Oct 28, 2009
I'm making a custom class which extends the Dictionary class. I want to access its key:value pairs like any regular Dictionary Object. i.e.:
for (var key:Object in myCustomDictionary) {
trace(key);
}
When I test the example though, trace() returns nothing.
Here is my code:
/*// TIMELINE EXAMPLE
import lachmanski.ui.LmKeys;
trace( LmKeys.keys );
*/
[Code] .....
View 1 Replies
Jan 12, 2011
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
[Code]...
View 2 Replies
Apr 27, 2011
whether using a String as the key in a Dictionary results in slower lookups than using an Object, Class or Custom Object (an instance of developer defined Type)?
When using a String as a key, does the literal String have to be parsed, or does the Dictionary key point to the String Object?
View 2 Replies
May 16, 2003
How do I get the AWSD keys to work as smoothly as the arrow keys. I can put the arrow keys inside an enterFrame
[AS]onClipEvent (enterFrame) {
//move the tank
if (Key.isDown(Key.RIGHT)) {
[Code]....
If I put the AWD keys inside an enterFrame they run until I push another button
View 6 Replies
Oct 20, 2011
In AS2,suppose there is an input text field in frame 1 with var name ONE,its text content can be accessed in say frame 2 even though that textfield is not in stage.But in AS3,I think this is not possible right?So,how can I access instances or movieclips or variables at different frames?Do I have to make a class and make const vars?If so,If I have some irregular shape,say a man as movieclip,how can I add it to the global class?
View 5 Replies
Sep 22, 2008
I need to add accessibility to a flash program which I have created. I can make the screen reader state all of the different buttons and at the top level of a combobox. However if I traverse the combobox none of the items are mentioned by the screenreader. I've tried various things down to trying to set the accessibility properties of the combobox items as though they were an array cb[0].accessibilityProperties = accessProps0; but nothing seems to work.
View 2 Replies
Aug 11, 2009
I'm a blind developer who is considering learning Flex. According to this link when you compile a flex application with the defaults it isn't accessible to screen readers. Why is this, are there performance issues I should be aware of, or was this just an arbitrary choice Adobe made?
View 2 Replies
Feb 13, 2010
The Accessibility best practices for Flex page from Adobe website list four strategies to enable accessibility :
[Code]...
I test if the accessibility is enabled by checking the value of Accessibility.active, which is always false in my sample application containing only a datagrid and some buttons, using the four above strategies. As I'm new to Flex, I don't really know where else I could search to enable it, and no, Accessibility.active = true; isn't a solution, as it's a read-only property
View 1 Replies
Mar 4, 2010
I have a flash based Air application I'm trying to add keyboard accessibility to (not flex).
My problem is that MouseEvent.CLICK is not being broadcast when tabbing to and hitting enter on an interactive movieclip.
The yellow hilight rectangle shows up around the movieclip fine, and the same code works perfectly if it's compiled into a non-air swf.
Is there some difference in keyboard interaction when compiling to Air?
View 1 Replies
Nov 28, 2010
I need to make a small app accessible to screen reader.I'm managing to make buttons accessible, but I would also like to have a section of text accessible by screen readers so that users can hear what the text says.
I can't seem to work out how to do this.. I've tried various text controls and set them as focusEnabled, tabEnabled, i've set the accessibility* attributes too but it never seems to work, I cannot tab to a text label and hear the content.
I'm honestly a little new to accessiblity in Flex so apologies if i'm missing something obvious.
View 1 Replies
Feb 16, 2011
I'm making a modular site, that loads in external swfs that need to have decent screen reader names for each of the buttons.
The shell swf is set up to work with Thunder and NVDA screen readers by creating an AccessiblityProperties instance and assigning it to the relevent display objects then calling Accessibility.updateProperties( ) ; This method works in the main swf, but when used in the loaded swf it's not picking up the updated accessibility properties of the buttons, even though Accessibiltiyy.updateProperties( ) ; as been called again.
View 1 Replies
Feb 20, 2012
I need to load a flash-game inside the flash site. The goal is to get information about the winners' score to publish it on the site. The problem is that the game was developed by third-party programmers, so I have no idea if I can get access to any variable of the loaded swf (game) to get the highscores.
How can I retrieve the data from loaded swf?
View 1 Replies
Jul 24, 2010
I'm having trouble accessing the variables of my main class from other class objects UNLESS the objects are extensions of the Sprite or MovieClip class, have been added to the display list as a child of the main class instance, and I am able to use the this.parent.variable syntax. What I'm wondering is, isn't it possible to have a simple Object declared and instantiated, residing in memory and able to access another object's properties, without it being a part of the display list? Am I doing something stupid here?
Let me explain the code a bit in case it's a design flaw on my part. (I'm still learning AS3 and am not completely fluent with it yet).
I have a project with about 15 custom classes. There are no frame scripts in the .fla file. I am using it basically as a library only. The document class (let's call it Calculator for this example) extends the Sprite class and specifies the properties for the SWF dynamically. All other classes are instantiated from this main class. I have a bunch of variables that I want accessible to the different classes, so to keep them in a central location, I have declared them in the Calculator class, and am trying to access them from the other object instances.
(It should be noted that there ARE animations that need to play at times, so I'm assuming I can't NOT extend the MovieClip or Sprite class when creating the document class.
For this example, let's say there's another class called XMLLoader.as, whos instance was created from within the Calculator class, that needs some information stored in the Calculator class' variables. Incredibly simplified code for the two classes might look like this:
Document class:
Code:
package {
import flash.display.*;
public class Calculator extends Sprite {
[Code].....
So, in the code above (I've bolded the most important lines in red), the only way I have been successful at accessing the variables declared in the document class from other classes is to extend the MovieClip or Sprite class when I create the custom class, add the object as a child of the document class (Calculator), create a generic variable cast to the datatype of the document class, and use it to access the variables.
This seems really excessive to me, and I'm wondering if it is, or if this is simply a limitation of ActionScript. Does, for instance, a URLLoader object actually need to be associated with a MovieClip included in the display list in order to access internal variables of the main class object? Is it me, or is that really convoluted? Shouldn't it be able to exist in memory separate of the display list and still have access to varibles declared from the main timeline (i.e. the document class in this case)? Is there no other syntax for accessing these elements? Have I done something limiting with how I've designed this or declared the variables?
View 9 Replies
Sep 14, 2009
Can you tab into CS3 Playback components or control them with keyboard commands in a regular (non screenreader) browser like IE? If not, can you in CS4? I believe that all screen readers can control Flash playback now, correct? But I have a higher up who wants it to be keyboard controlled as well.
View 4 Replies
Jul 5, 2011
How to add accessibility requirements to a swf created using mxml+flex sdk? I have a few buttons and textfields in the swf and the impaired user should be able to increase the button size and text size while using the swf. I've looked into flex built-in accessibility features, but its not what I require. I want to run the swf standalone without a browser, so preferably change the size with a visual widget.
View 1 Replies
Mar 4, 2009
Just finished our new site which is full screen Flash effort (link in my signature if you're interested), now I would really like to implement some accessibility features, bookmarking, history etc.The whole site has a central navController function through which nav requests pass which I've developed with this in mind, and I've got a vague idea of how to do this using invisible frames and passing variables through FlashVars but is there any consensus on what is the absolute best way of doing this? The new Attik site is a good example of what I want to achieve [url]
View 4 Replies
Sep 22, 2008
I need to add accessibility to a flash program which I have created. I can make the screen reader state all of the different buttons and at the top level of a combobox. However if I traverse the combobox none of the items are mentioned by the screenreader. I've tried various things down to trying to set the accessibility properties of the combobox items as though they were an array
cb[0].accessibilityProperties = accessProps0; but nothing seems to work.
View 1 Replies
Jan 3, 2012
I have an application written with Flex 3.6 and when I create a modal popup dialog, the buttons and text on that popup do not work correctly with the Accessibility properties that I have defined. The app is compiled with the accessibility flag. I build a simple app to test demonstrate the problem.
[Code]...
View 1 Replies
Mar 7, 2010
I need to know how I can access the images in this XML code (per image):
Code:
<?xml version='1.0' encoding='UTF-8'?>
<component name='XMLSlideShowV3'>[code].....
I just don't know how to access this type of xml code.And I can't change it to something else because I have a component that reads only this type of code.
View 2 Replies
Jan 21, 2009
Is there a mechanism by which native code can be called from within ActionScript?
View 4 Replies
Jul 21, 2008
Can anyone explain me how you access a component code in flash CS3?
View 1 Replies
Jul 28, 2011
I already made some buttons that I was planning on using as a menu for difficulty, easy,medium, hard. The buttons are already made with all the states and graphics, so I wanted to add an event listener so that when you click a button for example easy, if the medium button was at its hit state I would revert it back to up, eg:easyButton.addEventListenere(MouseEvent.CLICK, function(e:event) { mediumButton.gotoAndStop("up") or mediumButton.up
but then I realized there is no propertie or function in the simpleButton class to change the state of the button, I know I can make a movieclip, and do gotoAndStop at the up frame, but is there a way to make it work as a button???
View 7 Replies
Oct 19, 2010
I want to access a clip that I dragged onto the stage , claed it mcBlocker and I am trying to access it from another clip thats in another layer but same frame and the code is inside that second clip: this is the code:
Code:
trace("::"+(this.parent as MovieClip).mcBlocker);
for(var i:int=0;i<this.stage.numChildren;i++){
[code].....
View 5 Replies
Nov 26, 2009
Hi, is there anyway to access the 3d centerpoint property by code? I´m rotating some movieclips with the rotationY property but they always rotate around their center point... i wanted them to rotate around the edge to create a page-flip effect... but i cannot find the 3dcenterpoint property that it´s on the flash transform menu...
View 1 Replies
Aug 13, 2006
onClipEvent(load){this._alpha = 0;}A lot.And I always find myself writing it out...and it's a pain in the ***. I wish there was a way you could save commonly used snippets of code and just easily access them whenever.
View 2 Replies
Mar 15, 2007
I can't seem to access the sound duration value in my code, I am not sure what I am doing wrong.
Code:
var directory:String = "Voices/";
var noOfSongs:Number = 100;
var aSongs:Array = [];
var currIndex:Number = 0;
[code]....
View 1 Replies
Nov 17, 2008
I always find myself writing it out...and it's a pain in the ***. I wish there was a way you could save commonly used snippets of code and just easily access them whenever.
View 3 Replies
Nov 17, 2011
I know in AS2 I could do this pretty easily .. But am unsure of the syntax approach of AS3.
I want to have a main movie which will load in an external swf, which has AS code in its timeline. Then I wish to access the functions inside this external swf and control them from the 'controller' swf (the main movie).[code]...
View 4 Replies