ActionScript 3.0 :: Accessibility Of Instances In Different Frames?
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
Similar Posts:
May 2, 2011
there seems to be no accepted method of playing multiple flv using buttons. My latest attempt has me putting multiple instances of the flvPlayback component in different frames and using buttons to navigate to those frames. It works but nothing anyone has posted anywhere will result in removing the flv when you go to a different frame and instance. This was simple in AS2. Load movie to a traget and each time you load a new movie the other one goes away. REALLY goes away.
View 7 Replies
Jul 30, 2010
I have a symbol that contains all the weapons. I placed 6 of them on the stage. I have 6 variables P1Weapon1... P1Weapon2..etc. I need each one to stop on whatever variable matches them. The scripts needs to be on a external as file linked to the symbol. The variables are declared on a external as file linked to the main timeline.
View 1 Replies
Aug 11, 2011
I have programmed a game using the Flash authoring tool and a document class. I'm trying to graphically add instances and add functionality in the document class. Suppose I have a main timeline with 3 frames, each frame reperesents a different level of the game. In frame 1 I have an instance of the MovieClip class named tree1 on the stage and in frame 3 I have an instance of the MovieClip class named tree3 on the stage. In my document class, after an initial stop() command, I want some logic like:
tree3.scaleX = tree1.scaleX;
But tree3 is unknown to the runtime since we are not of frame 3 yet. Any way to access all the instances on all frames declared in the authoring tool from the document class?
View 1 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 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
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
Nov 16, 2009
I want to create a preloader that plays a certain amount of frames as it loads the rest of the frames. So, I have labels on the frames basically and need a preloader to play the "loading" frames as it is loading the "content" frames. Does that make sense? I have no idea how to even start this one... p.s. I am using AS 2.0, but if it can be done in 3.0 easier, I can switch over its no biggie
View 4 Replies
Nov 24, 2011
basically im making a quiz on my main timeline ive got my questions and answers and on the last frame i want it to say how many answers the user got right. ive made a movie clip on this last frame. in the movie clip ive got 11 frames with the posible totals so frame one would be 0/10 frame 2 would be 1/10 etc what i want to do is when the user clicks the correct answer on the other frames i want flash to make the frames within the movie clip to go 1 step forward.
View 2 Replies
Mar 26, 2009
I have a function that counts days and some other variables and displays the values via dynamic text.
[Code]...
I have to place the incrementCount(): function every 12 frames so that it increments the values. Seems like it would be easier to simply modify the script to count "every 12 frames" but I can't find anything that tells me how to "count frames" in flash. Seems to be this is probably basic but I've searched unsuccessfully....so how do you do this. How do I get my script to work so it's frame based so I don't have to put incrementCount() every 12 frames?
View 16 Replies
Jan 7, 2010
Is it possible to have an movieclip of about 50 frames and navigate between these 50 frames? As if u put a marker on frame 10 and one at frame 30 and if u use a button it plays to frame 10 and stops and use another button to go from frame 10 to frame 30 and stop... and reverse if u use the earlier button.
View 5 Replies
Jan 8, 2010
I want to preload all of the voiceover swf files before a lesson starts so that they are instantly available when each frame / page that incorporates a voiceover is first visited.
View 4 Replies
Oct 26, 2009
Not sure where the difference lies here, but I am trying to understand it. In this piece of code that is a public function of a MC with instances of other MCs in it, I cannot seem to access the instances except in a function within the public function (confused? so am I but here's the code)[code]...
View 3 Replies
Aug 26, 2009
Why I can not open 2 instances of CS4 or CS3. That is very annoying if I need to work on 2 applications. What is the meaning by Main(this.parent.parent.parent.parent);
View 2 Replies
Dec 12, 2009
Is there a way I can arrange instances in a circle by their registration points?
View 6 Replies
Jul 20, 2010
I would like to select all the instances along a motion tween, at each keyframe, and move them over the same amount, all at once.
It can be done in a classic tween using "Edit Multiple Frames".
View 1 Replies
Mar 19, 2011
i am trying to control 30 instances of a movie clip dynamically. the instances are as follows
ship1
ship2
ship3
[code]....
coming from php i would just set up an associative array like list array('speed'=>array(false,false,true,...),'weapon '=>array(true,false,....and so on I can not for the life of me figure out how to store this information and then use it as a variable name later.my end result should look something like this .. i just don't understand how to do this in as3 .. it seems unnecessarily convoluted.
Code:
foreach($upgrades['speed'] as $key => $val)
{
UpgradeScreen.'speed'.$key.visible = $val);
this would dynamically call
[code]....
i know the above is incorrect.I want to create this so that it is completely dynamic and the instance names can be feed in dynamically as the array or whatever is being looped.
View 9 Replies
Feb 17, 2009
Is it possible to create 2 instances of 1 class (for example: "Header"). Add these 2 instances to the stage on different positions. This Header class contains some buttons and what I want, is: when I rollOver one of these buttons, both buttons in the 2 Header instances are "rollingOver".
View 1 Replies
Feb 3, 2009
I am having trouble manipulating instances of xml loaded pictures. I want to change their x and y position and tween them etc. I have loaded them onto the stage from an xml file, and given them all individual names but the most I can do now is either move them all together, spread them evenly on an x or y axis, or remove one of them using getChildByName. What I can't do is what I want to do, which is place 20 or so images in an exact place, ie. a square.My main difficulty seems to be that I don't know how to reference an individual xml node and move it.
View 2 Replies