Absolutely UNBELIEVABLE

This is… insanity. I can’t explain how frustrating this is.

I would say I’ve tried everything but I couldn’t have or it’d be working :{:{:{

Sending form info with send() and LoadVars.

my_loader.onData = function(src:String)
{
var start:Number = src.indexOf(‘some words here’);
var str1:String = src.substr(start + 22, 50);
var end:Number = str1.lastIndexOf(’"’);

 Engine.m_MyName = str1.substr(0, end);

};

my_loader.load(“ANY SITE DOESNT MATTER”);

var my_lv:LoadVars = new LoadVars();

Works:
my_lv.user_id = “dae_mn==”;

**Works:
**
var myname:String = “dae_mn==”;
my_lv.user_id = myname;

Doesn’t Work:
my_lv.user_id = m_MyName;
trace(m_MyName); //output: dae_mn==

Doesn’t Work:
my_lv.user_id = m_MyName.toString();
trace(m_MyName); //output: dae_mn==

Doesn’t Work:
my_lv.user_id = String(m_MyName);
trace(String(m_MyName)); //output: dae_mn==

Doesn’t Work:
my_lv.user_id = ‘"’ + m_MyName + ‘"’;
trace(’"’ + m_MyName + ‘"’); //output: “dae_mn==”

Doesn’t Work:
_root.mynamebox.text = m_MyName;
my_lv.user_id = _root.mynamebox.text;
trace(_root.mynamebox.text); //output: dae_mn==

Doesn’t Work:
my_lv.user_id = m_MyName.substr(0, m_MyName.length);
trace(m_MyName.substr(0, m_MyName.length)); //output: dae_mn==

So m_MyName traces to exactly dae_mn== with no spaces, exactly the same, but it won’t take the m_MyName variable. It must have to do with the origin of the text. But how can it still not work after all that converting?

The var is just an example, but that is EXACTLY my problem. It works perfectly in quotes, but just won’t work otherwise. Which is just stupid! Maybe it has to do with the formatting of the underscore and equals sign. I dont know :frowning: I’ll never figure this one out. If anyone could please help me!! I’ll love you forever and stuff.