dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [CS3] IF a certain word is typed in an input box then an invisible MC shows?

  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    31

    Question [CS3] IF a certain word is typed in an input box then an invisible MC shows?

    Hi. i have a movie clip, instance name "winverMC" . I also have in the sam frame an input box, instance name "search" . In the frame the actions are:

    Code:
    winverMC._visible = false
    which hides the MC.

    How do i configure the movie, so when the word "winver" is typed into the input box, and enter is pressed the MC become visible?

    Thanks

  2. #2
    Member
    Join Date
    Aug 2007
    Posts
    33
    Im not sure if this will work but i think it should.
    It might work in the main timeline.
    Code:
    winverMC.onEnterFrame = function () {
    if(search.text = "winver") {
    winverMC._visible = true;
    }
    I havnt used flash to type this so there might be a few spelling errors, but it should work, also on this you dont need to press enter for the function to happen.
    Again im not possative that this will work but it might be something like this.
    Code:
    winverMC.onEnterFrame = function () {
    if (Key.isDown(Key.ENTER) and search.text = "winver") {
    winverMC._visible = true;
    }
    }
    Again, im not sure that these will work.

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    31
    I am getting the following errors :



    For the first block of code you gave me.

  4. #4
    Member
    Join Date
    Aug 2007
    Posts
    33
    well try adding anouther } to the end

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