Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Releasing CTRL KEY


Is there a way to release the ctrl key so flash doesn't cripple peoples use of shortcuts?




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-25-2006, 10:46 PM


View Complete Forum Thread with Replies

Sponsored Links:

Unable To Listen For Ctrl+a, Ctrl+z, Ctrl+x, Ctrl+c, Ctrl+v In Flash
Any one have any ideas why? (Please note that I have disabled keyboard shortcuts in the flash compiler.) I imagine it's because of the built in application shortcuts in windows but I don't see any documentation on this. I can trace ctrl and I can trace 'a' separately but I cannot get a successful trace otherwise. When Embed into HTML, the problem is fixed but this is obviously very cumbersome to debug.

I am listening for the keyCodes directly on the event object.

View Replies !    View Related
Enable Browser Shortcuts (Ctrl-W, Ctrl-N, Ctrl-L, Ctrl-T)
The flashplayer catches all keys pressed by the user. I'd like to know if there's a way or workaround to pass them to the browser. For instance, Ctrl-T (open new tab in firefox). I'd like to re-enable this shortcut. Maybe with javascript?

Thanks in advance,

Bultot

View Replies !    View Related
Browser (Firefox) Keyboard Shortcuts Focus (ctrl+w, Ctrl+n)
I have a Flash movie which fills the whole browser window. This means that always the key events are catched ("stolen") by the Flash movie only, when using Firefox. IE7 seems to be working as I want.

I want for example ctrl+w (close window), ctrl+n (new window), ctrl+t (new tab) to work in Firefox while the focus is on my Flash movie. How to accomplish this?

View Replies !    View Related
Browser (Firefox) Focus For Ctrl+w, Ctrl+n...
I have a Flash movie which fills the whole browser window. This means that always the key events are catched ("stolen") by the Flash movie only, when using Firefox. IE7 seems to be working as I want.

I want for example ctrl+w (close window), ctrl+n (new window), ctrl+t (new tab) to work in Firefox while the focus is on my Flash movie. How to accomplish this?

View Replies !    View Related
How To Capture Ctrl-A, Ctrl-Z
Hi I'm trying to build a flash application, and having trouble capturing key combinations such as Ctrl+A or Ctrl+Z.
I'm doing stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler)
and keyDownHandler checks event.ctrlKey and event.keyCode.
Ctrl+Y works, but most of other Ctrl + Key combinations don't work, I think because those key strokes are
captured in Flash Player / Browser before captured by AS3.

Does anyone know good solutions?

View Replies !    View Related
Releasing A Key
Im am using the actionscript.
if (Key.isDown(_root.RUNRIGHTKEY)) {

I was wondering if there is a way to tell actionscript that the key is released.

For Example is there any way I can do something like this.
if (Key.isReleased(_root.RUNRIGHTKEY)) {

Thank you for your time :)

Sincerely
rbr1234






























Edited: 09/21/2008 at 12:08:16 PM by rbr1234

View Replies !    View Related
OnRelease Not Releasing...
Hey guys, stupid Flash Newguy here lookin for some help. I'm just working through a tutorial at quickcert.com I am simply trying to create text links that when you click on a different one a different image appears. I've followed the tutorial as close as possible but the problem is, the tutorial is in MX and i'm using MX 2004. I'm assuming there are several differences as I've had to search around for some of the features they are talking about.

Anyways...when testing the movie instead of showing the links...it plays through the entire thing.

My setup is like this.

I have each Link converted to a symbol and on a seperate layer. On the first frame of each of their layers I have an onRelease that and a gotoandStop command that tells it to go to the frame of the layer that contains it's corresponding image. However, when I test it...like I said...instead of going to and Stoping, it just loops through it.

I'm by no means a flash expert but if somebody could tell me why it's doing this that would be awesome. I'm sure it's something simple that I just don't know to check.

Thanks

View Replies !    View Related
Releasing Resources
Hi,

We have an app which uses XMLSocket class, the question is: when should we close the socket? Is there any event which is called when the flash movie is closed?

How do you guys release resources??

Cheers

View Replies !    View Related
Releasing Resources
Hi,

We have an app which uses XMLSocket class, the question is: when should we close the socket? Is there any event which is called when the flash movie is closed?

How do you guys release resources??

Cheers

View Replies !    View Related
Releasing The Mouse Outside The SWF
I have been working on this vrTour viewer as my learning project for flash and pretty much have the thing complete... However, one thing I'm interested in doing is making it continue the onMouseDown command until the user releases the mouse button regardless of if the pointer is over the swf or is outside of it.

The way it works now im simply doing a this.onMouseDown/MouseUp on the first frame of layer 1 to capture the mouse clicks.

Any ideas?

View Replies !    View Related
Releasing The Mouse Outside The SWF
I have been working on this vrTour viewer as my learning project for flash and pretty much have the thing complete... However, one thing I'm interested in doing is making it continue the onMouseDown command until the user releases the mouse button regardless of if the pointer is over the swf or is outside of it.

The way it works now im simply doing a this.onMouseDown/MouseUp on the first frame of layer 1 to capture the mouse clicks.

Any ideas?

View Replies !    View Related
Drag Animation Without Releasing
Given: a red and a black button. Just imagine you click on the black button without releasing it. Is there a way the red button could, even if we didn't release the mouse, still perform an action on rollOver / go back to its up-state on rollOut?

View Replies !    View Related
Releasing Keys - Big Problem
hi,
ok. when i press a key, an animation starts and loops. when i release the key i want the animation to stop, but it doesnt.

so how do u do: on key release,(lets say RIGHT), gotoAndPlay(1);

basically i need the loop to stop and to go on another frame when the key is released. replies will be appreciated.
thanks

View Replies !    View Related
Releasing Locked Jpgs
Hi Everyone.

I'm trying to make a swf that loads 6 different jpg files using moviecliploader.

I have the program reloading these jpgs every couple of minutes. An external program would be updating these jpgs every couple of minutes as well .

My problem is that the swf seems to be locking the jpgs so I cant change or replace them with new versions.


Anyone know why this is and how I can remove the lock.

View Replies !    View Related
StartDrag Problems With Releasing
Hey all, running into problems with dragging in AS3. The motion is pretty smooth and it's doing what I want. But when letting go of the scrub it doesn't always let go.:

http://www.chron.com/common/mm/07/iss/index_1.html

(Try scrubbing fast and letting go and you'll see it).

And here's the relevant code:

PHP Code:




scrub.addEventListener(MouseEvent.MOUSE_DOWN, startScrub);
            scrub.addEventListener(MouseEvent.MOUSE_UP, stopScrub);
            scrub.addEventListener(Event.MOUSE_LEAVE, stopScrub);
            scrub.addEventListener(Event.ENTER_FRAME, announcePosition);
        }
        
        
        private function startScrub(evt:MouseEvent):void {
            var myScrub = getChildByName("scrubber");
            var myRect:Rectangle = new Rectangle(0, myScrub.y, sliderWidth, 0);
            myScrub.startDrag(false, myRect);
        }
        
        private function stopScrub(evt:MouseEvent):void {
            var myScrub = getChildByName("scrubber");
            myScrub.stopDrag();    
        }







Any ideas? Thanks,

Jared

View Replies !    View Related
Releasing Xml File From XML.onLoad()
what up my brother and sista's
i'm developing an application using mProjector. at a certain point i load an xml file, read/save its content and then, using mProjector, i need to delete the xml file and write a new xml with some updated attributes.

i got stuck when i read up that xml.onLoad lock's the xml file which prevents me from deleting or over-writting the xml file. does anyone know how to avoid this? or know how i can release the xml once i'm done reading its content?

snippet of the code
ActionScript Code:
function updateXML()
{
    mApplication.trace('++');
    mApplication.trace('Update XML');


    //  xml file & location
    var local_file = application.path + application.name + ' Insider Config.xml';
    mApplication.trace('does local_file exist? ' + mFile.fileExists(local_file))
   
   
    //  record attributes
    var attribute_title;
    var attribute_menu_btns;
    var attribute_news_btns;
    var attribute_delay;
    var attribute_EXEVersion;
    var attribute_SWFVersion;
    var attribute_CFGVersion;
    var attribute_NTFVersion;
   
   
    //  create xml object
    var xml = new XML();
    xml.ignoreWhite = !xml.ignoreWhite;
    xml.onLoad = function (success)
    {
        if (success)
        {
            //  refrence childNode "application"
            var node = xml.firstChild.childNodes[0];
            mApplication.trace('node = ' + node)
           
           
            //  get nodes attributes
            attribute_title = node.attributes.title;
            attribute_menu_btns = node.attributes.menu_btns;
            attribute_news_btns = node.attributes.news_btns;
            attribute_delay = node.attributes.delay;
            attribute_EXEVersion = node.attributes.EXEVersion;
            attribute_SWFVersion = node.attributes.SWFVersion;
            attribute_CFGVersion = node.attributes.CFGVersion;
            attribute_NTFVersion = node.attributes.NTFVersion;
           
           
            //  delete the xml file
            if (mFile.fileExists(local_file))
            {
                //  delete curent file
                mApplication.trace('delete: ' + local_file)
                mFile.deleteFile(local_file);
                mApplication.trace('does local_file exist? ' + mFile.fileExists(local_file))
            }
           
            //  write new file's content
            var str = "<?xml version="1.0" encoding="UTF-8"?>"
            + " <root><application title="" + attribute_title + """
            + " menu_btns="" + attribute_menu_btns + """
            + " news_btns="" + attribute_news_btns + """
            + " delay="" + attribute_delay + """
            + " EXEVersion="" + attribute_EXEVersion + """
            + " SWFVersion="" + attribute_SWFVersion + """
            + " CFGVersion="" + attribute_CFGVersion + """
            + " CNTVersion="" + application.CNTVersion + """
            + " NTFVersion="" + attribute_NTFVersion + """
            + " /></root>";
           
           
            //  write new xml file
            mFile.writeString(application.path + application.name + ' Insider Config.xml', str);
        }
    }
   
    //  load current xml
    mApplication.trace('load: ' + local_file)
    xml.load(local_file)
}

View Replies !    View Related
Releasing A Movie Clip.
I have only just started with actionscript, so please forgive me. The scenario is a torch, and when pressed the torch is switched on, a movieclip becomes the mask, which is dragable. When the torch is switched off everything is reversed back but how do I release the:
mc_mask._x = ._root._xmouse;
mc_mask._y = ._root._ymouse;
after the else.
The code I have is (probably wrong):

var torchOn:Boolean = false;
mc_mask._visible = false;

mc_torch.onPress = function() {
if (torchOn == false) {
torchOn = true;
this.mc_torch.gotoAndPlay (“torch on”);
mc_darkImage._visible = mc_mask._visible;
mc_mask.startDrag(true, 0, 0, 500, 500);
mc_mask._x = ._root._xmouse;
mc_mask._y = ._root._ymouse;
trace (“torchOn true”);
} else {
torchOn = false;
this.mc_torch.gotoAndPlay (“torch off”);
mc_mask._visible = mc_darkImage._visible;
mc_mask.stopDrag();
mc_mask._x = ._root._xmouse;
mc_mask._y = ._root._ymouse;
trace (“torchOn false”);
}
};

Thanks

View Replies !    View Related
Dragging Off A Scrollbar And Releasing
Hey, something has been driving me nuts for a while, when a user drags the mouse off a scroll bar and releases, how do I detect that event? In as2 i used to just do a _root.onMouseUp event but that obviously doesnt work anymore and probably isnt the best solution anyway? Does anyone know of something I can do to detect if the mouse has been released regardless of whether it is "over top" of the scroller (so it behaves like a proper scroll bar)

thx in advance

View Replies !    View Related
[AS2] Best Practice For Releasing Memory
I just wanted to know bout best practices for releasing memory for flash data structures (Mainly when classes are used). What you guys do in general practice and take care?

e.g. I extend a class from MovieClip class and have many data strctures and movieclips within that class. Now when I remove that movieclip will flash automatically remove other children movieclips and data structures? Or I have to remove them for safety...

View Replies !    View Related
Releasing Mouse Outside Of Flash Movie
I have a flash movie that requires that you press the mouse down to activate a movement.....and keep the mouse down while dragging.....the problem is, however, if you press the mouse button down and hold it down, then drag it outside of the flash movie area, then release the button....flash still thinks that the mouse is being held down.

Because the mouse is outside of the movie area, it does not read the release of the button (mouse up).

can someone pleeeeeeeeese healp me find a way to get the mouse to work properly if user drags it outside of flash movie!!!!!!!

Thanks!
Flash Rules!

View Replies !    View Related
Releasing Movie Clip For Mouse Control
I am a newbee to flash for only the last 90 days. I have completed the interactive application that I was charged with but now I am having a problem with the help/tutorial movieclip that I wanted to add. The help clip was simply supposed to fade in and out a few explanitory text balloons while a fake mouse cursor comes on stage and grabs the Delta movieclip and moves as a user might do. I need it do that so that the waveforms will move realistically. Everything works now except for two things. (1)The Delta control in the root timeline is user moveable with the onClickEvent function. Once the help movie has run it won't release the Delta clip for mouse control.
(2) The toggle switch invisible buttons are also supposed to be triggered by the help movie clip and they aren't. Apparently, I don't understand how to get one child movieclip to control another.
Can some one help me please? I have attached a barebones version of my app.

Note to Moderator: This may be a duplicate as the first attempt my attachment was too big. I have reduced it for this post. Thanks,
Russ

View Replies !    View Related
Releasing License After User Stops Viewing FLV
I'm running FMS2, profile 1, that has 150 concurrent users. Here's my question: once a user stops watching the streaming FLV (and it doesn't loop), does that release a license for the next user? Or does the user have to leave the web page? In other words, when does the license get released for the next user?

View Replies !    View Related
For Loop Called From MC Not Releasing/returning To Main Timeline?
I have a series of MCs that open up from _root. _root is still visible since the MC's only take up about 2/3 of the screen. They also tell the main timeline (_root) to go to a "disabled" frame that has no button objects in order to not have the mouse react to what's behind the currently opened MCs. Because of this I have a "main" button that is supposed to close all open MCs and move _root's playback head back to a specific frame once the MCs are closed.

Each of the MCs that open add themselves to an array stored at root with gSceneList.push(this);

Subsequently, clicking _root's "main" button calls a global function:

Code:
_global.clearSceneList = function (){
for (var index in gSceneList){
gSceneList[index].gotoAndPlay("fade");
gSceneList[index].pop();
}
}
Every MC that pushed its reference into the array with gSceneList.push(this) goes to their respective "fade" frame but the "main" button that calls this also includes a _root.gotoAndStop("mainFrame");
For some reason, the _root timeline won't go to the "mainFrame" frame label. It's as if the for...in loop is not releasing to the main timeline, like it never broadcasts that it's finished.

If I click the "main" button a second time, it behaves properly and then returns to the "mainFrame" label.

Any ideas as to why the root timeline doesn't go to the necessary frame when told to do so after this for...in loop?

Any help or insight is greatly appreciated.

-PBME

View Replies !    View Related
Ctrl + C?
Hello,

can flash replicate ctrl + C or right mouse + copy????? from a button using actionscript?

thanks in advance

steve

View Replies !    View Related
Ctrl + C
Does anyone know how I can capture 2 key presses? I'm trying to create a shortcut, so I fire off a function when the user presses "Ctrl + c". It currently seems that if 1 key is pressed that the second is either blocked or ignored.

Anyone know a way of getting round this?

Cheers All

Mat

View Replies !    View Related
Can We Use ALT+key And CTRL+key?
Hi guys!
I was just trying to assign ALT+some key and CTRL+some key to a button on(release) event..but realised that flash doesn't recognise ALT and CTRL key press combinations for buttons events ??
Is there any way to do that ?
thankx
Mav

View Replies !    View Related
HELP PLEASE Disable Ctrl-Alt-Del
I am trying to disable ctrl-alt-del keys. I am finding that using onclipevent(keydown) and key.getcode will work with the individual key presses but I am unable to find commands that work with combination key presses..so that the ctrl-alt-del keys can't be used.

Can anybody help me please!

View Replies !    View Related
How To Disable ALT-F4 + TAB + ESC + ALT-CTRL-DEL ?
Hi All !!!

How might i disable these commands from the web through flash ????

View Replies !    View Related
Capture Ctrl-c
Is it possible to capture the keystroke "control-c" ? I know how to code capture keystrokes however this one doesn't seem to work. Here's my code:

keyListener = new Object();
keyListener.onKeyDown = function() {
if(Key.isDown(Key.getAscii() ==(0)) && Key.isDown(Key.getAscii()==(99))){
trace ("cut captured");
}
}
Key.addListener(keyListener);

or alternatively:

keyListener = new Object();
keyListener.onKeyDown = function() {
if(Key.isDown(Key.CONTROL) && Key.isDown(Key.getAscii() ==(99))){
trace ("cut captured");
}
}
Key.addListener(keyListener);

Any clues?

thanks

View Replies !    View Related
Ctrl+c = Button
Hi there!
The question is:
When we press Ctrl+c in our computers it copies anything that's selected.
I now want to create a button that executes the command "Ctrl+c".
Is there anyway?

View Replies !    View Related
Key Press Ctrl + B In Ie
Can get keypress ctrl + b working fine in flash but when I play this in IE it ignores flash and tries to add a bookmark (Ie default for this keystroke).

I must be dim and missing something?

Any quick ideas?

View Replies !    View Related
Want To Disable That Ctrl+W Or Alt+F4
Hi Forum!!

I need some help from all experts out there. I am making a presentation in Flash MX where I want.....If any user presses Ctrl+W or Alt+F4 will not be able to close the window. There will be a separate button for closing that window (fscommand("quit")).

I just want to disable that Ctrl+W or Alt+F4 functionality. I have already done that for that Esc button. Is it possible? Can I get your help?

Thanks.



Kallol

View Replies !    View Related
How Do I Capture Ctrl + Another Key?
I want to be able to capture Ctrl + another key.
How do I do this?

I've got the following code from help:

var keyListener:Object = new Object();
keyListener.onKeyDown = function()
{
trace("DOWN -> Code: "+Key.getCode()+" ACSII: "+Key.getAscii()+" Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);

But I can't seem to be able to capture key combinations like Ctrl + another key.

For what I need to do, I really need to capture several key combinations.
At the very least, I want to be able to capture Ctrl + another key.

Any help would be appreciated.

Thanks.


OM

View Replies !    View Related
Lists And The Ctrl Kay
Is there a way to make the rows of this list to be selected without the necessity of holding the Ctrl key down? Or I should use check boxes insted of the list componente?

var myCounties: LoadVars = new LoadVars();
myCounties.onLoad = function() {
//this populates my list with the names of the counties
for (i=1; i<=myCounties.total; i++) {
counties = eval("myCounties.c" + i);
countiesList_lb.addItem(counties);
}
};
myCounties.load("counties.txt");
var countiesList_lbListener:Object = new Object();
countiesList_lbListener.change = function(){
index_txt.text = countiesList_lb.getSelectedIndex(); //this aids me to see the out put
label_txt.text = countiesList_lb.getSelectedItem().label;
selectedCounties = new Array(); //the multiple selections arre stored in this array
selectedCounties = countiesList_lb.getSelectedIndices();
selected_ta.text = selectedCounties;
}
countiesList_lb.addEventListener("change", countiesList_lbListener);

View Replies !    View Related
CTRL + Up Or Down Not Working
Does anyone know where the setting is to be able to CTRL + up/down items to mke them move a pixel at a time?

I can only use the shift key and its in larger increments.

The left and right work fine....

View Replies !    View Related
Capturing CTRL+S?
I am trying to capture ctrl+s for saving in my swf.... but i cant seem to capture any other kepresses when CTRL is being pressed, therefore i cant detect ctrl+s.... I can detect s+ctrl but not vice versa.... any ideas?

View Replies !    View Related
CTRL + F In Flash...
I want to make a custom class for searching the text on a stage - like you do when you hit Control + F in firefox or IE.

I found this code for finding out all of the paths to all of the Text Fields on the stage - dymanic and static.

Now I need a way to select a portion of text. Is there anything out there that would select a snippit of a text field?

Here is what I have so far:


ActionScript Code:
MovieClip.prototype.listOfTextFields = function ()
{
    var i, paths = [];
    for (i in this)
    {
        if (this[i] instanceof TextField)
        {
            paths.push (this[i]);
            if (recursive)
            {
                paths = paths.concat (this[i].listOfMovieClips (true));
            }
        }
    }
    for (var i = 0; i < paths.length; ++i)
    {
        for (var j = i + 1; j < paths.length; ++j)
        {
            while (paths[i] == paths[j])
            {
                paths.splice (j, 1);
            }
        }
    }
    return paths;
};

trace ( "this.listOfTextFields: " + this.listOfTextFields() );

That effectily returns all of the paths to every text field on my stage. Now I just need a way to highlight a portion of a text field.

View Replies !    View Related
Is There A Way Around The Ctrl+# Problem? (IE)
Flash can detect ctrl key presses fine, but when used in conjunction with another letter like Ctrl+A, flash can't detect it whatsoever and IE intercepts it (to perform its own tasks). In firefox this isn't a problem.

So does anyone know a way to block IEs key detection? With javascript or something maybe. I would want flash to do something on the event of Ctrl+F (instead of that annoying ie find dialog box popping up).

View Replies !    View Related
Flash, IE And Ctrl+N
I would like to know how to pass Ctrl+N (new window in IE)
to Flash and at the same time kill the new window.

The idea is to simulate software behaviour in a Flashmovie embedded in IE, and have Flash handle all the keystrokes.

Oeyvind

View Replies !    View Related
Ctrl Key To Duplicate Gone?
on MX I used to use the ctrl key to duplicate stuff on the stage. It seems to be gone in 2004. Is there a way to restore it? I looked in preferences but i don't see anything there!

View Replies !    View Related
SWF File : CTRL+RIGHT
I did a flash RPG game,and I do not want people forward with "ctrl+right"(the "right" is on keyboard) How can I do





























Edited: 04/10/2007 at 05:22:53 AM by profess1onaL

View Replies !    View Related
Ctrl-clicking
I need help making the actionscript to make it When somebody Ctrl-Clicks, they are taken to my 3rd frame.
Because in my game. People can cheat and make the targets stop when they Ctrl-click. And my 3rd frame is the Game Over frame
P.S. Ctrl-clicking is for the mac. It is almost the same as right-clicking.
I tried using
if (Key.isDown(2)){
gotoAndStop(3) ;
}

But it didn't do anything





























Edited: 04/25/2007 at 10:42:23 AM by DarthTurtle

View Replies !    View Related
How Do I Capture Ctrl + Another Key?
I want to be able to capture Ctrl + another key.
How do I do this?

I've got the following code from help:

var keyListener:Object = new Object();
keyListener.onKeyDown = function()
{
trace("DOWN -> Code: "+Key.getCode()+" ACSII: "+Key.getAscii()+" Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);

But I can't seem to be able to capture key combinations like Ctrl + another key.

For what I need to do, I really need to capture several key combinations.
At the very least, I want to be able to capture Ctrl + another key.

Any help would be appreciated.

Thanks.


OM

View Replies !    View Related
CTRL+P Problem
so, i have this code:

Code:
var keyObj:Object = new Object();
keyObj.onKeyDown = function() {
if (Key.getCode() == 80) {
/////////////////
var pj = new PrintJob();
var success = pj.start();
if(success)
{ pj.addPage (0, {xMin : 0, xMax: 1, yMin: 0, yMax: 1});
pj.send(); }
delete pj;
//////////////////
}
//trace(Key.getCode());
}
Key.addListener(keyObj);
which essentialy prints a blank page for a user.
my trouble is that, if I press "P" -defined by ascii=80, all is good, but if i press CTRL+P (as most will do by default), the routine doesn't work anymore.
Been trying to replace 80 with 16, as i found in some ascii charts but to no avail..
any suggestions?

View Replies !    View Related
Disable Ctrl+R.
I know that the command "Stage.showMenu = false" can be used to disable the menus in flash. However the play, rewind, step forward, step backwards controls are still available by key shortcuts. Is there anyway to fully disable these, especially Ctrl-R (rewind).

View Replies !    View Related
How Do I Capture Ctrl + Another Key?
I want to be able to capture Ctrl + another key.
How do I do this?

I've got the following code from help:

var keyListener:Object = new Object();
keyListener.onKeyDown = function()
{
trace("DOWN -> Code: "+Key.getCode()+" ACSII: "+Key.getAscii()+" Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);

But I can't seem to be able to capture key combinations like Ctrl + another key.

For what I need to do, I really need to capture several key combinations.
At the very least, I want to be able to capture Ctrl + another key.

Any help would be appreciated.

Thanks.


OM

View Replies !    View Related
Disabling Ctrl+ V
Hello!
I would like to disable the paste function in a input texfield. I googled it and saw that it was possible to modify the menue that appears when you rightclick in a texfield, but I canīt figure out how to make this work.
I have an input textfield in my root named "password2".

I found this resorses
http://www.adobepress.com/articles/article.asp?p=102024

http://livedocs.adobe.com/flash/9.0/...=00002217.html

I would be very thanksful for any help given.

Regards Arian

View Replies !    View Related
Capturing Ctrl-Z
Does anyone know how to capture key-presses that use Ctrl such as Ctrl-Z?

I am trying to add an undo function to my project and the following code (using Shift instead of Ctrl) works:

keyListener = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.SHIFT) && Key.isDown(90)) {
undoer.undo();
}
};
Key.addListener(keyListener);

But if I change that to Key.isDown(Key.CONTROL) && Key.isDown(90) then it will only work if I press Z first and then CTRL! That's not exactly conventional. My guess is that CTRL-Z must be registered as something else. Is there a way to use it though - or must I invent a new undo shortcut for my users?

Thanks,

Withnail.

View Replies !    View Related
CTRL + ENTER <<<< Not >>>> UPLOAD
when testing my movie (ctrl + enter) and then (ctrl + enter) "show streaming" my preloader works fine...

It shows the bytes loaded and when done it goes to the third frame...

But when I upload the file it wonīt go, or start already there, on frame 3...

Does anybody know something about it?

Thanks!!!!

View Replies !    View Related
Ctrl+Enter Prob
I've just discovered that in a flash swf or projector exe, pressing Ctrl+Enter causes the stop(); command to be ignored, and it jumps to the next keyframe, or scene.

I've tried trapping the Ctrl+Enter key press...but flash won't let me. Can someone tell me how to do ot...or suggest a way around it?
Thanx

View Replies !    View Related
Global Sound Ctrl...
hi all,

i have a MC that has my global sound in the 2nd frame, the first has a stop action. the sound is event > looping 99999 times....

on the play button i have the following:

on (release) {
tellTarget ("_root.sitemusic") {
play ();
}
}

it works fine...

on the stop button i have the following:

on (release) {
tellTarget ("_root.sitemusic") {
stop();

}
}

it doesnt work....

Also, how do make the play and stop buttons smart...so if the sound is playing it disables the button..???

Cheers

View Replies !    View Related
Copyright Đ 2005-08 www.BigResource.com, All rights reserved