Re: [Flashcoders] Getting at SampleDataEvent bytes before full Chunk is reported.

2011-12-21 Thread Anthony Pace
No replies? Okay then.  As the player doesn't seem to send the data 
unless it has a full 2^n chunk within a given timeframe, and also 
considering that as there doesn't seem to just grab the currently 
buffered bytes, then I guess it just isn't possible in this version of 
the player.


This is really sad; for, imho, the developer should be able to at least 
state the minimum sample size he wants reported per sample data event, 
and not just the rate per second.


In combination with mic.rate = 44, being able to set something the 
minimum buffer amount to be reported, and to set no delays would be perfect

e.g.
mic.sampleBufferMin = 9; // 2^8 = 256   , must be value between 8 and etc...
mic.reportImmediately = true; //to avoid having to wait until the next 
frame is collected if it couldn't collect enough to report in time


or even being able to access the bytes already in the buffer without 
having to wait until SampleDataEvent is allowed to fire

e.g.
myByteArray = mic.pollBuffer();

Up until now, I really didn't care about things like latency, as I was 
merely attempting to learn algorithms for post processing related tasks; 
yet, now that I have become interested in realtime tasks, it's becoming 
an issue.



On 12/20/2011 4:32 PM, Anthony Pace wrote:

Just in case you are wondering why...
although I know I could just split up the sample amount into smaller 
512 sample chunks, I am interested in doing some lower latency 
effects, and the delay is just too much to bare right now.




On 12/20/2011 3:37 PM, Anthony Pace wrote:

Is this possible?

When recording from the Mic, in this case at 44100hz I can't get the 
SampleDataEvent to report sample chunks of less than 2048 samples.   
The problem really is that it flash waits about 47 ms on average to 
report a sample chunk (although my counter shows it updates between 
33ms and 60ms), and in some cases even though there is no load, it 
waits until it can report 4098 samples (even though there is no 
load); yet, I only need/want 512 samples in approximately 12ms on 
average.


If, while keeping the same sample rate, there is some official way to 
decrease the chunk size being reported and the time it takes to 
report it, I can't see it; therefore, I am hoping there may be some 
way of just getting to the Sample Data before it's reported?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Getting at SampleDataEvent bytes before full Chunk is reported.

2011-12-20 Thread Anthony Pace

Is this possible?

When recording from the Mic, in this case at 44100hz I can't get the 
SampleDataEvent to report sample chunks of less than 2048 samples.   The 
problem really is that it flash waits about 47 ms on average to report a 
sample chunk (although my counter shows it updates between 33ms and 
60ms), and in some cases even though there is no load, it waits until it 
can report 4098 samples (even though there is no load); yet, I only 
need/want 512 samples in approximately 12ms on average.


If, while keeping the same sample rate, there is some official way to 
decrease the chunk size being reported and the time it takes to report 
it, I can't see it; therefore, I am hoping there may be some way of just 
getting to the Sample Data before it's reported?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: secure sockets?

2011-07-27 Thread Anthony Pace
Isn't that just for Air2.0?  I know that if i search online I find that 
it was beta for 10.3, but is it actually in the release? Does is work on 
mobile phones (this one I really doubt, as even in the beta docs it said 
it would not work on air for mobile)?


Not only that, right now I can't actually rely on the everyone having 
the latest player, or anyone being willing to install an air app on 
their desktops.



On 7/24/2011 8:37 PM, Henrik Andersson wrote:

flash.net.SecureSocket
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] secure sockets?

2011-07-24 Thread Anthony Pace
Since AFAIK, flash is to look at the x.509 pool, below is the only 
method I could come up with that provides any security, please tell me 
if I am missing something.


-client sends request over https for the socket key
-the server respond by generating keys, associating the keys to the 
session (enabling checks to see if it is still active), and then sends 
it back over https

-once the key is received the client uses the keys to encrypt/decipher too.

What do you think? any suggestions?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: secure sockets?

2011-07-24 Thread Anthony Pace
Meant to say 'since afaik, flash doesn't look at the browsers x.509 pool 
for CAs, and thus there is no way, again afaik, of validating if a 
public key sent by the server, the best I can come up with is the 
solution below'.  Please tell me if I am missing something.


-client sends request over https for the socket key
-the server respond by generating keys, associating the keys to the 
session (enabling checks to see if it is still active), and then sends 
it back over https -once the key is received the client uses the keys to 
encrypt/decipher too.


What do you think? any suggestions?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] UDP in the browser???

2011-07-03 Thread Anthony Pace
I have read that UDP will be allowed in the browser as of version 11... 
is this true?


If so that would be extremely awesome, and open up a bunch of 
opportunities for the de3velopment of in browser communications 
applications.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] is there a dsp lib with analysis using zero crossing in as3

2011-05-16 Thread Anthony Pace

Just wanted to say thanks for the responses; especially from Gerry.

@Gerry: I think your comments about correlation have pushed me in the 
right direction.



On 5/12/2011 8:49 PM, Gerry Beauregard wrote:

Hi Anthony,

For pitch analysis, what technique to use depends a lot on the specific 
application and the expected signal.

Some considerations... Is the input monophonic (e.g. one singing voice or 
single pitched instrument) or polyphonic (piano, orchestra, etc.)?  Does the 
pitch analysis need to happen in real-time (i.e. from a live source), or can it 
be done in a batch/non-real-time fashion (from a recording)?  What frequency 
and time resolution do you need?  How computationally-intensive can it be?

Counting zero crossings is simple and efficient, but I wouldn't recommend it.  
It'll work fine on sine tones, but on signals with any significant energy at 
harmonics above the fundamental (i.e. virtually any real-world sound), it'll 
tend to give you pitch estimates that are multiples of the actual pitch. 
Low-pass filtering the input can alleviate that problem a bit.

Personally I've found that for most monophonic signals, auto-correlation-based 
methods work best.  I can send you a well-commented C++ example that I coded up 
a while ago.

For polyphonic pitch-detection, spectral-based methods are the way to go. 
Typically the first stage of these is a windowed FFT, though some folks use 
wavelet or constant-Q transforms instead.  I have a decent AS3 FFT here:
http://gerrybeauregard.wordpress.com/2010/08/03/an-even-faster-as3-fft/

Even for monophonic sources, if the fundamental is substantially stronger than 
the other harmonics, simply using the biggest spectral peak may work.  My AS3 
spectrum analyzer project would be a good place to start if you want to try 
this approach.  Code is here:
http://gerrybeauregard.wordpress.com/2010/08/06/real-time-spectrum-analysis/
Live version here:
http://www.audiostretch.com/spectrum/

BTW, are you working on a commercial project?  If so, I'd be happy to do some 
consulting/contracting work! ;-)

Cheers,

Gerry Beauregard
g.beaureg...@ieee.org


On 2011-05-12  , at 04:12 , Anthony Pace wrote:


Hello list,

I have been doing some experiments, but although my stuff is working, it isn't 
optimized at all, and I would to try a reliable lib that uses zero crossings 
for analysis, if one exists.

Any suggestions?

I am really just interested in pitch analysis with very small sample chunks.  
Timber is not really necessary, so I, with my limited DSP knowledge, think the 
FFT is overkill; however, I absolutely admit I could be wrong and not seeing 
something important.

Another thing is that I was thinking a good/cheap way to get rid of some low 
level background noise would be to normalize all values within the time domain 
with a very high gain factor, and just give max and min values for the zero 
crossings( e.g +3, -3 respectively... I know the numbers would obviously not be 
these ones).   I know know frequency analysis would have to be preformed in 
order to remove a voice, but I am thinking that this could allow me to zero 
out/ignore, really low level/really high level background noise.  Should I try 
something different?

Again, I have just started reading through a copy of 'DSP: a computer science 
perspective', that someone gave me, and it seems like what I am talking about 
would work; yet, if not, and you have experience with signals analysis, I would 
appreciate the heads up.

Thank you,
Anthony
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] is there a dsp lib with analysis using zero crossing in as3

2011-05-16 Thread Anthony Pace
Oh, I also wanted to mention that over the weekend(thanks to wikipedia) 
I tried a simple AMDF style approach; it seems it would be great for 
very basic live tuning apps, but it does appear Gerry is correct that it 
may lead to issues if used for anything else.


I also know, from what I have read, that autoCorrelation is used for 
things like keeping a vocalist in tune, or producing Cher/Akon style 
effects via the auto-tune vst plugin, so I am wondering if it can be 
computed quite quickly? or if it is better for non-time-sensitive 
analysis of pre-recorded data?



On 5/16/2011 3:51 PM, Anthony Pace wrote:

Just wanted to say thanks for the responses; especially from Gerry.

@Gerry: I think your comments about correlation have pushed me in the 
right direction.



On 5/12/2011 8:49 PM, Gerry Beauregard wrote:

Hi Anthony,

For pitch analysis, what technique to use depends a lot on the 
specific application and the expected signal.


Some considerations... Is the input monophonic (e.g. one singing 
voice or single pitched instrument) or polyphonic (piano, orchestra, 
etc.)?  Does the pitch analysis need to happen in real-time (i.e. 
from a live source), or can it be done in a batch/non-real-time 
fashion (from a recording)?  What frequency and time resolution do 
you need?  How computationally-intensive can it be?


Counting zero crossings is simple and efficient, but I wouldn't 
recommend it.  It'll work fine on sine tones, but on signals with any 
significant energy at harmonics above the fundamental (i.e. virtually 
any real-world sound), it'll tend to give you pitch estimates that 
are multiples of the actual pitch. Low-pass filtering the input can 
alleviate that problem a bit.


Personally I've found that for most monophonic signals, 
auto-correlation-based methods work best.  I can send you a 
well-commented C++ example that I coded up a while ago.


For polyphonic pitch-detection, spectral-based methods are the way to 
go. Typically the first stage of these is a windowed FFT, though some 
folks use wavelet or constant-Q transforms instead.  I have a decent 
AS3 FFT here:

http://gerrybeauregard.wordpress.com/2010/08/03/an-even-faster-as3-fft/

Even for monophonic sources, if the fundamental is substantially 
stronger than the other harmonics, simply using the biggest spectral 
peak may work.  My AS3 spectrum analyzer project would be a good 
place to start if you want to try this approach.  Code is here:
http://gerrybeauregard.wordpress.com/2010/08/06/real-time-spectrum-analysis/ 


Live version here:
http://www.audiostretch.com/spectrum/

BTW, are you working on a commercial project?  If so, I'd be happy to 
do some consulting/contracting work! ;-)


Cheers,

Gerry Beauregard
g.beaureg...@ieee.org


On 2011-05-12  , at 04:12 , Anthony Pace wrote:


Hello list,

I have been doing some experiments, but although my stuff is 
working, it isn't optimized at all, and I would to try a reliable 
lib that uses zero crossings for analysis, if one exists.


Any suggestions?

I am really just interested in pitch analysis with very small sample 
chunks.  Timber is not really necessary, so I, with my limited DSP 
knowledge, think the FFT is overkill; however, I absolutely admit I 
could be wrong and not seeing something important.


Another thing is that I was thinking a good/cheap way to get rid of 
some low level background noise would be to normalize all values 
within the time domain with a very high gain factor, and just give 
max and min values for the zero crossings( e.g +3, -3 
respectively... I know the numbers would obviously not be these 
ones).   I know know frequency analysis would have to be preformed 
in order to remove a voice, but I am thinking that this could allow 
me to zero out/ignore, really low level/really high level background 
noise.  Should I try something different?


Again, I have just started reading through a copy of 'DSP: a 
computer science perspective', that someone gave me, and it seems 
like what I am talking about would work; yet, if not, and you have 
experience with signals analysis, I would appreciate the heads up.


Thank you,
Anthony
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] is there a dsp lib with analysis using zero crossing in as3

2011-05-11 Thread Anthony Pace

Hello list,

I have been doing some experiments, but although my stuff is working, it 
isn't optimized at all, and I would to try a reliable lib that uses zero 
crossings for analysis, if one exists.


Any suggestions?

I am really just interested in pitch analysis with very small sample 
chunks.  Timber is not really necessary, so I, with my limited DSP 
knowledge, think the FFT is overkill; however, I absolutely admit I 
could be wrong and not seeing something important.


Another thing is that I was thinking a good/cheap way to get rid of some 
low level background noise would be to normalize all values within the 
time domain with a very high gain factor, and just give max and min 
values for the zero crossings( e.g +3, -3 respectively... I know the 
numbers would obviously not be these ones).   I know know frequency 
analysis would have to be preformed in order to remove a voice, but I am 
thinking that this could allow me to zero out/ignore, really low 
level/really high level background noise.  Should I try something different?


Again, I have just started reading through a copy of 'DSP: a computer 
science perspective', that someone gave me, and it seems like what I am 
talking about would work; yet, if not, and you have experience with 
signals analysis, I would appreciate the heads up.


Thank you,
Anthony
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What is up with adobes documentation?

2011-04-21 Thread Anthony Pace
Personally I find searching google almost always gives me what I want as 
long as I use quotation marks around a key phrase, and I must agree that 
Google's results are not Adobe's fault.


To talk about the state of Adobe documentation, I must say that I do 
find it lacking substance in many key areas; however, it is far better 
than what I have seen from many other companies.


If I had to gripe, I would gripe about the stupid community help 
interface that, more often than not, gives double scroll bar screw-ups, 
and even though you select local only, searches the web, unless you go 
into the settings. Buggy to say the least, and it is quite the memory 
hog too.


Air apps can be done well; yet, I find that anything done with Flex 
SWCs, or has a super ultra fantastic design, is too slow to work well as 
a Help window or some other app you could be keeping open for several 
hours at a time.


On 4/21/2011 7:24 PM, Ross Sclafani wrote:

I agree with this. Also, any professional worth their salt is going to have 
direct links to any documentation required to do their job.

Ross P. Sclafani
Design / Technology / Creative
347.204.5714
http://ross.sclafani.net
http://www.twitter.com/rosssclafani

On Apr 21, 2011, at 6:47 PM, Dave Wattsdwa...@figleaf.com  wrote:


I think you're making a big leap from one thing to the other here.
Flash detractors don't care about the state of Adobe's documentation

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] test swf on slow machines

2011-04-09 Thread Anthony Pace

How do you do your testing?

Do you still have slow machines to test everything on? do you virtualize 
it and assign a slow processor speed and fewer resources?  or do you 
have another method?


I used to test apps on an old Compaq p3 633 mhz (if it ran well there 
than I could trust it would run almost anywhere); however, I don't have 
access to it anymore, and I totally need some accurate benchmarks.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RegExp Help

2011-03-11 Thread Anthony Pace

Hi Karim and Ktu,

Below is an explanation of what appears to be going on in the given pattern:

(?:\s*)
is a greedy non-capturing group of whitespace

(?=[-|/])
is looking behind the next section of the expression, (?name\w*),
for, what is in this case, a character set; as well, it does so
without including it in the result.  In this case the character
set could also be written without the |, resulting in [-/]

(?name\w*)
is looking for name\w*, before the next expression [:|=]
you may have wanted (?Pname\w*)

[:|=]
is a character set  : or =, but again does not need the |,
and could be [:=] or something like (?::|=)

(((?value.*?)(?!\\))|(?value[\w]*))
is what I think you may have wanted to be an alternation,
and in another language it would have worked; however, not in AS3.

Apparently in AS3 in order to distinguish the syntax from a
lookbehind ?  you need to use the syntax ?PdesiredGroupName
when defining a named group; as well, it is due to the fact that,
as far as I know, in AS3 you cannot use names of the same group
even a logical OR alternation.


On 3/11/2011 2:37 PM, Ktu wrote:

I just plugged it into RegExrhttp://www.regexr.com  and I can't make sense
of it.

Try using that tool to build it. It really helps


On Fri, Mar 11, 2011 at 5:56 AM, Karim Beyroutika...@kurst.co.uk  wrote:


Hello lovely list...I am trying to run a RegExp pattern on a String, and am
not too sure why it's not working, and am not too sure why.
Here is the code:

var tStr: String= '/a:value -big=this -test:123
-test2=th_3'
var r   : RegExp= new RegExp(
'(?:\s*)(?=[-|/])(?name\w*)[:|=](((?value.*?)(?!\\))|(?value[\w]*))');
var result  : Object= r.exec( str );

result returns null... Maybe you can shed some light on what i am doing
wrong here?

Thanks...


Karim

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] tascam us-144 is detected, but no sound

2011-03-09 Thread Anthony Pace

Sorry, for not getting back to you sooner

Thank you Gerry, what you said made perfect sense, and you were 100% 
right; for, the xlr input was in fact on the right channel.  However, 
although you were right, to me this was strange since, because at the 
flick of a switch, the Tascam US-144 is supposed to, and with every 
other audio app does, take the stereo input and convert it to mono 
channel audio without restricting which inputs must be used.


To dig a little deaper, I found that it is because the way flash samples 
audio does not take proper advantage wdm or asio standards; thus, I am 
left with only two capable inputs, and wondering why Adobe hasn't worked 
in the support for devices like these yet?


Thanks again,
Anthony

On 3/7/2011 8:20 PM, Gerry Beauregard wrote:

Is it possible that the signal is on the right channel of your Tascam audio 
box?  If you're using the FP 10.1 Microphone class SampleDataEvent feature, 
it's only able to capture mono audio, as far as I can tell.

If you've got a stereo audio interface, that mono channel is actually the left 
channel.  At least that's the case with my Presonus Audiobox USB; I suspect 
it's the same for other USB audio interface boxes.


On 2011-03-08  , at 09:01 , Anthony Pace wrote:


I was working with sound sampling in flash, when suddenly, although flash would 
detect my tascam us-144 line in as a recording device, it wouldn't capture any 
sound.

I have done all kinds of testing; yet, for some reason it flash just can't hear 
anything.

Right now the only solution I have come up with is to use another mic.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] quiet in here at the moment

2011-03-07 Thread Anthony Pace

People are too busy working to talk.  Don't worry, I will post a question...

On 3/7/2011 1:11 PM, Merrill, Jason wrote:

this list has been getting rather quiet of the past month or two.  Odd.  So has 
Flash_Tiger.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] tascam us-144 is detected, but no sound

2011-03-07 Thread Anthony Pace
I was working with sound sampling in flash, when suddenly, although 
flash would detect my tascam us-144 line in as a recording device, it 
wouldn't capture any sound.


I have done all kinds of testing; yet, for some reason it flash just 
can't hear anything.


Right now the only solution I have come up with is to use another mic.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Help with Image Slideshow - displaying random image

2011-01-24 Thread Anthony Pace

Which method would you like me to expand on?

On 1/24/2011 12:33 PM, Christopher Lucas wrote:

Anthony, I agree, it is hard to read these emails...but anyway, you said:

OOPS...thank goodness I re-read my last post... realized I screwed up,
because the first version I made should actually modify your original xml.
Wow,  sometimes I wish this was like a web Forum and you could just click
edit.

I had used XMLList, when it should have been new XML, and you should be
sending in the imgList.IMAGE section.  As well, in addition the quick fix, I
updated the code to show the different method that makes a randomized Typed
Array (otherwise known as a vector) that points to the index locations in
the original xml.  Don't hesitate to tell me if I screwed up again.


//Updated example
var ss:XML =SLIDESHOW SPEED=2IMAGE SRC=images1.jpg DESC=Rome/
IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XML = new XML(ss);
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList.IMAGE);
trace('original xml...\n'+ss.IMAGE+'\n\n');
trace('..New Modified xml.\n'+imgList.IMAGE+'\n\n');
//different method
var l:int = ss.IMAGE.length();
var randi:Vector.int=new Vector.int(l,true);//random array for index
values
var tv:int;//temp value
var sn:int;//swap number
for(var i:int = 0; i!=l;++i){
randi[i]=i;
}
trace('...original order...\n'+randi+'\n');
for(i=0;i!=l;++i){
sn = Math.floor(Math.random()*l);
tv = randi[sn];
randi[sn] = randi[i];
randi[i] = tv;
}
trace('...modified order...\n'+randi+'\n\n...IMAGE SRC values...');
//example of how to make use of it
for(i=0;i!=l;++i){
trace(ss.IMAGE[randi[i]].@SRC);
}

I'm confused are you listing the path to the image and desc in the AS3
code? I'm lost in what you have posted. I have over 300 images that are
contained in my XML file. With more likely to be added.
Sorry to be dense, but I'm not understanding your method. Any chance you can
expand??
Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Help with Image Slideshow - displaying random image (Anthony Pace)

2011-01-23 Thread Anthony Pace
OOPS...thank goodness I re-read my last post... realized I screwed up, 
because the first version I made should actually modify your original 
xml.  Wow,  sometimes I wish this was like a web Forum and you could 
just click edit.


I had used XMLList, when it should have been new XML, and you should be 
sending in the imgList.IMAGE list section.  As well, in addition the 
quick fix, I updated the code to show the different method that makes a 
randomized Typed Array (otherwise known as a vector) that points to the 
index locations in the original xml.  Don't hesitate to tell me if I 
screwed up again.


//Updated examplevar ss:XML =SLIDESHOW SPEED=2IMAGE 
SRC=images1.jpg DESC=Rome/

IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XML = new XML(ss);
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList.IMAGE);
trace('original xml...\n'+ss.IMAGE+'\n\n');
trace('..New Modified xml.\n'+imgList.IMAGE+'\n\n');

//different method
var l:int = ss.IMAGE.length();
var randi:Vector.int=new Vector.int(l,true);//random array for index 
values

var tv:int;//temp value
var sn:int;//swap number
for(var i:int = 0; i!=l;++i){
randi[i]=i;
}
trace('...original order...\n'+randi+'\n');
for(i=0;i!=l;++i){
sn = Math.floor(Math.random()*l);
tv = randi[sn];
randi[sn] = randi[i];
randi[i] = tv;
}
trace('...modified order...\n'+randi+'\n\n...IMAGE SRC values...');
//example of how to make use of it
for(i=0;i!=l;++i){
trace(ss.IMAGE[randi[i]].@SRC);
}



On 1/22/2011 4:41 PM, Anthony Pace wrote:
Sorry I took so long.  I had no internet at home for that past couple 
of days.


...Well, you don't really have to make it an array.  I guess I should 
have said, use it like you would an array.


Since it seems you want to know how to keep the original order and 
have a new list with a randomized order,for ease of use, I figured you 
might want an XMLList, so I made the example below.


//there is another way without duplicating data in memory, but I 
figure this might be easy to work with.

var ss:XML =SLIDESHOW SPEED=2IMAGE SRC=images1.jpg DESC=Rome/
IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XMLList = ss.IMAGE;
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList);
trace(imgList);





On 1/21/2011 3:47 PM, Christopher Lucas wrote:

Anthony, Thanks for your response. I conceptually understand Arrays, but
really am lost in how they work with AS3. Any change you might be 
willing to

show me how this would be done?

Won't the image and corresponding desc both be scrambled in an array 
since I

want to display them together?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Help with Image Slideshow - displaying random image (Anthony Pace)

2011-01-23 Thread Anthony Pace
OOPS...thank goodness I re-read my last post... realized I screwed up, 
because the first version I made should actually modify your original 
xml.  Wow,  sometimes I wish this was like a web Forum and you could 
just click edit.


I had used XMLList, when it should have been new XML, and you should be 
sending in the imgList.IMAGE section.  As well, in addition the quick 
fix, I updated the code to show the different method that makes a 
randomized Typed Array (otherwise known as a vector) that points to the 
index locations in the original xml.  Don't hesitate to tell me if I 
screwed up again.



//Updated example
var ss:XML =SLIDESHOW SPEED=2IMAGE SRC=images1.jpg DESC=Rome/
IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XML = new XML(ss);
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList.IMAGE);
trace('original xml...\n'+ss.IMAGE+'\n\n');
trace('..New Modified xml.\n'+imgList.IMAGE+'\n\n');

//different method
var l:int = ss.IMAGE.length();
var randi:Vector.int=new Vector.int(l,true);//random array for index 
values

var tv:int;//temp value
var sn:int;//swap number
for(var i:int = 0; i!=l;++i){
randi[i]=i;
}
trace('...original order...\n'+randi+'\n');
for(i=0;i!=l;++i){
sn = Math.floor(Math.random()*l);
tv = randi[sn];
randi[sn] = randi[i];
randi[i] = tv;
}
trace('...modified order...\n'+randi+'\n\n...IMAGE SRC values...');
//example of how to make use of it
for(i=0;i!=l;++i){
trace(ss.IMAGE[randi[i]].@SRC);
}



On 1/22/2011 4:41 PM, Anthony Pace wrote:

Sorry I took so long.  I had no internet at home for that past couple
of days.

...Well, you don't really have to make it an array.  I guess I should
have said, use it like you would an array.

Since it seems you want to know how to keep the original order and
have a new list with a randomized order,for ease of use, I figured you
might want an XMLList, so I made the example below.

//there is another way without duplicating data in memory, but I
figure this might be easy to work with.
var ss:XML =SLIDESHOW SPEED=2IMAGE SRC=images1.jpg DESC=Rome/
IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XMLList = ss.IMAGE;
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList);
trace(imgList);





On 1/21/2011 3:47 PM, Christopher Lucas wrote:

Anthony, Thanks for your response. I conceptually understand Arrays, but
really am lost in how they work with AS3. Any change you might be
willing to
show me how this would be done?

Won't the image and corresponding desc both be scrambled in an array
since I
want to display them together?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Help with Image Slideshow - displaying random image (Anthony Pace)

2011-01-22 Thread Anthony Pace
Sorry I took so long.  I had no internet at home for that past couple of 
days.


...Well, you don't really have to make it an array.  I guess I should 
have said, use it like you would an array.


Since it seems you want to know how to keep the original order and have 
a new list with a randomized order,for ease of use, I figured you might 
want an XMLList, so I made the example below.


//there is another way without duplicating data in memory, but I figure 
this might be easy to work with.

var ss:XML =SLIDESHOW SPEED=2IMAGE SRC=images1.jpg DESC=Rome/
IMAGE SRC=images2.jpg DESC=Paris/
IMAGE SRC=images3.jpg DESC=Cairo/
IMAGE SRC=images4.jpg DESC=London/
IMAGE SRC=images5.jpg DESC=New Yor City/
IMAGE SRC=images6.jpg DESC=Paris/
IMAGE SRC=images7.jpg DESC=Tokyo/
IMAGE SRC=images8.jpg DESC=Toronto/
IMAGE SRC=images9.jpg DESC=Nepal/
IMAGE SRC=images10.jpg DESC=Venice/
IMAGE SRC=images11.jpg DESC=what/
IMAGE SRC=images12.jpg DESC=ever/
IMAGE SRC=images13.jpg DESC=you/
IMAGE SRC=images14.jpg DESC=get/
IMAGE SRC=images15.jpg DESC=the/
IMAGE SRC=images16.jpg DESC=idea/
/SLIDESHOW;
var imgList:XMLList = ss.IMAGE;
function randXMLList(xl:XMLList):void{
var sn:int;//swap number
var xh:XML;//temp xml holder
var i:int=0;
var l:int = xl.length();
while(i!=l){
sn = Math.floor(Math.random() *l);
xh = xl[i];
xl[i] = xl[sn];
xl[sn] = xh;
++i;
}
}
randXMLList(imgList);
trace(imgList);





On 1/21/2011 3:47 PM, Christopher Lucas wrote:

Anthony, Thanks for your response. I conceptually understand Arrays, but
really am lost in how they work with AS3. Any change you might be willing to
show me how this would be done?

Won't the image and corresponding desc both be scrambled in an array since I
want to display them together?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Help with Image Slideshow - displaying random image

2011-01-20 Thread Anthony Pace

It seems to be your listeners and the order of the Complete events.


On 1/20/2011 11:19 AM, Christopher Lucas wrote:

any thanks to any and all who respond!! I'm at the extent of my AS skills.
I'd like to make the following image slide show display like it does,
sequentially, as well as making it display random. Anyone know how I can do
that? I've included the code I have working now. Text and image are
displaying fine. I've tried adding a ramdom order, but it br


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Help with Image Slideshow - displaying random image

2011-01-20 Thread Anthony Pace
If you want them to be random, take the xml as an array, and then do a 
random swap for each node.

(I think someone posted some code for the proper way to shuffle an array.)

then load the images in that order.



\On 1/20/2011 12:44 PM, Anthony Pace wrote:

It seems to be your listeners and the order of the Complete events.


On 1/20/2011 11:19 AM, Christopher Lucas wrote:
any thanks to any and all who respond!! I'm at the extent of my AS 
skills.

I'd like to make the following image slide show display like it does,
sequentially, as well as making it display random. Anyone know how I 
can do

that? I've included the code I have working now. Text and image are
displaying fine. I've tried adding a ramdom order, but it br


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Help with Image Slideshow - displaying random image

2011-01-20 Thread Anthony Pace
sorry if my first response seemed a bit cheeky... truth is I posted my 
response based on the subject of your post, and then I posted my second 
response, after actually reading it... kind of a cart before the horse 
scenario.


On 1/20/2011 12:44 PM, Anthony Pace wrote:

It seems to be your listeners and the order of the Complete events.


On 1/20/2011 11:19 AM, Christopher Lucas wrote:
any thanks to any and all who respond!! I'm at the extent of my AS 
skills.

I'd like to make the following image slide show display like it does,
sequentially, as well as making it display random. Anyone know how I 
can do

that? I've included the code I have working now. Text and image are
displaying fine. I've tried adding a ramdom order, but it br


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] test

2011-01-11 Thread Anthony Pace

ha!... that's funny ;^{o

On 1/11/2011 11:26 AM, Kerry Thompson wrote:

Michael Mendelsohn wrote:


Test: is the list alive?


Nope. I didn't get this e-mail :-^|

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] test

2011-01-11 Thread Anthony Pace
Well I just got back to work from 2 weeks of partying and actually 
getting some sleep; however, if you would prefer I help kick off the new 
year by asking some stupid questions, rather than Google the answers, I 
will gladly accommodate you.


here ...it'll just be a sec...

On 1/11/2011 12:25 PM, Mendelsohn, Michael wrote:

And along the same lines, what's going on with feeds.adobe.com?  That's been 
down for weeks!

- MM


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] core Math functions in flash vs the browser

2011-01-11 Thread Anthony Pace

Why are the implementations of Sin and Cos s slow?

Even a very basic MacLauren series can trump the Flash's current 
Math.cos or Math.sin, and that is when they wrapped in function calls.


Although the rendering performance is poor in the browser, if you try 
comparing the ff3.5 or chrome's ability to process the the Math.sin and 
Math.cos calls, you will see vast differences.  What gives with the 
dudes at Adobe?  Why was this problem not a concern, nor improved upon 
years ago?


I hear things will be different in 10.2; however, I haven't played with 
it yet, and I would not be able to comment.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problems when converting to Number

2010-12-19 Thread Anthony Pace
Oh well, after reading a couple of articles, I think I have confirmed my 
suspicion; for, as I thought, it just comes down to there being too many 
digits, and the floating point implementation doing some hidden 
weirdness.  It really sucks that you can really only expect about 15 
digits of true accuracy from the Number Data type.


If I am wrong let me know.


On 12/18/2010 8:55 PM, Anthony Pace wrote:

trace(Number('1992.2'));

//why does it output 1992.3
//I am assuming I am missing something pretty obvious
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problems when converting to Number

2010-12-19 Thread Anthony Pace
Thanks for the response.  Right as you were posting, I was posting my 
own message of how I read up on the spec, and saw the same thing.


From what I have read, as you can't actually have the int portion be 9 
999 999 999 999 999, because its limit is 9,007,199,254,740,992 , you 
can really only trust the use of Number up to 15 digits of accuracy.


Let me know if I am wrong.

On 12/19/2010 4:33 AM, Gerry Beauregard wrote:

You're getting to the limits of the precision of a Number.

In ActionScript 3, the Number type is stored in binary, in 64-bit 
double-precision IEEE floating point format:
http://en.wikipedia.org/wiki/Binary64
It uses 52 bits for the mantissa (fractional part) which gives it an effective 
precision of 53 bits, equal to about 16 decimal digits of precision.  The error 
you're getting is in the 17th digit - no surprise at all.

-Gerry


On 2010-12-19  , at 09:55 , Anthony Pace wrote:


trace(Number('1992.2'));

//why does it output 1992.3
//I am assuming I am missing something pretty obvious
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] problem with adding two digits

2010-12-19 Thread Anthony Pace

to prevent anyone answering on this thread:
after toying with it again, and reading the docs + wikipedia I figured 
out that I can only trust a result of 15 digits or less, unless I have 
the string be returned instead of the number.


n 12/18/2010 8:34 PM, Anthony Pace wrote:


function floatSumV3(roundDown:Boolean = true, ... nums):Number{
var nl:uint = nums.length;
var ls:Number=0; //left side
var pp:int; //period position
var rs:Number = 1; //right side
var rsl:int; //right side length
var ml:int = 0; //max length right side
var powerCounter:int = 1;
var powerResult:int;
var s:String;
for (var i:int = 0; i nl; ++i) {
s = nums[i].toString();
pp = s.indexOf('.');
if(pp!=-1){
rsl = s.length - pp-1;
if(rslml){
p


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] problem with adding two digits

2010-12-18 Thread Anthony Pace

whoa... hold on Help Please.

After I posted yesterday, (or the night before??? can't remember) as I 
realized how badly the code sucked, I was just messing around with this 
code below to see if I could separate the halves and recompose them 
properly; however,

if you pop the code below on the timeline, you will see why I am confused.

I know it's not the greatest piece of code in the world, especially 
since I was just messing around mentally, but it should work.  Why is 
the process of converting to a Number adding .1


function floatSumV3(roundDown:Boolean = true, ... nums):Number{
var nl:uint = nums.length;
var ls:Number=0; //left side
var pp:int; //period position
var rs:Number = 1; //right side
var rsl:int; //right side length
var ml:int = 0; //max length right side
var powerCounter:int = 1;
var powerResult:int;
var s:String;
for (var i:int = 0; i nl; ++i) {
s = nums[i].toString();
pp = s.indexOf('.');
if(pp!=-1){
rsl = s.length - pp-1;
if(rslml){
powerCounter = rsl - ml;
powerResult=1;
while(powerCounter!=0){
powerResult *= 10;
powerCounter -= 1;
}
rs *= powerResult;
rs += Number(s.substr(pp+1));
ml=rsl;
//trace('ml = '+ml+', rs = '+ rs);
}else if (rslml){
powerCounter = ml-rsl;
powerResult=1;
while(powerCounter!=0){
powerResult*= 10;
powerCounter -= 1;
}
rs += Number(s.substr(pp+1)) * powerResult;
}else {
rs+=Number(s.substr(pp+1));
}

ls += Number(s.substr(0,pp));
//trace('numls = ' + s.substr(0,pp));
//trace('ls = ' + ls);
}else{
ls +=Number(s);
//trace('ls = ' + s);
//trace('ls = ' + ls);
}

}
s = rs.toString();
if(s.lengthml){
ls += Number(s.substr(0,s.length - ml))-1;
}
s=ls+.+s.substr(s.length-ml);
trace(s, = initial string value);
if(s.length  16  roundDown == true){
if(ls.toString().length==16){
s = s.substr(0,18);

}else if(ls.toString().length16){
s = ls.toString();
}
else{
s = s.substr(0,17);

}
}
trace(s, = string value after checks);
return Number(s);
}
trace(floatSumV3(false,990.9,.09,.009,0.0009,1,0.2,0.01,0.01,0.01,1000.0001));
trace(floatSumV3(true, 
990.9,.09,.009,0.0009,1,0.2,0.01,0.01,0.01,1000.0001));







On 12/15/2010 2:31 PM, Anthony Pace wrote:

Oh yeah, I forgot to give some examples to test it with, so...

trace(floatSum(-0.1,0.9155,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1));
//vs
trace(-0.1+0.9155+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1);
//and
trace(floatProduct(2.1,0.1,1.0001,.0001));
//vs
trace(2.1*0.1*1.0001*.0001);


On 12/15/2010 2:25 PM, Anthony Pace wrote:
I wrote the functions below in literally just a few min, so, even 
though they do seem to work for me, I wouldn't necessarily say they 
are production ready.


Also, I would only use these if you will know that the numbers past 
the mantissa are of small amounts.


Oh yeah, and please tell me if I screwed up somewhere, or if you 
think you can do it better :)


function floatProduct(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 1;
var s:String;
for (var i:uint = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
ml += rsl;
p *= nums[i];
}
return Number(p.toFixed(ml));
}
function floatSum(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 0;
var s:String;
for (var i:int = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
if (rsl  ml) {
ml = rsl;
}
p += nums[i];
}
return Number(p.toFixed(ml));
}


-




On 12/14/2010 12:05 PM, Kerry Thompson wrote:

Adrian Zając wrote:



trace (0.27 + 0.03);   // output --  0.30004

Can anyone tell me why I get this weird result in output window?


As people have said, it's a problem with decimals. It's not a 
problem with

Flash--it's a problem with binary numbers.

Integers are accurate because all integers are a multiple of 1, and 
binary
does just fine with combining 0's and 1's, the only possibile values 
of a

digit in the binary system.

If you think of decimals as fractions, maybe it will help you 
understand the
issue. In binary, a digit can only be a multiple of 2: 1/2, 1/4, 
1/8/ 1/16,

1/32, and so on. You can create numbers that aren't

[Flashcoders] Problems when converting to Number

2010-12-18 Thread Anthony Pace

trace(Number('1992.2'));

//why does it output 1992.3
//I am assuming I am missing something pretty obvious
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] problem with adding two digits

2010-12-15 Thread Anthony Pace
I wrote the functions below in literally just a few min, so, even though 
they do seem to work for me, I wouldn't necessarily say they are 
production ready.


Also, I would only use these if you will know that the numbers past the 
mantissa are of small amounts.


Oh yeah, and please tell me if I screwed up somewhere, or if you think 
you can do it better :)


function floatProduct(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 1;
var s:String;
for (var i:uint = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
ml += rsl;
p *= nums[i];
}
return Number(p.toFixed(ml));
}
function floatSum(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 0;
var s:String;
for (var i:int = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
if (rsl  ml) {
ml = rsl;
}
p += nums[i];
}
return Number(p.toFixed(ml));
}


-




On 12/14/2010 12:05 PM, Kerry Thompson wrote:

Adrian Zając wrote:



trace (0.27 + 0.03);   // output --  0.30004

Can anyone tell me why I get this weird result in output window?


As people have said, it's a problem with decimals. It's not a problem with
Flash--it's a problem with binary numbers.

Integers are accurate because all integers are a multiple of 1, and binary
does just fine with combining 0's and 1's, the only possibile values of a
digit in the binary system.

If you think of decimals as fractions, maybe it will help you understand the
issue. In binary, a digit can only be a multiple of 2: 1/2, 1/4, 1/8/ 1/16,
1/32, and so on. You can create numbers that aren't multiples of two by
adding multiple digits. For example, 1/4 + 1/8 = 3/8, or .375.

This works pretty well, until you get numbers with a lot of decimal places.
At some point, you will find a decimal that is impossible to make using
powers of 2.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] problem with adding two digits

2010-12-15 Thread Anthony Pace

Oh yeah, I forgot to give some examples to test it with, so...

trace(floatSum(-0.1,0.9155,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1));
//vs
trace(-0.1+0.9155+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1);
//and
trace(floatProduct(2.1,0.1,1.0001,.0001));
//vs
trace(2.1*0.1*1.0001*.0001);


On 12/15/2010 2:25 PM, Anthony Pace wrote:
I wrote the functions below in literally just a few min, so, even 
though they do seem to work for me, I wouldn't necessarily say they 
are production ready.


Also, I would only use these if you will know that the numbers past 
the mantissa are of small amounts.


Oh yeah, and please tell me if I screwed up somewhere, or if you think 
you can do it better :)


function floatProduct(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 1;
var s:String;
for (var i:uint = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
ml += rsl;
p *= nums[i];
}
return Number(p.toFixed(ml));
}
function floatSum(... nums){
var ml:int = 0; //max length past mantissa
var ln:uint = nums.length;
var rsl:int; //right side length
var p:Number = 0;
var s:String;
for (var i:int = 0; i ln; ++i) {
s = nums[i].toString();
rsl = s.length - s.indexOf('.');
if (rsl  ml) {
ml = rsl;
}
p += nums[i];
}
return Number(p.toFixed(ml));
}


-




On 12/14/2010 12:05 PM, Kerry Thompson wrote:

Adrian Zając wrote:



trace (0.27 + 0.03);   // output --  0.30004

Can anyone tell me why I get this weird result in output window?


As people have said, it's a problem with decimals. It's not a problem 
with

Flash--it's a problem with binary numbers.

Integers are accurate because all integers are a multiple of 1, and 
binary
does just fine with combining 0's and 1's, the only possibile values 
of a

digit in the binary system.

If you think of decimals as fractions, maybe it will help you 
understand the
issue. In binary, a digit can only be a multiple of 2: 1/2, 1/4, 1/8/ 
1/16,

1/32, and so on. You can create numbers that aren't multiples of two by
adding multiple digits. For example, 1/4 + 1/8 = 3/8, or .375.

This works pretty well, until you get numbers with a lot of decimal 
places.

At some point, you will find a decimal that is impossible to make using
powers of 2.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Anthony Pace
Just thinking out loud, but I took a look at the code and I am wondering 
if this would this not be better implemented as a singleton?


On 11/15/2010 6:01 PM, Glen Pike wrote:

Hi,

I would suggest using a keyboard manager class that tracks when 
various keys are pressed and sets a flag - this would effectively 
allow you to Poll such keys when you are checking others.


There is a good example from Richard Lord here:

http://www.richardlord.net/blog/polling-the-keyboard-in-actionscript-3

HTH

Glen

On 15/11/2010 22:43, Benny wrote:
In an application I am building I need to detect whether the (right) 
alt-key

was pressed in combination with another (letter) and make sure that the
control key isn't being pressed at the same time.

But it looks like the Keyboard events for both MOUSE_DOWN and MOUSE_UP
always return true for ctrlKey (when it is not actual pressed!) while 
the

Alt key is pressed.

Simplified test code:

import flash.events.KeyboardEvent;

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);

function onKeyDownHandler(e:KeyboardEvent):void
{
trace(onKeyDown: e.ctrlKey= + e.ctrlKey + , e.altKey= +
e.altKey);
}

function onKeyUpHandler(e:KeyboardEvent):void
{
trace(onKeyUp: e.ctrlKey= + e.ctrlKey + , e.altKey= + e.altKey);

}

When I test the code (tested on 2 PC's with Flash 10 or 10.1 Debug 
player in

Flash pro CS5 or via same version debug players in MSIE/FF browsers) and
press only the right alt key or a key combi e.g. right-alt-5 the traces
report always true for the ctrlKey, so even when it isn't pressed!?

I checked the Adobe bug base, tried Google, but didn't find anything 
related

so far.

What am I missing?

Thanks.

- Benny

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash to Powerpoint

2010-10-24 Thread Anthony Pace

 Use VB, and embed the control,
have the control load your swf,
have your swf load the data.

Did it years ago and it worked fine.

On 10/22/2010 11:47 AM, Lehr, Theodore wrote:

I want to do it dynamically... the data in the movieclips will be changing


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Friday, October 22, 2010 11:36 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash to Powerpoint

You could always go the oldschool route of taking screenshots and pasting on
the slide(s).






On Fri, Oct 22, 2010 at 10:40 AM, Lehr, Theodore
ted_l...@federal.dell.comwrote:


Anyone have a link to a tutorial or something that gives siome guidance on
how to create a powerpoint presentation from Flash - like I want to click a
button and then be given a prompt to open or save a pps - and the
presentation would be made up of, say, an image (object) on each slide

No - I have not googled yet but I will :-)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Inheritance and abstract classes

2010-09-24 Thread Anthony Pace
 Well, although it is good to know the accepted lingo, and although I 
must say Juan's post was an enjoyable read, I do have to say that it 
supports my point, and Jason's post illustrated exactly what I was saying.


(...continuing my IMove example, which was most definitely not as clear, 
but is what you were describing with your collision detection example)
I believe an interfaces only real usefulness is in the ability to make 
sure it conforms without having to a bunch of checks.  Because you could 
have thousands of different animals, like cat, dog, human, etc., but 
unless using * as the type


e.g.
makeItJump (obj:*){/*code to test if it can jump goes here, and then 
code to make it jump*/}
makeItRun(obj:*){/*code to test if it can run goes here, and then code 
to make it run*/}


and then checking that the object was in a list of objects allowed to 
use makeItJump, or testing if the passed object had the required 
methods, it can only type check against one type at a time; yet, an 
interface can allow all animals that have the IMoveable interface cat, 
dog, human, rodent, etc.. without having all that code


e.g.
makeItJump(obj:IMove){/*code to make it jump goes here*/}
makeItRun(obj:IMove){/*code to make it run goes here*/}

which, is obviously better; yet, by just looking at it, it seems that it 
should be has-a, because you are testing if it has the capability to do 
something, or has-a given interface.  Therefore, considering you are 
essentially asking if it's capable, I think the logic for the accepted 
lingo is screwy.


Unless you are just trying to get across that it is-an object that is 
movable, I still think that the usage of is-a has-a as descriptions is 
non-sense.


I-am Anthony
Anthony is-a Human
Anthony has-a voice because he implements the voicebox interface

But Anthony just has to be difficult and different, so please excuse him.

On 9/23/2010 10:37 PM, Anthony Pace wrote:

 On 9/23/2010 3:51 PM, Henrik Andersson wrote:
you say Picture IS-A IDrawable. 
Despite what the naming conventions are, since the only thing, IMHO, 
that interfaces are useful for, is determining if the object being 
passed to a method complies and has methods/properties that can be 
used, without having to write code to check if the object being passed 
actually has all the desired methods/properties.


e.g.  According to my understanding:
human, cat, dog  are different objects, but they all have an 
IMoveAround interface
So I know If I pass one of the objects to a method that it can use the 
blueprints defined by the interface without something breaking, and 
have each walk,crawl, Jump, etc... in their own way.


so shouldn't it be has-a?  or it-has? or they-have? or is-able?

Maybe I am not experienced enough with solid OOP, but that's the way I 
am understanding things right now.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Anthony Pace

 On 9/23/2010 3:51 PM, Henrik Andersson wrote:
you say Picture IS-A IDrawable. 
Despite what the naming conventions are, since the only thing, IMHO, 
that interfaces are useful for, is determining if the object being 
passed to a method complies and has methods/properties that can be used, 
without having to write code to check if the object being passed 
actually has all the desired methods/properties.


e.g.  According to my understanding:
human, cat, dog  are different objects, but they all have an IMoveAround 
interface
So I know If I pass one of the objects to a method that it can use the 
blueprints defined by the interface without something breaking, and have 
each walk,crawl, Jump, etc... in their own way.


so shouldn't it be has-a?  or it-has? or they-have? or is-able?

Maybe I am not experienced enough with solid OOP, but that's the way I 
am understanding things right now.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Apple changes their guidelines

2010-09-16 Thread Anthony Pace
 I have to say that the restriction that says you cannot download code 
is ridiculous; for, the language in their public statement is just too 
ambiguous.


If interpreted differently it could mean:
-no more web services, as this is code you download and parse to get data
-no embedding a browser into your application, or web ads for that matter
-images/sound/assets of any type are just sequences of code interpreted 
to do something specific

-no connecting to the net at all

IMHO, Apple has actually messed up on this one again.

On 9/9/2010 9:46 AM, Henrik Andersson wrote:

http://www.apple.com/pr/library/2010/09/09statement.html
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] pdf encoders

2010-08-24 Thread Anthony Pace

 Hi Guys,

Thanks for the suggestions.  Right now as I have a limited time, I am 
authenticating the users, grabbing the data from mysql, outputting it as 
SVG and HTML, and then converting it to pdf, I have decided to continue 
using TCPDF.  After a few revisions most of the bugs I have complained 
about were fixed, and I have created custom (hackish) workarounds for 
those that would just take too long to wait for.  In addition to the bug 
fixes, after a few server reconfigurations, including increasing 
available memory and allotted processing power, everything is working 
quite well.  It's only a few thousand PDFs in total per run, plus what 
the Reps and clients will be having generated on demand, so a few server 
instances running simultaneously can take care of that in very little time.


OT: As the client uses illustrator (I told them they should look into 
inkscape), I also found a bug with Illustrator's SVG import/export 
features too and reported it to Adobe; yet, even though this is a simple 
bug to fix, I am not holding my breath to hear back from their devs.  It 
is funny that one guy can fix tons of bugs; yet, a team at Adobe won't 
fix it, even if it's a security issue, for months.  Open source rocks.  
I am going to donate a little to the TCPDF project cause the guy has 
been so amazing.


Thanks,
Anthony

On 8/23/2010 12:25 PM, Glen Pike wrote:
 OT: No experience scripting Open Office, but in my experience using 
it, the PDF exporter sucks.  I normally install a PDF printer like 
CutePDF and use that to render my PDF's as the OO one can't seem to 
render my documents without nasty artifacts, jaggy fonts and just poor 
quality overall.


On 23/08/2010 17:15, Alexander Farber wrote:

Maybe script it with Openoffice?

On 8/20/10, Glen Pikepostmas...@glenpike.co.uk  wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detect player version that was published

2010-08-24 Thread Anthony Pace
 I wasn't going to suggest a known bug, I was just going to suggest 
looking for features that were included in a revision; yet, I like yours 
better.


On 8/24/2010 10:14 AM, Henrik Andersson wrote:
You could test for a known bug that for backwards compability is still 
kept in new players.


Test if calling gotoAndStop actually instantiates the timeline 
instances right there or if it is delayed. 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] pdf encoders

2010-08-20 Thread Anthony Pace
 I am sending this here just cause  I think it's likely some developers 
here have had to work with PDF output.


I know about alivePDF, which is great; yet, from what I have it's just 
not ideal for generating hundreds of PDF files in a row right now.  For 
several PDFs here or there, alivePDF would be okay; however, I need at 
least dozens per minute, plus some security to limit users, so something 
on the server side would be best.  Does it even have user security 
features? (e.g. encryption, or  no printing at a dpi higher than 
specified)  I know they can be bypassed, but I am not trying to make it 
impossible; just not practical.


I know I already mentioned TCPDF (offshoot of fpdf); however, I need 
something really stable and really fast, which tcpdf, although feature 
rich, just isn't.  I do have to say, that when I submit a bug report to 
Nicola Asuni, the guy that does most of the development, it gets fixed 
in a couple days; yet, there are just too many at this point, and the 
speed is so slow, that it just won't work for my needs.


Any suggestions?  Oh yes, I need it to be opensource, and the client is 
not interested in paying a license; therefore, PDFlib is out of the 
question.  Maybe, something in Perl if it's really easy to use? But, I 
would prefer PHP; cause it would integrate better with everything else I 
have done.


Thanks in advance,
Anthony
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Printing multiple objects

2010-08-13 Thread Anthony Pace
 Just print a parent sprite that encapsulates the children you are 
laying out.


On 8/13/2010 12:30 PM, Lehr, Theodore wrote:

I am using the code at:

http://stackoverflow.com/questions/1422259/as3-using-printjob-to-print-a-movieclip

I am using it to print a Sprite that is holding some other objects I am 
wondering is there a way I can use this code to print multiple sprites - and 
also be able to move the and lay them out differently for the printed page?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FITC Excuses

2010-07-31 Thread Anthony Pace

 Truth about FITC:

cons:

-The workshops, even though they should be included, are overpriced.
-Not enough technical presentations
-Most of the presenters are just trying to build up their reputations, 
by telling you what they did, without actually telling you how to do 
anything.
-Not sure which one it was, cause I am not going off of my note, but 
when I talked to people that rented booths, it is not a great place to 
have a book stand that competes with the event's 'official' FITC bookstand.
-Rooms can get cramped during a decent presentation; yet, that can be 
said about almost any conference.
-had to wait forever for the chartered buses to actually take you to an 
after party, and it's just better to take a Cab.
-not much swag in the default FITC grab bag; however, RED5 gave me 5 
shirts in total, and I think I still have them.
-Beware of vapour ware.  E.g. Saffron, was supposed to be released by 
the dude that runs http://www.levelofindustry.com  (why they got this 
guy to present I will never know; his session was a complete waste of 
time.. thank goodness I only caught the last 10 min.)

-It seemed like all the cool presentations were held at the same time.
-If you are trying to recruit a real artist, you might have a hard time 
according to the dude at the Massive Black booth.  He said it was a 
waste of time going; for, very few people had an education related to 
fine art, or any talent with a pencil.  ( OT... I find it funny that in 
most Universities, even though the jobs these days are paying more if 
you have classical training, there is still such a focus toward layout, 
so called modernism, or the gestalt of it all, rather than focus on 
drafting, calligraphy, life art,  and anatomy)


Pros:

-Great place to look for jobs
-Great place to meet those bloggers you've been following
-Great place to market yourself period, and quite possibly capture a few 
contracts
-Decent after parties, and if you happen to decide to something outside 
the official FITC itinerary, there are a ton of clubs and bars (with or 
without live music), all over Toronto.
-Occasionally a presentation is a little inspiring; even if it doesn't 
go into detail.
-When there is a technical session, although it is often too short due 
to delays from the last session, they can occasionally teach you 
something useful.

-A lot of the people are very nice
- I was bought free beer like crazy.



 On 7/13/2010 3:37 PM, Ktu wrote:

Hey list,

I'm trying to convince the C levels why they should drop 3k on sending two
of us to FITC. Currently, they are 'on the fence.' They need convincing that
this event offers more than what we can get locally.

So, who's going? Why? How did you convince your superiors? What are you
looking forward to and why?

I'm personally excited about the Android content, the talk on the evolution
of flash on devices, resource management, mobile performance, and the Flex
intro for Flash Purists



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FITC Excuses

2010-07-31 Thread Anthony Pace
 Beware, the original message has tons of typos.  I should have looked 
it over a second time before posting.


On 7/31/2010 3:20 PM, Anthony Pace wrote:

 Truth about FITC:

cons:

-The workshops, even though they should be included, are overpriced.
-Not enough technical presentations
-Most of the presenters are just trying to build up their reputations, 
by telling you what they did, without actually telling you how to do 
anything.
-Not sure which one it was, cause I am not going off of my note, but 
when I talked to people that rented booths, it is not a great place to 
have a book stand that competes with the event's 'official' FITC 
bookstand.
-Rooms can get cramped during a decent presentation; yet, that can be 
said about almost any conference.
-had to wait forever for the chartered buses to actually take you to 
an after party, and it's just better to take a Cab.
-not much swag in the default FITC grab bag; however, RED5 gave me 5 
shirts in total, and I think I still have them.
-Beware of vapour ware.  E.g. Saffron, was supposed to be released by 
the dude that runs http://www.levelofindustry.com  (why they got this 
guy to present I will never know; his session was a complete waste of 
time.. thank goodness I only caught the last 10 min.)

-It seemed like all the cool presentations were held at the same time.
-If you are trying to recruit a real artist, you might have a hard 
time according to the dude at the Massive Black booth.  He said it was 
a waste of time going; for, very few people had an education related 
to fine art, or any talent with a pencil.  ( OT... I find it funny 
that in most Universities, even though the jobs these days are paying 
more if you have classical training, there is still such a focus 
toward layout, so called modernism, or the gestalt of it all, rather 
than focus on drafting, calligraphy, life art,  and anatomy)


Pros:

-Great place to look for jobs
-Great place to meet those bloggers you've been following
-Great place to market yourself period, and quite possibly capture a 
few contracts
-Decent after parties, and if you happen to decide to something 
outside the official FITC itinerary, there are a ton of clubs and bars 
(with or without live music), all over Toronto.
-Occasionally a presentation is a little inspiring; even if it doesn't 
go into detail.
-When there is a technical session, although it is often too short due 
to delays from the last session, they can occasionally teach you 
something useful.

-A lot of the people are very nice
- I was bought free beer like crazy.



 On 7/13/2010 3:37 PM, Ktu wrote:

Hey list,

I'm trying to convince the C levels why they should drop 3k on 
sending two
of us to FITC. Currently, they are 'on the fence.' They need 
convincing that

this event offers more than what we can get locally.

So, who's going? Why? How did you convince your superiors? What are you
looking forward to and why?

I'm personally excited about the Android content, the talk on the 
evolution
of flash on devices, resource management, mobile performance, and the 
Flex

intro for Flash Purists



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2010-07-12 Thread Anthony Pace
 I was looking through a specific response to a question I'd asked in 
the past, when I saw that I hadn't noticed your statements.  Although it 
may appear stupid to reply now, considering that I have just read the 
message, I will still try.


Most of the grant money for University level RD, comes from the people, 
through tax dollars, donations, and student tuition; therefore, I ask 
you, why should the people pay a second time, and possibly be forced 
into the poorhouse, in order to have the privilege of being educated?  
Why should education not be free or, at the very least, affordable?


Your stance seems to suggest that charging for access to information on 
a sliding scale based on quality, as a means of stimulating the economy, 
is not only a positive notion, but the only notion that could possibly 
work; yet, I suggest that their are tax dollars which could be better 
put to use funding NFP publishing companies that can disseminate 
information freely or cheaply.  In a properly run NFP publishing house, 
that has a decent amount of funding, the designers, copy editors, and 
authors that you mentioned can all be compensated.  (before you suggest 
that funding would be impossible, think about various web models first)


As well, in addition to most of the important people you mentioned still 
being employed and in the loop under an NFP umbrella, providing free 
access to information can actually help stimulate the economy, and allow 
for a more even distribution of wealth; for, it provides those, that 
would not normally be able to afford access to information, an avenue of 
possibility for competing effectively with the rich.


Okay, so you may never agree with my viewpoints about free access to 
information and education, 'cause you may very well have money; however, 
I am sure that most of the 77.72 % of High-school graduates, eligible to 
attend college but unable to progress due to financial reasons, would 
tend to have opinions in line with my own.


With regard to the profit from and satisfaction + delivery to the market...

You say there isn't a market; therefore, I suggest, considering you 
claims that the costs of production and printing are so high, that 
different avenues of distribution be found, and that the companies that 
publish start to make efforts to actually develop a market for their 
materials.  I must also put toward you the question, if there is so 
little profit to be made, then why do they continue? from my 
perspective, considering my Aunt owns a publishing house in Scotland, it 
is due to the fact that although the Author may not see a ton of the 
profit, those in distribution do.   A great many books that provide 
small profits, end up equalling to a gigantic profit overall; therefore, 
a cost reduction to enhance sales over the long term is possible, but is 
absolutely undesirable in the short term.


I am not saying that the costs should be reduced to unlivable standards, 
and not to the point where competition drives the delivery of a poor 
product; yet, I am suggesting that the costs for the consumer can, and 
should, be reduced to affordable levels while keeping quality high.  
Large publishing houses, could use some of that stored capital toward 
publishing a more vast amount of materials at the same time, because 
although the profits will not be as large, the costs as long as quality 
is kept high, will be offset by the fact, again, that a large amount of 
small profits put together equal a large profit overall.  I must also 
state that, from experience, the better the quality and lower the cost 
of the product you provide, the less support calls you need to take, and 
the less money required to be put toward customer support.  Right now I 
manage a small business that is competing quite effectively in a highly 
saturated market, specifically because we chose to reduce the costs for 
the consumer while at the same time increasing the quality of service; 
therefore, I know what I suggest is possible, especially since the 
concepts are not new, extremely basic, and very easy to implement.


Now, before I am done my rant, I must again state I have not stolen a 
book, because I am a great fan of going to libraries, in person or 
online, and of purchasing materials that I need to use consistently 
(goes for software too, because the coders I know work bloody hard); 
yet, I can most definitely turn a blind eye to others doing it when I 
feel the company is gouging the consumer.


Anthony
P.S. 30hrs max allowed at most chains in Canada as a means to avoiding 
additional health insurance costs to the company, multiplied by $10.25 
our new minimum wage in Ontario, is equal to $13,543.53 after tax... in 
other words your flipping burgers statement is BS, and I would love it 
if people with money would stop spouting this nonsense.


On 11/20/2009 5:17 PM, al...@cyberiantiger.biz wrote:

book.  (e.g. advanced computer engineering, physics topics, biomed,
  journals, or 

Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-23 Thread Anthony Pace

On 6/18/2010 1:07 PM, kennethkawam...@gmail.com wrote:

I wasn't reading your post properly :) Have you tried (?P=name) ? (or
you may want try \n)
   
oops, sorry for not getting back to you.  Thanks for the response.  I 
figured it out too by looking in the docs.


Having to type the stupid  P after the ? is what got me for a few minutes.

(?Pname)   \kname  worked fine for me; yet, why ?Pname ? is it an 
allusion to python cause they did it first? if so why not use \gname 
which does not seem to work?


Is that, the allusion to Python, the reason why I can't get alternating 
with groups of the same name, the .net way, to work either?


e.g. trying to specify only dates that fall into Pisces from
dob='feb/22/1980'
dob='mar 22 1922'
dob='nov 11 1988'
dob='mar/12/1956'
dob='feb 21 82'
dob='mar/12/1956'

This won't work even with the P, because python doesn't allow groups of 
the same name even in a logical OR alternation:

(?:dob='(?:(?Pmonthfeb)(?:\s|/)(?Pday2[0-9]|19)|(?Pmonthmar)(?:\s|/)(?Pday[0-1]?[0-9]|20))(?:\s|/)(?Pyear\d{2,4})))

and this is the best alternative I could come up with; yet, then again, 
I am obviously in dire need of work with regex

(?:dob='(?Pmonthfeb|mar)(?:\s|/)(?Pday(?=feb(?:\s|/))(?:19|2[0-9])|(?=mar(?:\s|/))(?:1?[0-9]\b|20))(?:\s|/)(?Pyear(?:\d\d){1,2})')
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread Anthony Pace
I know you can have named groups, but are there named group back 
references in AS3?  if so, do you have any examples of it working? it 
isn't working for me if I try \kname, \name


The funny thing about this situation is that I know that you can access 
them after exec of a regex, and I wonder why they would allow one way of 
using them and not the other?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] multi-touch through JS in Safari on Mac?

2010-06-13 Thread Anthony Pace
Well, to answer my own question, I looked at the safari developer docs 
and it is possible, and probably pretty easy; yet, I don't have a Multi 
touch input, that sends native OS mouse events, to try it out.



On 6/12/2010 6:21 AM, Anthony Pace wrote:
I know 10.1 does not have access to the touch API through safari on 
the Mac; yet, as I don't have a Macbook, or a muti-touch mouse, I was 
wondering, does the browser, on a Mac, give JS access to the touch API 
like it does for the iphone?  If so, it would be easy to take 
advantage of it through JS and pass the needed data to as3.



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] multi-touch through JS in Safari on Mac?

2010-06-12 Thread Anthony Pace
I know 10.1 does not have access to the touch API through safari on the 
Mac; yet, as I don't have a Macbook, or a muti-touch mouse, I was 
wondering, does the browser, on a Mac, give JS access to the touch API 
like it does for the iphone?  If so, it would be easy to take advantage 
of it through JS and pass the needed data to as3.



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] If a URL starts with “http: //” will clip always be loaded into REM OTE sandbox?

2010-06-07 Thread Anthony Pace
Oops... Geeze...sorry... realized you were talking about swf files and 
not images...posted this after working for 43 hours straight.


For images it is just using javascript and canvas to grab Pixel info 
from your image, and then send it to flash using ExternalInterface.


In your case, with an swf, you could just download the file to a 
webserver with a crossdomain policy file allowing you access, and then 
serve it up once it is completely downloaded.



On 6/7/2010 12:16 AM, Pavel Repkin wrote:

Anthony, thank you!
How is it possible?


On 6 June 2010 19:50, Anthony Paceanthony.p...@utoronto.ca  wrote:

   

You can bypass this with javascript, and canvas.


On 6/5/2010 1:58 PM, Henrik Andersson wrote:

 

Pavel Repkin wrote:

   

Seems to be a question for a Flash security guru.

Suppose we are loading an external SWF movie with
MovieClipLoader.loadMovie(url:String) Is it safe to assume that if url
starts with http://;, the movie will be loaded in REMOTE sandbox?


 

Yes

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface with looped parameters

2010-06-06 Thread Anthony Pace
What you are suggesting, is almost the same as I suggested, except that 
you are avoiding the xml object and instead using a string; however, 
because of how a string is converted when passing the data, I wouldn't 
recommend it for anything too complex.


On 6/6/2010 7:13 AM, Ashim D'Silva wrote:

The last 2 weeks were crazy and I completely lost track of this so I
apologise for not responding to the answers (cheers though!). We
couldn't find a solution so we used an array instead, but the idea was
this.

I have:

var objs:Array = [1, 2, 3, 4, 5]; // arbitrary length defined by the
number of parameters I receive from the XML.

I want to pass it to javascript like this:

ExternalInterface.call('jsFunc', objs[0], objs[1], objs[2], …);

so that the JS can use whatever params are provided.

I realise now however, that passing an Array (or name-value pairs) is
a far more stream-lined method of achieving this, but I'm still
curious if I could in fact build a function in a loop and then call it
after. Interpretive languages could possibly handle this real easily,
but is there an interesting workaround?

Maybe something like:

var st:String = function() { jsFunc(;
for each(var i:String in objs)
{
st += i+, ;
}
st+=);;

ExternalInterface.call(st);

It's reaching for stupidity because I lose the beautiful automatic
Array conversion that AS3 does, but curiosity has the better of me at
the moment.

Cheers,

Ashim

The Random Lines
www.therandomlines.com




On 28 May 2010 22:13, Anthony Paceanthony.p...@utoronto.ca  wrote:
   


If you want an array from javascript to actionscript

somewhere in your class put something like:

 ExternalInterface.addCallback('SWFReceiver', as3Receiver);

but remember that you need a receiver in as3:

 public function as3Receiver(a:Array /*or object, or *, etc...*/):void {
  //do something with your array
 }

then in js:

var swfo = document.getElementById('idOfYourSwfElement');
swfo.SWFReceiver(yourArrayObject);


if you want an array from AS3 to javascript


var dataScript:XML= new XML(![CDATA[ function(){ jsReceiver([+
formattedArrayAsString +]);} ]]);
ExternalInterface.call(dataScript);



On 5/26/2010 3:07 AM, Ashim D'Silva wrote:
 

This seems fairly impossible but if there's an awesome way to do it
I'll be heaps grateful.

I receive a function name and a set of parameters via XML

analytics
function
namewebtrends/name
params
param98780/param
paramJoseph/param
paramIceland/param
/params
/function
/analytics

I'm hoping there's a way for me to fire an ExternalInterface.call()
function with any amount of parameters provided to me.
I'm one step away from telling the other side I'll send them an array,
but hoping for the long shot.

Cheers,

Ashim

The Random Lines
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] If a URL starts with “http: //” will clip always be loaded into REM OTE sandbox?

2010-06-06 Thread Anthony Pace

You can bypass this with javascript, and canvas.

On 6/5/2010 1:58 PM, Henrik Andersson wrote:

Pavel Repkin wrote:

Seems to be a question for a Flash security guru.

Suppose we are loading an external SWF movie with
MovieClipLoader.loadMovie(url:String) Is it safe to assume that if url
starts with http://;, the movie will be loaded in REMOTE sandbox?



Yes

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface with looped parameters

2010-05-28 Thread Anthony Pace


If you want an array from javascript to actionscript

somewhere in your class put something like:

 ExternalInterface.addCallback('SWFReceiver', as3Receiver);

but remember that you need a receiver in as3:

 public function as3Receiver(a:Array /*or object, or *, 
etc...*/):void {

  //do something with your array
 }

then in js:

var swfo = document.getElementById('idOfYourSwfElement');
swfo.SWFReceiver(yourArrayObject);


if you want an array from AS3 to javascript


var dataScript:XML= new XML(![CDATA[ function(){ jsReceiver([+ 
formattedArrayAsString +]);} ]]);

ExternalInterface.call(dataScript);



On 5/26/2010 3:07 AM, Ashim D'Silva wrote:

This seems fairly impossible but if there's an awesome way to do it
I'll be heaps grateful.

I receive a function name and a set of parameters via XML

analytics
function
namewebtrends/name
params
param98780/param
paramJoseph/param
paramIceland/param
/params
/function
/analytics

I'm hoping there's a way for me to fire an ExternalInterface.call()
function with any amount of parameters provided to me.
I'm one step away from telling the other side I'll send them an array,
but hoping for the long shot.

Cheers,

Ashim

The Random Lines
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as3 ttf encoding lib?

2010-05-25 Thread Anthony Pace
I haven't looked through the code as of yet, so I am not sure if it's 
what I am looking for, but it does look promising.


Thanks for the response.



On 5/24/2010 9:22 PM, mika wrote:

The closest thing I found on that matter is the create font tool of Five3D.
It takes a font file and then render it using vectors

http://five3d.mathieu-badimon.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blocking multiple logins on one computer

2010-05-25 Thread Anthony Pace

Sorry Dave... didn't see it.

On 5/25/2010 12:29 AM, Dave Watts wrote:

What if I have two computers? or what if I visualized the image and ran the
app twice? or what if I snoop the protocol? or what if I etc...  I could
have a thousand sessions from one system and unless you track it in a db on
the server the user is connecting to, you would never know it.
 

I mentioned all that in the message that you quoted.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as3 ttf encoding lib?

2010-05-25 Thread Anthony Pace
Sounds nice, and, now that I know about it, will be very useful to me in 
the future; however, I was hoping there was an as3 lib to compile a ttf 
or other types of font file formats.


Even a java library that compiles to ttf or something open type that 
wouldn't be too crazy to port?




On 5/25/2010 9:56 AM, Glen Pike wrote:

I remember looking at that - it uses JSFL and does the following:

Draws each letter of your font onto the stage in Flash.
Breaks the letter apart - so it becomes a shape.
Grabs the path of the shape.
Turns the shape into commands for drawing the character using the 
Five3D engine - which uses the flash drawing API to do curves and 
lines...


Nice...


On 25/05/2010 14:10, Anthony Pace wrote:
I haven't looked through the code as of yet, so I am not sure if it's 
what I am looking for, but it does look promising.


Thanks for the response.



On 5/24/2010 9:22 PM, mika wrote:
The closest thing I found on that matter is the create font tool of 
Five3D.

It takes a font file and then render it using vectors

http://five3d.mathieu-badimon.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as3 ttf encoding lib?

2010-05-25 Thread Anthony Pace

Hi Glen,

Looking through the source right now... this actually looks promising.

Thanks,
Anthony

On 5/25/2010 4:35 PM, Glen Pike wrote:

Even better (link from fontforge homepage on sourceforge):

http://doubletype.org/wiki/index.php/DoubleType

Anthony Pace wrote:
Sounds nice, and, now that I know about it, will be very useful to me 
in the future; however, I was hoping there was an as3 lib to compile 
a ttf or other types of font file formats.


Even a java library that compiles to ttf or something open type that 
wouldn't be too crazy to port?




On 5/25/2010 9:56 AM, Glen Pike wrote:

I remember looking at that - it uses JSFL and does the following:

Draws each letter of your font onto the stage in Flash.
Breaks the letter apart - so it becomes a shape.
Grabs the path of the shape.
Turns the shape into commands for drawing the character using the 
Five3D engine - which uses the flash drawing API to do curves and 
lines...


Nice...


On 25/05/2010 14:10, Anthony Pace wrote:
I haven't looked through the code as of yet, so I am not sure if 
it's what I am looking for, but it does look promising.


Thanks for the response.



On 5/24/2010 9:22 PM, mika wrote:
The closest thing I found on that matter is the create font tool 
of Five3D.

It takes a font file and then render it using vectors

http://five3d.mathieu-badimon.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] as3 ttf encoding lib?

2010-05-24 Thread Anthony Pace

as3 ttf encoding lib...Does it exist?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blocking multiple logins on one computer

2010-05-24 Thread Anthony Pace
You can prevent more that one login at the same time for the same 
account; yet, you always have to consider an MITM attack being possible 
unless you have a known pre-shared key system.  In your DB, all you need 
to do is keep track of how many users on a given network are connected, 
or attempting to connect on that login.


There is no way to prevent multiple logins from users that have 
different accounts, 100% of the time; for, IP addresses get shared, NAT 
is imperfect, MACs + IPs can be spoofed, and even if your ISP adds 
identifying elements to your packets, a proxy-per-browser can fool you 
almost every time.


On some types of servers, you may want to leverage statistics about user 
interactions with other users and the system, to see if identifying 
patterns emerge; yet, this would all depend on the stats you track and 
your ability to develop learning and pattern recognition systems.  This 
method is great for monitoring systems for gaming, management, 
communications, and financial institutions, and can be extended to many 
other areas; however, you really do need to know what data to track, and 
how to use it, and even if you do, I could easily just modify behaviour 
slightly enough to outsmart the patterns it can recognize.


There is also the method of having someone sit and moderate user 
interaction, to see if someone is using multiple accounts or trying to 
screw with the system, and then enter in variables that made the 
moderator flag the interaction as being unsafe so the server can use it 
to eventually do it automatically; yet, you would need to know how to 
implement a system that can modify the patterns it looks for, if it 
notices it has become too strict.


Sorry about the rant, but I just want to get across that no matter how 
technical you get, there is no perfect method, and you can't do much 
about it, unless you really filter out who can have an account, and what 
information that account is associated with.


E.G.  banks force users to provide id, and there is no way, unless they 
specifically allow it, or fraud was used to gain an additional account, 
that a person could have two accounts and be logged into them at the 
same time.




On 5/22/2010 11:38 PM, Karl DeSaulniers wrote:

Hello Gurus,
Is there a way to block multiple logins on one computer?


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blocking multiple logins on one computer

2010-05-24 Thread Anthony Pace
What if I have two computers? or what if I visualized the image and ran 
the app twice? or what if I snoop the protocol? or what if I etc...  I 
could have a thousand sessions from one system and unless you track it 
in a db on the server the user is connecting to, you would never know it.


On 5/23/2010 10:35 PM, Dave Watts wrote:

Yeah, that should work, as the user will only be able to run one copy
of the app at a time unless you specifically design around that.
   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blocking multiple logins on one computer

2010-05-24 Thread Anthony Pace

I would just spoof the headers.

On 5/24/2010 5:17 AM, kindaian wrote:

On 24-05-2010 3:26, Karl DeSaulniers wrote:

? so... let them cheat is what your saying?

On May 23, 2010, at 4:03 PM, Henrik Andersson wrote:


Karl DeSaulniers wrote:
You could count the different user agent strings. But browsers are 
known to lie about it once in a while.


User agent strings...

http://browserspy.dk/

http://panopticlick.eff.org/

;)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blocking multiple logins on one computer

2010-05-24 Thread Anthony Pace
Damned spell checker... I meant to say or what if I virtualized the 
image and ran the app twice?


On 5/24/2010 8:05 PM, Anthony Pace wrote:
What if I have two computers? or what if I visualized the image and 
ran the app twice? or what if I snoop the protocol? or what if I 
etc...  I could have a thousand sessions from one system and unless 
you track it in a db on the server the user is connecting to, you 
would never know it.


On 5/23/2010 10:35 PM, Dave Watts wrote:

Yeah, that should work, as the user will only be able to run one copy
of the app at a time unless you specifically design around that.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] flash cs5 any good for coding? if not is it any good at all?

2010-05-18 Thread Anthony Pace
I haven't had call to download a trial as of yet, so I am hoping to get 
some viewpoints.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] SIP library in as3 for player 10.1

2010-05-05 Thread Anthony Pace

Anyone know of a working SIP library in AS3 for player 10.1?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-30 Thread Anthony Pace

On 4/29/2010 10:18 AM, David Hunter wrote:

i know there has already been a lot of talk about flash and iphones/ipads and 
developer agreements on this list and i don't wish to add unnecessarily or 
stoke up the fire again but i thought this might be a worthwhile read for all 
from the man at the centre of it all: 
http://www.apple.com/hotnews/thoughts-on-flash/ 
   
_
http://clk.atdmt.com/UKM/go/195013117/direct/01/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


After complaining for years that developers needed access to the raw 
audio data from the mic, that we are just finally seeing progress in 
10.1.  The lack of feature support in their tools, the bugs they have 
had for years with unloading objects, and the performance issues the 
player has, all make it so Adobe has almost no legs to stand on; for, as 
Steve Jobs' said:


We cannot be at the mercy of a third party deciding if and when they 
will make our enhancements available to our developers.


However, although the above is most definitely true, Apple is forcing 
users and developers into a world with one standard and one figure head 
to dictate all measures.  Plainly put, apple is being too big brother 
about this.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Strange RegExp behaviour

2010-03-19 Thread Anthony Pace

Johnathan:

if there are  6 items on the stage, numChildren = 6 but to access the 
6th item you need to be at position [5]  of the array, so for ease of 
implementation he used:


this.numChildren-1

My test showed that it if he has some screwed up object that does not 
match his regex, it will not show, so that is why it shaved one off when 
tracing.  It still went through the entire array, it just chose not to 
output what it didn't like.


I would also like to point out that I changed the loop conditional 
expression to see if the counter childnum!=-1 , meaning that if there 
were 6 items on the stage, that position 5, 4, 3, 2, 1, and 0 would be 
checked, but it would not go further.


So again, the code I tested does work fine, and if you want to be sure, 
you can even trace out the childnum value before or after the if 
statement in the loop, to see how far it goes.


On 3/19/2010 9:39 AM, jonathan howe wrote:

Just so there is no confusion... that is not the only change you would have
to make. When you do the getChildAt call you'll need to adjust by one for
the index at that time.

I could see why Jiri would have to do this technique if he was handed a
bunch of Stage-authored content from another party and had to access it
somehow.

-jonathan



On Fri, Mar 19, 2010 at 9:34 AM, jonathan howejonathangh...@gmail.comwrote:

   

I think Jiri wants all clips, not all but one. You've repro'd the last one
not showing up.
Jiri, why are you shaving 1 off your numChildren? I'ts a count, not an
index.

Try

var childnum:int=this.numChildren;

instead.

-jonathan


On Thu, Mar 18, 2010 at 8:20 PM, Anthony Paceanthony.p...@utoronto.cawrote:

 

While I really don't understand why you would want to do things this way,
but...

I tested this code below, with several clips on the stage:
sq_1, sq_12, sq_122, sq_1222a, sq_1212_1212, sq_6dad_12, sq_6d_6d

it worked fine and outputed the obvious results:
sq_1
sq_12
sq_122
sq_1212_1212
sq_6dad_12

var childnum:int=this.numChildren-1;
var pat:RegExp=/_[0-9]+$/;
var instance:DisplayObject;
while (childnum!=-1) {
instance = this.getChildAt(childnum);

if (pat.test(instance.name)) {
trace(instance.name);
}
--childnum;

}


On 3/18/2010 2:08 PM, Jiri wrote:

   

Hello,

i would like some help, because I am confused.

If have a Movieclip that holds several sprites some of them have instance
names like so
frame_n  where n is a number.

I then loop through every child of the MovieClip and test the instance
name using regExp.

var childs:int = clip.numChildren-1;
var pat:RegExp = /_[0-9]+$/ig;

while(childs= 0){
var instance:DisplayObject = clip.getChildAt( childs );

if( pat.test(instance.name) ){
Logger.debug( info box frame , instance.name );
}
childs--
}

I have three movieclips called 'frame_0' , 'frame_1' and 'frame_2'  for
sure, but it when I run the above code, it only show 1 and 0??

Anybody has an idea?

Jiri

On 11/03/2010 22:16, Guest Services, City Concierge wrote:

 

We're looking for a coder to some small contract work
We're in Los Angeles
Should know action script very well, and be able to get the flash
scripts to
work in .asp and .php and use XML
Ask for Jefferson
323-874-6610


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
   

Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   



--
-jonathan howe

 



   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recursive:Part II

2010-03-19 Thread Anthony Pace
Jason beat me to the punch on this one, but, I was going to say too, in 
all seriousness that this doesn't work if each child has two parents; as 
well, having step parents is another ball game too.


Take for example if a person has 6 kids with another person, than in 
your model, each person, would have to have 6 kids underneath them, and 
that would duplicate a ton of data, which with regard to bandwidth 
concerns can be a problem when you are breaking down a family tree.  
Just imagine a scenario where my six kids, each have six kids, that have 
six kids, but now you have to duplicate that under the second parents, 
and you will see what I mean.


The best way to do this for two parents, is to have each person be an 
individual, and give them a motherId and fatherID.


If there are no IDs it's an orphan, and the start of a new tree.



On 3/19/2010 4:07 PM, Merrill, Jason wrote:

I would write the XML this way instead:

people
 person firstName'Bob lastName=Smith
   person firstName=Timmy lastName=Smith /
   person firstName=Jenny lastName=Jones
person firstName=Sal lastName=Stephens /
/person
 /person
 person firstName=Tom lastName=Williams
.etc.

Also, recursive functions call themselves - and then break when some
value or condition is reached for yours, add to your object, and
then check to see if there are child nodes in the xml below it, if so,
call the function again to add more, if not, break out of the function.
However, this will only get you through the top level nodes and one of
the top level nodes's sub nodes - not the others - I actually can't
think of how to get into the OTHER sub-nodes - though I know there are
people on this list who do. I know what some people do is make the first
pass on the first level, then the second pass on the second, and so on,
adding to the object as they go.  Don't ask me to send you an example
though.

Recursive functions are also quite hard to wrap your head around. :)

Jason Merrill

Bank of  America  Global Learning
Learning  Performance Solutions

Join the Bank 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 Lehr,
Theodore
Sent: Friday, March 19, 2010 3:54 PM
To: Flash Coders List
Subject: [Flashcoders] Recursive:Part II

So I have this xml:

allPeople
 person
   personFirstNameBob/personFirstName
   personLastNameSmith/personLastName
   person
personFirstNameTimmy/personFirstName
personLastNameSmith/personLastName
   /person
   person
personFirstNameJenny/personFirstName
personLastNameSmith/personLastName
   /person
 /person
 person
   personFirstNameTom/personFirstName
   personLastNameWilliams/personLastName
   person
personFirstNameSa/personFirstName
personLastNameWilliams/personLastName
   /person
 /person

To start I am just trying to recursively go through this to grab the
first names. I am trying:

createPeople(peopleXML)

function createPeople (_xml:*):void
{
   var xmlList:XMLList-_xml.children();

   for each (var fn_xml in xmlList) {
createChart(fn_xml);
trace(item_xml);
}
}


I am wondering - am I on the right track? Does the xml look well-formed
for doing what I am trying to do?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Bezier curve arrows

2010-03-18 Thread Anthony Pace

Hi Pual,

I just noticed that I had already written something, but it didn't get 
sent to the list before the question got answered.


Oh well...anyways:

To find the angle, you have to find the slope of the tangent at that 
point of the curve; however, this is really easy because with bezier 
curves you already know the tangents for the end points.


the control points for the cage of a bezier are:
A(the beginning point that you will be curving from)
B(the middle)
C(the end point you curved to)

the slope of the line AtoB is the slope of the tangent for point A
the slope of the line BtoC is the slope of the tangent for point C

remember that the slope, m = deltaY/DeltaX, rise over run, (y1-y0)/(x1-x0)

Now that you have the slope for each line segment, and since m = tan 
(theta), then arc tan (m) = theta; therefore,
pop in the slope, using Math.atan(m) to get the radian, or Math.atan(m) 
* 180 /Math.PI to get the degree.


You could also use atan2 reducing points by offset, but either way you 
need to use the ctrl points.


Now that you have the degree, if your arrow head are dynamically 
generated you know how what to translate the points by; however, if they 
are shapes than with the registration point located at the arrow head 
tip, then rotating should be a piece of cake from that point.


Hope that helps,
Anthony

On 3/16/2010 12:02 PM, p...@ipauland.com wrote:

I was recently asked if I could add some arrowheads to some actionscript
generated curves. I initially thought Triangle pointing to end point, and that
would be a great solution. I can place a MC at the end of the curve, but how can
I get the right angle to point it to?
  
Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Bezier curve arrows

2010-03-18 Thread Anthony Pace

Oops.  Just noticed how atrocious the writing was.

On 3/18/2010 11:25 AM, Anthony Pace wrote:

Hi Pual,

I just noticed that I had already written something, but it didn't get 
sent to the list before the question got answered.


Oh well...anyways:

To find the angle, you have to find the slope of the tangent at that 
point of the curve; however, this is really easy because with bezier 
curves you already know the tangents for the end points.


the control points for the cage of a bezier are:
A(the beginning point that you will be curving from)
B(the middle)
C(the end point you curved to)

the slope of the line AtoB is the slope of the tangent for point A
the slope of the line BtoC is the slope of the tangent for point C

remember that the slope, m = deltaY/DeltaX, rise over run, 
(y1-y0)/(x1-x0)


Now that you have the slope for each line segment, and since m = tan 
(theta), then arc tan (m) = theta; therefore,
pop in the slope, using Math.atan(m) to get the radian, or 
Math.atan(m) * 180 /Math.PI to get the degree.


You could also use atan2 reducing points by offset, but either way you 
need to use the ctrl points.


Now that you have the degree, if your arrow head are dynamically 
generated you know how what to translate the points by; however, if 
they are shapes than with the registration point located at the arrow 
head tip, then rotating should be a piece of cake from that point.


Hope that helps,
Anthony

On 3/16/2010 12:02 PM, p...@ipauland.com wrote:

I was recently asked if I could add some arrowheads to some actionscript
generated curves. I initially thought Triangle pointing to end 
point, and that
would be a great solution. I can place a MC at the end of the curve, 
but how can

I get the right angle to point it to?
  Paul
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] design patterns by use case

2010-03-18 Thread Anthony Pace
Apparently, according to what I have been reading, I have lately been 
designing everything using a command pattern / composition mix, as it 
seems to come most naturally, and deviating where necessary, without 
knowing the names of any of the patterns I stumble upon; thus, you can 
obviously tell I need work on all my pattern jargon.


What I am looking for is a book, that has common applications broken 
down by best pattern(s) to use for a given section of the application.  
Really a book with detailed use-case scenarios.


I can come up with my own way of doing things; yet, if I am going out of 
the pre-established regions of my repertoire, it takes forever to be 
confident about the path that I am choosing, and I know a pattern(s) per 
use-case book would speed things up.


Any suggestions?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] design patterns by use case

2010-03-18 Thread Anthony Pace

Hi Glen,

Thanks for the suggestion.  Coffee shops are cool, and I love Pizza.

Thanks,
Anthony

On 3/18/2010 1:33 PM, Glen Pike wrote:

Anthony Pace wrote:
Apparently, according to what I have been reading, I have lately been 
designing everything using a command pattern / composition mix, as it 
seems to come most naturally, and deviating where necessary, without 
knowing the names of any of the patterns I stumble upon; thus, you 
can obviously tell I need work on all my pattern jargon.


What I am looking for is a book, that has common applications broken 
down by best pattern(s) to use for a given section of the 
application.  Really a book with detailed use-case scenarios.


I can come up with my own way of doing things; yet, if I am going out 
of the pre-established regions of my repertoire, it takes forever to 
be confident about the path that I am choosing, and I know a 
pattern(s) per use-case book would speed things up.


Any suggestions?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


HFDP is good for giving you examples of where to use patterns 
http://oreilly.com/catalog/9780596007126 most of the examples are 
given as problematic programs / modules first then the pattern is 
introduced and implemented.  If you like coffee shops and pizza then 
you will like the book.  Lots of Java style code too which is similar 
to AS3 in syntax.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Strange RegExp behaviour

2010-03-18 Thread Anthony Pace
While I really don't understand why you would want to do things this 
way, but...


I tested this code below, with several clips on the stage:
sq_1, sq_12, sq_122, sq_1222a, sq_1212_1212, sq_6dad_12, sq_6d_6d

it worked fine and outputed the obvious results:
sq_1
sq_12
sq_122
sq_1212_1212
sq_6dad_12

var childnum:int=this.numChildren-1;
var pat:RegExp=/_[0-9]+$/;
var instance:DisplayObject;
while (childnum!=-1) {
instance = this.getChildAt(childnum);
if (pat.test(instance.name)) {
trace(instance.name);
}
--childnum;
}


On 3/18/2010 2:08 PM, Jiri wrote:

Hello,

i would like some help, because I am confused.

If have a Movieclip that holds several sprites some of them have 
instance names like so

frame_n where n is a number.

I then loop through every child of the MovieClip and test the instance 
name using regExp.


var childs:int = clip.numChildren-1;
var pat:RegExp = /_[0-9]+$/ig;

while(childs = 0){
var instance:DisplayObject = clip.getChildAt( childs );

if( pat.test(instance.name) ){
Logger.debug( info box frame , instance.name );
}
childs--
}

I have three movieclips called 'frame_0' , 'frame_1' and 'frame_2'  
for sure, but it when I run the above code, it only show 1 and 0??


Anybody has an idea?

Jiri

On 11/03/2010 22:16, Guest Services, City Concierge wrote:

We're looking for a coder to some small contract work
We're in Los Angeles
Should know action script very well, and be able to get the flash 
scripts to

work in .asp and .php and use XML
Ask for Jefferson
323-874-6610


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mxml to AS3

2010-03-15 Thread Anthony Pace

Wow... I just noticed I actually got a response to this question.

Thank you very much Paul.  I will be looking into that for sure.

On 3/13/2010 10:05 AM, Paul Andrews wrote:

On 12/03/2010 18:29, Anthony Pace wrote:
I only do this after using catalyst (beta 2) and there is a ton of 
mxml over a thousand lines or so, that I just don't want to have to 
filter through, but so far, what I have been doing is publishing the 
project as an swf, and the using a decompiler to convert it and its 
embedded elements to readable AS3 with class structure intact, and 
then output to a folder that contains the fla and all used classes in 
the usual subfolder tree style.


Using this method makes it so some variables are referred to by their 
location instead of their friendly name, and going after the embedded 
elements can sometimes be time consuming; thus, I am wondering if 
there any other commercial converters out there? or if someone has 
figured out how to use the flex sdk to just do a conversion instead 
of publishing?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



It sounds like you are using catalyst and trying to avoid flex - 
doesn't seem like a viable workflow to me, but anyway..


From the docs:

http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html

keep-generated-actionscript=true|false

Determines whether to keep the generated ActionScript class files.

The generated class files include stubs and classes that are generated 
by the compiler and used to build the SWF file.


When using the application compiler, the default location of the files 
is the /generated subdirectory, which is directly below the target 
MXML file. If the /generated directory does not exist, the compiler 
creates one. When using the compc component compiler, the default 
location of the /generated directory is relative to the output of the 
SWC file. When using Flex Builder, the default location of the 
generated files is the /bin/generated directory.


The default names of the primary generated class files are 
filename-generated.as and filename-interface.as.


The default value is false.

This is an advanced option.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] faster work flows?

2010-03-15 Thread Anthony Pace
I currently use a few methods based on who I am working with or if I am 
on my own

0.pure timeline based animation with some simple scripting
1.Positioning by code of imported assets, after taking all x,y data from 
illustrator or flash (one frame or no frames because I am using 
flashdevelop or the flex IDE)
(I wanted to work with catalyst, but it is proving not to be all that 
useful right now; thus, I am toying with the idea of making my own basic 
tool to do something similar for simple code gen purposes.  I have heard 
a lot of hardcore pros talk about how they did this, so I am hoping it 
will work out for me.)
2.frames on the timeline using the flash IDE to position assets; yet, 
this makes doing transitions between frames more difficult.


Is there a faster way?  Right now everything seems so tedious.  Time I 
should be coding is being spent working with the design to figure out 
x,y, so everything is pixel perfect.


Any tips?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] mxml to AS3

2010-03-12 Thread Anthony Pace
I only do this after using catalyst (beta 2) and there is a ton of mxml 
over a thousand lines or so, that I just don't want to have to filter 
through, but so far, what I have been doing is publishing the project as 
an swf, and the using a decompiler to convert it and its embedded 
elements to readable AS3 with class structure intact, and then output to 
a folder that contains the fla and all used classes in the usual 
subfolder tree style.


Using this method makes it so some variables are referred to by their 
location instead of their friendly name, and going after the embedded 
elements can sometimes be time consuming; thus, I am wondering if there 
any other commercial converters out there? or if someone has figured out 
how to use the flex sdk to just do a conversion instead of publishing?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread Anthony Pace
If you don't mind your stream being downloaded without the required 
branding or possible news event embedded into the video, plus the added 
bandwidth overhead is not a concern, than an overlay is perfect.


If there are branding concerns, or you work for a site that would like 
to reduce bandwidth and send news events cnn style, then you will have 
to know how to modify the stream before you send it to the client.


If new events aren't required, but the branding is, then you really only 
need to do a separate encoding that includes the content.


Ads at cue point, using a number of methods, can easily be told to fire 
based on the time per frame.


On 3/12/2010 12:15 PM, kennethkawam...@gmail.com wrote:

Steady camera motion when shooting initial video would create script
friendly sequence and should save a lot of time later - notes to
myself :)
   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-12 Thread Anthony Pace

I am wondering if you know when to use currentTarget vs target

e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.

and if you are looking to get the child, then make sure not set 
mouseChildren to false.


e.g.  try using this to test what object is actually being targeted.

trace(e.currentTarget.name + is the variable name of the object you 
applied the listener too.);
trace(e.currentTarget + is the symbol instance name of the object you 
applied the listener too.);

//
trace(e.target.name + is the variable name of the object that fired the 
event);
trace(e.target + is the symbol instance name of the object that fired 
the event);


On 3/12/2010 8:09 AM, Susan Day wrote:

On Fri, Mar 12, 2010 at 8:48 AM, Susan Daysuzieprogram...@gmail.comwrote:

   

On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com  wrote:

 

The missing .html thing has to be a simple mistake you're not seeing.
   


I realized you must be right. So I pulled out the pertinent code and have
built a test case. Sure enough, it's working properly. Now I'll figure out
what was breaking it.

 

The problem appears to be that when I mouse over a nav widget it activates a
fn called onMouseOver. When I comment out that addEventListener, then the fn
onPressHandler for the onClick works as desired. So the onMouseOver is
running interference. How do I eliminate the interference? Obviously I need
to add something to the onMouseOver fn, but what? Right now all I do is
re-call the nav fn to change the color of the btn. I tried this with no
luck:

e.currentTarget.removeEventListener(MouseEvent.CLICK, onPressHandler);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseOver);

TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread Anthony Pace
For the first sentence I meant to say that applying an overlay at the 
client is fine, if you are not concerned with your stream being ripped 
without branding, possible cnn style news events, or captions being 
included.


If things need to be live and targeted you will want to do things at the 
server; otherwise, if server load is a concern, and you do not need to 
be changing graphics live, then doing it during encoding and prior to 
uploading the content to the server might be the way to go.


On 3/12/2010 1:48 PM, Anthony Pace wrote:
If you don't mind your stream being downloaded without the required 
branding or possible news event embedded into the video, plus the 
added bandwidth overhead is not a concern, than an overlay is perfect.


If there are branding concerns, or you work for a site that would like 
to reduce bandwidth and send news events cnn style, then you will have 
to know how to modify the stream before you send it to the client.


If new events aren't required, but the branding is, then you really 
only need to do a separate encoding that includes the content.


Ads at cue point, using a number of methods, can easily be told to 
fire based on the time per frame.


On 3/12/2010 12:15 PM, kennethkawam...@gmail.com wrote:

Steady camera motion when shooting initial video would create script
friendly sequence and should save a lot of time later - notes to
myself :)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-12 Thread Anthony Pace

agreed, cause:
MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT, and mouseChildren set to 
false makes it so both target and currentTarget return the object the 
listener was applied to.



On 3/12/2010 2:32 PM, Paul Andrews wrote:

On 12/03/2010 19:13, Anthony Pace wrote:

I am wondering if you know when to use currentTarget vs target


There's even more confusion about what a MouseOver is..




e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.

and if you are looking to get the child, then make sure not set 
mouseChildren to false.


e.g.  try using this to test what object is actually being targeted.

trace(e.currentTarget.name + is the variable name of the object you 
applied the listener too.);
trace(e.currentTarget + is the symbol instance name of the object 
you applied the listener too.);

//
trace(e.target.name + is the variable name of the object that fired 
the event);
trace(e.target + is the symbol instance name of the object that 
fired the event);


On 3/12/2010 8:09 AM, Susan Day wrote:
On Fri, Mar 12, 2010 at 8:48 AM, Susan 
Daysuzieprogram...@gmail.comwrote:



On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com  wrote:

The missing .html thing has to be a simple mistake you're not 
seeing.


I realized you must be right. So I pulled out the pertinent code 
and have
built a test case. Sure enough, it's working properly. Now I'll 
figure out

what was breaking it.

The problem appears to be that when I mouse over a nav widget it 
activates a
fn called onMouseOver. When I comment out that addEventListener, 
then the fn

onPressHandler for the onClick works as desired. So the onMouseOver is
running interference. How do I eliminate the interference? Obviously 
I need

to add something to the onMouseOver fn, but what? Right now all I do is
re-call the nav fn to change the color of the btn. I tried this with no
luck:

e.currentTarget.removeEventListener(MouseEvent.CLICK, onPressHandler);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, 
onMouseOver);


TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-12 Thread Anthony Pace
I just did a quick search on google for the differences better 
explained, and I came up with this:


http://www.wastedpotential.com/?p=10

After a quick glance, it seems like a nice tutorial.


On 3/12/2010 2:32 PM, Paul Andrews wrote:

On 12/03/2010 19:13, Anthony Pace wrote:

I am wondering if you know when to use currentTarget vs target


There's even more confusion about what a MouseOver is..




e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.

and if you are looking to get the child, then make sure not set 
mouseChildren to false.


e.g.  try using this to test what object is actually being targeted.

trace(e.currentTarget.name + is the variable name of the object you 
applied the listener too.);
trace(e.currentTarget + is the symbol instance name of the object 
you applied the listener too.);

//
trace(e.target.name + is the variable name of the object that fired 
the event);
trace(e.target + is the symbol instance name of the object that 
fired the event);


On 3/12/2010 8:09 AM, Susan Day wrote:
On Fri, Mar 12, 2010 at 8:48 AM, Susan 
Daysuzieprogram...@gmail.comwrote:



On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com  wrote:

The missing .html thing has to be a simple mistake you're not 
seeing.


I realized you must be right. So I pulled out the pertinent code 
and have
built a test case. Sure enough, it's working properly. Now I'll 
figure out

what was breaking it.

The problem appears to be that when I mouse over a nav widget it 
activates a
fn called onMouseOver. When I comment out that addEventListener, 
then the fn

onPressHandler for the onClick works as desired. So the onMouseOver is
running interference. How do I eliminate the interference? Obviously 
I need

to add something to the onMouseOver fn, but what? Right now all I do is
re-call the nav fn to change the color of the btn. I tried this with no
luck:

e.currentTarget.removeEventListener(MouseEvent.CLICK, onPressHandler);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, 
onMouseOver);


TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 thousand child objects in a container, but only 1 listener in parent

2010-03-10 Thread Anthony Pace

if I have a thousand objects in in a container,
and each object is on the layer stack of the display list,
what is the best way to find out which child object is being rendered as 
the top most layer at a given x,y position?


I don't want to have a thousand contained objects with a thousand active 
listeners, I only want to have 1 listener in the container monitoring 
for mouse movement, click, releases, etc... and knowing which child 
object the mouse is hovering over/clicking etc...


What is the fastest way to do this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 thousand child objects in a container, but only 1 listener in parent

2010-03-10 Thread Anthony Pace
I guess I should have noted that I also need to know which objects are 
underneath too.


On 3/10/2010 10:38 AM, Anthony Pace wrote:

if I have a thousand objects in in a container,
and each object is on the layer stack of the display list,
what is the best way to find out which child object is being rendered 
as the top most layer at a given x,y position?


I don't want to have a thousand contained objects with a thousand 
active listeners, I only want to have 1 listener in the container 
monitoring for mouse movement, click, releases, etc... and knowing 
which child object the mouse is hovering over/clicking etc...


What is the fastest way to do this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 thousand child objects in a container, but only 1 listener in parent

2010-03-10 Thread Anthony Pace
it is damned obvious that I have to use something like to find out which 
one is at the top... but how am I to tell which ones are underneath?  I 
remember there was a way, but I can't remember what that way was.


import flash.events.MouseEvent;
function eMH(e:MouseEvent){
trace(e.target.name);
};
mainContainer_mc.addEventListener(MouseEvent.MOUSE_OVER,eMH);

On 3/10/2010 10:38 AM, Anthony Pace wrote:

if I have a thousand objects in in a container,
and each object is on the layer stack of the display list,
what is the best way to find out which child object is being rendered 
as the top most layer at a given x,y position?


I don't want to have a thousand contained objects with a thousand 
active listeners, I only want to have 1 listener in the container 
monitoring for mouse movement, click, releases, etc... and knowing 
which child object the mouse is hovering over/clicking etc...


What is the fastest way to do this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 thousand child objects in a container, but only 1 listener in parent

2010-03-10 Thread Anthony Pace
I meant to say that: it is damned obvious that you should use something 
like the code beneath if all I am interested in is the top most child:


import flash.events.MouseEvent;
function eMH(e:MouseEvent){
trace(e.target.name);
};
mainContainer_mc.addEventListener(MouseEvent.MOUSE_OVER,eMH);

But I am also interested in which children are underneath...  how do you 
go about doing that in AS3?  if I don't get a response I will repost as 
a different topic.


On 3/10/2010 11:39 AM, Anthony Pace wrote:
it is damned obvious that I have to use something like to find out 
which one is at the top... but how am I to tell which ones are 
underneath?  I remember there was a way, but I can't remember what 
that way was.


import flash.events.MouseEvent;
function eMH(e:MouseEvent){
trace(e.target.name);
};
mainContainer_mc.addEventListener(MouseEvent.MOUSE_OVER,eMH);

On 3/10/2010 10:38 AM, Anthony Pace wrote:

if I have a thousand objects in in a container,
and each object is on the layer stack of the display list,
what is the best way to find out which child object is being rendered 
as the top most layer at a given x,y position?


I don't want to have a thousand contained objects with a thousand 
active listeners, I only want to have 1 listener in the container 
monitoring for mouse movement, click, releases, etc... and knowing 
which child object the mouse is hovering over/clicking etc...


What is the fastest way to do this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 thousand child objects in a container, but only 1 listener in parent

2010-03-10 Thread Anthony Pace

Awesome... Thank you Glen.  I knew I wasn't imagining things.

On 3/10/2010 11:48 AM, Glen Pike wrote:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#getObjectsUnderPoint%28%29 



Anthony Pace wrote:
it is damned obvious that I have to use something like to find out 
which one is at the top... but how am I to tell which ones are 
underneath?  I remember there was a way, but I can't remember what 
that way was.


import flash.events.MouseEvent;
function eMH(e:MouseEvent){
trace(e.target.name);
};
mainContainer_mc.addEventListener(MouseEvent.MOUSE_OVER,eMH);

On 3/10/2010 10:38 AM, Anthony Pace wrote:

if I have a thousand objects in in a container,
and each object is on the layer stack of the display list,
what is the best way to find out which child object is being 
rendered as the top most layer at a given x,y position?


I don't want to have a thousand contained objects with a thousand 
active listeners, I only want to have 1 listener in the container 
monitoring for mouse movement, click, releases, etc... and knowing 
which child object the mouse is hovering over/clicking etc...


What is the fastest way to do this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Little direction please

2010-02-27 Thread Anthony Pace
No lists I know of; yet, I haven't done any searching.   I taught myself 
the advanced aspects of JS in about a week or so of trying things out, 
so I am sure that anyone with even a little ActionScript 1/2/3, 
experience can pick it up really really fast.


I was going to write a hundred helpful tips (tag renewal issues, dynamic 
objects as complete containers, arrays as objects as arrays, custom 
event handling, cross browser issues, Function scope, Prototype 
programming, optimization, etc...); yet, I realized you may just want to 
check out the Douglas Crockford vids, read his book, and check out his site.


The play-list has the videos I am referring to and a lot more; yet, they 
are not in order, so I suggest watching, from beginning to end:


1: the javascript programming language  4 parts
2: advanced javascript 3 parts
3: theory of the DOM 3 parts
4: what ever else is available on the topic

http://video.yahoo.com/playlist/100205936

If you can find a different source for the videos, I would, because you 
may want to go back and forth, and sometimes the streaming stalls, 
forcing you have to reload starting from the beginning again  arrrgh.


the books he recommends:
http://www.amazon.ca/gp/search?index=bookslinkCode=qskeywords=0596101996
http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb

his site:
http://www.crockford.com/javascript/


On 2/27/2010 12:48 AM, Karl DeSaulniers wrote:

Hello,
I am not sure if this is a cross post, if it is, I do apologize.
Does anyone know of a list like this but for Javascript?
If anyone knows of one, I would greatly appreciate it.

Thanks,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MultiLevel ContextMenu

2010-02-19 Thread Anthony Pace
Javascript to as3 combo, as suggested below, would work; yet, not in 
Opera (anyone care?) , and not very successfully, at least during my 
experimentation,  in browsers running in on top of *nix OS (I kind of 
care about this one).


You can also check out the link below, as it is now integrated into 
Adobe Captivate; however, last time I looked at it in 2007, it was a bit 
limited and you may want to roll your own.


http://uza.lt/rightclick/
http://code.google.com/p/custom-context-menu/

I eventually used something very similar with my own event handling code 
that is a little more to my tastes + more customizable; yet, at the very 
least it is a great place to start from.


On 2/19/2010 6:33 AM, Benny wrote:

Flash doesn't support that or actually even prevents us to come up with a
custom context menu..
In the past some flashers worked around that limitation by capturing the
right click mouse event in javascript and then communicate the event via a
local connection to the flash movie which than could built a custom context
menu. This worked not in all browsers though as far as I can remember.
Google will probably remember it better ;-)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] and now..CLIENT now hates Flash

2010-02-06 Thread Anthony Pace
I think it has very little, if at all, to do with Apple wanting Adobe to 
produce a better product, and more to do with licensing fees, and 
revenue from app store purchases.  There would be a lot of lost revenue 
from the app store if you could just put flash on your device and play a 
game downloaded off the web for free from a plug-in that passed along 
the capacitance and accelerometer data to the swf.




On 2/4/2010 10:47 AM, Gregory Boudreaux wrote:

Also Flash is playing a bigger role in corporate eLearning, especially
after Adobe ended support for Authorware... and all the third party
development tools that publish .swfs.  In addition to Adobe Connect with
its presentations and virtual classroom features.

My personal opinion is that Jobs is trying to push Adobe to fix whatever
problems he feels the Flash Player has on the Mac and get it to a state
where he feels they can do business.  He is playing this out in the
public arena so that he can build up some support and maybe make Adobe
speed things up a bit.  With the emergence of Google in the mobile
device market, Apple will need to step it up to stay on top the
mountain... and I think one of those things will be to have the Flash
Player on Apple mobile devices.  It will be this big announcement and
everyone will think it is the greatest thing since the iPhone.

gregb

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] WIRED hates Flash

2010-01-30 Thread Anthony Pace

Angela:  That is a great suggestion.

Normally a client will ask for detection, but some will opt to allow the 
user to choose which version as browsers false report and failing 
gracefully doesn't always work.


 eg. Which version (plain html with javascript employing hacks to make 
it work with each browser, or fun and flashy)?


So in this case, why not state something similar to what Angela 
suggested? if they choose flash, give a link to Apples complaint e-mail 
and government consumer affair websites where users can publicly 
register complaints.



On 1/29/2010 8:29 AM, Angela Ferraiolo wrote:

We could be more active. Rather than show the blue logo, we could
substitute a message that reads Steve Jobs won't let you see this.
Please go to the iTunes store and pay him for something to watch.
Right now we are simply wasting our message opportunity.



On Fri, Jan 29, 2010 at 8:14 AM, Christian Pugliesepugli...@gmail.com  wrote:
   

Lee Brimelow has a fantastic post about this:
http://theflashblog.com/?p=1703




On Fri, Jan 29, 2010 at 11:03, arturar...@artur.com  wrote:

 

/i was wondering what the communities thoughts were about this:/*
*

*
http://www.wired.com/gadgetlab/2010/01/ten-things-missing-from-the-ipad/
*

*Flash*

Many people will bemoan the lack of Flash in the iPad. It wasn't mentioned,
but eagle-eyed viewers would have seen the missing plugin icon on the New
York Times site during yesterday's demo, and given that Apple clearly hates
Flash as both a non-open web standard and as a buggy, CPU-hungry piece of
code, it's unlikely it will ever be added, unless Apple decides it wants to
cut the battery life down to two hours.

Who needs Flash, anyway? YouTube and Vimeo have both switched to H.264 for
video streaming (in Chrome and Safari, at least -- Firefox doesn't support
it), and the rest of the world of Flash is painful to use.

In fact, we think the lack of Flash in the iPad will be the thing that
finally kills Flash itself. If the iPad is as popular as the iPhone and iPod
Touch, Flash-capable browsers will eventually be in the minority.


go.


-artur
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] archives?

2010-01-10 Thread Anthony Pace

http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com

I searched 2007 and it brought up a bunch of threads.  The few I 
looked at were from Feb, May, June, etc. of 2007.


On 1/8/2010 2:43 PM, Paul Andrews wrote:

Andrew Sinning wrote:
Are there archives of this list since 2007?  The only one I can find 
ends on Dec '07.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


I'll email the messages to you, hold on..   ;-)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Colour Matching

2009-12-15 Thread Anthony Pace

What about changing the monitor preferences to TrueColor?

Henrik Andersson wrote:

Nathan Mynarcik wrote:

Have you tried pngs?


Great idea, now you have another way of getting the colors wrong. How 
nice of the png standard to include an ability to embed the color 
correction profile, isn't it? Now you have twice the chance for the 
wrong profile being applied and in one of four cases two bad profiles 
at once.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] simple E4X question, getting two types of nodes

2009-12-01 Thread Anthony Pace

use two dots; yet, IMHO that is poorly structured data.

If you have any say to how the data should be formatted, how about using:

pets
   pet type=dog name=rover/
   pet type=cat name=felix /  
   pet type=bunny name=thumper/

   pet type=snake name=charlie etc=etc.. /
   !-- etc  --
/pets

or if each absolutely must have large child elements, why not:
pets
   pet
   typedog/type
   nomrover/nom
   etcyou get the point?/etc
   /pet
   pet
   typecat/type
   nomfelix/nom
   etcbut this increases bandwidth usage/etc
   /pet
/pets

Later,
Anthony


Mendelsohn, Michael wrote:

Thanks for replying Jason.  I'd do that, but I'm also trying to preserve the 
order in which things occur, like given this xml...
pets
dog/
cat/
snake/
dog/
dog/
ant/
bird/
dog/
/pets

...then, I'd traverse the resulting XMLList, and using a switch statement, 
render things a certain way on the stage, but keeping the order.
So, in other words, only the dog and bird tags should render, and in order that 
they occur.

- Michael M.




  

Have you tried:



myXMLListDogs:XMLList = pets..dog
myXMLListBirds:XMLList = pets..bird


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] simple E4X question, getting two types of nodes

2009-12-01 Thread Anthony Pace
looking at your structure, i am assuming of course that you would not 
have a sub element of dog in an element of dog, so two dots should work 
fine.


Anthony Pace wrote:

use two dots; yet, IMHO that is poorly structured data.

If you have any say to how the data should be formatted, how about using:

pets
   pet type=dog name=rover/
   pet type=cat name=felix / pet type=bunny name=thumper/
   pet type=snake name=charlie etc=etc.. /
   !-- etc  --
/pets

or if each absolutely must have large child elements, why not:
pets
   pet
   typedog/type
   nomrover/nom
   etcyou get the point?/etc
   /pet
   pet
   typecat/type
   nomfelix/nom
   etcbut this increases bandwidth usage/etc
   /pet
/pets

Later,
Anthony


Mendelsohn, Michael wrote:
Thanks for replying Jason.  I'd do that, but I'm also trying to 
preserve the order in which things occur, like given this xml...

pets
dog/
cat/
snake/
dog/
dog/
ant/
bird/
dog/
/pets

...then, I'd traverse the resulting XMLList, and using a switch 
statement, render things a certain way on the stage, but keeping the 
order.
So, in other words, only the dog and bird tags should render, and in 
order that they occur.


- Michael M.




 

Have you tried:



myXMLListDogs:XMLList = pets..dog
myXMLListBirds:XMLList = pets..bird


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-27 Thread Anthony Pace

where is the call to init(); in your Main constuctor?  i can't see it.

Hope that helps, and if I am wrong don't shoot me.
Anthony





beno - wrote:

To all of you:
You guys are a good bunch! I appreciate your help. Coding for me has always
been difficult, but I have many years working with python, and in that time
I've come to appreciate that coding __is__the shortcut. That is, the most
direct trajectory between two points is a straight line. This is why my gut
tells me to largely bypass the timeline and learn how to do this the *hard*
way...with code. I will never write games (to the best of my knowledge). I
will, however, make some pretty amazing Web sites. My background is
marketing. I have some pretty big and important clients here in the Virgin
Islands--including one of the biggest jewelers on Main St in St. Thomas--and
will have more (I just moved back here). They won't be interested in
*games*, but they will have needs that will go well beyond the timeline, I'm
sure. My highest and best use isn't hacking code, it's sales and marketing;
however, while I'm broke I currently have no choice, and frankly I've
discovered that the more I know about coding, the better I am at directing
my offshore crew once I get back up to that level...and that is where I am
headed.

With respect to the advice to follow the instruction here:
http://www.bellaonline.com/articles/art54385.asp
I have chosen not to, because of the counter-advice to not use ENTER_FRAME.

In the meantime, here's a stripped-down what I've got right now:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
// This code works as well (or not) in Main
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
  }
// The following two lines work as well (or not)
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

Now, this doesn't throw any errors; however, it doesn't print the mc to
screen, either. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-27 Thread Anthony Pace
In addition to my last post, I would like to state that you shouldn't 
timeline; it has its place.  The flash IDE is great for making things 
pretty, and doing really quick experiments; as well, it forces you to 
work off of memory for some things that would normally just be presented 
to you in other IDEs. No doubt about it, flashdevelop is my favorite 
ide, and it is free too; yet, Flash is indispensable if you want to make 
great looking websites, like you have stated, on any kind of decent 
timeline.


A couple of other things to note about your code...

Where is you mcHand class coming from?  Why haven't you imported it?  
even if it is in the same folder ait's kind of lazy and hard to 
understand when you exclude it from the import statements; however, 
since it is done automatically, than it is a style thing I guess.


You have already imported  com.greensock.*  which imports everything, so 
unless there is something weird going on, you can take out the other 
greensock import statements.


(OT  why oh why they put the com in front is beyond me, as no matter 
what you will still have the same amount of folders if you do it the 
other way?  and I especially think it is stupid, because a lot of 
communications classes are called com and not just net. )


Take care,
Anthony

Anthony Pace wrote:

where is the call to init(); in your Main constuctor?  i can't see it.

Hope that helps, and if I am wrong don't shoot me.
Anthony





beno - wrote:

To all of you:
You guys are a good bunch! I appreciate your help. Coding for me has 
always
been difficult, but I have many years working with python, and in 
that time
I've come to appreciate that coding __is__the shortcut. That is, the 
most
direct trajectory between two points is a straight line. This is why 
my gut
tells me to largely bypass the timeline and learn how to do this the 
*hard*
way...with code. I will never write games (to the best of my 
knowledge). I

will, however, make some pretty amazing Web sites. My background is
marketing. I have some pretty big and important clients here in the 
Virgin
Islands--including one of the biggest jewelers on Main St in St. 
Thomas--and

will have more (I just moved back here). They won't be interested in
*games*, but they will have needs that will go well beyond the 
timeline, I'm
sure. My highest and best use isn't hacking code, it's sales and 
marketing;

however, while I'm broke I currently have no choice, and frankly I've
discovered that the more I know about coding, the better I am at 
directing
my offshore crew once I get back up to that level...and that is where 
I am

headed.

With respect to the advice to follow the instruction here:
http://www.bellaonline.com/articles/art54385.asp
I have chosen not to, because of the counter-advice to not use 
ENTER_FRAME.


In the meantime, here's a stripped-down what I've got right now:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
// This code works as well (or not) in Main
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
  }
// The following two lines work as well (or not)
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

Now, this doesn't throw any errors; however, it doesn't print the mc to
screen, either. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-27 Thread Anthony Pace

opps... it should have said, you shouldn't knock the timeline.

Anthony Pace wrote:
In addition to my last post, I would like to state that you shouldn't 
timeline; it has its place.  The flash IDE is great for making things 
pretty, and doing really quick experiments; as well, it forces you to 
work off of memory for some things that would normally just be 
presented to you in other IDEs. No doubt about it, flashdevelop is my 
favorite ide, and it is free too; yet, Flash is indispensable if you 
want to make great looking websites, like you have stated, on any kind 
of decent timeline.


A couple of other things to note about your code...

Where is you mcHand class coming from?  Why haven't you imported it?  
even if it is in the same folder ait's kind of lazy and hard to 
understand when you exclude it from the import statements; however, 
since it is done automatically, than it is a style thing I guess.


You have already imported  com.greensock.*  which imports everything, 
so unless there is something weird going on, you can take out the 
other greensock import statements.


(OT  why oh why they put the com in front is beyond me, as no matter 
what you will still have the same amount of folders if you do it the 
other way?  and I especially think it is stupid, because a lot of 
communications classes are called com and not just net. )


Take care,
Anthony

Anthony Pace wrote:

where is the call to init(); in your Main constuctor?  i can't see it.

Hope that helps, and if I am wrong don't shoot me.
Anthony





beno - wrote:

To all of you:
You guys are a good bunch! I appreciate your help. Coding for me has 
always
been difficult, but I have many years working with python, and in 
that time
I've come to appreciate that coding __is__the shortcut. That is, the 
most
direct trajectory between two points is a straight line. This is why 
my gut
tells me to largely bypass the timeline and learn how to do this the 
*hard*
way...with code. I will never write games (to the best of my 
knowledge). I

will, however, make some pretty amazing Web sites. My background is
marketing. I have some pretty big and important clients here in the 
Virgin
Islands--including one of the biggest jewelers on Main St in St. 
Thomas--and

will have more (I just moved back here). They won't be interested in
*games*, but they will have needs that will go well beyond the 
timeline, I'm
sure. My highest and best use isn't hacking code, it's sales and 
marketing;

however, while I'm broke I currently have no choice, and frankly I've
discovered that the more I know about coding, the better I am at 
directing
my offshore crew once I get back up to that level...and that is 
where I am

headed.

With respect to the advice to follow the instruction here:
http://www.bellaonline.com/articles/art54385.asp
I have chosen not to, because of the counter-advice to not use 
ENTER_FRAME.


In the meantime, here's a stripped-down what I've got right now:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
// This code works as well (or not) in Main
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
  }
// The following two lines work as well (or not)
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

Now, this doesn't throw any errors; however, it doesn't print the mc to
screen, either. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-27 Thread Anthony Pace

oops, it should have said oops...lol, I screw up a ton too.

Anthony wrote:

opps... it should have said, you shouldn't knock the timeline.

Anthony Pace wrote:
In addition to my last post, I would like to state that you shouldn't 
timeline; it has its place.  The flash IDE is great for making things 
pretty, and doing really quick experiments; as well, it forces you to 
work off of memory for some things that would normally just be 
presented to you in other IDEs. No doubt about it, flashdevelop is my 
favorite ide, and it is free too; yet, Flash is indispensable if you 
want to make great looking websites, like you have stated, on any 
kind of decent timeline.


A couple of other things to note about your code...

Where is you mcHand class coming from?  Why haven't you imported it?  
even if it is in the same folder ait's kind of lazy and hard to 
understand when you exclude it from the import statements; however, 
since it is done automatically, than it is a style thing I guess.


You have already imported  com.greensock.*  which imports everything, 
so unless there is something weird going on, you can take out the 
other greensock import statements.


(OT  why oh why they put the com in front is beyond me, as no matter 
what you will still have the same amount of folders if you do it the 
other way?  and I especially think it is stupid, because a lot of 
communications classes are called com and not just net. )


Take care,
Anthony

Anthony Pace wrote:

where is the call to init(); in your Main constuctor?  i can't see it.

Hope that helps, and if I am wrong don't shoot me.
Anthony





beno - wrote:

To all of you:
You guys are a good bunch! I appreciate your help. Coding for me 
has always
been difficult, but I have many years working with python, and in 
that time
I've come to appreciate that coding __is__the shortcut. That is, 
the most
direct trajectory between two points is a straight line. This is 
why my gut
tells me to largely bypass the timeline and learn how to do this 
the *hard*
way...with code. I will never write games (to the best of my 
knowledge). I

will, however, make some pretty amazing Web sites. My background is
marketing. I have some pretty big and important clients here in the 
Virgin
Islands--including one of the biggest jewelers on Main St in St. 
Thomas--and

will have more (I just moved back here). They won't be interested in
*games*, but they will have needs that will go well beyond the 
timeline, I'm
sure. My highest and best use isn't hacking code, it's sales and 
marketing;

however, while I'm broke I currently have no choice, and frankly I've
discovered that the more I know about coding, the better I am at 
directing
my offshore crew once I get back up to that level...and that is 
where I am

headed.

With respect to the advice to follow the instruction here:
http://www.bellaonline.com/articles/art54385.asp
I have chosen not to, because of the counter-advice to not use 
ENTER_FRAME.


In the meantime, here's a stripped-down what I've got right now:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
// This code works as well (or not) in Main
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
  }
// The following two lines work as well (or not)
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

Now, this doesn't throw any errors; however, it doesn't print the 
mc to

screen, either. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2009-11-20 Thread Anthony Pace

If you want them really cheap, get a library card.

I have one through university, but a library card through the Toronto 
public library, and most public libraries, give the general public 
access to a wide array of material, and to a safari books online login, 
for free.  With safari books online and my library cards in hand, I 
haven't had to pay for a programming/math book in ages; however, you 
could argue that since I pay taxes, it is not absolutely free.


e.g. Every Keith Peters or Colin Mook book is available through safari, 
videos like the entire lost actionscript  3 weekend video set(a bit 
basic but none the less nifty to watch), tons of the friends of ed, sam, 
idiots guide, head first books and more.


The only book I have not been able to find is a good book on math with 
regard to music/colour theory, so I am contemplating shelling out.


I could probably download a pirated copy of every book I read; yet, for 
now, I am satisfied with the access my library cards give me, and happy 
to shell out a little money for a great book that I want in a tangible 
format on my desk.  The only books I don't feel guilty about people 
ripping, are the ones that I have seen cost $180 - $390 or more per 
book.  (e.g. advanced computer engineering, physics topics, biomed, 
journals, or graduate level anything).


beno - wrote:

On Fri, Nov 20, 2009 at 2:48 PM, jared stanley jared.stan...@gmail.comwrote:

  

FYI i've had luck getting most of the latest flash books on amazon
used for $5-20 each.




Thanks :)
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Anthony Pace

it depends on your registration point for each clip.

If it is at the bottom centre, than just set the x and y have it be 
rotated by degree - 90




W.R. de Boer wrote:

Hello,

I am currently working on a little flash project where I would like to 
place the sprites or elements on the line or circumference of a 
circle. Now I know how I can get x,y-position of each sprite using the 
cosinus and sinus functions together with the radius and angle. Only 
the problem I am currently experiencing is the putting the sprites 
nicely on the line of the circle. It's some rotation related thing but 
I don't get it.


The basic idea is to have an earth and then all kind of items such as 
buildings to be positioned on the line/circumference of the circle and 
then follow the form of the circle. I only don't get it.


I know I can get the x,y position for these (building) sprites the 
following way:


var radius: Number = 50;
var angle: Number = 60;

var x: Number = Math.sin(Math.PI/180 * angle) * radius;
var y: Number = Math.cos(Math.PI/180 * angle) * radius;

Now I only have the problem to nicely rotate the sprite in such manner 
is basically following the form of the circle. I have made a 
drawing of how the sprites and/or buildings (every rectangle is a 
sprite) should be placed on the circle [1] but I don't know how i get 
that nice rotation calculated.


Anyone having any idea how to do this? Too bad, they didn't discuss 
this during math class :(


[1] http://i35.tinypic.com/2a7daop.jpg

Weyert
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] visually similar spectrum

2009-11-03 Thread Anthony Pace
After doing a little reading, I think, but I don't know for sure, that 
what I am referring to is called HVS(human visual system) compression.


Any books, detailed articles, formulas or code?

Henrik Andersson wrote:

Anthony Pace wrote:

I am not sure how to distinguish at what range or threshold a colour
becomes too visibly similar to the eye to detect a difference, and I am
really hoping there is a formula out there that I can be directed to.


It depends on the context. If they are right next to each other and 
someone uses a magnifying glass, it is much more clear. But if they 
are two blobs that move and are on the opposite of a screen, it might 
be very hard. The eyes plays tricks on you.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] visually similar spectrum

2009-11-03 Thread Anthony Pace
Does anyone have the math for at what range or threshold colours become 
too visibly similar to separate by the eye?  Is there a good book or 
formula you know of?


I am trying to implement some logic that makes it so if a colour value 
is repeated on the same pixel per frame, that it does not get redrawn, 
which is pretty simple; yet, I want to extend it to similar colours, and 
I am not sure how to distinguish at what range or threshold a colour 
becomes too visibly similar to the eye to detect a difference, and I am 
really hoping there is a formula out there that I can be directed to.








___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  1   2   3   4   >