Re: [flexcoders] Ant Task to Build Air Package

2009-09-29 Thread Ian Thomas
arg line=-storepass ${STOREPASS}/ works for me. Which does much the same thing. Are you sure your ${STOREPASS} property is correct/has valid data? Ian On Mon, Sep 28, 2009 at 8:18 PM, seanmcmonahan s...@seanmonahan.org wrote: I'm working on an Ant build script to build and package my Air

Re: [flexcoders] openGL overlayed on Flash

2009-09-26 Thread Ian Thomas
Try calling the updateAfterEvent() method of the MouseEvent you're using to track the mouse (probably in MOUSE_MOVE, I'm guessing). e.g. public function onMouseMove(ev:MouseEvent):void { _myCursor.x = stage.mouseX; _myCursor.y = stage.mouseY; ev.updateAfterEvent(); } HTH, Ian On Sat,

Re: [flexcoders] Bringing application to front

2009-09-15 Thread Ian Thomas
If it's an AIR application, you can use the .orderToFront() method of your WindowedApplication. http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html#orderToFront%28%29 Ian On Tue, Sep 15, 2009 at 10:03 PM, nhid nhi...@gmail.com wrote: Hi, How should I go about

Re: [flexcoders] Use Outline fonts in Flex AIR app?

2009-09-13 Thread Ian Thomas
Tracy, You can get a pretty good approximation by using a GlowFilter on a font, setting the quality to medium or high, the size to 2 or more and the strength to 1000. HTH, Ian On Sun, Sep 13, 2009 at 4:38 PM, Tracy Spratt tr...@nts3rd.com wrote: We need to display numbers on a screen

Re: [flexcoders] Use Outline fonts in Flex AIR app?

2009-09-13 Thread Ian Thomas
Sorry, setting the filter on a text display object of some sort, not on a font! Ian On Sun, Sep 13, 2009 at 4:50 PM, Ian Thomas i...@eirias.net wrote: Tracy, You can get a pretty good approximation by using a GlowFilter on a font, setting the quality to medium or high, the size to 2

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2009-08-31 Thread Ian Thomas
Take a look at flash.text.TextField.getCharBoundaries() (and other TextField methods). HTH, Ian On Mon, Aug 31, 2009 at 8:53 PM, Bazli...@thinkloop.com wrote: Anyone know how to get the X/Y coordinates of a specific character/letter in a text field or text input? Thanks!

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2009-08-31 Thread Ian Thomas
Oh - sorry, should have said - you'll need to get at the .textField property of (for example) your mx.controls.Text object, which will give you back the raw flash.text.TextField for you to then call getCharBoundaries() on it. Unfortunately, .textField is a protected property of mx.controls.Text,

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2009-08-31 Thread Ian Thomas
ideas? Thanks, Baz On Mon, Aug 31, 2009 at 1:19 PM, Ian Thomas i...@eirias.net wrote: Take a look at flash.text.TextField.getCharBoundaries() (and other TextField methods). HTH, Ian On Mon, Aug 31, 2009 at 8:53 PM, Bazli...@thinkloop.com wrote: Anyone know how to get the X/Y

Re: [flexcoders] Create a directory

2009-08-28 Thread Ian Thomas
Use a server-side language of some sort to do the processing - e.g. PHP, ASP or similar. Ian On Fri, Aug 28, 2009 at 3:01 PM, christophe_jacquelinchristophe_jacque...@yahoo.fr wrote: Hello, How to create a directory (and see if it exists) on the server from a flex application ? Thank

Re: [flexcoders] Re: How to run another air application from air application

2009-08-13 Thread Ian Thomas
On Thu, Aug 13, 2009 at 11:07 AM, vladakg85vladak...@yahoo.com wrote: Hi, you help me a lot, but now I have some strange problem: This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance. If you're having

Re: [flexcoders] Re: How to run another air application from air application

2009-08-13 Thread Ian Thomas
On Thu, Aug 13, 2009 at 11:44 AM, vladakg85vladak...@yahoo.com wrote: Yes, but I don;t want to use framework. I have to make manual update. I have methods that check if there is new version on server,manually download new version from server, and manually run installer, but I recived this

Re: [flexcoders] This mailing list vs the forum.

2009-08-13 Thread Ian Thomas
On Thu, Aug 13, 2009 at 10:26 AM, Andriy Panasa.pa...@gmail.com wrote: Forums in general are way superior to mailing lists to exchange the knowledge on the Internet. My main issue with that is: Mailing lists are push. Forums are pull. I'm on 6 or 7 different mailing lists. There's no way

Re: [flexcoders] RegExpValidator Not working with code-behind

2009-08-13 Thread Ian Thomas
Geoff, Try: public var validIPExpression:RegExp = /^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$/; instead. Could be because by directly specifying the expression, the MXML-AS parser correctly decides to treat it as a RegExp. But when directly

Re: [flexcoders] How to run another air application from air application

2009-08-12 Thread Ian Thomas
Take a look at the flash.desktop.Update class - call the update() method on the AIR file in question rather than using URLLoader(). There's a code snippet that does what you want here: http://livedocs.adobe.com/flex/3/html/help.html?content=updating_apps_1.html HTH, Ian On Wed, Aug 12, 2009

Re: [flexcoders] Strange type-coercion error message! Ideas?

2009-08-12 Thread Ian Thomas
Looks like your objects belong to different ApplicationDomains. By which I mean - object 1 is created from a class called Tools.dal.dataObjects.dataInvestmentAllocation defined by module 1, and object 2 is created from a class called Tools.dal.dataObjects.dataInvestmentAllocation defined by

Re: [flexcoders]Is it possible to write a googletalk client in AIR

2009-08-12 Thread Ian Thomas
I believe GoogleTalk uses the open XMPP format. There's an AS3 library for XMPP here: http://code.google.com/p/as3xmpp/ HTH, Ian On Wed, Aug 12, 2009 at 9:16 PM, dorkie dork from dorktowndorkiedorkfromdorkt...@gmail.com wrote: If so can you provide some guidance before hand? Thanks!

Re: [flexcoders] Adobe Air: open file with associated application

2009-08-04 Thread Ian Thomas
If you use flash.net.navigateToURL(someLocalFileURL), it will open via your default browser. If the browser is configured correctly it will open the documents in their appropriate applications. HTH, Ian On Tue, Aug 4, 2009 at 4:24 AM, Everson Alvesjho...@eversonalves.com.br wrote: Hello,

Re: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen

2009-07-31 Thread Ian Thomas
Tracy, Can't you take a different approach? This is for panning the map, yes? How about, every frame: - if the mouseX is less than a certain amount (e.g. is in the left third of the screen), pan your map left. - if the mouseX is greater than a certain amount (e.g. the right third of the

Re: [flexcoders] disable app turn gray then it is disabled

2009-07-30 Thread Ian Thomas
Try: disabledOverlayAlpha=0 in the MXML for your Application class. or from AS3: this.setStyle(disabledOverlayAlpha,0); (assuming 'this' is referring to your Application class.) HTH, Ian On Thu, Jul 30, 2009 at 2:53 PM, Willy Ciwill...@gmail.com wrote: I can't find any answer on the

Re: [flexcoders] AIR app as a controlled desktop

2009-07-22 Thread Ian Thomas
App switch (ALT+TAB on Windows, or APPLE+TAB on OSX) will get around that one. I don't believe it's possible in AIR. It _may_ be possible with one of the many available wrappers - e.g. Northcode's SWF Studio: http://www.northcode.com/swfstudio.php HTH, Ian On Wed, Jul 22, 2009 at 10:01 AM,

Re: [flexcoders] Need help tranforming some XML

2009-06-22 Thread Ian Thomas
Oh *sigh* - mind the line breaks. Ian On Mon, Jun 22, 2009 at 6:25 PM, Ian Thomasi...@eirias.net wrote: Hi Jason,  Stepping through it, it works when you break that long line of E4X into separate components. (For some reason people seem to want to write really long E4X statements - I'm not

Re: [flexcoders] Need help tranforming some XML

2009-06-22 Thread Ian Thomas
Hi Jason, Stepping through it, it works when you break that long line of E4X into separate components. (For some reason people seem to want to write really long E4X statements - I'm not quite sure why...) Like this, your loop works. for each (var contentRowItem:XML in _contentXML..row) {

Re: [flexcoders] Ideas / input greatly appreciated

2009-05-29 Thread Ian Thomas
There's this: http://sourceforge.net/projects/flashlight-vnc/ HTH, Ian On Fri, May 29, 2009 at 6:29 PM, Rick Winscot rick.wins...@zyche.com wrote: You can create an account that allows 3 people to connect... for free (has this changed?). By ‘tall order’ I mean... 1. You cannot view a

Re: [flexcoders] Strange error

2009-05-27 Thread Ian Thomas
That's a perfectly reasonable error. Both things compile to a class called CustomSkin - and you can't have two classes in the same project called CustomSkin. Sounds like your sample project wasn't set up to compile - are you sure whoever provided the project isn't just giving you two separate

Re: [flexcoders] Re: How to optimise SWC to its minimal size?

2009-05-22 Thread Ian Thomas
You can use the 'externs' command-line option to the Flex compiler to tell Flex to exclude specific classes - as long as you're sure that your code _will_ have access to them at runtime. Documentation here: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html HTH, Ian

Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Ian Thomas
As Pedro says - my guess would be that you are passing a DetailData object from one module to the other when you haven't loaded the modules in the same ApplicationDomain (or from one compiled .swf to another, if you're not using modules). Take a look at the documentation for ApplicationDomain.

Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Ian Thomas
me in the right direction. Steve If anyone can enlighten me as to why click events in item renderers work differently in modules than applications, please do. --- In flexcoders@yahoogroups.com, Ian Thomas i...@... wrote: As Pedro says - my guess would be that you are passing a DetailData

[flexcoders] AS3 loading AS2 getBounds() issue

2008-03-11 Thread Ian Thomas
Hi guys, (This is an AS3 issue rather than Flex per se, but might be of interest.) I've discovered a strange bug with the AS2 MovieClip.getBounds() and MovieClip.getRect() methods. As far as I can tell, it only happens in this situation: AppA is an _AS3_ application. AppA loads AppB. AppB is

Re: [flexcoders] AS3 loading AS2 getBounds() issue

2008-03-11 Thread Ian Thomas
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, March 11, 2008 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AS3 loading AS2 getBounds() issue Hi guys, (This is an AS3 issue rather than Flex per se, but might be of interest.) I've

Re: [flexcoders] AS3 loading AS2 getBounds() issue

2008-03-11 Thread Ian Thomas
Alex, It works correctly when app A loads app C directly. As I said, the test sources are minimal. They contain no excess code or dependencies. I have tested this thoroughly in a number of scenarios and believe it's a player error. I have logged this as an error on Jira. Thanks,

Re: [flexcoders] REALLY wierd compiler problem, honest this is what happened!

2007-12-15 Thread Ian Thomas
I have had a similar (not compiler-related) problem on Vista which had me just as puzzled: Details here: http://wildwinter.blogspot.com/2007/04/aaagh-vista.html But the basic result was that the problem was all to do with Vista's user account control; shadow-copying files unexpectedly. If

Re: [flexcoders] Replace color in animation?

2007-11-15 Thread Ian Thomas
Bjorn, If all of the areas you want to change (e.g. the red areas of the image) are exported as a single sub-movie-clip of the overall movie-clip, you can use the flash.geom.ColorTransform class to change the colour of everything in that subclip. That works for us. Hope that's helpful,

Re: [flexcoders] Croping area

2007-10-24 Thread Ian Thomas
Hi Anzer, Have two copies of your image; one set to 0.5 alpha and one in front of that set to 1.0 alpha. Use a rectangular mask on the image in front (DisplayObject.mask) That should do it. Ian On 10/24/07, Anzer [EMAIL PROTECTED] wrote: Hi, I am working in an image

Re: [flexcoders] Re: Croping area

2007-10-24 Thread Ian Thomas
Hi Anzer, I'd do something like: - on CLICK on the frontmost image, install a MOUSE_MOVE listener to start listening to MOUSE_MOVE events - on MOUSE_MOVE, adjust the x and y of your mask clip (not the image itself) appropriately. - on RELEASE on the frontmost image, uninstall the MOUSE_MOVE

Re: [flexcoders] Re: Croping area

2007-10-24 Thread Ian Thomas
You're quite right, Jon - I'd completely forgotten that reverse order could cut out from a shape. Ian On 10/24/07, Jon Bradley [EMAIL PROTECTED] wrote: Creating multiple versions of an image is a bit much on the overhead. Plus, you don't have the capability of doing a white wash, or dark

Re: [flexcoders] Take two: dynamic asset creation

2007-10-23 Thread Ian Thomas
Hi Alex, I've submitted this as a feature request on the Flex tracker. As an aside, the simplest solution is (I think) a very straightforward change to the Flex API. If the expected data fields were extended so that as well as 'icon' you passed in 'iconArguments' and those arguments, if

Re: [flexcoders] Take two: dynamic asset creation

2007-10-23 Thread Ian Thomas
Fine - that'll work just as well. Ian On 10/23/07, Alex Harui [EMAIL PROTECTED] wrote: That's fine. We wouldn't do what you suggested though, we'd use IClassFactory in more places

[flexcoders] Dynamic class creation?

2007-10-22 Thread Ian Thomas
Hi all, Got a bit of a tricky problem here that I'm banging my head against... If you assume I have some function that returns a Class object - for example: getAssetClass(id:String):Class This returns a Class object which, at some future time, will be called with new SomeClass() to

Re: [flexcoders] Dynamic class creation?

2007-10-22 Thread Ian Thomas
Hi Christophe, Unfortunately not, but thanks. To explain, I'll copy a response email that I just posted to Flash_tiger: - I know of getDefinitionByName, but that won't work for me as I'm not returning back different class definitions - I'm returning the _same_ class definition each

Re: [flexcoders] Take two: dynamic asset creation

2007-10-22 Thread Ian Thomas
- *From:* Ian Thomas [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Monday, October 22, 2007 10:43 PM *Subject:* [flexcoders] Take two: dynamic asset creation Here's an easier way to explain the problem I posted about earler. If I create some BitmapAssets manually rathern than using

Re: [flexcoders] Take two: dynamic asset creation

2007-10-22 Thread Ian Thomas
in the creation of the Flex framework. Ian On 10/22/07, Alex Harui [EMAIL PROTECTED] wrote: You would write a custom itemRenderer to show bitmaps instead of class instances. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ian

Re: [flexcoders] Take two: dynamic asset creation

2007-10-22 Thread Ian Thomas
Thanks Arul - I've wrestled with it for about 6 hours now and am going to take a break for the night. A bunch of different avenues seem to be closed off: - You can't subclass Class - You can't replace the constructor() function of a class - You can't set any static data on the Class instance that

Re: [flexcoders] Dynamic class creation?

2007-10-22 Thread Ian Thomas
Dan, Thanks for that; I don't think so (I'd already looked at it). As far as I can see it's only useful for things expecting a ClassFactory, not a Class. Cheers, Ian On 10/22/07, Daniel Freiman [EMAIL PROTECTED] wrote: Fill ClassFactory work?

Re: [flexcoders] Take two: dynamic asset creation

2007-10-22 Thread Ian Thomas
Thanks Alex. Bitmaps are only an example, here - any kind of derived Asset class suffers from the same issues. I can understand your comments about CSS skinning etc.; and that the Flex framework is designed for embedding. The particular situation I am working in requires - specifically - that

Re: [flexcoders] Dynamic class creation?

2007-10-22 Thread Ian Thomas
Alex - again, thanks. Please see the other thread for a much fuller explanation. Cheers, Ian On 10/22/07, Alex Harui [EMAIL PROTECTED] wrote: I repeat: the recommended practice is to use a custom itemRenderer.

[flexcoders] Caret position

2007-04-08 Thread Ian Thomas
Hi folks, Is there any way to set the caret position (or the selection) in a TextField object? All three of the relevant properties - caretIndex, selectionBeginIndex, selectionEndIndex - are read-only. Any ideas? Thanks, Ian

Re: [flexcoders] Caret position

2007-04-08 Thread Ian Thomas
Daniel, *sigh* Thanks very much. Now I feel really stupid. :-) But also very grateful, as for a while I thought that Adobe had missed out that functionality, for some strange reason. :-) Cheers, Ian On 08 Apr 2007 08:41:02 -0700, Daniel Freiman [EMAIL PROTECTED] wrote: Try

Re: [flexcoders] an as3 zip library

2007-03-05 Thread Ian Thomas
Brilliant - thanks David. Ian On 3/5/07, David Chang [EMAIL PROTECTED] wrote: Hello, I had put together a small library for handling zip files and thought I'd share it. Anyways if you're interested, you can find more info at http://nochump.com/blog/?p=15 David

Re: [flexcoders] Flex/Flash on The iPhone ?

2007-01-10 Thread Ian Thomas
Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, Merrill, Jason [EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason

Re: [flexcoders] Re: SEO Compatibility

2006-12-28 Thread Ian Thomas
On 12/28/06, Kevin Newman [EMAIL PROTECTED] wrote: What you have described is basic deep linking, but does not solve the problem I have been attempting to articulate. Regardless of what goes on on the server, if you enter some path info after the .com part of the url, the server thinks it is

Re: [flexcoders] Re: SEO Compatibility

2006-12-16 Thread Ian Thomas
On 12/17/06, Claus Wahlers [EMAIL PROTECTED] wrote: PLUS.. ;) I'd be interested in how Ajax applications handle SEO, as they likely face the same, or similar problems. Ok, Ajax apps probably don't face as much problems as Flex apps as the displayed data is HTML and contains links that

Re: [flexcoders] Tamarin, Adobe open source the Flash player ?

2006-11-07 Thread Ian Thomas
Hi Tom, Just came across the same thing myself - that's a stunning contribution, if I'm reading it right. It basically looks like Adobe are providing the source of the AVM2 bytecode interpreter/runtime engine to Mozilla so that Mozilla can use it as the execution engine for their

Re: [flexcoders] Loading AVM1 content into AVM2

2006-09-17 Thread Ian Thomas
On 9/17/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Yeah, I just reproduced your bug ... Seems like the reference to _root gets screwed up on subsequent calls. What's *really* interesting ... If I comment out the cleanup in your AVMLoader class, I can *crash* Eclipse ... if (_loader!=null)

[flexcoders] Loading AVM1 content into AVM2

2006-09-16 Thread Ian Thomas
Hi guys, I've hit a huge hurdle when trying to communicate between AVM1 and AVM2. I've been trying to create a component - call it AVM1Loader - which will allow simple communication between an AVM2 flex app and a contained AVM1 file. In theory, it's pretty simple: - Use Loader to load the

Re: [flexcoders] Loading AVM1 content into AVM2

2006-09-16 Thread Ian Thomas
?name=wishform Regards, -D Ian Thomas wrote: Hi guys, I've hit a huge hurdle when trying to communicate between AVM1 and AVM2. I've been trying to create a component - call it AVM1Loader - which will allow simple communication between an AVM2 flex app and a contained AVM1 file. In theory