-
Supa Dupa Fly
Enter Button
I need to beable to turn the enter button off... so that I can force it not to play the complete movie when pressed... anyway to do this??
I have a very long and tedious swf... that utilizes next buttons and when someone presses enter they screw everything up..
I am attempting to make this web-app as simple and non-end user breakable as possible.
I have flash MX 2004 pro.
Please Help Thanks a Bunch,
Carlos
Last edited by carlosrapa; 01-30-2004 at 01:15 PM.
-
Senior Mender
im not sure i understand but here is how you disabled a button
enter_mc.enabled = false;
-
I'm pretty sure when your movie is published....the enter button wont advance your movie to the next frame like it does when U R 'testing' the movie inside Flash.
-
Supa Dupa Fly
strangely enough it does advance the movie... but I kind of found out why... I have it embedded in a lotus notes form.... and for somereason things do not work how they should when it is like that... so I need some kind of actionscript to take care of it which is based inside the movie.
Thanks,
Carlos
-
Thats freakish.
Try this-
Place in frame 1 of your movie:
k = new Object();
Key.addListener(k);
k.onKeyDown = function() {
l = Key.getCode();
if (l == 13) {
_root.stop();
}
};
-
Supa Dupa Fly
Yes it is freakish... thats the problem with companies that want to embbed a flash into lotus notes...
Dealing with lotus and flash together is an all-a-round pain.
But that did work although i just took out the _root.stop(); to look like this...
k = new Object();
Key.addListener(k);
k.onKeyDown = function() {
l = Key.getCode();
if (l == 13) {
}
};
Cause at somepoints in the movie it needs to play and my luck some idiot will hit enter and break it...
Thanks,
Carlos
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|