flash data integration:
:confused; This should be the simplest thing to do: have a .swf say, "Welcome,
NAME."
I've spent 8 hours on tutorials and I just really need help. Yep, this is my
first try at this particular thing. Thanks for looking, I hope someone can
help.
The .swf is in the same directory as an asp.net file that is calling the name,
but I want the name to be inside the flash.
My current result is that, instead of a name, I get "Welcome, UNDEFINED."
I have a dynamic text box with an instance name of "welcome_txt".
This is the code on the asp page named "MainContent.aspx.vb":
[quoted text, click to view] >>Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim sb As New StringBuilder
Dim sFName, sLName As String
sFName = Request.QueryString("FN")
sLName = Request.QueryString("LN")
sb.Append("")
sb.Append(sFName)
sb.Append(" ")
sb.Append(sLName)
sb.Append("")
Me.lblHdr.Text = sb.ToString<<
I will now attach the code I have in the first frame of my ActionScripting.
Thanks a trillion to anyone out there that can/has the heart to help me.
/* Create instance of LoadVars */
var myData = new LoadVars();
// After loading is complete, trace the LoadVars object.
myData.onLoad = function(success) {
trace(myData.sFName);
welcome_txt.text = myData.sFName;
};
/* Load Data into the LoadVars object. */
myData.load("MainContent.aspx.vb");
//Output data to welcome_txt
welcome_txt.text = myData.sFName;