RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
you need to escape the \ like so \\ appFile = appFile.resolvePath(fileString+\\personnel.xml); trace(fileString+\\personnel.xml) From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] on behalf of natalia

RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
Or use a / which I think works both on PC and the mac (which \ will not, that will only work on windows) Forgive me if I'm wrong on that one. From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] on behalf of Jim

RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
: Re: [Flashcoders] Read and save xml file on disk Just use File.separator, it will get you the correct one if you care. Jim Hayes skriver: Or use a / which I think works both on PC and the mac (which \ will not, that will only work on windows) Forgive me if I'm wrong on that one

RE: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-11 Thread Jim Hayes
Ah, I've just been there with IPA characters. If you are using htmltext it's do able, though in the end I embedded the font (deja-vu in my case, it's open source) since I also needed to set plain text. The trick is to unicode escape the character, replace it with that escaped code and set a

RE: [Flashcoders] Loading local files with query strings

2009-09-16 Thread Jim Hayes
That's what you'd expect with *local* files, e.g. loading from a filesystem. The filesystem will look for the file with the literal filename my_swf.swf?id=33. A web server, on the other hand, knows that anything after ? is not part of the filename, and should be treated as a query string.

RE: [Flashcoders] Loading image on local filesystem

2009-01-29 Thread Jim Hayes
Are you sure this is not a security error due to the allow network / allow local setting? I'm guessing that you may want to allow local file access for the swf (somewhere in publish settings as I remember), or add the img folder on your local drive to flash's trusted locations. -Original

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Jim Hayes
Naaa! It will still render anything in the title tag, I ran into this myself! Very annoying, and you wouldn't really expect it. Only way I found to fix it was to strip out that tag and it's contents... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate

2008-08-18 Thread Jim Hayes
Or cheaper still, email you the licence code, It's all you need! Our company has some salespeople in the USA, that's what I do (though they do send the disks whenever they're sending us something else). Recently though, upgrade prices in UK do seem to have been more or less on a par with the

RE: [Flashcoders] Question about the AIR security model...

2008-04-24 Thread Jim Hayes
Apparently, if you load the .swf as a byteArray then you can then use a loader to load that as a swf, in the context of your application. Normally that would be considered a potentially bad thing, but in your case it looks like it could be exactly what you want to do. Hth. -Original

RE: [Flashcoders] calculating distance between two points

2008-03-11 Thread Jim Hayes
Pythagorus, innit? The square root of the the sum of the difference in x squared and the difference in y squared ? Or was I not listening in school way back then? I think there may be an inbuilt method in flash, mind you, but if there is I don't know what it is. -Original Message- From:

RE: [Flashcoders] calculating distance between two points

2008-03-11 Thread Jim Hayes
That was the one I thought I'd heard of. But... Too easy! Boring! Soh cah toa ! (and that as far as I can remember is actually the only useful thing I did learn in school) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Dembicki Sent: 11 March 2008

RE: [Flashcoders] FileReference.download problem

2008-02-21 Thread Jim Hayes
It could just be windows set to not show file extentions for recognised file types - personally one of my most hated features, but that's the default and most people don't change it. Just a possibility ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [Flashcoders] AS3 Function question

2008-02-07 Thread Jim Hayes
I normally just set a default value for the second argument : function someFunction(arg1:int,arg2:String=null):void { if(arg2==null) { //whatever. } //some code ... } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On