Flash :: Accessibility Properties Not Updating In Loaded Swf
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.
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.
I'm updating the x and y properties of my Model.as when I drag a Sprite around the stage. However, because both setter functions dispatch an Event.CHANGE, the property that is updated second seems to get locked in place (meaning it doesn't seem to be updated with the correct value as it locks the Sprite in a horizontal or vertical line of movement).
snippet from BubbleController.as ActionScript Code: private function onViewMouseDown(me:MouseEvent):void {
If I have a swf that's being loaded into other peoples' swfs (which I have no control over) is there any way I can get properties from the stage (such as height, width, fullScreenHeight, etc.) or does this have to be exposed by the loading swf?
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.
I set up empty movie clip containers to hold my external .swf files when i load them in. I have 9 different external files that all load correctly. My issue is that when people view my website and cache the files after dynamically loading them, my changes that i make and upload dont take effect because their computers just pull the cached files from the last time they viewed it. This is critical for my site to work because of the amount of text updating and news that i do on it.
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]
I have come across a problem where an SWF that I've developed has to be loaded by another SWF that pans and zooms the inner swf. I have created these two MovieClips to demonstrate my problem, I've called them Inner and Outer. These are the document classes for them:
I dropped a button component into the stage of the Inner.fla file and named it btnOne in the properties window. The Inner.fla runs as expected on its own. When I include code in the OuterClip class to instantiate an InnerClass variable it complains thus:
1120: Access of undefined property btnOne.
So I can see that there is an issue here to do with linkage ?? I've tried quite a few different settings but feel like I am just guessing and have been struggling with it for a while. In my final scenario the outer file will have timeline and actionscript frames with no document class. Is it ok to mix these two methods of scripting?
My goal is to do various things to a movieclip (zoom out with an alpha change) that has a jpg loaded into it. My thought is that I can load any jpg into the movieclip, and it will follow the commands made to the movieclip (i.e. zoom / alpha change).I am at the point where I am setting up the movieclip properties. Some of the questions I have are: is it possible to constrain the movieclip to a particular dimension, regardless of the jpg size. The jpg would then, ideally, need to be told to center within the movieclip, and the excess picture be cut off. Here is what I have so far: [code]For some reason the mc will no longer show up, and the traces come up as unvalid when I add the width and height dimensions, otherwise the picture will load, but at its original dimension.I was wondering if there was a tutorial explaining some of the concepts of mc's and loading images.
Main movieclip onstage is : design_mc. Within it is a movieclip already in place onstage with an instance name clipart_mc.also loading a ListBox to the stage and each time a selection is made from listbox myLoader9 is used to load selected .swf intodesign_mc.clipArt_mc.Now within each of the .swf files loaded into design_mc.clipArt_mc there is a mc ike to color transform called color_mc.So now the listbox is onstage and I make a selection that places heart.swf inside of design_mc.clipArt_mc. I want to access heart.swf so I did this:
var child:DisplayObject = myLoader9.content.contentLoaderInfo.content.color_mc; var colorTrans3:ColorTransform = new ColorTransform(); var trans3:Transform = new Transform(child);
i'm following a tutorial but modifying it to suit what i'm trying to do, basically the tutorial sets the X of each image upon loading but what i need is for the X of the image to change according to the position of mouseX
since cvItemLoader is a variable inside of the cfAddItems function i can't change the image's X from outside the function, at the same time i can't possibly define the variables outside because the total number of images will vary
here's my codes :
var cvTotalThumbs:Number; var cvXMLList:XMLList; var cvMenu:MovieClip;
I am running a for loop to bring in movie clips from an array, and I have a couple buttons that I want to affect the properties of all of the mcs. The buttons (labelsOff_btn, labelsOn_btn, increaseSize_btn, decreaseSize_btn) are only affecting the second-to-last item on the list, although the drag functions targeting the same mcs (thIcon) are working for everything. Code is pasted below:
I have the following AS3 code. I'm just beginning and have gotten on this since finding it here: (take out the spacesloadingData.phpNow, I find out that I cannot access the properties of the loaded movies because they are AS1 or AS2. converting this to AS2?
Code: import fl.containers.UILoader; var ar_movies:Array = new Array();
I am trying to set a couple of properties (specifically width and height) for an mc within an externally loaded swf but am having bigtime troubles. Keep getting the 'Error #1010: A term is undefined and has no properties'. The code is attached below. I have tried to figure this out and searched for solutions but could not resolve this myself.
My movieclip clipArt_mc receives movieclips that are loaded dynamically from a listbox selection using:
[Code]....
I would like to access the nested or loaded in movieclip inside of clipArt_mc that has in it a movieclip named color_mc so that I can apply color directly to it instead of clipArt_mc.
How would you go about calling the public properties and methods of a SWF you load in actionscript?
I have been using stackoverflow for years to answer my programming questions so I wanted to give back by writing a guide to an issue I had a lot of trouble figuring out. This is my first user guide so tell me if there is anything I can do to improve it.
I am still wrapping my head around AS3 and have been building out functionality that loads external images (PNG) from XML and putting them into MovieClips that have interactive events assigned.[code]What I'm trying to do is smooth the images when they are loaded and then adding them to the container "imageClick". What is happening is that the "image" is returning null. A lot of the code above is snippets I've been finding and I guess I'm confused with how some of these things work together.If I remove all the "image" functionality and change the line:[code]The images load fine and show up, but they aren't smooth when scaled.I guess what I'm asking, is how come my "image" object is returning null every time?
i have a movie that has 3 buttons on it..(and there r 7 of these button containing movies being loaded into my main movie...but this is not important in our case i guess.) anyway, each button loads a movie (they r draggable windows) into my main movie, located in different levels (not targets)..the problem is i want to change the alpha and depths of these draggable movies.eg;when i click on a button i want that draggable movie to come forward and set its alpha to 100 and the other two to 30..i could do this by loading the windows in target locations..but i can't do it when i load them in levels..
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended.
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
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?
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?
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