A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Passing variables between swf, weird stuff happening...

  1. #1
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Ok: I'm making a glossary for a school project, the problem that came up is weird:
    I have one main swf : glossary.swf and one search swf : search.swf.
    I've got one input field "search_string", and on the "go" button it loads search.swf in like this:
    Code:
    	loadMovieNum ("search.swf?s="+search_string, 10);
    	gotoAndStop ("load_simple_search");
    search.swf picks up the "s" variable (I can see it in a text field)
    BUT: I then go on and load the search(within search.swf) with :
    Code:
    loadVariablesNum ("search.php?search=simple&search_string="+ this.s, 10, "POST");
    The search class is working perfectly when loaded in the browser. (So the problem is not there)
    Let's say that i pass "s=sale", then the search.php returns 0 results (once again I can see this in a text field), but when I put "sale sale sale" into the search_string field, I get back 15 (wich it should do according to if I look it up in search.php)

    Now: why would this happen??
    I've tried a lot of combinations on this, I even duplicated search_string 3 times and sent it to search.swf, but it still would not work.......

    Can you see anything wrong here?? I've been working myself blind on this problem right now.

    Thanks!

  2. #2
    [title goes here]
    Join Date
    Apr 2002
    Location
    usa
    Posts
    124

    Talking huh

    not sure by your explanatioin what the issue is
    what does '15' mean?

    please provide a little more detail of what your question is and i will be happy to take another look


    [Edited by hansel on 05-05-2002 at 04:11 AM]

  3. #3
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    I get back 15 results from the search in the DB.

    The problem is in short: I have to write in "sale sale sale" to search for "sale" in the database (this will return 15 results)
    Just tested this: **** sale ***** and it returned 15 results as well....

    If I enter "sale" I get back 0 results.

    If I do search.php?search=simple&search_string=sale in the browser it returns 15 results as well, so it's something with flash that messes things up.

  4. #4
    [title goes here]
    Join Date
    Apr 2002
    Location
    usa
    Posts
    124
    it may be a flash issue and not a code issue
    depending on your specific conditions......
    see this mm article:
    http://www.macromedia.com/support/fl...h_get_post.htm

    try using 'GET'......
    this should work ok since your query string is fairly short
    see if this flushes out the problem



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