Re: [Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-26 Thread Peter Hall
Hi Davide, I assume the asterisks are just for our benefit. And I think the path you are looking for is "root/ancestor/someElement/@someAttribute". You need the / before the @. Peter On Fri, Jun 26, 2009 at 6:17 PM, Dave Watts wrote: >> I'm parsing a huge xml file, and i'm using xpath (as3 ver

Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
ROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall > Sent: 12 November 2008 13:01 > To: Flash Coders List > Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3 > > Are you using CursorManager or adding the cursor in some other way? > > Peter > > > O

Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
Are you using CursorManager or adding the cursor in some other way? Peter On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote: > Hello All - > > I am a little stumped by this one. > > I am using a custom cursor ( added to the stage ), > one of my loaded SWF's has a drop do

Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-23 Thread Peter Hall
The code on my old blog works for content published with Flash authoring. However, it works because Flash inserts the export tags in the swf automatically. If you have a swf that has a working attachMovie, but no export tags, then it must be attaching the symbol from another swf. An RSL perhaps? P

Re: [Flashcoders] XPath

2008-04-30 Thread Peter Hall
XFactorStudio for this > site, so all I do is learn a small bad habit, which I will remember for > future stuff anyway :) > > > > Peter Hall wrote: > > > On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]> > wrote: > > > > > > > In

Re: [Flashcoders] XPath

2008-04-30 Thread Peter Hall
On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]> wrote: > In XPath 1.0, an attribute is an axis, not a node, and so cannot be > used as a context node. (ie the self axis that you are attempting to > access with "." does not exist). I could be wrong on th

Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
In XPath 1.0, an attribute is an axis, not a node, and so cannot be used as a context node. (ie the self axis that you are attempting to access with "." does not exist). I could be wrong on this, but I implemented my own xpath library for AS3 from the w3c spec, without referencing the xfactorstudio

Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
I was about to reply the same thing. But I don't think it is being developed any more, so it might be a matter of fixing it yourself... Peter On Tue, Apr 29, 2008 at 4:52 PM, Pete Hotchkiss <[EMAIL PROTECTED]> wrote: > Bugs - interesting I've used this extensively for some time now and > never

Re: [Flashcoders] AS3/E4X Problems porting from AS2

2008-04-16 Thread Peter Hall
When porting from AS2, you might find it more direct to use XMLDocument instead of XML. This behaves exactly like the AS2 XML object. Having said that, I tried your code and it seemed to work (I assumed where you put node.childIndex() it was a typo and you meant to write _currentPage.childIndex())

Re: [Flashcoders] HTML 4.0 parsing

2007-08-30 Thread Peter Hall
Unless it's an AIR app, you'll need to write a custom parser. HTML4 is not necessarily even well-formed XML, so you'll be starting at the basics... If it's a browser-based application, you might be able to have the HTML rendered in a hidden browser frame, and then use FABridge to communicate with

Re: [Flashcoders] DropShadowFilter rendering issue

2007-08-30 Thread Peter Hall
Try a much lower strength. Note that the default strength is 1, so try values nearer to that. Peter On 8/24/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > After I create a clip with attachMovieClip, I attempt to write a > DropShadowFilter to it using the following code: > > var shadow:DropShad

Re: [Flashcoders] array copy with random order

2007-08-13 Thread Peter Hall
Well you could But, while for..each does not guarantee any particular order, it does not guarantee to be random either :-) i.e. It might turn out that, in the next version of the flash player, they find that they can have a more optimised implementation by running the loop in array order. Per

Re: [Flashcoders] CDATA Html Text not working

2007-07-24 Thread Peter Hall
The xpath library included with Flash 8 is really quite basic, as it is the bare minimum for generated paths for databinding purposes. It only permits abbreviated syntax (though this is fine and preferable most of the time), doesn't support any axes other than "child" (e.g. you can't do a//b or a/

Re: [Flashcoders] Skitch invite left

2007-07-09 Thread Peter Hall
Skitch is a drawing app for use under MacOSX (at the moment) It sounds like an STD ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

Re: [Flashcoders] how to "get" controls and anchors of curve, gradients, etc.

2007-06-25 Thread Peter Hall
I think those links are dead now. I lost some files a couple of years back, during an ill-planned move. They are possibly lurking somewhere on an old backup. But I think all the AS files ship with ASV anyway, or else are available somewhere on buraks.com. It's worth asking Burak for them. Peter

Re: [Flashcoders] Any good XML api out there?

2007-05-03 Thread Peter Hall
(static functions recurse faster). Really?? Peter ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier

Re: [Flashcoders] More fun with XPATH... now I want XSLT in Flash!

2007-04-30 Thread Peter Hall
On 4/13/07, Josh Santangelo <[EMAIL PROTECTED]> wrote: I wanted the same thing at once time, and asked the xfactorstudio gent about it. He said that he'd looked into it at once point but found that it was very difficult to implement XSLT in AS2 at any reasonable level of performance. AS3 + E4X w

Re: [Flashcoders] upcasting causes overridden superclasses methods to be called

2006-11-14 Thread Peter Hall
I assume this is AS3 in Flash AS3 preview? I tried your example code and it worked as expected, even when I instantiated Subclass by a variable reference to the class. I have a feeling you have made some mistake in your code... if not, could you send a complete example, that we can just paste int

Re: [Flashcoders] Extending MovieClip without touching the Library

2006-11-02 Thread Peter Hall
This trick came from my blog post a couple of years ago: http://www.peterjoel.com/blog/?archive=2004_01_01_archive.xml It is stable in the future because it relies on the Flash Authoring compiler, and not on anything in the player. AS2 compiling won't be changing ever - and even if it does, you c

Re: [Flashcoders] when classes die...

2006-10-03 Thread Peter Hall
Is there any difference at all between deleting a variable and setting it to undefined? There is a difference. But you won't find many occasions where the difference is apparent. (one example is a for..in loop will iterate over a variable whose value has been set to undefined - and that might be

Re: [Flashcoders] when classes die...

2006-10-03 Thread Peter Hall
public function destroy():Void { // Perform clean-up. delete this; } This code is garbage. The delete operator operates on variables and not on values. So "delete this" will just delete a variable called "this" within the scope of that function. To remove an object from memory,

Re: [Flashcoders] Flex and subversion don't play nice? - slightly OT

2006-09-10 Thread Peter Hall
Hank On 9/10/06, Peter Hall <[EMAIL PROTECTED]> wrote: > Do you have subclipse installed? > > Peter > > > On 9/7/06, hank williams <[EMAIL PROTECTED]> wrote: > > I havent figured it out yet, but I had to stop subversion with flex > > because it just acted wier

Re: [Flashcoders] Flex and subversion don't play nice? - slightly OT

2006-09-10 Thread Peter Hall
Do you have subclipse installed? Peter On 9/7/06, hank williams <[EMAIL PROTECTED]> wrote: I havent figured it out yet, but I had to stop subversion with flex because it just acted wierd and kept screwing up and preventing me from updating. But I didnt work hard enough to figure out exactly wh

Re: [Flashcoders] Slow performance of Flash 7 content in Flash Player 9

2006-09-05 Thread Peter Hall
> Does anyone have any solid information about the performance of SWFs > published as Flash 7 when playing in Flash Player 9? Peter Hall did. My comments were "informed speculation" :-) A Flash Player engineer would be able to answer this more co

Re: [Flashcoders] Slow performance of Flash 7 content in Flash Player9

2006-09-05 Thread Peter Hall
In general, swf7 content should be the same or faster in FP8/9 than in FP7. AVM2 is completely separate from AVM1, but some aspects are shared. For example the incremental garbage collector, which was introduced in FP8. It's *possible* that certain apps on certain systems might appear to run slowe

Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Peter Hall
lt;[EMAIL PROTECTED]> wrote: > > On 8/23/06, Peter Hall <[EMAIL PROTECTED]> wrote: > > Perhaps you have a class associated with the symbol, which does not > > extend MovieClip? > > > Well the instance of MovieClip, or whatever it is in this case, is a > part of a

Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Peter Hall
Perhaps you have a class associated with the symbol, which does not extend MovieClip? Peter On 8/23/06, Johannes Nel <[EMAIL PROTECTED]> wrote: thats quite a hack. a normal cast then returns null i assume? On 8/23/06, John Grden <[EMAIL PROTECTED]> wrote: > > this is the only thing that seems

Re: [Flashcoders] Flash 9 Public Alpha - Blaze Preview

2006-07-06 Thread Peter Hall
I really hope I'm missing something... Yes, you are missing the fact that this is just a technology preview. You should expect things to work unexpectedly, and you should report issues to Adobe, instead of ranting on a mailing list. If you need a production-ready AS3 editor, use FlexBuilder2.

Re: [Flashcoders] jigsaw puzzle piece algorithm

2006-07-05 Thread Peter Hall
The optimal way is probably to use copyPixels() for each puzzle piece, setting the alphaBitmapData argument to an image that contains just the puzzle piece shape. That will effectively mask out the shape of the piece, but will perform a lot better than using a vector mask, as it will have modified

Re: [Flashcoders] Flash XML: Creating a CDATA text node?

2006-06-07 Thread Peter Hall
escape() is for url encoding, which is not the same as xml encoding. Though it would work ok, since all the relevent XML special chars would be also escaped there. Flash's XML object does not support . When you load XML containing CDATA, it simply XML-encodes the contents. If XML-encoding is eno

Re: [Flashcoders] Assetpropflags back to default

2006-05-14 Thread Peter Hall
There is no "default". If you need to restore the state, then you have to first find out what that state is. There are some methods on that page, which describe how to do that (though it's fairly clumsy). For example, if you need to find out the dontEnum value, then you do a for..in loop and see

Re: [Flashcoders] Anti-aliasing distorted bitmapData?

2006-05-07 Thread Peter Hall
If you are using DisplacementMapFilter, it usually looks smooth, provided that your scaleX and scaleY parameters aren't too high and that your diplacement map bitmap is itself smooth. The effect that you would achieve with convolution would be pretty much the same as a blur, but I'd guess that bl

Re: [Flashcoders] ads inside a SWF

2006-05-07 Thread Peter Hall
I think the bare fact of rendering the ads in Flash is not a legal concern (though I am no lawyer either). But, it might depend more on exactly what you mean by "end up on other sites". That's the part where I'd be most concerned about breaking their agreement (though I don't use google ads, and h

Re: [Flashcoders] binary data Flash !

2006-05-07 Thread Peter Hall
quite ready for production deployments at the moment. With that said, it is working, and you may be able to start working on your solution right away. For more info on Red5 take a look here: http://osflash.org/red5 -Chris On 5/7/06, Peter Hall <[EMAIL PROTECTED]> wrote: > And FWIW, you wi

Re: [Flashcoders] binary data Flash !

2006-05-07 Thread Peter Hall
). Peter On 5/7/06, Peter Hall <[EMAIL PROTECTED]> wrote: No, not really. If you can wait until Flash Player 9, the AS3 Socket object handles binary data natively. Peter On 5/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Binary Data

Re: [Flashcoders] binary data Flash !

2006-05-07 Thread Peter Hall
No, not really. If you can wait until Flash Player 9, the AS3 Socket object handles binary data natively. Peter On 5/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Binary Data through XMLSocket : --- How we can send binary data through XMLSocket.I have been a

Re: [Flashcoders] looking for some .NET to Flash tools

2006-03-31 Thread Peter Hall
oking for some .NET to Flash tools > >> > >>I don't think I would trust a product that says "Flash AJAX client" on > its > >>webpage. > >> > >>Jim > >> > >>-Original Message- > >>From: [EMAIL PRO

Re: [Flashcoders] looking for some .NET to Flash tools

2006-03-31 Thread Peter Hall
with direct assembly access WITH sessions. Something > Macromedia's remoting doesn't even do. > > Try it > > Lee > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Peter > Hall > Sent: 30 March 2006 16:

Re: [Flashcoders] looking for some .NET to Flash tools

2006-03-30 Thread Peter Hall
http://www.themidnightcoders.com/weborb/aboutWeborb.htm On 3/30/06, eric dolecki <[EMAIL PROTECTED]> wrote: > > remoting :) > > On 3/30/06, Brad Kozak <[EMAIL PROTECTED]> wrote: > > > > I'm working on a project that involves a .NET backend database. So far, > > we've successfully used XPath/XML t