Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : Dynamic Text - Not Dymanic as a Symbol?


Tom Unger
6/27/2004 10:56:49 PM
Peter Mayhew;
I would suspect that you are "breaking" the pathing to the
variable/values, which are probably being loaded into the main
timeline. -Tom Unger

Peter Mayhew
6/27/2004 11:33:38 PM
I have a movie with some dynamic text which scrolls across the screen. The text
is loaded from an external ASP file.

This works fine.

However, when I create a symbol of the dynamic text box, the symbol does not
update.

Any suggests on how I get around this?
rlc5611
6/28/2004 3:11:33 AM
urami_
6/28/2004 10:41:46 AM


[quoted text, click to view]

You must be incorrectly specify path to the text fields.
When it is on timeline you refer to it by variable or instance name
but once it is inside movie clip (can't be in graphic symbol) you need to specify
that name instance following the variable or instance name of the text field.
If you placing it inside something , you must always change path accordingly to
new arrangement.




--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
Peter Mayhew
6/29/2004 10:18:46 PM
Ok, I've read all of the replys in this thread, however i'm still a little
confused in getting it to work in practice.

So to explain in more detail what I have done

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

I thought about using command setProperty, but i'm walking in the dark, and
need someone to hold my hand.

Look forward to anymore replys
urami_
6/30/2004 6:48:56 AM

[quoted text, click to view]

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*
AddThis Social Bookmark Button