Re: [Flashcoders] as3 creating sprite instances in a loop

2007-12-30 Thread Piers Cowburn
I'm not quite sure if I understand your question fully but I think the problem you're having is that you need to do something with them - for example if you pushed each new sprite into an array then you'd have a reference to each of them, but the you're doing it at the moment you'll just

Re: [Flashcoders] dynaically generated mc reference to class that created it

2008-01-29 Thread Piers Cowburn
Is the movieclip on the display list? If so you should be able to do root.makeglow() Piers On 29 Jan 2008, at 14:54, BOYD SPEER wrote: Using AS3 I have a movieclip made (dynamically made) of a class called Dragon. Inside its main timeline in a frame script I want to tell the object (the

Re: [Flashcoders] (no subject)

2008-01-29 Thread Piers Cowburn
You can try this: this.infoclip.info_txt.text = this[txt+ image1] But the best way of doing this would be to use an array: var txts:Array = new Array(); txts[1] = this is text 1; txts[2] = this is text 2; txts[3] = this is text 3; txts[4] = this is text 4; txts[5] = this is text 5;

Re: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-07 Thread Piers Cowburn
Hi Michael, The top value is ScrollPane.vPosition, the bottom will be ScrollPane.vPosition + ScrollPane.height HTH, Piers On 7 Mar 2008, at 20:29, Mendelsohn, Michael wrote: Hi list... Within a V2 ScrollPane, I'm trying to figure out what the top edge and bottom edge of the content's

Re: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-10 Thread Piers Cowburn
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Piers Cowburn Sent: Friday, March 07, 2008 4:20 PM To: Flash Coders List Subject: Re: [Flashcoders] visible area of content in V2 ScrollPane Hi Michael, The top value is ScrollPane.vPosition, the bottom will be ScrollPane.vPosition + ScrollPane.height

Re: [Flashcoders] calculating distance between two points

2008-03-11 Thread Piers Cowburn
Good point On 11 Mar 2008, at 13:53, Merrill, Jason wrote: Why not skip the math lessons and use the Point class? var dist:Number = Point.distance(p1, p2); Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer

[Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Piers Cowburn
I'm working on a pitch for a viral campaign for one of the larger charities and one of the points on the brief is that it needs to be accessible to anyone working in different languages and character sets, what ever they may be. This will be based in an expandable banner ad and so I don't

Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Piers Cowburn
The problem you're having is that the mouse is traveling at a faster rate than one pixel per frame. So the coordinates you get back are the coordinates that the mouse was on each time the script was executed, which is every frame. You could try increasing the frame rate but you're still

Re: [Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Piers Cowburn
there should be and bi-di in there, just rtl. Thanks, Piers [EMAIL PROTECTED] On 12 Mar 2008, at 16:32, Kerry Thompson wrote: Piers Cowburn wrote: I'm working on a pitch for a viral campaign for one of the larger charities and one of the points on the brief is that it needs

Re: [Flashcoders] Arabic and other character sets text entry

2008-03-13 Thread Piers Cowburn
Good point, yes the email will probably be ltr. I'll try posting on Flash_Tiger in the hope that she's around, thanks very much :) Piers [EMAIL PROTECTED] On 13 Mar 2008, at 13:20, Piers Cowburn wrote: Begin forwarded message: From: Kerry Thompson [EMAIL PROTECTED] Date: 12 March 2008

Re: [Flashcoders] Arabic and other character sets text entry

2008-03-15 Thread Piers Cowburn
. The Class is not 100% and you may need to customise it a bit, but it's the best solution I've seen so far. Hope this helps, Karina -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Piers Cowburn Sent: 13 March 2008 13:42 To: Flash Coders

Re: [Flashcoders] Root casting as Main big problem

2008-03-28 Thread Piers Cowburn
Have you tried MovieClip(root) ? On 28 Mar 2008, at 15:10, laurent wrote: Hi, It's very urgent, try to make it clear: I have one MovieClip index.swf, with a Main.as class attch to it. In this class I define properties and method, of course :) And I load external movieclip, one name

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Piers Cowburn
I think any kind of fix they implement now would have to have some level of backwards-compatibility. Like passing a boolean which indicates whether you want to fully unload the movie or not. It's been too long without a fix for that in my opinion. Piers On 16 Apr 2008, at 12:19, Andrei

Re: [Flashcoders] as3 classes var query

2008-06-12 Thread Piers Cowburn
You'd need to instantiate the other class and then access it, like this: package test { public class test2 extends Sprite { public function test2(){ var testInstance:test = new test(); trace(testInstance.hello); } } } Also, it's good

[Flashcoders] Is there any way to get a list of the classes compiled into a SWF?

2008-06-17 Thread Piers Cowburn
I'm trying to nail down where a reference to an unwanted class is coming from, and I need to be able to work out which classes are being compiled from my classpath. The reason is because I'm trying to take small element out of a larger project and put it into its own SWF. I've done this by

Re: [Flashcoders] Is there any way to get a list of the classes compiled into a SWF?

2008-06-17 Thread Piers Cowburn
Forgot to mention, I'm using Flash CS3 / Mac. Piers On 17 Jun 2008, at 10:33, Piers Cowburn wrote: I'm trying to nail down where a reference to an unwanted class is coming from, and I need to be able to work out which classes are being compiled from my classpath. The reason is because

Re: [Flashcoders] Is there any way to get a list of the classes compiled into a SWF?

2008-06-17 Thread Piers Cowburn
AS3, and I'm using Flash CS3. I wouldn't be opposed to using something else though! Piers On 17 Jun 2008, at 10:53, Hans Wichman wrote: Hi, as2 or as3? In as2 i'd use the verbose option on mtasc. greetz JC On Tue, Jun 17, 2008 at 11:33 AM, Piers Cowburn [EMAIL PROTECTED] wrote: I'm

Re: [Flashcoders] Is there any way to get a list of the classescompiled into a SWF?

2008-06-17 Thread Piers Cowburn
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Piers Cowburn Sent: 17 June 2008 11:07 To: Flash Coders List Subject: Re: [Flashcoders] Is there any way to get a list of the classescompiled into a SWF? AS3, and I'm using Flash CS3. I wouldn't be opposed to using something else though! Piers On 17 Jun

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Piers Cowburn
Hi Paul, Try: var len2 = cueArray.length; for (var i = 0; ilen2; i++) { mainText.htmlText += b+cueArray[i]+/bbr; } Piers On 8 Jul 2008, at 11:56, Paul Jinks wrote: Apologies for last post: it got sent before I'd finished. That'll teach me to try to use the tab key using IMAP

Re: [Flashcoders] Overlay problem

2008-07-14 Thread Piers Cowburn
Do you want to use AS2 or AS3? Piers On 14 Jul 2008, at 12:37, Rajiv Seth (Pixelated) wrote: Hi, I want to create an effect like http://www.limoosoft.com/Limoosoft-En.html When user clicks on zoom image, large image loads in a movie, and all links, rollver effects/actions are disabled by

Re: [Flashcoders] Overlay problem

2008-07-14 Thread Piers Cowburn
An easier way of doing it is just to place a movieclip over the top of your content and give it an empty onRelease function (in AS2) or just make sure it's mouseEnabled in AS3. Piers [EMAIL PROTECTED] On 14 Jul 2008, at 12:51, allandt bik-elliott (thefieldcomic.com) wrote: if you add a

Re: [Flashcoders] Five3D

2008-07-30 Thread Piers Cowburn
Also you may find this interesting: http://blog.barcinski-jeanjean.com/2008/05/16/vectorsvision-vectors- in-papervision3d/ Piers On 30 Jul 2008, at 00:22, Patrick J. Jankun wrote: Hi Glen, I went through my links, and found those: http://www.flashandmath.com/advanced/

Re: [Flashcoders] Saving user feedback to file

2008-08-11 Thread Piers Cowburn
You could use a Shared Object, if the data you're saving is pretty simple. If it's going to get quite complex though then AIR is definitely the way to go, you get SQLLite built in. Piers On 11 Aug 2008, at 11:21, Paul Andrews wrote: Adrian, Flash can't write directly to a file when

[Flashcoders] Text Input textPadding problem

2008-08-20 Thread Piers Cowburn
Hi, I'm having a problem with text padding on the V3 TextInput component. I just want to get my text to appear properly vertically centered in the text field, so I added some text padding: var textFormatTextField:TextFormat = new TextFormat();

Re: [Flashcoders] FLV generation from jpg sequence?

2008-09-30 Thread Piers Cowburn
It's certainly possible, what server set up are you using? On Red5 you could do it with FFmpeg, I believe. Piers On 30 Sep 2008, at 09:51, Wenzler, Thomas wrote: Hi to everyone on the List, I was asked if it was possible to (preferably serverside) generate .flv movies from a sequence of

Re: [Flashcoders] FLV generation from jpg sequence?

2008-09-30 Thread Piers Cowburn
HTH On 30 Sep 2008, at 10:37, Wenzler, Thomas wrote: Thank you, Piers, That might be it...just googled an article on how to maybe do exactly what I want. Thanks a lot for the hint. Regards Thomas -- Message: 28 Date: Tue, 30 Sep 2008 10:12:23 +0100 From: Piers

Re: [Flashcoders] snap to guide AS code?

2008-11-22 Thread Piers Cowburn
You can do a bezier tween with something like TweenMax http:// blog.greensock.com/tweenmaxas3/ , is that what you're after? Piers On 22 Nov 2008, at 15:03, Rich Rodecker wrote: I'm looking for some code that can pull of 'snap to guide' in actionscript. I've found some snap to grid code,

Re: [Flashcoders] My rights - site not paid for.

2008-12-08 Thread Piers Cowburn
I've been in this situation before and done the same as Paul, it ended up going to a small claims court and the client didn't even turn up for the hearing. I got paid and the costs were covered by the client. Piers On 8 Dec 2008, at 11:38, Paul Steven wrote: Hi Stephen I had a similar

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Piers Cowburn
There's good stuff by Grant Skinner too: http://incomplet.gskinner.com/index2.html#camwriter Piers On 8 Jan 2009, at 10:35, Ian Thomas wrote: Yeah, I absolutely get the idea (as I said, we were discussing it yesterday - with reference to an infra-red camera, but same principle). Check out

Re: [Flashcoders] Intersection on circle based on angle

2009-03-17 Thread Piers Cowburn
Lots of cool stuff in the Rectangle class too, in case you didn't know :) Piers On 17 Mar 2009, at 15:00, Eric E. Dolecki wrote: Thanks man, you just changed my world. On Tue, Mar 17, 2009 at 10:26 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I have the angle (say 0

Re: [Flashcoders] MVC and Event Architecture

2009-08-04 Thread Piers Cowburn
It depends which type of framework you're talking about, because in PureMVC the controller is the commands. The commands only exist temporarliy, and so you can't 'listen to events from the controller', if that makes sense. So in PureMVC you have the commands directly call public methods in

Re: [Flashcoders] MVC and Event Architecture

2009-08-04 Thread Piers Cowburn
I'll sometimes use callbacks in small, enclosed parts of a system, which are coupled by their nature and are never going to have their component classes used individually in other systems. As a general rule though, this is the only time that I use them. WRT the event / notification

Re: [Flashcoders] Performance from casting array/vector?

2009-12-26 Thread Piers Cowburn
*Disclaimer* This is un-benchmarked, but it's what I usually work to! If anyone has any corrections re. speed, I'd be glad to hear them :) AFAIK, using implicit casting rather than explicit in this case is faster, so A1 in your examples is faster than A2. Also, it's better to move your variable

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Piers Cowburn
myClass:MyClass; } _ Piers Cowburn wrote: AFAIK, using implicit casting rather than explicit in this case is faster, so A1 in your examples is faster than A2. Also, it's better to move your variable declaration outside the loop: var i:int = myArray.length; // Variable is declared once here

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Piers Cowburn
Hi Steve, I thought it'd be useful to have some actual figures, so I put together a quick test. Test code was as follows: package { import flash.display.Sprite; import flash.utils.getTimer; /** * @author Piers Cowburn */ public class ArrayAccessTest extends

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Piers Cowburn
-Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Piers Cowburn Sent: zondag 27 december 2009 12:35 To: Flash Coders List Subject: Re: [Flashcoders] Performance from casting array/vector? Hi Steve, I

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Piers Cowburn
operations): 679 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Piers Cowburn Sent: zondag 27 december 2009 14:07 To: Flash Coders List Subject: Re: [Flashcoders] Performance from casting array/vector

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Piers Cowburn
than one. I was wondering whether there might be something wrong with my test, but I can't see anything. Piers On 27 Dec 2009, at 14:05, Paul Andrews wrote: Piers Cowburn wrote: Cool, looks like the implicit cast is faster across the board, and almost twice as fast as just using the array

[Flashcoders] [JOB] AS3 Developer Position in London

2010-01-15 Thread Piers Cowburn
Hi, Hope nobody minds a job post, hopefully it'll help somebody out. The agency I work at, Pushbutton ( http://www.pushbutton.tv ) is looking for an experienced interactive developer to join us. We mainly work in the areas of interactive TV and mobile development, but also do some desktop and

Re: [Flashcoders] Using MVC for a site framework

2010-01-20 Thread Piers Cowburn
+1 for RobotLegs (I used to use PureMVC, and still do, but I've really enjoyed getting into RobotLegs) -10 for Cairngorm Piers On 20 Jan 2010, at 11:29, John McCormack wrote: Steven, Have you found it better than pureMVC and Cairngorm? John Steven Sacks wrote: Want to do

Re: [Flashcoders] Using MVC for a site framework

2010-01-20 Thread Piers Cowburn
could certainly use a good MVC approach. John Piers Cowburn wrote: +1 for RobotLegs (I used to use PureMVC, and still do, but I've really enjoyed getting into RobotLegs) -10 for Cairngorm Piers On 20 Jan 2010, at 11:29, John McCormack wrote: Steven, Have you found

Re: [Flashcoders] Ideas, Please

2010-01-27 Thread Piers Cowburn
Hi Jason, I did that on my site, you can see it here: http://www.pierscowburn.com/ (click on the thumbnails on the right when it loads). You can have the code if you like. Piers On 27 Jan 2010, at 15:28, Merrill, Jason wrote: It would be cool to do this with copyPixels and drawing those as

Re: [Flashcoders] Ideas, Please

2010-01-27 Thread Piers Cowburn
Hi Jason, I did that on my site, you can see it here: http://www.pierscowburn.com/ (click on the thumbnails on the right when it loads). You can have the code if you like :) Piers On 27 Jan 2010, at 15:28, Merrill, Jason wrote: It would be cool to do this with copyPixels and drawing those

Re: [Flashcoders] Ideas, Please

2010-01-27 Thread Piers Cowburn
of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Piers

Re: [Flashcoders] Ideas, Please

2010-01-27 Thread Piers Cowburn
all quite heavily integrated with the rest of my site, and I don't have time right now to just pull out the relevant parts and put it into a separate project. Piers On 27 Jan 2010, at 15:54, beno - wrote: On Wed, Jan 27, 2010 at 11:36 AM, Piers Cowburn m...@pierscowburn.com wrote: Hi Jason

[Flashcoders] 3D Explosion Code

2010-01-27 Thread Piers Cowburn
Hi, See if I can sneak this in under the 40k limit... // Initialise the shards array shards = []; // Clear the current background plane geometery clearGeometery(); // Make the background plane more complex (so there are more shards) background.segmentsH = 8; background.segmentsW =

Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Piers Cowburn
You can do a lot of things, including sharpen, with the ConvulsionFilter: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7da3.html Use this kind of matrix: [0, -1, 0 -1, 5, -1 0, -1, 0] Larger matrices and different values will give a

Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Piers Cowburn
Wow. *Ordered* On 4 Feb 2010, at 12:41, Henrik Andersson wrote: Piers Cowburn wrote: You can do a lot of things, including sharpen, with the ConvulsionFilter: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7da3.html Use this kind of matrix

Re: [Flashcoders] Re: is it ever ideal to NOT use weak references?

2010-02-07 Thread Piers Cowburn
I use a strong listener only when I know I'm not holding a reference to the dispatcher anywhere else. In all other cases, i.e. if I know I'm going to be keeping the dispatcher on the display list (if it's a DisplayObject) until I no longer need it, or if I know I'm storing a reference the

Re: [Flashcoders] Re: is it ever ideal to NOT use weak references?

2010-02-08 Thread Piers Cowburn
Yep I'm with you – it definitely makes sense to have it default to false...would lead to a lot of unexpected behaviour especially for beginners if it defaulted to true. Piers On 8 Feb 2010, at 14:41, Merrill, Jason wrote: So what would be wrong with always using strong references and always

Re: [Flashcoders] Alpha Out a SWF?

2010-02-19 Thread Piers Cowburn
wmode = transparent http://kb2.adobe.com/cps/142/tn_14201.html Piers On 19 Feb 2010, at 12:24, Susan Day wrote: Hi; I have what is essentially a splash page that I would like to tween alpha to 0. Beneath it is an HTML page with a swf embedded in it as a masthead. I can tween the alpha of

Re: [Flashcoders] Question in regards to NetStream

2010-02-25 Thread Piers Cowburn
AFAIK YouTube uses lighttpd http://redmine.lighttpd.net/ On 25 Feb 2010, at 19:09, Merrill, Jason wrote: How is YouTube able to provide such accurate seeking? I would guess it's because they are using Adobe Media Server which has more robust seeking features like what they call

Re: [Flashcoders] ternary operator with function.call?

2010-03-09 Thread Piers Cowburn
A lot of people don't like it, stylistically, but it will certainly work. Generally I don't use ternary operators for anything other than assignments. Piers On 9 Mar 2010, at 20:23, Mendelsohn, Michael wrote: Hi list... Can something like this be done? Just curious... - MM

Re: [Flashcoders] faster work flows?

2010-03-15 Thread Piers Cowburn
You might want to take a look at FlashCamo: http://flashcamo.flashartofwar.com/ It's a framework for simplifying the type of work you're talking about, by letting you use a much more complete CSS than Flash supports by default (FlashCamo supports inheritance, etc), and set up sheets of decals

Re: [Flashcoders] Detecting MovieClip Type

2010-05-15 Thread Piers Cowburn
if (foo is MovieClip) On 15 May 2010, at 16:46, Fahim Akhter wrote: Hi, I'm wondering about something I need to have a check on movieclip. If it is a movieclip then the check should return true. How can I put a if statement on movieclips? if(movieClip) ? Fahim Akhter Game

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-09 Thread Piers Cowburn
wow. On 9 Jun 2010, at 16:16, Ivan Dembicki wrote: Hello flashCoders, Realaxy ActionScript Editor public beta released. http://realaxy.com -- iv http://www.bezier.ru http://bezier.googlecode.com ___ Flashcoders mailing list

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Piers Cowburn
Yeah, haXe support would be really good. On 10 Jun 2010, at 08:58, Mark Winterhalder wrote: 2010/6/10 Cor c...@chello.nl: This is free and works perfectly: If you happen to be on Windows, yes. Are there any plans for haXe support in the future? Also, I couldn't find any screenshots on

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Piers Cowburn
I understand that, but what is the performance as good? I mean at runtime. With haXe you get not just extra language features, but also improved (sometimes much improved) runtime performance. I think the language features you've put in Realaxy are amazing, but I haven't benchmarked anything

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Piers Cowburn
Oh, actually I was talking about Flash runtime performance. By building and compiling your app with haXe, your compiled SWF can run faster than a typical SWF. What I was therefore saying is, the language features in Realaxy are lovely, and I'm already starting to use them, but if I'm writing

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Piers Cowburn
performance language. I am sure that the RASE help make flash code faster. Eugene Potapenko author and lead of Realaxy Action Script Editor development eugene.john.potape...@gmail.com 10.06.2010, в 15:29, Piers Cowburn написал(а): What I was therefore saying is, the language features in Realaxy

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Piers Cowburn
state. We will add a special option when the developer indicated that such tests are needed at run time. Eugene Potapenko author and lead of Realaxy Action Script Editor development eugene.john.potape...@gmail.com 10.06.2010, в 17:37, Piers Cowburn написал(а): Cool, that would

Re: [Flashcoders] Flex generative art???

2010-06-10 Thread Piers Cowburn
Have you seen http://www.minimalcomps.com/ ? They're just controls, so no layout assistance, but they're very handy and much more lightweight than the flex controls. Piers On 10 Jun 2010, at 20:46, Jim Andrews wrote: I'm a bit confused as to how to proceed with Flash. I've been using

Re: [Flashcoders] physics engines - which do you recommend?

2010-06-25 Thread Piers Cowburn
I've used motor2 and box2d, but I preferred the motor2 api. Piers On 25 Jun 2010, at 10:56, allandt bik-elliott (thefieldcomic.com) wrote: hi guys bit of a high level / preference question really - we've been tasked with finding a physics engine and i was wondering which ones you guys