Results 1 to 7 of 7

Thread: Search function

  1. #1
    Join Date
    May 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Search function

    is it possible to have search function in Flash?

    It's trival to have a serach site function in no-flash site, user enter a keyword and return all the files with the word inside.

    How can I acheive this in Flash site, since all the texts are inside text box? Is any way to do that?

    I see a lot of Flash templates which have those Search (even advanced search), but I really dont get how it can be done.

    Thanks for help.

  2. #2
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Yes, but the easiest way is to implement PHP in the flash. Use a MySQL database, too.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by xxlfm View Post
    is it possible to have search function in Flash?

    It's trival to have a serach site function in no-flash site, user enter a keyword and return all the files with the word inside.

    How can I acheive this in Flash site, since all the texts are inside text box? Is any way to do that?

    I see a lot of Flash templates which have those Search (even advanced search), but I really dont get how it can be done.

    Thanks for help.
    For text directly embedded into Flash, I don't see how this is possible. The search function would effectively have to decompile the Flash and index the text that way.

    The way to do it would be if the text is being brought in dynamically (via XML, flashvars, text files, etc..). Then the flash function could search though that. Or do what the above user said with php/mysql.

    It could be done with AS but it's probably more trouble than it's worth.

  4. #4
    Join Date
    May 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default well, just redirect to google then

    ok, I just redirect the serach to google then maybe next is to try the dynamically loaded text for search.

    on (release) {
    var strSearch = _level0.instance44.mcInput.txtSearch.text;
    //trace (strSearch);
    getURL("http://www.google.com/search?q=" + strSearch, "_blank");
    }

    and I really like the TRACE (THIS)!!!!

    Thanks again!
    Last edited by xxlfm; 06-11-2007 at 05:14 PM.

  5. #5
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    sorry i have made a text inout field called strSearch and a button using this action code but not working. can you help
    The web in one word.

  6. #6
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Can any one get this to work?
    Thanks
    The web in one word.

  7. #7
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Depends on exactly what you mean, the original message, or the modified one.

    I have added an fla (in Flash8) that shows an input box, a button to press and the code that will open Google in a new window with the results from the word that was put in the text box.

    If that is what you need, then there you have it. If it is not, ask again
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •