How are you "passing" the variable to an email form? You typically never NEED to create a funky variable name if creative string solutions could do the job. How about something like "f_31" until you have to package it up to send? And how does the end process know the variable name?
var str:String = "f#31"; this [ str.split("#").join("_") ] = "test"; trace( this.f_31 ) // test - J -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Klasson Sent: Thursday, February 21, 2008 12:50 AM To: Flash Coders List Subject: Re: [Flashcoders] variable with # sign this[f#31] = "TEXT:Email%20Address"; This could work for you I guess, it wont give you a compiler error, but I would revise the code since I wouldnt suggest this "ugly" solution. If you could show more code on how you are sending the data, as well as what Flash Player version you are targeting there would easier to give you a more helpful hand if you want the solution to be more legit than the solution above. / Martin 2008/2/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi. > I need to pass a variable to a email sign-up form and it needs to be > named f#31 > > I have it written: > > var f#31 = "TEXT:Email%20Address"; > > Flash gives me an error when I try to publish this and I assume its > because the variable name has the # sign. How do I get around this? > I've tried escape sequences to no avail. > > Thanks! > -Alex > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Martin Klasson Flash Developer Parkgatan 9-11 S-411 24 Göteborg Sweden Office +46 (0) 31 711 54 50 Cell +46 (0) 730 964 561 [EMAIL PROTECTED] www.kokokaka.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders