Re: [Flashcoders] HashMap?

2006-05-14 Thread Ron Wheeler
The tree would make sense. The garbage collection for an associative 
array is an interesting problem with variable key and value lengths.


Ron

Scott Hyndman wrote:

Well, yes.

Now that I think about it my test didn't make much sense, since there would be 
no way of determining how keys are generated by insertions alone...I was 
assuming a uniform distribution, and it can't be done without knowing more.

But I believe that the Flash uses a tree to implement its map, for some of the 
same reasons you mentioned. It's just a way more efficient structure to use if 
your data is unknown, grows well, and stays balanced.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 2:25 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?

Wouldn't it be true to say that hash maps will get slower as the 
probability of collisions increase? As the primary area fills up, there 
will be more occasions when the new key to be added, hashes to a storage 
location already occupied and a link structure will be needed to store 
the key(s) in the overflow.
Similarly, lookups will start to hit links rather than data which will 
require that the links into the overflow area be followed.


This is where tuning comes in.

The fact that there are no tuning options makes it unlikely that hashing 
is used.
Defaults would be hard to set without wasting space or turning the whole 
thing into a small set of linked lists which work be long to search.
It would not be seem to be a very good choice for a default 
implementation of Arrays.


Ron

Scott Hyndman wrote:
  

You could figure out how it's implemented by doing some experiments.

Dynamic hash maps have constant insertion (amortized) and lookup time. If the 
map is implemented using a B-Tree, then you'll see O(log(n)) times (so just see 
if the more properties you add increase the amount of time it takes to add 
them).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 10:43 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?



Bernard Poulin wrote:
  

I cannot say for AS3 implementation because I never tried it. (Which 
is the

original subject of this topic.)

In AS1, AS2 and javascript, I am pretty sure that all objects (including
Arrays) are key/value maps. (i.e. Associative arrays)
http://en.wikipedia.org/wiki/Associative_array#JavaScript

It is very possible that the internal implementation is not a "hashmap",
but I still think it is a highly efficient map of some sort because 
this is

so central to the language.


  
I would hope that it is efficient but hashing adds a lot of overhead and 
wasted space for small arrays and really needs to be tuned to get the 
desired results for larger arrays.
If the arrays are stored in sorted order, then the normal key lookup can 
be done as a binary lookup which will be a lot quicker than an 
exhaustive search. The price is paid when a new associative entry is added.


Nothing is free.

None of my work has required has involved large associative arrays where 
hashing would add a significant improvement in speed but it would be 
nice to have such a class available for those who need it.


In the early days (1960s) when I was taking Computer Science at 
University, we spent a lot of time worrying about these things since 
memory was scarce (64K word (36 bits per word) computer cost a million 
dollars and supported 16 users) and CPU speeds where not very fast (a 
1MIP computer was state of the art).


  



"If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them."


should have been written as

"One really had to look carefully at how things got stored and retrieved, 
if you had a large number of them."


  

...at least this is what I think.  I might be completely wrong.
B.

2006/5/12, Ron Wheeler <[EMAIL PROTECTED]>:

  

I would be a little surprised. There does not seem to be any way to
control the hash parameters and every array would have a lot of wasted
space for nothing and without any way to control the hash size and the
percent utilization, you would not get a lot of advantage for the big
arrays.

The Java HashMap defaults are pretty modest and would yield less than
optimal performance with a big array.
You can set the parameters if you have a big array and know a bit about
the "randomness" of your keys to get fast lookups with a reasonable
trade-off in wasted space

Perhaps someone who knows the Flash Player internals could tell for 
sure.


Ron


Bernard Poulin wrote:
  


mmm... Are you implying that ActionScript objects are not hashmaps?
I thought they were *all* hashmaps (even Arrays are hashmaps). Every
method
call that you do involves at least one hash lookup.

B.

2006/5/10, Ron Wheeler <[EMAIL PROTECTED]>:

  
It appears that a HashMap is a 

[Flashcoders] saving bmp from flash

2006-05-14 Thread Jiri Heitlager
I am looking for a way to capture webcam images from Flash and save them 
as .bmp's. Using PHP is not a possibilty because it cannot save images 
as a .bmp.
Is it in theory possible to use screenweaver. So in Flash I would run 
trough all the pixels getting there value and store these values in an 
Array. Then use screenweaver to save the array to a file. But how do I 
build an .bmp then.
Would this be possible to save a bmp from flash or does someone knows a 
solution using php.


Thank you in advance.

Jiri
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Sigh.

I'm an arse. It must be the two days of programming.

I mistakenly gave the subclips loader the main clips global object. Of
COURSE that would work the way it is.

Sorry for the white noise.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Just for FYI - there are NO AS2 components in these movies - the one
that DID only had a Loader in the library.

This is driving me nuts.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Ok, I've discovered the problem I was having previously -- to sum up,
I have a .swf movie that plays beautifully on its own.

I then started coding a shell to, on different durations (setInterval)
load in this and other .swf into a movieclip.

I've been VERY careful about scope issues, not doing anything in
_root, but each 'sub' flash has it's own named movieclip to load all
it's do-dads.

The SHELL movie uses a MovieClipLoader to load in each of the
subclips, and it's main object, gPlay (a global) has a
gPlay.onLoadInit(ev) as it's listener.

When the SUBCLIP does a SETMASK on some movies, they trigger the
gPlay.onLoadInit !!!

Now, here's the interesting tracing:

SETIMAGE MASK
SETMASK_level0.mc_1048578.imageL
X:  true
IN TF
SETIMAGE MASK
SETMASK_level0.mc_1048577.imageL
X:  true
IN TF
SETIMAGE MASK
SETMASK_level0.mc_1048576.imageL
X:  true
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048578 mc_1048578   7459
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048577 mc_1048577   7459
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048576 mc_1048576   7459
startItem

So it seems that the mc_1048576 is a new movie that is created based
on the setMask and then triggers any 'onLoadInit'  --- ???


WAIT:
In the subclip I've set 'this._lockroot = true' as a test.
I've changed any 'setMask' to manually masking in the timeline.
I'm still getting something weird:

EV  _level0.mainWindow.mc_1 mc_1   7347
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048578 mc_1048578   7527
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048577 mc_1048577   7527
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048576 mc_1048576   7527
startItem
  POS:  0
SUBIMAGE _level0.mainWindow.mc_2
14402
dispItem  _level0.mainWindow.mc_2 14402
EV  _level0.mainWindow.mc_2 mc_2   14402
startItem
  POS:  1
SUBIMAGE _level0.mainWindow.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Proxy for Express Install

2006-05-14 Thread Asai
Thanks for the advice.  I was thinking about what you just wrote and 
I agree, it would be a headache. I have, however, tried to reach 
someone at Adobe via email.  With their feedback forms and Flash 
Player help forms, 5 times already with no response.  Do you know of 
a more direct way to get their attention?


At 08:41 AM 5/14/2006, you wrote:

i think setting up your own proxy for express install would be way
more trouble than it's worth...

you'd have to have every plugin version and do platform sniffing and
return the correct plugin for each platform.. then when adobe updates
the Flash player, you'll have to update all your stuff... it wouldn't
be very much fun.

it sounds to me like the DNS hasn't propagated across to some of your
DNS servers yet.

so as a temporary fix, you could try replacing the
fpdownload.macromedia.com in the express install code with the ip
address of the server (make sure you get the ip address from a
computer that the install works on)

i don't recommend this as a permanent fix, but it might work until
adobe takes care of their DNS issues.

you should also try e-mailing someone over there - the flash
developer relations person (i'm not sure who that is anymore) and see
if they have any insight into the problem.



On Jun 13, 2006, at 5:11 PM, Asai wrote:


Adobe still hasn't fixed the problem (it seems to be coming from
them anyway) which is preventing me and others from other parts of
the country (and world) from being able to download the Flash
Player using the express install feature (or simply trying to
download it direct from their site).  However, when I use our
remote server to get it, not from my own personal broadband
connection, there is no problem.  Does anyone (Geoff Stearns,
perhaps?) know how I could rig up the express install code to use
our server as a proxy?

---asai
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


---asai 


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] scope question...

2006-05-14 Thread grimmwerks

And the answer is NOT Listorine.

I'm going a bit nutty here. I've got one major .fla which has a lot of
birthing movieclips. I've been VERY careful not to do this at the root
level, instead in it's own container, because it's supposed to be loaded
wtihin another shell flash file...

Well, I'm actually creating Textfields and lines within this container
movieclip -- however for some reason when the main movie is loading in the
shell something else is triggering some kind of load:
OUTSIDE of the shell:
TEXT SUB: _level0.dispWindow.sub_0.Group_0
TEXT SUB: _level0.dispWindow.sub_0.Name_1
TEXT SUB: _level0.dispWindow.sub_0.Price_2
TEXT SUB: _level0.dispWindow.sub_0.Description_3
DRAWLINE:   _level0.dispWindow.sub_0
TEXT SUB: _level0.dispWindow.sub_0.Name_4
TEXT SUB: _level0.dispWindow.sub_0.Price_5
..



But then when THIS .swf is loading into another shell (mainWindow being the
container clip I'm using in the shell  and mc_1 is thee above clip);...

_level0.mainWindow.mc_0
dispItem  _level0.mainWindow.mc_0
_level0.mainWindow.mc_0
_level0.mainWindow.mc_1
dispItem  _level0.mainWindow.mc_1
_level0.mainWindow.mc_1
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048578
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048577
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048576
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Group_0
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Name_1
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Price_2
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Description_3
DRAWLINE:   _level0.mc_1048578.dispWindow.sub_0



I can't for the life of me figure out what _level).mc_1048578, 1048577 and
1048576 is...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Proxy for Express Install

2006-05-14 Thread Geoff Stearns
i think setting up your own proxy for express install would be way  
more trouble than it's worth...


you'd have to have every plugin version and do platform sniffing and  
return the correct plugin for each platform.. then when adobe updates  
the Flash player, you'll have to update all your stuff... it wouldn't  
be very much fun.


it sounds to me like the DNS hasn't propagated across to some of your  
DNS servers yet.


so as a temporary fix, you could try replacing the  
fpdownload.macromedia.com in the express install code with the ip  
address of the server (make sure you get the ip address from a  
computer that the install works on)


i don't recommend this as a permanent fix, but it might work until  
adobe takes care of their DNS issues.


you should also try e-mailing someone over there - the flash  
developer relations person (i'm not sure who that is anymore) and see  
if they have any insight into the problem.




On Jun 13, 2006, at 5:11 PM, Asai wrote:

Adobe still hasn't fixed the problem (it seems to be coming from  
them anyway) which is preventing me and others from other parts of  
the country (and world) from being able to download the Flash  
Player using the express install feature (or simply trying to  
download it direct from their site).  However, when I use our  
remote server to get it, not from my own personal broadband  
connection, there is no problem.  Does anyone (Geoff Stearns,  
perhaps?) know how I could rig up the express install code to use  
our server as a proxy?


---asai
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Assetpropflags back to default

2006-05-14 Thread John Grden

actually, that listing on the flashcoders wiki is wrong.  I wrote this out a
while back:

http://labs.blitzagency.com/?p=59

I apologize, I need to completely rewrite it to be coherent ;)  but, it DOES
explain the 3rd and 4th arguments.  I also created a quick flash demo that
allows you to change values to see their affects on an object.

again, the article needs to be reworked, but it explains pretty thoroughly
how assetpropflags works.  I've been meaning to write a utility class to
manage using assetpropflags, but I *think* there are differences in how it
acts based on the version of flash you are using.  But not totaly sure about
that.

hth,

JG

On 5/14/06, Peter Hall <[EMAIL PROTECTED]> wrote:


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 what turns up. Then, once you have changed the value,
do another for..in, then figure out the difference. readOnly and
dontDelete
are harder, since you actually have to change the data.

To "un-set" a flag, use 0, then pass the bitwise flags as the 4th
argument.

Peter

On 5/10/06, Muzak <[EMAIL PROTECTED]> wrote:
>
> Haven't used ASSetPropFlags in ages, but if i had to guess, I'd say 0
> applies to a class instance.
>
> 0 = | can overwrite, yes | can delete, yes | is hidden, no |
>
> regards,
> Muzak
>
>
> - Original Message -
> From: "j.c.wichman" <[EMAIL PROTECTED]>
> To: "'Flashcoders mailing list'" 
> Sent: Wednesday, May 10, 2006 2:13 PM
> Subject: RE: [Flashcoders] Assetpropflags back to default
>
>
> > Hi,
> > Yes this is one of the many results google turned up :), exactly where
> on
> > the page did you read which call reverts the flags back to the
default,
> or
> > what the default is, I cannot find a clear statement describing that.
I
> mean
> > which bit applies to a class instance by default.
> >
> > Greetz
> > H
> >
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
> >> Sent: Wednesday, May 10, 2006 11:06 AM
> >> To: Flashcoders mailing list
> >> Subject: Re: [Flashcoders] Assetpropflags back to default
> >>
> >> http://www.osflash.org/flashcoders/undocumented/assetpropflags
> >>
> >> regards,
> >> Muzak
> >>
> >> motto: Google first, ask questions later..
> >>
> >> - Original Message -
> >> From: "j.c.wichman" <[EMAIL PROTECTED]>
> >> To: "'Flashcoders mailing list'" 
> >> Sent: Wednesday, May 10, 2006 9:47 AM
> >> Subject: [Flashcoders] Assetpropflags back to default
> >>
> >>
> >> > Hi list,
> >> >
> >> > I was wondering, is it possible to revert an object back to
> >> its default
> >> > setting after using for example:
> >> > _global.ASSetPropFlags (myObject, null, 6, true);
> >> >
> >> > What is the call I need to do to revert the myObject to the
> >> state it was?
> >> > Is there a default state? Am I making any sense:)?
> >> >
> >> > Greetz
> >> > Hans
>
>
> ___
> 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 Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
John Grden - Blitz
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 what turns up. Then, once you have changed the value,
do another for..in, then figure out the difference. readOnly and dontDelete
are harder, since you actually have to change the data.

To "un-set" a flag, use 0, then pass the bitwise flags as the 4th argument.

Peter

On 5/10/06, Muzak <[EMAIL PROTECTED]> wrote:


Haven't used ASSetPropFlags in ages, but if i had to guess, I'd say 0
applies to a class instance.

0 = | can overwrite, yes | can delete, yes | is hidden, no |

regards,
Muzak


- Original Message -
From: "j.c.wichman" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'" 
Sent: Wednesday, May 10, 2006 2:13 PM
Subject: RE: [Flashcoders] Assetpropflags back to default


> Hi,
> Yes this is one of the many results google turned up :), exactly where
on
> the page did you read which call reverts the flags back to the default,
or
> what the default is, I cannot find a clear statement describing that. I
mean
> which bit applies to a class instance by default.
>
> Greetz
> H
>
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
>> Sent: Wednesday, May 10, 2006 11:06 AM
>> To: Flashcoders mailing list
>> Subject: Re: [Flashcoders] Assetpropflags back to default
>>
>> http://www.osflash.org/flashcoders/undocumented/assetpropflags
>>
>> regards,
>> Muzak
>>
>> motto: Google first, ask questions later..
>>
>> - Original Message -
>> From: "j.c.wichman" <[EMAIL PROTECTED]>
>> To: "'Flashcoders mailing list'" 
>> Sent: Wednesday, May 10, 2006 9:47 AM
>> Subject: [Flashcoders] Assetpropflags back to default
>>
>>
>> > Hi list,
>> >
>> > I was wondering, is it possible to revert an object back to
>> its default
>> > setting after using for example:
>> > _global.ASSetPropFlags (myObject, null, 6, true);
>> >
>> > What is the call I need to do to revert the myObject to the
>> state it was?
>> > Is there a default state? Am I making any sense:)?
>> >
>> > Greetz
>> > Hans


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] text message

2006-05-14 Thread Alfonso Florio


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Equidistant points on an ellipse!

2006-05-14 Thread Glenn Mitchell

neater, faster and a couple of comments...


http://www.pixelassembly.com/testing/ellispeSegs2.swf
http://www.pixelassembly.com/testing/ellispeSegs2.fla

you can suffix the url with  "?segs=n" (n is a number of course)



glenn




On 14/05/2006, at 12:50 AM, Ron Wheeler wrote:


Not that hard on CPU. It only got to 63% on my old 1 GHz Windows PC.

Ron

Glenn Mitchell wrote:

Hi again,

got distracted by this last night,

here is some VERY messy code to dash a line on an elipse

ummm, there's no comments there either ... but I'll rewrite it  
with comments if anyone's interested :)


(the angular segments are also shown for reference)

it's a CPU hog, probably not good at all for anything animated,  
but if you're just creating static images ...



http://www.pixelassembly.com/testing/ellispeSegs.swf

http://www.pixelassembly.com/testing/ellispeSegs.fla

cheers,
glenn



On 11/05/2006, at 11:49 AM, pixelassembly wrote:


Hi,

 just to clarify,
are you trying to get the "equal sided polygon" into your elipse,
or are you wanting the points "equal distance along the  
circumfrence"

?

also why are you not getting accurate results when using a large  
point set ?

a) you need a crazy level of accuracy ?
b) the maths doesn't quite work ?

with a large point set, are you calculating the cumulative  
distance (point

to point around the circumference)
or the direct distance between points (for an equal sided polygon)


sorry, no answers, only questions :)

glenn


- Original Message -
From: "Peter Gehring" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, May 11, 2006 4:31 AM
Subject: [Flashcoders] Equidistant points on an ellipse!


I'm really hoping someone can help...

I need to plot points at an equal distance along the circumfrence  
of an

Ellipse.
As it turns out, I'm pretty bad at geometry, which doesn't help.

I can plot the ellipse, but because I'm using sine/cos and  
incrementing with
theta the points are crunched towards the outside of the major  
radius.
I've tried a bunch of different approaches- recording lots (5000)  
of points,
then stepping through each to compare actual distance but I'm not  
getting

nearly accurate results this way.
I've looked at drawing dotted/dashed curves from drawing api/ 
custom classes

but no luck.

If I could affect theta at the same rate the ellipse is plotted I  
think I'd

be ok, but I can't quite grasp it.

I've read all sorts of impossiblilites about this,and a lot of  
people having
miserable experience with this sort of thing (one guy spent 8  
years trying

to fit an equal-sided polygon in to an ellipse).

But- at the end of the day I can go to the Flash IDE and draw an  
ellipse and
stroke it with an equally spaced dotted line!  I just need to do  
this

dynamically and record the points...

Any thoughts?

Thanks much,

Peter

[sorry if this is a duplicate]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com