Ask a Question related to Macromedia Director Lingo, Design and Development.
-
s1howes webforumsuser@macromedia.com #1
importing text into a field member pt2
All works fine when I import text (menu items) from an external txt file using fileIO xtra. However, forgetting security restrictions, I forgot that fileIO is not shockwave safe and will not import external menu items.
Does any body have a decent idea...probably using xml.
to see the example look at the attached.
PS. thank to NED for the previous help in prt 1 of this thread.
steve
[url]http://webforums.macromedia.com/attachments/importing_text.zip[/url]
s1howes webforumsuser@macromedia.com Guest
-
putting transform data from field text member
i have a scene that I want to set the transforms of the object to one's that I recorded from a startmovie handler. Ive tested the code for the... -
importing an exetrnal textfile into a field member
hi there. I use the following behaviour and director's own 'dropdown menu' script on a field sprite to pick up a text list from an external... -
text of a field member to file --> ugly characters instead of RETURN
Hello, I have stored text within a field member. The text is line by line, that is to say after each line a RETURN. When writing this into a... -
Print text field member
I would like to allow the users to print a text field member when they play the projector. when I use: print member ("printable text... -
importing text into a field
Hello all, I´ve imported text from a text file into a field box and for some reason everywhere where there is a new line character a small square... -
Andrew Morton #2
Re: importing text into a field member pt2
If you want the text file to be local to the user then use setPref/getPref. If
you want the text file to reside on the server then use
preloadNetThing(whateverURL), wait for the download to finish, then
member(x).fileName=whateverURL. The Lingo Dictionary has examples of waiting for
the d/l to finish.
Andrew
Andrew Morton Guest
-
Ned #3
Re: importing text into a field member pt2
I don't have time to watch your files, but you can quite easily import text
data in shockwave with xml, using FlashObject (refer to help and MM
technotes about that)
--
----------------
-- Ned
----------------------------------------
Bien faire et laisser braire
----------------------------------------
"s1howes" <webforumsuser@macromedia.com> a écrit dans le message de
news:bq20vc$qpl$1@forums.macromedia.com...
| All works fine when I import text (menu items) from an external txt file
using fileIO xtra. However, forgetting security restrictions, I forgot that
fileIO is not shockwave safe and will not import external menu items.
|
| Does any body have a decent idea...probably using xml.
|
| to see the example look at the attached.
|
| PS. thank to NED for the previous help in prt 1 of this thread.
|
| steve
|
| [url]http://webforums.macromedia.com/attachments/importing_text.zip[/url]
|
|
Ned Guest
-
s1howes webforumsuser@macromedia.com #4
Re: importing text into a field member pt2
Thanx Andrew,
I think you have to setpref firstly in order to retrieve data back.
I need something that will be shockwave safe and that imports data (menu items) and propogates a menu field in all my dcr movies as this will save on 'Housekeeping' if movies are deleted or created as I would only have to update one file.
cheers
steve
s1howes webforumsuser@macromedia.com Guest
-
Andrew Morton #5
Re: importing text into a field member pt2
> I think you have to setpref firstly in order to retrieve data back.
That's right. I thought that maybe you had a menu which could be personalised,
in which case you would have a default menu built-in to the Shockwave movie and
setPref that if there wasn't one already there.
items) and propogates a menu field in all my dcr movies as this will save on> I need something that will be shockwave safe and that imports data (menu
'Housekeeping' if movies are deleted or created as I would only have to update
one file.
The text file you're using is small, right? In which case downloading it from
the server every time will take a very small amount of time. It will be cached
anyway. It might be a good idea to use a CGI script to retrieve the text file so
that you can set the content-expires header in case you want to occasionally
change the menu(s).
Andrew
Andrew Morton Guest



Reply With Quote

