A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Need help setting the text value for this string

  1. #1
    Member
    Join Date
    Jul 2008
    Location
    Manhattan, New York City. (New York City??)
    Posts
    38

    Question Need help setting the text value for this string

    Hi I am trying to send a search query and I have everything working except, when I create a search it says undefined when the search results. What am I missing in this code?

    PHP Code:
            
            _container
    .txt_input.input_txt.onSetFocus =  function(newFocus:Object)
            {
                if(
    this.text == 'TYPE YOUR QUESTION HERE????.' )
                {
                    
    this.textColor 0x000000;
                    
    this.text '';
                }
            }


        
            
    _container.btn_getAnswers.onRollOver = function ()
            {
                
    TweenMax.to(this.grad.35, {_alpha:0});
            }
            
            
            
    _container.btn_getAnswers.onRelease_container.btn_getAnswers.onRelease = function ()
            {
                
    TweenMax.to(this.grad.5, {_alpha:100 });
                
    getURL("http://search.bmwusa.com/?q=" escape (_container.txt_input.input_txt), "_blank");
            }
        } 
    the input text has an instance name of input_txt


    can anyone help me?

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    What do you get if you try this...
    Code:
    getURL("http://search.bmwusa.com/?q=" + escape (_container.txt_input.input_txt.text), "_blank");

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    instance name of input_txt

    you need -

    escape (_container.txt_input.input_txt.text)

    EDIT: snap, dawsonk

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