RE: [Flashcoders] Unity vs Flashcom for chat and messaging

2006-05-08 Thread Lee McColl-Sylvester
I'm one of those. A port of Red5 to C# is a must, but there's no way I'd even consider starting the project until Red5 matures to at least 0.6, though tbh, I'm likely to wait til 0.9 - 1rc1. Red5 is being developed at such a staggering pace, that porting to C# at this stage would be pointless

[Flashcoders] Re: [osflash] OS PSP RSS Reader

2006-05-08 Thread Sajed Chowdhury
Have you tried embedding fonts or are you using the builtin psp fonts? -Sajed On 5/6/06, John Giotta [EMAIL PROTECTED] wrote: I whipped up a RSS Reader for the PSP Flash Player in just 2 hours. It's open source so it's free anyone. One thing I've notice is that the performance for parsing an

Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-08 Thread Francesco
Hi, if I don't get wrong when you call duplicateMovieClip() as a method of the class MovieClip (opposite to the global function duplicateMovieClip()) - like in your code - you shouldn't provide a target param: e.g. a.duplicateMovieClip(b,1); /* duplicates mc a and assignes the copy mc the

[FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Dimitrios Bendilas
Hello all, This is probably very Zinc specific, but I'll give it a try, in case someone can suggest something useful. If it's too off-topic, my apologies in advance. I have an application made with Zinc, with the .exe not having the Flash OCX included. So, in order for it to work, it has to

RE: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Lee McColl-Sylvester
Doesn't Flash 8 now have a flash player check function in its api? I recall seeing that somewhere. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Bendilas Sent: 08 May 2006 11:03 To: flashcoders@chattyfig.figleaf.com Subject:

Re: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Dimitrios Bendilas
He Lee, I've seen it probably myself, but that would require some ActionScript code to execute, so the Player 8 should be present, right? Dimitrios - Original Message - From: Lee McColl-Sylvester [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent:

RE: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Lee McColl-Sylvester
Lol, that's a damn good point ;-) One day I'll learn to think before I reply. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Bendilas Sent: 08 May 2006 11:13 To: Flashcoders mailing list Subject: Re: [FlashCoders] Tricky(?) Flash

[Flashcoders] System.as error ?

2006-05-08 Thread MBDI ICSC Rodrigo E. Curiel Salazar
Hi, I have a issue here, I don't have a clue of what's happening, when I test my movie in flash, everything goes well, but if I clear the ASO and test the movie, I get the following error: **Error** C:\...\System.as: Line 5: The name of this class, 'System', conflicts with the name of another

RE: [Flashcoders] System.as error ?

2006-05-08 Thread Jim Tann
I have had trouble with this kind of thing when working on a network drive. Are you working on one? Can you switch to a local drive? Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MBDI ICSC Rodrigo E. Curiel Salazar Sent: 08 May 2006 11:28 To:

Re: [Flashcoders] System.as error ?

2006-05-08 Thread MBDI ICSC Rodrigo E. Curiel Salazar
I am working on a local drive, I have some classes, in them I have this: code this.resX = System.capabilities.screenResolutionX; /code but I don't think that's the problem, since I remove this line, but I have the same error On 5/8/06, Jim Tann [EMAIL PROTECTED] wrote: I have had trouble

Re: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Dennis - I Sioux
Hey Guys, I remember from the FSP time that it could also read/write DLL's.. Sure Macromedia put's something somewhere in the register that is usable? Get's back to the point though that you need a flash player to play the zync that check's that.. You could always use a small flash exe that

RE: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Lee McColl-Sylvester
If he wanted to do that, he'd embed the player. ;-) Anyway, there is a better option if that route is preferred; FSP / Zinc can also execute vb and fs scripts, and there are plenty of those for Flash detection available. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Flashcoders] How to embed the Flash Player in a desktop application

2006-05-08 Thread Chris Velevitch
That's great Andre, but this is specific windows and OCX. How would you do it for Mac OSX and Linux, Solaris, etc? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To

Re: [Flashcoders] Anti-aliasing distorted bitmapData?

2006-05-08 Thread Jon Bradley
On May 7, 2006, at 7:05 AM, Sander wrote: Hi there, I'm trying to do some 3Dish distortions on bitmapData instances, using loops to copy colons or rows of pixels. It's fast enough for real-time. But the result is an aliased picture. I thought I could use the Convolution filter to

Re: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Dennis - I Sioux
With the old FSP there was a difference with the player you could embed and the flashplayer.. but maybe not with zync anymore.. but the vb and fs script makes sense.. but is that from within Zinc itself? because then you need to turn an swf into the exe.. that will execute the script? then

[Flashcoders] Fitting squares into an area

2006-05-08 Thread Mike Mountain
Anyone got any script to cover the following problem: Given an area (x,y) what's the best way of filling it with 'n' squares? Cheers M ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [FlashCoders] Tricky(?) Flash Version detection

2006-05-08 Thread Dimitrios Bendilas
Hey guys, Thanks for the replies. Zinc can embed the player, but for technical reasons this is not an option for me. So, the .exe has to rely on the installed OCX. Zinc can run dlls so that's the way I think I should be looking at. I'm already in contact with Zinc support and I'm waiting to

Re: [Flashcoders] Re: [osflash] OS PSP RSS Reader

2006-05-08 Thread John Giotta
Built in. On 5/8/06, Sajed Chowdhury [EMAIL PROTECTED] wrote: Have you tried embedding fonts or are you using the builtin psp fonts? -Sajed On 5/6/06, John Giotta [EMAIL PROTECTED] wrote: I whipped up a RSS Reader for the PSP Flash Player in just 2 hours. It's open source so it's free

AW: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Kerem Gülensoy
you could divide the area, divide one half again, divide the other half, and so on...n-times... cheers | kerem -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Mike Mountain Gesendet: Montag, 8. Mai 2006 14:51 An: Flashcoders mailing list Betreff:

RE: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Mike Mountain
All my squares need to be the same size - so for example what's the best way of laying out 'n' equal squares in an areas x,y so the squares are as big as they can be. There must be an algo for this kind of thing. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[Flashcoders] Safari bug? Click doesn't register until mousemove

2006-05-08 Thread Danny Kodicek
I've done a quick google and haven't seen this, but it's hard to know where exactly to look as all the words involved are so common. Anyone seen a bug where a mousedown isn't registered until the mouse is moved? This is only happening in Safari - tested in Firefox, IE/Mac and IE/Win with no

Re: [Flashcoders] Safari bug? Click doesn't register until mousemove

2006-05-08 Thread Helen Triolo
Sounds a bit like the problem you can get when mixing regular movieclips with v2 components -- focusManager won't give movieclips focus if they're clicked twice in succession, so their onRelease won't trigger the second time unless the mouse is moved between clicks -- workaround is to add

Re: [Flashcoders] System.as error ?

2006-05-08 Thread Tyler Wright
I've also had this error, several times. It's simply a Flash IDE bug -- Save your work, close and restart Flash, and the error will go away. Tyler On 5/8/06, MBDI ICSC Rodrigo E. Curiel Salazar [EMAIL PROTECTED] wrote: I am working on a local drive, I have some classes, in them I have this:

Re: [Flashcoders] System.as error ?

2006-05-08 Thread MBDI ICSC Rodrigo E. Curiel Salazar
I have just restarted Flash and the error is gone, thanks Tyler ! On 5/8/06, Tyler Wright [EMAIL PROTECTED] wrote: I've also had this error, several times. It's simply a Flash IDE bug -- Save your work, close and restart Flash, and the error will go away. Tyler On 5/8/06, MBDI ICSC Rodrigo

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Bernard Poulin
Probably this is not what you are looking for but: If your maximum square count is relatively low then you could use some kind of brute-force technique where you could try different cases. This might be the only way if the squares are actually rectangles (i.e. images) with varying ratios: that

[Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Michael Stuhr
is this true ? while holding down the mouse, there's no rollover anymore, even the dragOver doesn't respond ? here's my test: CODE function drawRect (c:MovieClip) { c.lineStyle (0, 0x0, 0); c.beginFill (0xF1, 100); c.lineTo (30, 0); c.lineTo (30, 30);

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread eric dolecki
mouseMove hitTest I guess On 5/8/06, Michael Stuhr [EMAIL PROTECTED] wrote: is this true ? while holding down the mouse, there's no rollover anymore, even the dragOver doesn't respond ? here's my test: CODE function drawRect (c:MovieClip) { c.lineStyle (0, 0x0, 0);

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
This seemed like a really simple problem when I first looked at it, but actually I think it's pretty subtle. I don't know about a standard algorithm, but here's my take: I think your best option, as Bernard said, is a brute force technique. Here's the algorithm I'd use (probably could be

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Ian Thomas
is onDragOut() useful to you? Ian On 5/8/06, Michael Stuhr [EMAIL PROTECTED] wrote: is this true ? while holding down the mouse, there's no rollover anymore, even the dragOver doesn't respond ? ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Michael Stuhr
eric dolecki schrieb: mouseMove hitTest I guess yupp, but that's ugly as hell! You see i wanted to mimic a range selection like gCal (google calendar it is i believe) has one. i can do that with hitTest ‚fairly‘ simple, but heh - just some extra hits for the CPU i guess. thanks for

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Roman Hippler
try c.trackAsMenu = true; Roman - Original Message - From: Michael Stuhr [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, May 08, 2006 4:12 PM Subject: [Flashcoders] no rollovers when mousebutton is pressed is this true ? while holding down the mouse, there's no

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Michael Stuhr
Ian Thomas schrieb: is onDragOut() useful to you? „you can keep it foryourself, if you have any needs for that one my dear“ :-) well, actually no. sorry. See if dragOver doesn't respond, why should dragOut ? Wouldn't make much sense to me. micha

[Flashcoders] Extending TextArea (IDataRenderer?)

2006-05-08 Thread Joshua Graham
I'm looking to extend the TextArea component to support inline images. htmlText isn't sufficient due to it's inability to appropriately position the images. I have created a custom textarea component to extend TextArea... works great... but I'm really at a loss from here. I've been

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread eric dolecki
Why not do something like this (if you're doing google calendar thing): mouseDown, you start to record mouse position, using drawAPI or actually highlight your time blocks), then onMouseUp you check to see what the range was, etc. etc. On 5/8/06, Michael Stuhr [EMAIL PROTECTED] wrote: Ian

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
Hold the phone: quick test shows there's something wrong with this. Give me a couple of minutes... Danny - Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, May 08, 2006 3:37 PM Subject: Re:

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Michael Stuhr
Roman Hippler schrieb: try c.trackAsMenu = true; ::grumbles like gimley:: hmpff! but that still counts as one! micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
Just some stupid typos. Revised is: function squareWidth (x, y, N) { var p = 1 var q = 1 var w1 = x var w2 = y var nextW1 = x/2 var nextW2 = y/2 while (true) { var numSquares = p*q var currWidth = Math.min(w1,w2) if (numSquares = N) {return currWidth}

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread Michael Stuhr
eric dolecki schrieb: Why not do something like this (if you're doing google calendar thing): mouseDown, you start to record mouse position, using drawAPI or actually highlight your time blocks), then onMouseUp you check to see what the range was, etc. etc. Roman already hit the nail! no

Re: [Flashcoders] no rollovers when mousebutton is pressed

2006-05-08 Thread eric dolecki
whatever dude... sorry for defacing your experience... On 5/8/06, Michael Stuhr [EMAIL PROTECTED] wrote: eric dolecki schrieb: Why not do something like this (if you're doing google calendar thing): mouseDown, you start to record mouse position, using drawAPI or actually highlight your

RE: [Flashcoders] obfuscation swf !

2006-05-08 Thread John Hattan
I wrote up a review here. http://www.gamedev.net/features/reviews/productreview.asp?categoryid=35prod uctid=565 A couple of the commentors talked about how it's absolute crap, but I haven't yet found a SWF-decryptor that can bring the encrypted SWF back to something resembling its original form.

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Steve Webster
Mike, All my squares need to be the same size - so for example what's the best way of laying out 'n' equal squares in an areas x,y so the squares are as big as they can be. There must be an algo for this kind of thing. I might be being a little stupid, but since it's a square, and since

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Bernard Poulin
Aaaah, the Monday-effect: Yes, in fact: the problem with Steve's algorithm is that the squares will almost never entirely fill the area. There will always be empty gaps at every line / column and/or the last line will not be filled completely. If you have 5 squares to fill for example, there

Re: [Flashcoders] obfuscation swf !

2006-05-08 Thread Burak KALAYCI
Hi John, I wouldn't say SWF Encrypt is absolute crap - though it took just minutes for us to bypass their initial 3.0 version. As per requests from our customers, we have been deliberately not bypassing it (but we gave no promises). Recently, it turned out it broke some of our applications

[Flashcoders] Fitting text characters to an area

2006-05-08 Thread Flash Mel
This is similar to the thread about fitting boxes to an area. I've got this: MovieClip.prototype.FadeIn = function() { this._alpha = randomBetween(-200, 0); this.onEnterFrame = function() { if (this._alpha 100) { this._alpha += 10; } }; }; function

[Flashcoders] dataGrid custom cellRender with image of external image?

2006-05-08 Thread grimmwerks
Hey all - I'm trying to script a custom cellrender with a datagrid; I'm successfully passing in the local file path of an external file, but this filepath won't work in a cellrender -- either as a loadmovie or as a Loader contentPath -- yet the same loadMovie works outside of a cellRender with no

[Flashcoders] Image Transitions

2006-05-08 Thread Mandongo
anybody know of a code depository for image transitions? thanks, M. ___ 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

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
Danny: I do not understand your algorithm - could you shed some more (high-level) light on what it is doing? Sure. The idea is that the optimal size will always be an exact fraction of either the width or the height. So what we do is drop down by multiples of these until we get to the first size

Re: [Flashcoders] Fitting text characters to an area

2006-05-08 Thread Danny Kodicek
Works fine if it's one line, but how to make this wrap in a give area? Is it possible to adapt the code given for the previous question of how to fit squares in an area? Sure, as long as the text is monospaced (it looks like yours is). My algorithm will work just fine (with a tiny adaptation to

Re: [Flashcoders] ads inside a SWF

2006-05-08 Thread John Dowdell
Mike Lyda wrote: I'd like to include ads (Google ads) inside of a SWF.. with hopes of having the SWF end up on other sites. But is this u legal with Google? And has someone already done something similar? I don't know the details of how Google serves and tracks, but I do know they

[Flashcoders] quick xml question

2006-05-08 Thread Flash guru
Hey all, Can anyone point me in the right direction of how to save an xml doc from flash. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] quick xml question

2006-05-08 Thread Mike Boutin
You could use php to write an xml file. Flash guru wrote: Hey all, Can anyone point me in the right direction of how to save an xml doc from flash. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] quick xml question

2006-05-08 Thread eric dolecki
http://chattyfig.figleaf.com/pipermail/flashcoders/ On 5/8/06, Flash guru [EMAIL PROTECTED] wrote: Hey all, Can anyone point me in the right direction of how to save an xml doc from flash. ___ Flashcoders@chattyfig.figleaf.com To change your

RE: [Flashcoders] quick xml question

2006-05-08 Thread Merrill, Jason
You could also use .Net or ColdFusion or Jason Merrill | E-Learning Solutions | ICF International -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Monday, May 08, 2006 4:42 PM To: Flashcoders mailing list

Re: [Flashcoders] quick xml question

2006-05-08 Thread Thomas Fowler
You could construct the XML doc on the fly in Flash and have the user copy and paste the XML to a new file. They could upload the new file to the server if that's what you need to do. As far as writing to the file system goes, I don't think you'll have much luck. Thomas On 5/8/06, Mike Boutin

RE: [Flashcoders] quick xml question

2006-05-08 Thread Adrian Lynch
... you could email it to me along with a cheque for ?1000 and I will hand stitch it into a piece of felt, take a picture of it and email you a jpeg! Oh come on, don't tell me you're not tempted! :OD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Merrill,

RE: [Flashcoders] quick xml question

2006-05-08 Thread Tom Lee
This is a pretty general question... The right direction depends a lot on what you're going to do with the data, and what you mean by save. For example, you can save small amounts of xml in a SharedObject on the user's computer. Only that user's computer would have access to the data. If you

[Flashcoders] Safari bug? Click doesn't register until mousemove

2006-05-08 Thread David Cohn
Sounds similar to something I may have reported (I can't remember). I've got a button that issues an XML.sendAndLoad I see the button triggered on mousedown, but I never get the response until the mouse moves. (However, this happens in authoring) I can work around this by using a

RE: [Flashcoders] Unity vs Flashcom for chat and messaging

2006-05-08 Thread Scott Hyndman
I think that there is still valuable early work to be done on a port to C#, including feasibility studies. As I recall, Red5 leverages Spring. I know Spring.net exists, but it would be useful to find out how closely they resemble each other. I would also imagine the underlying Red5 framework

Re: [Flashcoders] How to embed the Flash Player in a desktop application

2006-05-08 Thread John Dowdell
Chris Velevitch wrote: While ago, someone mentioned how easy it is to write a C++ wrapper to create a desktop application with Flash as the UI. According to the documentation, The ExternalInterface class ... lets you easily communicate from ActionScript and the Flash Player container ... to a

[Flashcoders] Casting a string to a number ...

2006-05-08 Thread Stephen Ford
A couple of times I have tried to cast a string to a number like so (this is just an example): var string:String = 9;trace(string);var number:Number = Number(string);trace(number);trace(typeof(number)); It seems to work, but is this the correct way to cast. Thanks,

Re: [Flashcoders] Casting a string to a number ...

2006-05-08 Thread Ramon Miguel M. Tayag
You can use parseInt number = parseInt(string); -- Ramon Miguel M. Tayag Managing Director Quirkworks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Casting a string to a number ...

2006-05-08 Thread Thomas Fowler
parseInt is the preferred way to get a number from a string. On 5/8/06, Ramon Miguel M. Tayag [EMAIL PROTECTED] wrote: You can use parseInt number = parseInt(string); -- Ramon Miguel M. Tayag Managing Director Quirkworks ___

RE: [Flashcoders] Casting a string to a number ...

2006-05-08 Thread Scott Hyndman
or parseFloat() for floating point numbers. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Thomas Fowler Sent: Mon 5/8/2006 8:24 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Casting a string to a number ... parseInt is the preferred

RE: [Flashcoders] How to embed the Flash Player in a desktopapplication

2006-05-08 Thread Tom Lee
Chris, I think what you're getting at is How do I create a C++ application that embeds the Flash Player, and how can the embedded Flash Player communicate with the C++ application?. Mike Chambers wrote a terrific article on the subject (his was written in C#), but the DevNet Resource Kit it was

Re: [Flashcoders] Unity vs Flashcom for chat and messaging

2006-05-08 Thread Chris Allen
Hey Scott, Man I wish we could say that the underlying framework is set at this moment, but actually we are working on refactoring the Streaming and RTMP decoding and encoding stuff at this moment. There are also probably improvements with the API that came out with this last version. It's still

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Bernard Poulin
Wow! I just tried your algorithm with my previous example numbers and it does output the correct square size (100) - also, internally it has the right number of columns/lines: e.g. 3x4 (p=3, q=4) As for performance, it took 6 iterations: Since the output was 3x4, the number of iterations was (3