[quoted text, click to view] > In the first frame I have the code -
> loadVariablesNum("
http://www.mayhewflowers.co.uk/includes/sessional.asp", 0,
> "GET");
> This asp code will simple give me variables, and details assigned to the
> variable ie
> Title=Merry Christmas&Description=Come to MayhewFlowers for your Wreaths
>
> Then I 'had' a dymanic text box with a Var called "Title" (which is one of the
> variable names in returned in the above asp file.
> There is no other actionscript code, as before the dynamic text box found the
> details of variables obtained from "loadVariablesNum"
>
> When i create a symbol of this dynamic text box it no longer updates as
> explained. So I thought about what you have all said. But i'm not sure on what
> actionscipt code i need to overcome this problem :-s
>
Just to make it clear , the dynamic text field should not be in graphic symbol.
Movie clip is your best choice.
In regard to the path to your variable:
The following action loads variable on main timeline on level zero
loadVariablesNum("filename.asp", 0);
(no need to use GET if you just load variables)
SO in order to grab the variable the text field should be on level zero as well.
Once you put it in Movie Clip it no longer is on that main timeline. If you want to load it directly
to that clip you could use :
loadVariables("filename.asp", "ClipName");
where ClipName is the instance name of the clip where is the text field.
But , in case of multiple variables , would be inconvenient to load it in movie clip
than refer to that clip from every place that needs the variables ( could be in future where your
projects get more complicated).
You can use text field variable name to force it to load it from main timeline.
Use
loadVariablesNum("filename.asp", 0);
and in your text field variable name key in _root.Title
This will force the text field to seek it's value on main timeline
no matter how deep in movie clips it's going to be.
--
Regards
urami_*
<hol>
http://flashfugitive.com/ </hol>
By The way:
If you try to mail me , DO NOT *laugh*