Re: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-17 Thread Jiri Heitlager | dadata.org
Please I really need help on this on, I am cracking my head over it. Bresenham algo is also not the way to go, because it is for circle's and to complex! I can only get one ring, arggg If I go one ring further then it results in many double values, calculate allready when doing the

Re: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-17 Thread Joshua Sera
The easy way to do this is like so. So you have a square at x,y, and you want to get all the squares n squares away. Get squares x+n, y x-n, y x+n, y+n x-n, y+n x+n, y-n x-n, y-n x, y+n x, y-n I suspect you want to do this for your version of that whale-ey thing though, so what

Re: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-17 Thread Jiri Heitlager | dadata.org
Thxn Joshua and others, I have to look into that. In the mean time I came up with the following code. This takes in a vector and then calculates a 'ring' from that position. With this, I can scale up the 'radius' and get recursively get all the rings from a point from in to outer ring. My

[Flashcoders] sending simple messages between swf files

2007-06-17 Thread August Gresens
Hello Simple, quick question We are building a game that contains mini games. We want to create the mini games as separate swf files to load into our main swf. We need the mini game swfs to send a message to the main swf that it has finished. From reading the docs, one way to do this is

Re: [Flashcoders] sending simple messages between swf files

2007-06-17 Thread Andrei Thomaz
if your movies are loaded into your main.swf, the movies have access to classes and _root variable. So, you can use singleton, and call static methods of classes defined in your main.swf from your games.swf. Maybe, you can also give a look at exclude.xml They prevent the code of your classes of

[Flashcoders] onRelease, onPress missing with attachmovie and DoubleClick class

2007-06-17 Thread Johnny Zen
Hi all Forgive me, i'm learning here :) If i use attachmovie to add a mc to he stage which has a doubleclick class attached to the mc in the library, i cant use onRelease or onPress. If I remove the class, attachmovie works with onRelease etc Why is this? Is there a simple answer? Kind

Re: [Flashcoders] flv problems, cpu usage

2007-06-17 Thread Chris Tague
Problem fixed...i was using some old html templates to display the swf in the browser...when i used CS3 with the new AC_RunActiveContent.js it fixed everything! CPU usage is down to about 11% fantastic...now i have another problem about the component not working if i export all my classes on a

[Flashcoders] flvplayback export classes to another frame

2007-06-17 Thread Chris Tague
Hey guys, Anyone worked otu how to export classes on a differnt frame of the timeline, but still have the flvplayback component working? thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Searching for AS3 Link and exemples with flash

2007-06-17 Thread Laurent CUCHET
Morning Searching for AS3 Link and exemples with flash Thanks Laurent ___ 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

Re: [Flashcoders] Searching for AS3 Link and exemples with flash

2007-06-17 Thread Muzak
http://www.google.com/search?hl=enq=actionscript+3 - Original Message - From: Laurent CUCHET [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, June 17, 2007 6:36 PM Subject: [Flashcoders] Searching for AS3 Link and exemples with flash

Re: [Flashcoders] Mac full screen title bar

2007-06-17 Thread david hodgetts
Hello Tony, yep, I think I saw this happen to me. It's a bit of pain because it only occurs on a subset of macs which can make it difficult to spot. The following solution works for me, found it on a forum but I don't remember where, so unfortunately, I can't give credit where credit is

[Flashcoders] Why 512?

2007-06-17 Thread sean
Someone asked me the other day, why the Sound class function computeSpectrum() returns specifically 512 floating point values. I know it returns 256 values for the left and right channels and that each value is a 32-bit floating point value of 4 bytes, but despite alot of Googling, I could find

Re: [Flashcoders] Why 512?

2007-06-17 Thread Glen Pike
It's quicker to do an FFT with a length that is a power of 2 Can't remember exactly why, but I think the algorithm keeps splitting the array into 2 for each iteration of the calculation... Have a look on Google. [EMAIL PROTECTED] wrote: Someone asked me the other day, why the Sound class

Re: [Flashcoders] Why 512?

2007-06-17 Thread Glen Pike
Ha, found it... http://www.dspguide.com/ch12.htm It is a while since I read this, but it hurt trying understand it a few times, then I got it, then I promptly forgot about it because I was using public domain code... Glen [EMAIL PROTECTED] wrote: Someone asked me the other day,