Skip to main content
Known Participant
March 2, 2007
Question

loadVars problem in FMS

  • March 2, 2007
  • 1 reply
  • 381 views
I am running a very simple code, using
loadVars inside FMS, to load an ASP
script.

======================================
var lvData = new loadVars();
var lvR = new loadVars();

lvR.onLoad = function(BS) {
if(BS) trace("do something");
}

lvData.file = "test-2.swf"
lvData.sendAndLoad(" http://localhost/some.asp", lvR);
=======================================

The script works fine, except within
some.asp, the value of
Request.Form("file") is "testB2Fswf".
In other words, "-" is replace by B,
and "." is replaced by F.

Is there a way around this problem?


    This topic has been closed for replies.

    1 reply

    Inspiring
    March 5, 2007
    Hello :)

    the datas in FMS are in UTF8... in your ASP script do you use a UTF8
    encoding ?

    The name of a file must be easy with a-z 0-9 . caracters only if you
    want a good result.

    EKA+ :)

    David Mok a écrit :
    > I am running a very simple code, using
    > loadVars inside FMS, to load an ASP
    > script.
    >
    > ======================================
    > var lvData = new loadVars();
    > var lvR = new loadVars();
    >
    > lvR.onLoad = function(BS) {
    > if(BS) trace("do something");
    > }
    >
    > lvData.file = "test-2.swf"
    > lvData.sendAndLoad(" http://localhost/some.asp", lvR);
    > =======================================
    >
    > The script works fine, except within
    > some.asp, the value of
    > Request.Form("file") is "testB2Fswf".
    > In other words, "-" is replace by B,
    > and "." is replaced by F.
    >
    > Is there a way around this problem?
    >
    >
    >
    >