Yup - going to get this fixed up before Flash sees it. \u screws things too... so getting proper / should work I hope.
e.dolecki On 11/16/05, Derek Vadneau <[EMAIL PROTECTED]> wrote: > > A backslash is an escape character only when in a string literal. If you > type "\blah" in ActionScript, then the \b is converted. > > Change: > trace( "C:\Documents and Settings" ) > > to: > trace( "C:\\Documents and Settings" ) > > You can't change this at runtime because the escape is done at > compile-time. > > A proper Windows path uses \ characters, although if you're strictly using > Flash (i.e. no 3rd party client tool) you can probably get away with using > / characters since Flash should understand. > > > Derek Vadneau > > ----- Original Message ----- > From: "eric dolecki" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <[email protected]> > Sent: Wednesday, November 16, 2005 11:02 AM > Subject: [Flashcoders] local file path prob > > > I am being given local file paths to things, however the backslashes are > screwing things up. > > trace( "C:\Documents and Settings" ) > > You see the \ is eating the D - \D is a backspace? Its performing string > modification. The problem compounds if there is a \r or \n in the filepath > as well. > > Is the only solution here to have the string passed outside of flash the > result of a search/replace ( "\" --> "/" ) ? I think I can get the > developer > to do this, but wondered if anyone else had run into this situation, and > what you did to get around it. > > edolecki > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

