Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mick G
Handy TILE component... http://chq.emehmedovic.com/?id=2 On 5/9/06, Bernard Poulin [EMAIL PROTECTED] wrote: 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

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Danny Kodicek
For N = 100, the number of iteration depends on the ratio: it could be anywhere from 19 (10x10-1) to 100 iterations (worst case happens if the output is a single line or a single column). So that would make N iterations (in worst cases) and ~2*SQRT(N)-1 best case. It occurs to me that these

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mick G
Sorry wrong link, I'm sure there is a component on the site somewhere that does what you need (I think) ;) On 5/9/06, Mick G [EMAIL PROTECTED] wrote: Handy TILE component... http://chq.emehmedovic.com/?id=2 On 5/9/06, Bernard Poulin [EMAIL PROTECTED] wrote: Wow! I just tried your

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
This is great stuff! Thanks guys, I've been going round in circles with this for quite a while. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 09 May 2006 08:54 To: Flashcoders mailing list Subject: Re: [Flashcoders]

[Flashcoders] LocalSharedObject.flush pending: suppress dialog box

2006-05-09 Thread Jan Oosterhuis
When a localSharedObject.flush() returns 'pending', an apparently inevitable dialog box pops up (asking the user to increase the amount of available disk space). I would like to prevent this box to appear. This way I could show the user some additional information (and a button to call

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
One last addition: [as] /** * computes the largest N square size (and layout) that can fit an area (width,height). * * @return an Object containing 'squareSize' and the number of 'cols' and 'rows' * and a layout array for drawing the squares on screen. * * 96% of the credits goes to Danny

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
Eeesh silly mistake: [as] /** * computes the largest N square size (and layout) that can fit an area (width,height). * * @return an Object containing 'squareSize' and the number of 'cols' and 'rows' * and a layout array for drawing the squares on screen. * * 96% of the credits goes to

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
OK this is cool, create an MC in the library 100px w h, linkage square, create a smaller different colour square inside it just so you can see what's going on - Then run this: [as] /** * computes the largest N square size (and layout) that can fit an area (width,height). * * @return an

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
Hmmm it has problems - try 8 at 640x480 M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: 09 May 2006 11:11 To: Flashcoders mailing list Subject: RE: [Flashcoders] Fitting squares into an area OK this is cool, create an

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Danny Kodicek
Hmmm it has problems - try 8 at 640x480 Works for me. Would you have expected it to make a 4 x 2 array instead of 3x3? The square size is 160 in either case, so I guess it's a matter of chance which one it discovers. If you want to look for a 'neatest' case, that's going to involve more

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Danny Kodicek
Not that complex, it turns out... Change the line if (next_swidthnext_sheight) { to if (next_swidth=next_sheight) { Better? :) Danny - Original Message - From: Mike Mountain [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 09,

RE: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Mike Mountain
Neatness is an issue here believe it or not...but much better yes! This is going to prove to be very useful... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 09 May 2006 11:37 To: Flashcoders mailing list Subject: Re:

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

2006-05-09 Thread Chris Velevitch
On 5/9/06, John Dowdell [EMAIL PROTECTED] wrote: I'm not sure I'm guessing the right question here, but if it's Which of the browser APIs does Flash Player's 'externalInterface' call into?, then it's Microsoft's ActiveX Scripting host routines, and the NPRuntime API for plugin-using browsers:

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread eric dolecki
This is some very cool investigation for sure! Nice work guys. On 5/9/06, Mike Mountain [EMAIL PROTECTED] wrote: Neatness is an issue here believe it or not...but much better yes! This is going to prove to be very useful... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Flashcoders] Fitting squares into an area

2006-05-09 Thread Éric Thibault
I've shown the resulting SWF to our graphist and she's thinking where to implement this in our projects and the transitions/rollover/onclick events ... totaly inspiring! Thanks all! -- === Éric Thibault Programmeur analyste Réseau

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

2006-05-09 Thread Tom Lee
You might try the Flash Player SDK: http://www.adobe.com/products/flashplayer_sdk/ Good luck. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Tuesday, May 09, 2006 7:09 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] How

[Flashcoders] [OT] Studio 8 licensing in intelMac dual boot scenario

2006-05-09 Thread Brooks Andrus
Does anyone know if two separate licenses for Studio 8 are needed if running bootcamp on the new mactels? We are currently exploring moving some of our workstations to a dual boot scenario, but right now the licensing is a show stopper for us. If anyone at Adobe could clarify that would be

[Flashcoders] FDT weirdness

2006-05-09 Thread Ed Haack
I just thought I'd make a quick comment about using VSS in your favorite AS Editor... I use SEPY and created a tutorial and downloadable scripts on how to integrate VSS and SOS (SourceOffSite) with Sepy, using the User Toolset. It can also be used with the new Workspace panel (vey similar

Re: [Flashcoders] FDT weirdness

2006-05-09 Thread Thomas Fowler
Well done Ed! Thanks! On 5/9/06, Ed Haack [EMAIL PROTECTED] wrote: I just thought I'd make a quick comment about using VSS in your favorite AS Editor... I use SEPY and created a tutorial and downloadable scripts on how to integrate VSS and SOS (SourceOffSite) with Sepy, using the User

Re: [Flashcoders] [OT] Studio 8 licensing in intelMac dual boot scenario

2006-05-09 Thread Weyert de Boer
Well, I think you are able to use Studio 8 on two computers but not at the same time. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to

RE: [Flashcoders] [OT] Studio 8 licensing in intelMac dual bootscenario

2006-05-09 Thread Mike Mountain
But they do have to have the same OS - AFAIK you license the product for an OS. Change OS and you'll need to relicense. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer Sent: 09 May 2006 16:52 To: Flashcoders mailing list

[Flashcoders] playing multiple flvs as one. and seeking

2006-05-09 Thread flashcoders
does anyone know of any example src or tutorials on pulling multiple flvs together and playing them as one. and being able to seek seamlessly. ? thanks. smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

[Flashcoders] Tooltip and ObjectSwap

2006-05-09 Thread Karina Steffens
Hi gang, There's a new version of ObjectSwap for anyone who's interested. http:// http://www.neo-archaic.net/scripts/objectSwap.js www.neo-archaic.net/scripts/objectSwap.js The old one had a bug that showed up when using flash detection with multiple objects in the same html. It's now fixed, but

RE: [Flashcoders] [OT] Studio 8 licensing in intelMac dualbootscenario

2006-05-09 Thread Tom Lee
The license permits you to activate the software on two computers, the idea being that a lot of folks have both a workstation and a laptop. Each OS on your dual boot machine would most likely qualify as an individual computer. Check out http://www.adobe.com/products/eula/tools, section 2b.

[Flashcoders] Flex 2.0 Heap issue

2006-05-09 Thread Wade Arnold
Hey All, I am seeing the following error right now on FLEX An out of memory error has occurred. You can prevent these errors in the future by increasing your heap size before you start the workbench using the -vmargs -Xmx command line option I tried the following as command line..but

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

2006-05-09 Thread André Goliath
I know that MDM Zinc uses the Mac Flash Netscape plugin to create MAC OSX binaries, but I don´t know how to access it. I´m a Windows-only coder so my knowledge on other OSes in terms of programming is rather limited,... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

[Flashcoders] File is cached or not ?

2006-05-09 Thread Patrick Matte
I need to know if a sound is already inside the browser's cache. Right now I use a getTimer when I fire the loadSound and another getTimer when the sound is loaded. One minus the other gives me a value of 0.03 seconds if the file is in the cache. Do you think it would be reliable to say that

RE: [Flashcoders] File is cached or not ?

2006-05-09 Thread Tom Lee
My suggestions for you would be 1) Always give the user an option to manually select low-band or hi-band. 2) If you test connection speed, do so with every visit: network conditions will vary. 3) To force the test file to download from the server every time, add a random number (or current

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

2006-05-09 Thread Chris Velevitch
On 5/10/06, Tom Lee [EMAIL PROTECTED] wrote: You might try the Flash Player SDK: http://www.adobe.com/products/flashplayer_sdk/ That is for device manufacturer's to embed the player which includes the source of the Flash Player which requires you to become a licensee. Something that no doubt

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

2006-05-09 Thread John Dowdell
Chris Velevitch wrote: 'What is the Flash Player's APIs so my C++ program can interface to it'? Like I wrote, the Player itself doesn't expose APIs to hosts so much as use whatever APIs the various hosts expose for communication. (You could say there's a type of API in the predefined

[Flashcoders] Best SWF Wrapper

2006-05-09 Thread eric dolecki
I'm looking for some opinions on the best SWF wrapper you think is out there. The ability to save out files (XML), perhaps communicate with dbases (local/online), etc. - e.dolecki ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Tyler Wright
I have sevaral for (var i in .. ) loops running looping through objects that get thrown (interupted OR actually go forever) when I change the frame of a movieClip where one exists. Just as an example: for (var i in listeners) { dispatch(listeners[i].event); { // the listener function

Re: [Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Tyler Wright
thanks for the quick response. If you view the source for MM's EventDispatcher you'll see that it traverses the event listeners array with a for..i..in. This is so that one of the listening methods can removeEventListener and not screw up the array mid-process. A for..i..in simply hits every

[Flashcoders] Non-breaking spaces

2006-05-09 Thread Dave Wood
Hi Can anyone confirm that in Flash Player 8, non-breaking spaces in text fields are broken? I have an old calendar make back on Flash 5 days. It used a single text field to display each month's calendar using non-breaking spaces and a mono-spaced font to ensure all the dates lined up. I

Re: [Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Thomas Fowler
I would love to help on this but I need a little more context. From what I can gather it looks as if you're trying to dispatch an event a series of events and have the corresponding listener/handler do something? Is that correct? As Kevin stated, it would be better to have a class backing these

RE: [Flashcoders] Flex 2.0 Heap issue

2006-05-09 Thread Wade Arnold
I have tried this but it failed to help. Flex Builder running slow or hang, or get out of Memory message Flex Builder will consuming memory over times, especially when you have a lot of projects created in FB. You can monitor the memory usage of FB from windows task manager. Look at the javaw.exe

RE: [Flashcoders] Best SWF Wrapper

2006-05-09 Thread Wade Arnold
MDM Zink is the best for everything I have ever wanted to do. I like the ability to make your own DLL extensions too! Maybe they will send me a t-shirt for that testimony! Wade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Tuesday,

[Flashcoders] tabIndex problems

2006-05-09 Thread Chris Fry
Hey there, I have been having some problems using the tabIndex feature with Flash 8 Pro. You can view the file here: http://132.162.36.103/albert/MUTH/ The problem is that, though I am confident that I have properly indexed all of the objects, the tabbing does not follow the index I provided. For

RE: [Flashcoders] Best SWF Wrapper

2006-05-09 Thread André Goliath
Not long ago I´ve posted a little comparison of SWF Studio and Zinc here, my clear favorite is SWF Studio, using it now for about 4 years and was never disappointed. There where many discussions about that topic on this list, I suggest simply grab rhe demo and the help file from each of them and

RE: [Flashcoders] How to embed the Flash Player in adesktop application

2006-05-09 Thread Tom Lee
Or license the source code of the Flash Player and stick it in your C++ app. ;) Your call. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Tuesday, May 09, 2006 3:20 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] How to

Re: [Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Tyler Wright
I apologize, I mislead you. My EventDispatcher is no longer a problem and the issue I face now seems to be different. I can only duplicate it making a component class that extends MovieClip. The issue is that the for..i..in loop stops after a gotoAndStop. class Test extends MovieClip { var

RE: [Flashcoders] Flex 2.0 Heap issue

2006-05-09 Thread Merrill, Jason
Hi Wade, There is a really good Flexcoders list here: http://groups.yahoo.com/group/flexcoders/ Macromedia guys are on there and they listen. I'm sure you're not the first to encounter that with the beta - someone there should be able to help. Sorry I don't know the answer to that one myself.

Re: [Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Thomas Fowler
This is probably not it, but when you instantiate an instance of your Test class, does the instance persist throughout the entire timeline? On 5/9/06, Tyler Wright [EMAIL PROTECTED] wrote: I apologize, I mislead you. My EventDispatcher is no longer a problem and the issue I face now seems to

Re: [Flashcoders] for (var i in ..) loop interupted by frame change

2006-05-09 Thread elibol
=] On 5/9/06, Tyler Wright [EMAIL PROTECTED] wrote: I apologize, I mislead you. My EventDispatcher is no longer a problem and the issue I face now seems to be different. I can only duplicate it making a component class that extends MovieClip. The issue is that the for..i..in loop stops after a

[Flashcoders] Re: [Off List Response] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Tyler Wright
This is Great! What a horrible thing to have to know, it just doesn't make sense that the keyword this would fix it. I can't imagine what other scope gotoAndStop would effect in this way. Thanks Elibol. It fixes the problem for both situations, endless looping for..i..in and the for..i..in's

RE: [Flashcoders] Best SWF Wrapper

2006-05-09 Thread Steven Sacks
I'm looking for some opinions on the best SWF wrapper you think is out there. The ability to save out files (XML), perhaps communicate with dbases (local/online), etc. mProjector hands down is the best performing SWF wrapper out there. It also has the easiest API to develop against. It

RE: [Flashcoders] Best SWF Wrapper

2006-05-09 Thread John Hattan
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Goliath Sent: Tuesday, May 09, 2006 4:10 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Best SWF Wrapper Not long ago I´ve posted a little comparison of SWF Studio and Zinc here, my clear favorite is

RE: [Flashcoders] tabIndex problems

2006-05-09 Thread Kevin Aebig
Though I'm not sure whether or not it's been fixed with Flash 8, with 2004 MX, tabbing was an absolute nightmare. It didn't work properly in anything but absolutely simple scenarios. !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Fry Sent: May

Re: [Flashcoders] obfuscation swf !

2006-05-09 Thread Andy Bueler
Hi, is there a way to protect flash components? Unfortunalty encrypting breaks the components, but is there a tool to at least obfuscation them? Kind Regards, Andy On 5/10/06, John Hattan [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burak KALAYCI

[Flashcoders] Extension Manager / International Flash version problem

2006-05-09 Thread Todd Dominey
Hi everyone - I'm experiencing a problem loading MXP files in the latest version of Extension Manager and with users who have a non-English version of Flash 8. Specifically, here's what happens. Say for example a person has a French version of Flash 8 for OS X. They load an MXP into Extension

Re: [Flashcoders] external interface not working

2006-05-09 Thread Thomas Fowler
You might want to look into Macromedia/Adobe's Flash JavaScript Integration Kit. http://weblogs.macromedia.com/flashjavascript/ On 5/9/06, Doug Tangren [EMAIL PROTECTED] wrote: I am a mac user using flash 8 testing on safari 2.0.3. , flash's external interface and I am not getting flash to

Re: [Flashcoders] Re: [Off List Response] for (var i in ..) loop interupted by frame change

2006-05-09 Thread Michael Bedar
If I remeber correctly, goToAndStop() and MoviClip.gotoAndStop() are completely separate functions, and even have different behavior on the root timeline. On May 9, 2006, at 5:47 PM, Tyler Wright wrote: This is Great! What a horrible thing to have to know, it just doesn't make sense that

Re: [Flashcoders] external interface not working

2006-05-09 Thread Doug Tangren
This doesn't explain why the InternalInterface.call(methodName) doesn't call the methodName js function that was defined in the html page. I would like to know the root cause of the problem. The abobe js/flash bridge just seems like another way of doing the same thing. On May 9, 2006, at

Re: [Flashcoders] external interface not working

2006-05-09 Thread Mike Chambers
Well, you might want to start by posting some code examples. mike chambers Doug Tangren wrote: I am a mac user using flash 8 testing on safari 2.0.3. , flash's external interface and I am not getting flash to communicate with javascript or visa versa. Can anyone help?