A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Dynamic textbox... why work only in Netscape?

  1. #1
    Help Seeker
    Join Date
    Jun 2000
    Location
    NY
    Posts
    94
    Unfortunately the project is on our intranet so I can't give a sample...

    But it works the way I want it to thru Netscape (4.08) every time, but not in IE5.5. I've tried clearing the cache and shutting down/restarting the browser. I thought Netscape was the one with caching issues!

    Anyway, details: simple search form and results page (2 separate scenes). The search scene posts the Name of the person to search for (as entered by the user in a regular input box) into Results.cfm where it then does a query on it (see script1). Then it reads values spit back from the Results.cfm file. The Flash result page is just a bunch of dynamic text boxes named appropriately calling those fields (see script2) and it works great in Netscape. In IE, it doesn't even call up the fields.

    Script1:
    on (release, keyPress "<Enter>") {
    inputme = inputme; //name of input textbox
    loadVariables ("Results.cfm", "", "POST"); //use inputme for query string
    gotoAndPlay ("ShowResults"); //play next scene for results
    }


    Script2:
    //clear all fields before populating
    resultszero = "";
    namebox = "";
    phonebox = "";
    emailbox = "";
    managerbox = "";
    deptbox = "";
    positionbox = "";
    contractbox = "";
    pagerbox = "";
    pinbox = "";
    //load variables to populate fields
    loadVariables ("Results.cfm", "");

    Now this takes a good 2 seconds to process because it has to do a DB query, but it comes up correctly every time after 2-3 seconds in Netscape. In IE, it never comes up at all... all blank fields.

    Any ideas or a more efficient way to code? I'm thinking it has something to do with targets and levels. Should I be loading variables into Level0? Right now, it's set to Target(blank) as per a sample tutorial I found at NVIMedia.com

  2. #2
    Senior Member unicycle's Avatar
    Join Date
    Mar 2000
    Posts
    254
    yep, if this is the only loaded movie in the location try

    Load Variables ("file.cmf", 0)

    or

    Load Variables ("file.cmt", "_level 0")


    Leo.

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