ActionScript 2.0 :: [MX04] Recognizing Computer Function Keys
Apr 16, 2007
I'm trying to use Flash MX 2004 professional to teach how to navigate within a mainframe application. Here's what I'm trying to do: Movie opens with the main menu screen User enters the number of the file that they want to access and presses enter. (advance to next page) User enters contract number in the applicable field and presses enter. User accesses screen particular to the contract number. User wants to access other screens through use of a function key (e.g., F1 brings them to page 1, F2 brings them to page 2, and so forth).
I can get the code for use of the enter key to obtain the specific contract information but I cannot determine how the user will navigate to the different screens without entering any information on the page except viewing the page and then using a function key to access the other page.
View 1 Replies
Similar Posts:
Nov 21, 2010
I'm trying to use Flash MX 2004 professional to teach how to navigate within a mainframe application. Here's what I'm trying to do:Movie opens with the main menu screen User enters the number of the file that they want to access and presses enter. (advance to next page) User enters contract number in the applicable field and presses enter. User accesses screen particular to the contract number. User wants to access other screens through use of a function key (e.g., F1 brings them to page 1, F2 brings them to page 2, and so forth).
I can get the code for use of the enter key to obtain the specific contract information but I cannot determine how the user will navigate to the different screens without entering any information on the page except viewing the page and then using a function key to access the other page.
View 3 Replies
Jun 15, 2011
I have this class:
ActionScript Code:
package
{
import flash.events.*;
[code]....
so all it does is trace the keyCode of whatever button is pressed. For some reason only arrow keys are being recognize though.
View 2 Replies
Mar 13, 2010
So I have a Clef class:
package Clefs
{
import flash.display.MovieClip;
import flash.ui.Keyboard
[Code]....
Yeah, I have no idea why it thinks getNoteCode isn't a function. For the record, I'm coming from AS2. I don't like that I can't give linkage instance names to objects in my root .fla - that was handy.
View 16 Replies
Dec 7, 2006
I have made an array with three mc's I have on the stage. They run through a tween, but when the onMotionFinished function is called the array information is not parsed. Why ?
[Code]...
View 5 Replies
Jan 7, 2010
internet explorer 7 not recognizing stop(); function?
View 19 Replies
Nov 14, 2011
I got a new computer several days ago and it doesn't have Flash 8 or Higher. how to transfer Flash 8 programs from my old computer to my new computer? where to find free downloads of Flash 8 or higher?
View 1 Replies
Jul 31, 2006
Does the onEnterFrame Function() slow down the computer as opposed to other methods?
[Code]...
Just not sure whether I should use onEnterFrame so they are always accessable or to just call the function when I need it at that point in time. Big question is, is there much difference between the two methods?
View 1 Replies
Dec 21, 2009
I'm building a menu for a website that plays a sound each time you mouse over one of the buttons. (each button is a piano key) I've written two functions that change the size of each key on ROLL_OVER and ROLL_OUT events. What I want is someway to play a unique sound in my library for each key, without writing a separate function for each key. Either a new function, or just written into my existing ROLL_OVER function. Currently, it plays the same sound for every key.
Here is a zip of my project
[URL]
What I've got in there is a fla file called menu.fla In that file there is a movieclip on stage called "keyboardmenu" and inside that movieclip are 8 movieclip's (my buttons) each with a unique instance name. In the library there are 8 mp3 files with class name keysound1, keysound2 etc...Here is my code: ( I'm using tweener to handle the scaling. )
Code:
import caurina.transitions.Tweener;
function keyisdown(e:MouseEvent):void{
Tweener.addTween(e.currentTarget,{height:185, width:80, time:.25, transition:"easeOutBounce"});
varsound1.play();
[code]....
View 3 Replies
Apr 2, 2009
I'm not really good with AS3 yet so maybe somebody can help meI found a pong game tutorial and it works fine.[code]Now I want that two computers play against eachother.So no player input only two computer that play.I tried a lot with the script but it doesn't work.
View 3 Replies
Apr 14, 2009
I have a problem... I found a tutorial making a pong game... I want to make some changes but I tried everything but it wont work Here is some code:
[Code]....
View 2 Replies
Apr 20, 2011
While a user is in a frame, I have the user press F1 to gotoAndPlay another frame, press F3 to gotoAndPlay another frame, etc. But when the user presses the F1 or F3 function key, they get the IE browser search screen or IE keyboard shortcut. How do I use AS3 to have the action taken when the user presses F1 perform the function within my flash file and not the IE process for the function key?
View 0 Replies
May 31, 2010
I have a stage listener for keyboard events, that triggers one of two error checking functions for text field inputs depending on which movieclip the fields are in. Text fields in certain movieclips trigger a function that checks if the entry is between a certain numerical range, whereas the textfields in the other movieclips test to make sure the text fields aren't left empty.
It works fine apart from me not accounting for keyboard events other than letters, numbers and punctuation, or, among others, the Shift key.
So what's happening now is that keyboard events outside of numbers, letters and punctuation are triggering an output error.
The listener I'm using is:
stage.addEventListener(KeyboardEvent.KEY_UP, KeyPressed);
KeyPressed is a function that determines which error checking function to run depending on which movieclip window is open.
View 5 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
Sep 18, 2010
The navigation buttons in my .fla file are set to the font, Arial MT in Bold. It displays no problem on my desktop computer. However, when I view the website on my laptops, the font changes to what looks to be something like Times New Roman. The same thing happens with my "Read More" button text. It's also originally in Arial MT Bold. On my desktop it appears fine but on my 2 laptops it appears to be in Times New Roman. This is more of an issue because I have these buttons underlined. When viewing in my laptops, these underlines appear to be too long. If I shorten it, it'll probably appear to be too short when I view on my desktop. How can I get the font to be one consistent font for all computers?
View 3 Replies
Mar 7, 2011
I have a typing game and I want to be able to detect period and commas, however unless you are holding down another key (any other key), the period and comma keys do not trigger KeyboardEvent.KEY_UP. I found that sometimes they would work when focus was set to the document class. After hours of debugging my game trying to figure it out, I decided to create a new project to JUST test this problem. Here's the absolute barbones example:
package
{
import flash.display.MovieClip;[code]..............
If you run this, it should automatically set focus to the document class. At this point, the period and the comma do not work. Now click the stage and you will find that the comma and period do not work UNLESS you hold down another key (for example hold down the m key and then press the comma key). Also at this time, focus is set to null.Now click the textfield, and the comma and the period work again.
View 1 Replies
Jan 13, 2011
I'm programming a Flash-based site designed by the client. The trouble is the SWF dimensions are small within the HTML page, and the thumbs show the larger images on roll over. The large images are meant to disappear on mouseout, but it's easy to move the cursor too quickly for the mouseout to be recognized -- so the image gets stuck on screen.
View 3 Replies
Mar 5, 2010
Code:
SetNextProject = function () {
i++;
ProjectPreloadB(currentArray[i]);
[code]....
The point of this code is to make button mc_arrowF go away when the end of the array is reached. Its BASICALLY working, however when i load, say currentArray[18], the end of the array, the button doesn't disappear until i press it again. Basically, the button doesnt disappear until currentArray[19]... even though currentArray.length=18.
View 1 Replies
Feb 12, 2011
I've built a flash application on which I've created a webservice client to consume a dotnet service. when the full domain ex: www.yourdomain.com is used to load the site (primarily html and asp.net code with just a flash client) everything is fine. If I load the website using just... yourdomain (no www) then the flash interface activates but never returns a response. I've tried loading a cross domain policy file to see if that could be the issue to no avail. So far no www flash bugs are turning up as a common issue on Google, maybe I'm not using the right key words?
View 1 Replies
Jan 16, 2012
I'm working with Flash Builder 4.6 as an IDE and Flash CS5.5 to create library items. The problem is - when I put an instance of a library item on the stage or inside of another item, Flash Builder fails to detect the instance name that was declared in Flash CS. This doesn't prevent the code from compiling just fine though.
I understand that the IDE only sees the fields that I have declared directly in the .as file, but it really hinders me that I the IDE goes crazy when I do this.
Is there any way to circumvent this - other than dynamically creating and placing the instances?
View 1 Replies
Jan 18, 2010
is there away to reconize a picture in a textfield I want to heighlight the picture when it is pressed
View 3 Replies
May 27, 2010
I need a way of recognizing what weapon is currently being held.The way the weapons works is it is a movie clip, with multiple frames, each with a different weapon, and each weapon has a different minimum/maximum damage they can do. How can i make a code that recognizes which frame the weapon movie clip is on?
View 6 Replies
Jul 8, 2010
I have recently been given an Actionscript framework that was developed in Flash CS3 or CS4 and it compiles fine in Flash CS3 and Flash CS4. I am now working with Flash CS5 and do not have CS3 or CS4 installed. When i compile the files in Flash CS5 it throws an error and does not properly compile. It appears that Flash is not recognizing one of the AS classes in one of the directories within the framework. Has anyone experienced this with Flash CS5. These files worked fine in Flash CS3 and CS4 but I can't seem to figure it out for CS5; is there a setting or config option I am missing?
View 4 Replies
Apr 29, 2008
I would like to put in 250.00 as an amount and with all the other calculations I would liek that decimal place to be recognised and then in the final calculation that decimal point is displayed correctly, but it doesnt. If there is a simple reason for this then great, but if you need screen schots, fla the action script
View 1 Replies
Dec 15, 2008
My program beings with a frame with a "play" button on it. Once he "play" button is clicked the user is taken to the second frame to play a game. Control for the game is done via key presses. The control works well; I'm able to move the sprites and so forth. However, my problem is after the user clicks "play" and is taken to the second frame the game will not recognize key presses until the user has clicked the applet again. How do I get the game to recognize key presses automatically after the user has clicked "play"?
Here is the code I use in the second frame to listen for key presses:
View 2 Replies
Sep 12, 2010
i'm fresh to using flash cs5. everything works smoothly,but i can't use type1 fonts (even though they work ok in flash cs3, and also, all the other types of fonts work fine).if i use a type1 font, the textfield (both render in the final swf, as well as on the stage) appears in some default font.
[Code]...
View 1 Replies
Nov 20, 2011
why "hitTestPoint(character.x, character,y, true)" would be hit testing off the origin point in the center of the character, and not the whole shape??
This is my code from my document class. There's a custom splat class in there, but don't worry about that. This code is inside 2(1 nested) for loops.
function hitTestBalls(e:Event) {
for (var i = ballArray.length - 1; i >= 0; i--) {
for (var m = MonsterArray.length - 1; m >= 0; m--) {
[Code]....
View 3 Replies
Dec 12, 2011
Something is corrupt with my Flash Professional CS5 Actionscript Auto format: Comments within a block, such as ' // ' or block comments ' /* ... */ ' are tripping up the Auto Formattor, which returns this error: ' Error with autoformat near line: }'. Comments before package block don't cause an error. When I remove comments within package block, Auto format works correctly.
View 2 Replies
Jul 13, 2009
I have an .as package that I have attached to a simple .fla with a List component and named it list. I have done this in an earlier document that I built using a tutorial and it worked then. Now I am getting an error:1120: Access of undefined property list.This is something that I've seen a thousand times when I forget to give something an instance name, but this time I have not forgotten. I've double and triple checked. The .fla file is just a document with a list component on it. It will be getting its data from a html page via javascript. Here is my package:
ActionScript Code:
package {
import flash.display.MovieClip;
[code]......
View 0 Replies