This content has been marked as final. Show 4 replies
if your variables were defined within the same scope as your loadVariables statement, your variables would be transmitted.
because your code appears to be "extracted" from its context, it's not possible to judge the scope of your variables and loadVariables statement.
and yes, loadvars is the preferred as2 way of communicated between flash and php.
Thanks for the reply, kglad, but I am not sure what you mean by the code being out of context. There are input fields that accept data, and when the user hits the SUBMIT button, it calls the submitNotification function. What is not in context to determine the scope? I could provide more info if necessary.
it looks like you cut and pasted code snippets. so, for example, it's not possible to tell if some of those variables are defined inside functions and if they are, are they local to the function.
Hmm. The odd thing is that I have used this code a number of times, with the same PHP file, and it worked perfectly. I have tried to define the vars a number of ways, in the button handler, on the main timeline, etc. I even tried to hard code the variables with string data, with no luck. I am starting to wonder if there is an issue with the PHP file or its permissions.