Groups | Blog | Home
all groups > macromedia flash sitedesign > january 2005 >

macromedia flash sitedesign : Problem using External Text Extension for Flash MX 2004


bmolayi
1/20/2005 9:05:41 PM
I am trying to use the External Text MX Flash component (by Kamran Riaz). I
followed the extension instructions and dragged the component on the stage.
Then I created a text file and put it in the same directory as the FLA file. I
set the File Name parameter to this file's name.The rest of the parameters seem
to be clear and easy to set, except for Page Variable parameter that I don't
understand. Without changing Page Parameter from the default, I try to play my
flash movie. It opens the space for the text on the stage, but is unable to
access my text file, and puts the message:'undefined' on the screen. Anybody
had this problem, or could help me with it? Do you know how the external text
file should be prepared, and where it should be placed? What is the Page
Variable parameter and Text Select parameter, and how to set them? Appreciate
your help on this Bijan
xViPERed
1/21/2005 4:19:48 AM
Well, I can't say for sure, but every time I ever got the 'undefined' error
while pulling up an external text file, it was due to the simple fact that the
text file being accessed did not start with '&content=' (do not include the
quotation marks). Again, I can't say for sure that this is your problem, but
I'd say it would certainly be a decent place to start. My bet is that this is
the culprit, and there is probably nothing wrong with your fla file. Without
that opening string in the text file, flash doesn't know what data to show,
hence the error message of 'undefined'. Hope that helps, :ViPER:
bmolayi
1/21/2005 3:46:54 PM
xViPERed, Thanks a lot for your thoughts. In fact you were right that I needed
to add something at the beginning of my text. In this particular case, it
turns out the program has a parameter for that starter word. You can set the
name of this parameter. Assuming you use the default name of myPageVar, then
if I add: 'myPageVar=' to the beginning of my text file, it works. Again.
thanks for your help. Bijan
xViPERed
1/24/2005 1:35:16 AM
No problem, I'm glad I could at least help steer you in the right direction.
I've never used that component, so I wasn't exactly sure what you would need to
get the job done. I know that if you just use a normal textbox loader component
to call the external text file, the '&content=' at the start of the text
file will also work . Thanks for the heads up about being able to use the
variable name to start the text file. :ViPER:
AddThis Social Bookmark Button