A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Enter Button

  1. #1
    Supa Dupa Fly carlosrapa's Avatar
    Join Date
    May 2003
    Location
    St. Louis, MO. USA
    Posts
    158

    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.

  2. #2
    Senior Mender trionik's Avatar
    Join Date
    Nov 2000
    Location
    Montréal,Canada
    Posts
    1,077
    im not sure i understand but here is how you disabled a button

    enter_mc.enabled = false;

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Location
    Southern Cal. USA
    Posts
    136
    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.

  4. #4
    Supa Dupa Fly carlosrapa's Avatar
    Join Date
    May 2003
    Location
    St. Louis, MO. USA
    Posts
    158
    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

  5. #5
    Senior Member
    Join Date
    Jun 2002
    Location
    Southern Cal. USA
    Posts
    136
    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();
    }
    };

  6. #6
    Supa Dupa Fly carlosrapa's Avatar
    Join Date
    May 2003
    Location
    St. Louis, MO. USA
    Posts
    158
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center