ActionScript 2.0 :: Document Key Keystrokes Not Being Picked Up
Sep 25, 2006
I have a little application running and I want the Page Up and Down Buttons to do something when pressed. For some reason though, when I am testing the movie and I press the buttons nothing will happen. I can't even trace anything.It seems to be the case with all of the "Document Keys" (Home, End, Delete, PgUp, PgDown), but not with any of the others.
View 4 Replies
Similar Posts:
Apr 7, 2009
I'm trying to load an external SWF into an MC. The SWF is determined by a variable in the main MC. The first frame of my main MC contains a preloader, in the second I have added the following line of actionscript code decalaring the variable;var dealershipName = "bellville";From the main menu a seporate MC is loaded onto level 1, from within this MC depending on the var declared in my main MC the external SWF is loaded into an MC called staff. The actionscript code used for this is as follows;loadMovie("http://www.baronsbellville.starterweb.co.za/staff/"+_root.dealershipName+"/nvss.swf", this.staff);To the best of my limited knowledge at runtime the "+_root.dealershipName+" should be replaced with bellville and the file should load. This is not the case though. If I replace the "+_root.dealershipName+" with bellville in the above url it works fine.
View 3 Replies
Mar 7, 2011
I'm trying to do an eventDispatch but the event isn't getting picked up.The dispatch is coming from swf B, and the listener is in swfNot sure if it's an issue because they are 2 files. Does anyone know of a solution?
View 1 Replies
Jan 6, 2011
I can set them up and even partially delete items (there value is replaced with "undefined") in the array but not thier index. What i want to accomplish is to have a number of words in array that are randomly chosen one at a time and only one time each on the press of a btn.
So if the array contains the words; the, go, see, a
The first press of the button might choose the word "the". Which would remove it from the list and the next press of the button would randomly choose one of the remaining words; go, see, a.
View 1 Replies
Oct 21, 2010
To dispatch an event with custom paramaters to be picked up in a parent class what do I do to this?
say I want to pass an integer
[Code]...
View 8 Replies
Mar 5, 2011
I have 40 frames that I want the player/user to go through. The 40 frames shoud be shown in a random order and no frame shown more than once.
How do I go about making the random function discard frame numbers already picked?
View 9 Replies
Apr 11, 2011
I am making a password protected site. I have made the site function that the proper password is required and once submitted the user gets linked to the next page.I want the password text box to not accept anything from the keyboard except for the ctrl+paste function. how to disable certain keystrokes using AS3? I want the letters A-Z disabled with the exception of the letter V.
View 2 Replies
Sep 26, 2009
Is it possible to handle keystrokes WHILE dragging? I found this to be impossible, because hitting a key always fires an "onRelease" or "onReleaseOutside" event on the dragged movieclip when releasing the key - intterupting the drag operation. What I want to do is something like this: Drag and Drop a Movieclip and while dragging it I want to be able to flip it with a keystroke.
[Code]...
View 2 Replies
Dec 11, 2011
Can keylisteners be used to record keystrokes for later playback? If not, what can? The goal is to develop a way for individuals to make their own music via keypresses. For example: The R key is pressed to start the recording of the user's keyboard, with each keystroke assigned to play a different movieclip/audio, etc. The S key is then pressed to stop the recording. Lastly, the P key is pressed to play those movieclips/audio,etc. in their recorded sequence at the enjoyment of the individiual user.
[Code]...
View 8 Replies
Feb 20, 2012
I'm learning Flash to make a website for one of the companies I work forI have a decent portfolio page that loads content information from an .xml document. I'm just thrilled that it works, but my boss wants a little more.He wants to be able to scroll through the entries with left and right keystrokes. In the glow of my recent array-building triumph, I told him, 'sure, I can do that!' ...but I can't. I can't figure out how to make the left and right keys go to previous or next entries. With previous problems I've been able to find an answer by searching google, but I'm stuck on this one.
Here's my code:
var titleArray:Array = new Array();
var descriptionArray:Array = new Array();
[code]....
View 3 Replies
Apr 4, 2007
I have a movie with a blank mc on the stage. I have it set up so that when you press the RIGHT keyboard key it loads another movie in that mc. Here's the code for that:
Code:
stop();
this.onKeyDown = function() {
if (Key.getCode() == Key.RIGHT) {
[Code]....
If I have more than one movie, how do I code it so that when I press the RIGHT key again it loads another movie as well as goes back when I press the LEFT?
View 2 Replies
Jan 23, 2010
when I test my project in flash CS4, both the flash player and the authoring tool detect my keystrokes. Is there a way to make the authoring tool ignore key input while testing a movie, since I really only intend the key presses for the movie?
has anyone else found trace() to be much, much slower in CS4?
View 1 Replies
Jan 11, 2011
I am accessing some games that my company built using a AIR browser (allowing us to sell an installable product on a CD, but keeping the content online for ease of maintenance). I can get the games to load, but i cant get them to accept keystrokes, ie: we have a tetris-like game that isnt getting any of the arrow key inputs. I'm fairly certain this has something to do with a focus issue, but I have no idea how to fix it.
View 2 Replies
Jul 26, 2010
As the title suggests, is it possible to capture system-level keystrokes?
View 3 Replies
Sep 15, 2010
Some of my Flash application components require to intercept Ctrl + F4 keyboard events. Unfortunately, the KeyboardEvent is not caught when running the app under IE since it is conflicting with the IE native shortcut (closing the active tab). Is there a way (ideally relying on Flash principles) to intercept such keystrokes?
View 2 Replies
Jan 1, 2010
I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys.In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to have the focus.How can I ensure that the application has the focus? I've implemented a bit of a hack: A "Begin" button you must click to start the game. The only point of this button is to ensure that the app has the focus.
View 2 Replies
Jul 21, 2010
I need to find a way to detect keystrokes when the flash file is not selected and send that information to an .swf file. The file would be stored locally (not on the internet).
View 3 Replies
Jun 28, 2011
I've created a simple Flash based menu (ONE frame, 7 layers) with a Keylistener on the first frame of my "background" layer. I have it setup with six links/buttons. Clicking a button opens that URL. And in "Test" mode from the Flash Editor, pressing 1 thru 6 on the keyboard launches the specified link as well.
But after I publish/upload my file, it no longer detects any keystrokes. I suspected this was because the animation was playing just one frame and stopping, but the animation is set to loop. I also tried adding a second frame and adding a "gotoandplay(1);", but that didn't work either.
Code:
KeyListener = new Object();
var myKey;
KeyListener.onKeyDown = function() {
myKey = Key.getAscii();
[code]....
View 1 Replies
Dec 15, 2009
Can I set the style of another document from it's parent document? At the moment its giving me the error 1119: Access of possibly undefined property StyleManager through a reference with static type DesignCardForm.
View 2 Replies
Mar 14, 2002
Is it possible after embedding a flash exe in to PowerPoint document that we can make flash buttons tell the ppt document to go to a certain slide.
View 2 Replies
Dec 14, 2010
I am dispatching an event from one document class and listening for it via another document class.My code in class A.
Code:
this.dispatchEvent(new MYEvent(MyEvent.APERTURE_DONE));
trace("Dispatching APERTURE_DONE");
my code in class B.
Code:
addEventListener(MyEvent.APERTURE_DONE, onDoorsOpen,true);
trace("Lisetning for APERTURE_DONE");
[code]....
My listener is registering before the event is dispatched, based on my output window, however I never get the "Open Doors" trace statement to fire.
View 2 Replies
Dec 16, 2009
We have a requirement to show documents (if we have URL for a document) within Flash. We have a need use embedded document viewer for MS Office and PDF documents. Are there any Flash controls available to acheive this?
View 2 Replies
May 7, 2011
I have a FLA (say Main.FLA) document class with a child MovieClip on the stage: into the child MovieClip I load other swf files: each of the files contains its own Document Class (every swf is a somewhat independent application, say quizzes and so on).For some reason I must use the Main document class to store data (scores or so) from the child swfs loaded into the Main swf. HOW do I reference the Main class? I can't find a way.[code]and dispatch an Event this way from the loaded swf document class to the Main class:[code]Now, first of all I don't know if this could even work. Secondly, I tried to make it work by adding an event listener to my Main class but id did not work.
View 9 Replies
Sep 22, 2008
So I had a working .fla, with a document class package in the same directory. Everything was fine, until moving both to a new directory, now the fla cannot find the document class. WTF?
View 2 Replies
Mar 22, 2011
When I open the file in Flash CS5, this message appears: Flash can not parse this document. An error occurred opening file 'D:......fla'
View 1 Replies
May 5, 2009
I looked online on how to reduce file size od an .fla file for use on the web but not very clear. I have an .FLA file that is 800X600 px. when I publish it, I reduce file size, audio to mono etc, and I am getting 1.8mb file, way to large for web use. I tried an swf and flv file but same results. I need to reduce the entire document. I read to use the onion skin the highlight everything then resize but I have over 5,000 frames in my movie. Can someone explain in detail, how to highlight all of the frames in the movie, and then reduce the file to say 400 X 300 px? I am able to drag the onion skin but only to the edge of the viewable document then I must scroll over and repeat the process. there must be an easier way to highlight all frames in the movie then resize the whole thing.
View 5 Replies
Oct 13, 2009
I have gotten some swf files from another designer. I need to show them in my presentation. I am using Flash CS3 for mac.
View 3 Replies
Jan 14, 2009
way to get a PDF document into flash and then so that when i publish the file the pdf links like www.kirupa.com are actual links people can click on?
View 3 Replies
Jan 4, 2010
I have a .FLA file which is loading images dynamically from a .xml file called "source.xml" using this code:
// url to slideshow xml
var strXMLPath:String = "source.xml";
// slideshow xml loader
[code]........
View 2 Replies
Apr 20, 2009
i tried for many times but i can't seem to load the php data into my flash document. I check that the link to the php file is correct and the code for loading does not seem to be wrong
<?php
$gate = "&gate=".$_COOKIE['gate']."&";
?>
[code].....
View 3 Replies