ActionScript 3.0 :: Key Down Doesn't Register?
Aug 11, 2010I press the key down but it doesn't do anything.
ActionScript Code:
stop();
stage.addEventListener(KeyboardEvent.KEY_DOWN, moveLauren);
[Code].....
I press the key down but it doesn't do anything.
ActionScript Code:
stop();
stage.addEventListener(KeyboardEvent.KEY_DOWN, moveLauren);
[Code].....
when was working on a keyboard handler class.Look at this video: http:[url]....I you press a key and unpress it, while other key is being pressed, you'll cancelate the KeyboardEvent .KEY_DOWN event...It seems the umpressed key fires KeyboardEvent.KEY_UP but the current pressed key doesn't register the new KeyboardEvent.KEY_DOWN event, or KeyboardEvent handles both keys as one...
View 3 RepliesI've made a popup div that shows a video if you press a button. If you press Esc, the div is hidden again and the video is removed. (Using JWPlayer in Flash.)
If you click on the JWPlayer video, Flash gets the focus and JavaScript can't listen for keypresses on the document anymore. Is it possible to make JavaScript get the focus after you've interacted with the JWPlayer video player, so that you can still press the Esc button after for example pausing the video?
I am trying to register a javascript-function from Flash, using the navigateToURL function like this:
navigateToURL(new URLRequest('javascript:function init(){ ...doSomething()... }', '_self' ));
to have the function init() available via ExternalInterface --> ExternalInterface.call("init", This works fine in Firefox, but Internet Explorer fails to register the function.
I'm trying to update the famous Floating text in space from levitated.net (URL...)The script was originally AS1, & I'm updating it to AS3.
View 1 RepliesCurrently I am working on flex using puremvc framework. Actually my question is related to where to register mediator in puremvc framework. One of my colleague is registering mediator in views(components) creationComplete method only (inside view). While my preference is send some notification from creationComplete method which could be handle by some command and command will register mediator. So which one is better approach in terms of best practice ?
View 3 RepliesI store a UV-coord from va1 to v1. In the frag shader, an interpolated texture coordinate now is available in v1 to sample. Are there connections under the hood, like semantics, to associate v1 with being the normal coordinates?Are fragments pushed to the fragment shader per triangle or once an entire mesh's geometry vertices are run through?In the vertex shader, let's say I multiply my modelview by my vertex's position. I then want to share my z-coord with the fragment shader for something else. I store the z-cord of the transformed vector into v3. Once I am in the fragment shader and I access v3 for the z-coord, is this the same z-coord I passed in or is this z-coordinate going to be altered by the perspective divide in between? I only ask as I want to clarify the "interpolating" behavior described when storing values in these registers.
View 1 Replieswhen i make a MovieClip by code
ActionScript Code:
var my_mov:MovieClip = new MovieClip()
where is register point on the movieclip?
[code].....
How come these Array values won't register? Here's a code snippet from what I'm working on, I put line numbers so it's easy to refer to them. (I started with three because I erased lines of code and I didn't want to change everything)
Lines 3 to 6 are in an if clicked (is true when mouse event listener is activated) statement in the gameLoop (Event.ENTER_FRAME loop).[code]...
Does anyone know how to make a login and register in flash using actionscript 2.0 and or 1.0?
View 1 Replies1 - How can i create register and login page in flash and i want to use shareobject please guide me, how can i use sharedobject. 2- How can i use mysql database to connect flash
View 1 Repliesi had to klick the ball... that kinda teaches me something new instead of teaching me, whats wrong ok i really dont get what i messed up with my editing of the second post, which was just a copy of my first one (i dont get why).
View 2 RepliesThe following code (with a textField on the stage named "textTest") will trace and display on the stage the Key Code of the key pressed. When done within the IDE, and any other browser, it works fine. However, when tested in Firefox 4 (for Mac), everything works except the arrow keys
ActionScript Code:
package {
import flash.display.MovieClip;
[code].....
I want to make a file that that has a register button where the user can put in their name, username and password. Then i want the user to be able to be logged in with the username and password they put in
View 10 RepliesI made a custom event and I can't listen for it for some odd reason..[code]"1119: Access of possibly undefined property EnemyEvent through a reference with static type Class."[code]
View 2 RepliesI am trying to get my swfobject to register 100% height. I am writing this: Code: swfobject.embedSWF("CoolBox.swf","content","100%","100%","9.0.0",null,null,null);
and it doesn't work. If I replace the height paramater with a static number like 200, it will work. The width paramater works fine at 100%.
what im trying to figure out is how exactly do you create a minimap that can register each object location
View 2 RepliesThe following code (with a textField on the stage named "textTest") will trace and display on the stage the Key Code of the key pressed. When done within the IDE, and any other browser, it works fine. However, when tested in Firefox 4 (for Mac), everything works except the arrow keys.
package {
import flash.display.MovieClip;
import flash.events.KeyboardEvent;
public class test extends MovieClip {
[code]...
I'm trying to make Spring automatically register my remote destinations by reading its annotations. So that I don't need to update some configuration file every time I create a new service. [code]...
View 1 Repliesim just starting to pick flash up again and am working on making an emulation of a cash register from work so that new staff can take it home and learn where all the drinks are etc.. However i am having great difficultly getting back into the swing. The main thing i cant get my head around is i plan to have a variable text box which keeps the orders (already pressed buttons) then totals them up.
View 6 RepliesUnfortunatly im having to extend to more draggable objects. So they will be within another movie clip so i can have them scrolling. After making the scroll, the draggable objects dont register on the droptarget as they are within another movie clip. Below is i think the part of the code that needs to be changed so the draggable objects know where to find the drop target.
View 1 RepliesI have a problem with these functions when I register the first user it works just fine but when I register the second the first user is deleted. I'm saving my data inside the swf because I couldn't write the functions in SQL>
This is my register function
ActionScript Code:
function registerplayer(e:MouseEvent){
savedata.rpname = rpn.text;
var registername = [savedata.rpname+"N"];
savedata.registername = "name";
trace(registername);
[Code] .....
I want to collect email addresses on my Flash/AS3 site for a project.I just have basic web hosting (just FTP upload space) and do not have access to a LAMP server.I assume this is what I need to be able to run PHP/MySQL etc.Does this mean there is no way of me making a form that will allow visitors to input their email addresses to sign up for a newsletter I send out?
View 2 Repliescan you declare multiple classes and then register each movieclip from the library to a different class? It isnt working for me.I created two different classes and created two entire different movieClips and registered each movie clips to a different class.However, I can only use on movieClip at a time, when I use the duplicateMovieClip... command to create copies of the movieclip, i find that only those movieclips, whose class i declared first, appear on stage.
View 1 RepliesI want to make a file that that has a register button where the user can put in their name, username and password. Then I want the user to be able to be logged in with the username and password they put in.
View 9 RepliesI'm using Pyamf as my backend for my Flex app and I'm seeing some weird problems with the mapping of the stongly typed classes.[code]When I do that in Flex, I get my SouvenirAct objects are typed as they should be, BUT then the child souvenir objects are all null. So when I force the casting of the SouvenirAct objects in the return result, I get null for the child properties that are strongly typed.Has anyone see this before? Is there a different way I should be mapping classes?
View 2 RepliesIs there a way to make the transparent area from an png image not to register when I add with a mouse event to that image? What is happening is the rectangle around the symbol is effected by the mouse event.
View 2 RepliesI decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
I have 2 Movieclips stacked on top of each other. The first one being "first" and second being "second" with embedded mc's as buttons. How do I register the clicks on "second" instead of "first" when clicking on them?
View 1 RepliesI have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.
I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.