Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load Variables - problem with @ symbol 1

Status
Not open for further replies.
Dec 24, 2001
857
GB
My movie is loading variables from a standard text file. Everything is correctly displayed apart from the @ symbol on an email address.

The strange thing is even when I put
Code:
textBoxName.text = myVar + "@somewhere.com"
it still doesn't display it. In fact, in this case it doesnt display anything after the @ (whereas in the first example it just misses it out so it displays as personsnamesomewhere.com

I've looked around for the alternatives to use such as %40 and &64 etc (cant remember if they're the correct ones now) but they wouldn't show up. If I used the correct ones for letters and numbers it displays, just not if I use the correct one for the @ symbol.

Any ideas?

Thanks
 
oh and if I trace the variable, the @ is displayed - just not when I try to use it in a text field.
 
Just using Tahoma so yeah, the @ symbol is definitely exists!

I've also tried changing the font to Times New Roman, recreated the text box, recreated the text file etc. It still doesn't display, which is a bit annoying!

I also can't figure out why when I use '+ "@somewhere.com", it doesn't display anything after the @ sign.
 
problem has to be with the external text file

can you post the contents.
 
Heres whats contained in the text file:

Code:
PersonSite=Name of Site
&PersonName=Name of Person
&PersonTelephone=0123456789
&PersonEmail=firstname.a.surname@somewhere.com
&PersonLocation=RoomNo, BuildingNo, Site

I'm kind of hoping it is a problem with this because at least then its an easy fix! Is this the correct format, because I think I just copied and edited it from some site or maybe even the Flash help files...
 
i cant replicate the problem


me = new LoadVars()
me.onLoad = function(){
bill.text = this.PersonEmail
}
me.load("bill.txt")

with your text file saved as bill everything shows up correctly
 
Well I think I've figured out that this goes beyond being a LoadVars problem because if I comment out all of the actions and just add:

Code:
PersonEmail.text = "someone@somewhere.com"

it displays as 'someonesomewhere.com'

I'm also beginning to think there may be a bigger problem because I tried creating a new movie with a dynamic text box and actions to insert text. When I run it, even though the text is set to black on a white background, it doesn't display anything. However, if I highlight it, I can copy and paste elsewhere so I know its there.

Another strange thing with this is that when highlighting, it doesnt appear highlighted i.e. normally selecting something on a white background will turn it a darker colour, but it doesnt in this case so it looks as though it hasnt selected anything.
 
I don't have anywhere to host it - what I was going to suggest is can you post the FLA you got working, I'll try it on mine and if it still doesn't work I'll know theres a problem with my Flash installation...

Thanks
 
Well that works on mine so I guess I can just use this FLA. Recreating what was going on in the other FLA(s) won't be difficult since I can just copy the library.

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top