all groups > flash data integration > december 2004 >
You're in the

flash data integration

group:

Dynamic Text


Dynamic Text Razorplane
12/16/2004 4:06:48 PM
flash data integration:
Please help.
I'm a newbie ... but there's gotta be a simple solution to this:

I'm pulling data into a Flash text field from a SQL database through an ASP
page.
It displays fine ... works great ... but I need to be able to place a conditon
on the data in order to trigger a frame change in the movie.

For instance - If the the dynamic text field displays a certain date, it needs
to trigget a frame change in the movie that contains the text field.


I've tried using InstanceName.text, but it doesn't read the text pulled from
the database -- it only works if I already have text typed in the text field.

I've tried using InstanceName.variable, but that only reads the variable name
I assigned to the text field -- not the value of the variable displayed in the
text field.

Can anyone point me in the right direction?


If you need any more info, let me know.


Thanks!

~Raz



Re: Dynamic Text Justin E-C
12/22/2004 11:36:21 AM
anything displayed in the text field should be accessible when you look up the
text property of that text field. Also, if you are using var on your text
field, that variable name will also hold the value displayed in the text field.
THere shouldn't be a time when they are different.

The only thing I can think of is that your script is checking the field before
the server returns the result and so you are seeing the initial values, and
then the server returns, overwriting the content of the field.
Re: Dynamic Text Razorplane
12/28/2004 4:06:34 PM
Thanks Justin ... I think you are right..
The dynamic data does overwrite any static text I put into the dynamic text
field.


Do you (or anyone) have a suggestion on where I can put the script so that it
runs after the server returns the result?

I've tried putting it on various frames along the primary timeline ... also on
the movie's timeline (the movie that contains the dynamic text field) ...
attached it to a button ... and even placed it within a movie embedded within
the movie that contains the dynamic text field.

I'm just shooting blanks so far, and it's frustrating.
All I need to do is read the text displayed in the field!

It would seem to be a very simple thing ...


Thanks,


~Raz


AddThis Social Bookmark Button