By the way this is not a submit form, if it were - there are 100 tutorials on how to create a form and use .asp with it.
What I am doing is simply passing Vars from .asp to Flash in terms of dynamix text boxes with var names, But beside each dynamic Name I need the asp to also turn on/off a movie if that var name is = to true or false.
I have tried alot differnt coding methods and vars.
bit nervous about answering a question in the scripting&backend group but hey
and xxx.xxxxx.xxx must be a porn site, right
Anyway, is this the actual action script code you are using in your fla file or just a paraphrased version? Not sure all those statements will really work...
What you are doing seems to be correct - load the variables, and set the visibility of your movie clips. Not sure where you are using buttons here?
If you are having problems seeing the imported variable values, try 'loadVariables("my.asp",_root)' and then the variables will be accessible by _root.car etc.
If the problem is with waiting until the variables have been fully loaded, do this:
- create a movie clip instance called (for example) varLoader
- load the variables using loadVariables("my.asp",varLoader)
- put a stop(); action after the loadVariables
then in the movie clip action of the varLoader movie clip instance, you can use an onClipEvent(data) to trigger when the data has fully loaded and use this to continue running your flash file or hiding the other stuff or whatever.
Is this any help? Not sure I understand the question correctly but maybe you can clarify...
Now I see it. When you check in the loop, the loop doesn't wait till the data to come back from the server. The frame the frame itself has been loaded it moves on, meaning the data come yet.
The second frame check should be diferent. You should check if a variable called 'came' is true or false, when true go to the other thing, if not go backward one frame wich plays straight into the check one. So the moment the data came back you can check if to show your movies.
Now you will have to use 4 frames, 1 first for getting from .asp second and third for looping until the data got, and fourth for analaysing the data.
Both of you are very close
and no its not a porn site, I just figured I would replace my actual URL with xxx
And yes the problem lies where it moves on before loading the asp file, If I use a Button to call the asp file it works with no problems, but I can not have our users clicking a button, it needs to be when they load the page it calls that asp file and alows them to see the dynamic data.
Thanks for the support, and I will try these excellent feedbacks