Re: [Flashcoders] RE: Flash speech-to-text

2009-08-27 Thread Taka Kojima
You wouldn't actually do the speech recognition in Flash, but rather have
Flash record to a file, have the server process it (using an already
developed program of course, as as Steven explains speech to text is not
just a simple matter).

So essentially the flow would be:

Flash Player would record the sound, tell server to save file to x location,
open a socket connection to server, tell the server to process the sound
file. Then, through the socket connection you would send data back to Flash
as you process the file.

This is a real simple overview, but essentially if you in fact can record
sound through the microphone with Flash Player and you do have an already
built speech to text program installed and working (with an API that you
could plug into), then it is feasible and it's not as complicated as writing
your own speech to text recognition software in ActionScript.

I have implemented a similar solution for creating video files with Flash
(i.e. you drag 5-10 second clips onto a timeline, send the data back to the
server, the server reads the sequence, puts the clips together into a file
and exports as a new video file), so this is a workable and good solution,
as well as your best bet.

- Taka

On Wed, Aug 26, 2009 at 10:41 PM, Steven Sacks flash...@stevensacks.netwrote:

 This is how you record sound:
 http://www.getmicrophone.com/?p=69

 If you're asking how to convert sound waves into speech, dude, what?  Do
 you realize how challenging speech recognition is?  Wait, why am I asking
 you this?  If you did, you wouldn't be asking people on a Flash list how to
 do it, as if it's some piece of code somebody can copy and paste or a few
 links that will tell you the secret formula.

 Most speech to text programs are based on the Hidden Markov models. In
 speech recognition, the hidden Markov model would output a sequence of
 n-dimensional real-valued vectors (with n being a small integer, such as
 10), outputting one of these every 10 milliseconds. The vectors would
 consist of cepstral coefficients, which are obtained by taking a Fourier
 transform of a short time window of speech and decorrelating the spectrum
 using a cosine transform, then taking the first (most significant)
 coefficients. The hidden Markov model will tend to have in each state a
 statistical distribution that is a mixture of diagonal covariance Gaussians
 which will give a likelihood for each observed vector. Each word, or (for
 more general speech recognition systems), each phoneme, will have a
 different output distribution; a hidden Markov model for a sequence of words
 or phonemes is made by concatenating the individual trained hidden Markov
 models for the separate words and phonemes.

 There you have it. That's a high level overview of speech to text. Do you
 understand anything in that paragraph?  Probably not.

 Unless you're willing to study and put in the time to figure out how to do
 this, you're not going to figure it out.  Nobody is going to point you in
 the right direction because this is a very niche knowledge area and none of
 these people are on Flashcoders.  They're at universities working on their
 doctorates or working for the military or government, or some private
 company and they're not sharing this information.  This is the stuff patents
 are made of.

 So either give up now (because what you want is some easy solution and
 there isn't one) or start doing real research, learn some serious Calculus,
 become an expert on on sound, speech, waveforms, and then figure out how to
 port all of this into Flash, which, in all likelihood, lacks the performance
 to actually achieve this.

 You'll probably have to do it on the server, passing the sound to the
 server as an mp3 file, and then pass the text back. That's the only thing I
 can think of that would possibly be able to do this.

 Prove me wrong.  If you pull this off, you could probably build an entire
 company around your technology.

 ___
 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: Flash speech-to-text

2009-08-27 Thread Steven Sacks
Well, if you're got a working server solution, then all you have to do is send 
an mp3 file to the server, which that link I sent you should describe how to do.


Rock on with your bad self.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Glen Pike
Thanks for the answers with the length() thing - I tried out a few of 
those and got working thing
You're suggesting to write more code to do the same thing. Why should 
anyone write more code to do the same thing?


With the above comment in mind - I was trying to do if(no...@attribute) 
which I thought would be the simplest most sensible way of doing - if 
something does not exist, why return an object / value?  I could test 
for undefined, but that did not seem to work, I will try again though...


Thanks.

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


Re: [Flashcoders] Re: Centering field text vertically

2009-08-27 Thread Glen Pike
I don't think you can centre text in a TextField vertically - the x 
property will be there because you can centre it horizontally.


There is a 2 pixel gutter around the text field, there may also be 
horizontal margins:


http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextLineMetrics.html

Hope this helps.

Glen

Hudson Ansley wrote:

I realize that if TextLineMetrics had a y property as well as the
x, that would do it for me, so I wonder why that was left off...
Regards,
Hudson

On Wed, Aug 26, 2009 at 4:39 PM, Hudson Ansleyhudsonans...@gmail.com wrote:
  

Anyone have a technique for centering a TextField vertically
(accurately)? other than converting to bitmap...
I can get the textHeight, but I don't know how to get the amount of
empty space between the top of the TextField and the actual text. This
varies with font, style, etc, and of course the characters in the
text. Looked at TextLineMetrics, afaict, it does not give a value for
the distance from the top of the field to the top of the text, and I
suppose I might be able to use getCharBoundaries, but then I'd have to
combine the results from all the characters, which seems a bit over
the top... also, must be Flash 9


Regards,
Hudson



___
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: Flash speech-to-text

2009-08-27 Thread juju
Steve, why didn't you say so in the first place?? ;P

Thanks for the info - juju

On Thu, Aug 27, 2009 at 1:41 PM, Steven Sacks flash...@stevensacks.netwrote:

 This is how you record sound:
 http://www.getmicrophone.com/?p=69

 If you're asking how to convert sound waves into speech, dude, what?  Do
 you realize how challenging speech recognition is?  Wait, why am I asking
 you this?  If you did, you wouldn't be asking people on a Flash list how to
 do it, as if it's some piece of code somebody can copy and paste or a few
 links that will tell you the secret formula.

 Most speech to text programs are based on the Hidden Markov models. In
 speech recognition, the hidden Markov model would output a sequence of
 n-dimensional real-valued vectors (with n being a small integer, such as
 10), outputting one of these every 10 milliseconds. The vectors would
 consist of cepstral coefficients, which are obtained by taking a Fourier
 transform of a short time window of speech and decorrelating the spectrum
 using a cosine transform, then taking the first (most significant)
 coefficients. The hidden Markov model will tend to have in each state a
 statistical distribution that is a mixture of diagonal covariance Gaussians
 which will give a likelihood for each observed vector. Each word, or (for
 more general speech recognition systems), each phoneme, will have a
 different output distribution; a hidden Markov model for a sequence of words
 or phonemes is made by concatenating the individual trained hidden Markov
 models for the separate words and phonemes.

 There you have it. That's a high level overview of speech to text. Do you
 understand anything in that paragraph?  Probably not.

 Unless you're willing to study and put in the time to figure out how to do
 this, you're not going to figure it out.  Nobody is going to point you in
 the right direction because this is a very niche knowledge area and none of
 these people are on Flashcoders.  They're at universities working on their
 doctorates or working for the military or government, or some private
 company and they're not sharing this information.  This is the stuff patents
 are made of.

 So either give up now (because what you want is some easy solution and
 there isn't one) or start doing real research, learn some serious Calculus,
 become an expert on on sound, speech, waveforms, and then figure out how to
 port all of this into Flash, which, in all likelihood, lacks the performance
 to actually achieve this.

 You'll probably have to do it on the server, passing the sound to the
 server as an mp3 file, and then pass the text back. That's the only thing I
 can think of that would possibly be able to do this.

 Prove me wrong.  If you pull this off, you could probably build an entire
 company around your technology.

 ___
 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: Flash speech-to-text

2009-08-27 Thread juju
This sounds like what I'm trying to do, Thanks - juju

On Thu, Aug 27, 2009 at 2:22 PM, Taka Kojima t...@gigafied.com wrote:

 You wouldn't actually do the speech recognition in Flash, but rather have
 Flash record to a file, have the server process it (using an already
 developed program of course, as as Steven explains speech to text is not
 just a simple matter).

 So essentially the flow would be:

 Flash Player would record the sound, tell server to save file to x
 location,
 open a socket connection to server, tell the server to process the sound
 file. Then, through the socket connection you would send data back to Flash
 as you process the file.

 This is a real simple overview, but essentially if you in fact can record
 sound through the microphone with Flash Player and you do have an already
 built speech to text program installed and working (with an API that you
 could plug into), then it is feasible and it's not as complicated as
 writing
 your own speech to text recognition software in ActionScript.

 I have implemented a similar solution for creating video files with Flash
 (i.e. you drag 5-10 second clips onto a timeline, send the data back to the
 server, the server reads the sequence, puts the clips together into a file
 and exports as a new video file), so this is a workable and good solution,
 as well as your best bet.

 - Taka

 On Wed, Aug 26, 2009 at 10:41 PM, Steven Sacks flash...@stevensacks.net
 wrote:

  This is how you record sound:
  http://www.getmicrophone.com/?p=69
 
  If you're asking how to convert sound waves into speech, dude, what?  Do
  you realize how challenging speech recognition is?  Wait, why am I asking
  you this?  If you did, you wouldn't be asking people on a Flash list how
 to
  do it, as if it's some piece of code somebody can copy and paste or a few
  links that will tell you the secret formula.
 
  Most speech to text programs are based on the Hidden Markov models. In
  speech recognition, the hidden Markov model would output a sequence of
  n-dimensional real-valued vectors (with n being a small integer, such as
  10), outputting one of these every 10 milliseconds. The vectors would
  consist of cepstral coefficients, which are obtained by taking a Fourier
  transform of a short time window of speech and decorrelating the spectrum
  using a cosine transform, then taking the first (most significant)
  coefficients. The hidden Markov model will tend to have in each state a
  statistical distribution that is a mixture of diagonal covariance
 Gaussians
  which will give a likelihood for each observed vector. Each word, or (for
  more general speech recognition systems), each phoneme, will have a
  different output distribution; a hidden Markov model for a sequence of
 words
  or phonemes is made by concatenating the individual trained hidden Markov
  models for the separate words and phonemes.
 
  There you have it. That's a high level overview of speech to text. Do you
  understand anything in that paragraph?  Probably not.
 
  Unless you're willing to study and put in the time to figure out how to
 do
  this, you're not going to figure it out.  Nobody is going to point you in
  the right direction because this is a very niche knowledge area and none
 of
  these people are on Flashcoders.  They're at universities working on
 their
  doctorates or working for the military or government, or some private
  company and they're not sharing this information.  This is the stuff
 patents
  are made of.
 
  So either give up now (because what you want is some easy solution and
  there isn't one) or start doing real research, learn some serious
 Calculus,
  become an expert on on sound, speech, waveforms, and then figure out how
 to
  port all of this into Flash, which, in all likelihood, lacks the
 performance
  to actually achieve this.
 
  You'll probably have to do it on the server, passing the sound to the
  server as an mp3 file, and then pass the text back. That's the only thing
 I
  can think of that would possibly be able to do this.
 
  Prove me wrong.  If you pull this off, you could probably build an entire
  company around your technology.
 
  ___
  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: Flash speech-to-text

2009-08-27 Thread juju
I did, Chris, Thanks.

On Thu, Aug 27, 2009 at 1:16 PM, Chris Foster 
cfos...@catalystinteractive.com.au wrote:

 Dunno for sure Juju, but while you wait for any other answers on this
 list...

 http://developer.ribbit.com/download

 Sign up, download the SDK, view the samples, and join the forums... I
 imagine it wouldn't take more than a couple of hours to find the right
 people to answer in detail.

 C:

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of juju
 Sent: Thursday, 27 August 2009 3:01 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] RE: Flash speech-to-text

 Thanks Chris, not even with Ribbit? That's what I really want to know:
 can Ribbit + Flash provide speech to text capability. Thanks, juju

 On Thu, Aug 27, 2009 at 12:32 PM, Chris Foster 
 cfos...@catalystinteractive.com.au wrote:

  Hi Juju,
 
  You can't currently do speech-to-text in Actionscript. It's not that
  people are choosing not to answer you, there just aren't any useful
  solutions to your question.
 
  C:
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of juju
  Sent: Thursday, 27 August 2009 2:20 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] RE: Flash speech-to-text
 
  I wonder, if I offered $50 for an answer, how many replies with actual

  useful information would be posted to answer this question... :) Or
  $100?
 
  On Wed, Aug 26, 2009 at 12:02 PM, juju jlee...@gmail.com wrote:
 
   Hi Jonathan, I'm trying to do speech to text. AFAIK Flash API cannot

   record the microphone input. It can listen for the sound level of
   the microphone input, and you could create interactivity with this
   (like shooting a bullet by clapping your hands). But how do you
   record a person's voice and convert this to text when you can't
   record the microphone input with Flash? Has anyone tried Ribbit to
   create voice interactive applications, like speech to text and
 voice-recognition?
   Would like to get some guidance before going into Ribbit
 development.
  
   I've tried SpeechXML but this needs SAPI 5 and TMK it only works on
   a local machine. I'm looking for speech-to-text solution and
   voice-recording/analysis that can be done via a Flash RIA. Am hoping

   that there's some actionscript library out there that gives this
  functionality.
   Or hopefully, the next version of Flash/Actionscript will have this
   functionality.
  
   Thanks, juju
  
  
   On Tue, Aug 25, 2009 at 8:48 PM, jonathan howe
  jonathangh...@gmail.comwrote:
  
   Are you trying to do text-to-speech or speech-to-text? The latter
   is better searched for under 'voice recognition'.
   Seems like there are a bunch of results for the former:
   http://www.bing.com/search?q=flash+text-to-speechform=QBLHqs=n
   -jonathanhttp://www.bing.com/search?q=flash+text-to-speechform=QB
   LH
   qs=n%0A-jonathan
  
  
   On Tue, Aug 25, 2009 at 5:30 AM, juju jlee...@gmail.com wrote:
  
HI All, I searched Google and the forums but could not find an
answer,
   hope
you actionscript sages can help. There's plenty of text to speech

solutions, but how do you do Speech-to-text with Flash? Can you
do speech-to-text
   with
ribbit http://www.ribbit.com/?
   
Thanks, juju
___
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
  
  
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  This e-mail, including any attached files, may contain confidential
  and privileged information for the sole use of the intended recipient.

  Any review, use, distribution, or disclosure by others is strictly
 prohibited.
   If you are not the intended recipient (or authorized to receive
  information for the intended recipient), please contact the sender by
  reply e-mail and delete all copies of this message.
 
  ___
  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

Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Steven Sacks
Unfortunately, that doesn't work.  That returns something (an empty XMLList, I 
believe).


The best way to test for attribute existence and/or if it has a value is what I 
wrote.




Glen Pike wrote:
Thanks for the answers with the length() thing - I tried out a few of 
those and got working thing
You're suggesting to write more code to do the same thing. Why should 
anyone write more code to do the same thing?


With the above comment in mind - I was trying to do if(no...@attribute) 
which I thought would be the simplest most sensible way of doing - if 
something does not exist, why return an object / value?  I could test 
for undefined, but that did not seem to work, I will try again though...


Thanks.

Glen
___
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] seeing is xml has children

2009-08-27 Thread thomas horner
im trying to build a dynamic menu from an xml file, i want to determin
whether each node has children in order to then determine whether or not to
build a submenu from that section,

 

i have tried using the below code in the loop but it's tracing out true
every time, 

 

 

var hasChildren:Boolean =  xmlLabels.section.childNodes;



 
trace(hasChildren);

 

 

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


Re: [Flashcoders] seeing is xml has children

2009-08-27 Thread Steven Sacks

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/XML.html


var hasChildren:Boolean = xmlLabels.section.children().length()  0;
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: Flash speech-to-text

2009-08-27 Thread juju
This is the best answer on Ribbit forums:

I am wondering if there's any way to use the *speech* to text feature
without making a phone call? Thanks for your help.

You can send a Shout message and have that transcribed and sent to your
email address.

http://docs.ribbit.com/index.php?option=com_contentview=articleid=50:ribbit-shout-messagescatid=38:flex-articles%27,%27articles%27,888,666

rant Death to Capitalism! Knowledge wants to be Free! Go stick your
patents where the sun don't shine /rant


On Thu, Aug 27, 2009 at 4:30 PM, juju jlee...@gmail.com wrote:

 I did, Chris, Thanks.


 On Thu, Aug 27, 2009 at 1:16 PM, Chris Foster 
 cfos...@catalystinteractive.com.au wrote:

 Dunno for sure Juju, but while you wait for any other answers on this
 list...

 http://developer.ribbit.com/download

 Sign up, download the SDK, view the samples, and join the forums... I
 imagine it wouldn't take more than a couple of hours to find the right
 people to answer in detail.

 C:

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of juju
 Sent: Thursday, 27 August 2009 3:01 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] RE: Flash speech-to-text

 Thanks Chris, not even with Ribbit? That's what I really want to know:
 can Ribbit + Flash provide speech to text capability. Thanks, juju

 On Thu, Aug 27, 2009 at 12:32 PM, Chris Foster 
 cfos...@catalystinteractive.com.au wrote:

  Hi Juju,
 
  You can't currently do speech-to-text in Actionscript. It's not that
  people are choosing not to answer you, there just aren't any useful
  solutions to your question.
 
  C:
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of juju
  Sent: Thursday, 27 August 2009 2:20 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] RE: Flash speech-to-text
 
  I wonder, if I offered $50 for an answer, how many replies with actual

  useful information would be posted to answer this question... :) Or
  $100?
 
  On Wed, Aug 26, 2009 at 12:02 PM, juju jlee...@gmail.com wrote:
 
   Hi Jonathan, I'm trying to do speech to text. AFAIK Flash API cannot

   record the microphone input. It can listen for the sound level of
   the microphone input, and you could create interactivity with this
   (like shooting a bullet by clapping your hands). But how do you
   record a person's voice and convert this to text when you can't
   record the microphone input with Flash? Has anyone tried Ribbit to
   create voice interactive applications, like speech to text and
 voice-recognition?
   Would like to get some guidance before going into Ribbit
 development.
  
   I've tried SpeechXML but this needs SAPI 5 and TMK it only works on
   a local machine. I'm looking for speech-to-text solution and
   voice-recording/analysis that can be done via a Flash RIA. Am hoping

   that there's some actionscript library out there that gives this
  functionality.
   Or hopefully, the next version of Flash/Actionscript will have this
   functionality.
  
   Thanks, juju
  
  
   On Tue, Aug 25, 2009 at 8:48 PM, jonathan howe
  jonathangh...@gmail.comwrote:
  
   Are you trying to do text-to-speech or speech-to-text? The latter
   is better searched for under 'voice recognition'.
   Seems like there are a bunch of results for the former:
   http://www.bing.com/search?q=flash+text-to-speechform=QBLHqs=n
   -jonathanhttp://www.bing.com/search?q=flash+text-to-speechform=QB
   LH
   qs=n%0A-jonathan
  
  
   On Tue, Aug 25, 2009 at 5:30 AM, juju jlee...@gmail.com wrote:
  
HI All, I searched Google and the forums but could not find an
answer,
   hope
you actionscript sages can help. There's plenty of text to speech

solutions, but how do you do Speech-to-text with Flash? Can you
do speech-to-text
   with
ribbit http://www.ribbit.com/?
   
Thanks, juju
___
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
  
  
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  This e-mail, including any attached files, may contain confidential
  and privileged information for the sole use of the intended recipient.

  Any review, use, distribution, or disclosure by others is strictly
 prohibited.
   If you are not the intended recipient (or authorized to receive
  information for the intended recipient), please contact the sender by
  reply e-mail and delete all copies of this message.
 
  

Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Kenneth Kawamoto
I think that's not exactly correct. You can use @ to access non-existence attributes but cannot 
use it for filtering.


With the OP example,

trace(_co...@instance);

...should not generate an error but you'd get an error with:

trace(_conf.(@instance == boo));

...so instead this should be used:

trace(_conf.(attribute(instance) == boo));

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Steven Sacks wrote:
You will get runtime errors when attempting to access an attribute that 
isn't there.  The proper way to check for existence and length of an 
attribute is to use the .attributes() syntax as such:


if (node.attribute(instance).length()  0)

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


RE: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread Merrill, Jason
 Hi, can I post this ad?
Is it too late to say 'no'?

Job listings related to Flash have generally been accepted here in the past.  
Especially given the current economic climate.


Jason Merrill 

Bank of  America   Global Learning 
Learning  Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform - presented by 
bank associates, Adobe engineers, and outside experts in the borader multimedia 
community - join the Bank of America Flash Platform Community  (note: this is 
for Bank of America employees only)

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


[Flashcoders] XML element order

2009-08-27 Thread Glen Pike

Hi,

   I have a project where we are passing XML via a socket to a C++ 
based server and there is an issue with the ordering of XML elements 
inside a packet.


   In AS3, I am assembling a packet with a parameters element that 
contains 1 or more children with namevalue/name type syntax.  
Because the params are passed into a generic function, I am looping 
through an object as follows:


   //if params, loop through params, create params.
   if (null != params) {
   cmd.command.appendChild(parameters/);
   for (var par:* in params) {
   //var val:String = ;
   var parXML:XML = 
{par}{params[par].toString()}/{par};

   cmd.command.parameters.appendChild(parXML);
   }
   }

   The C++ guy is asking if I can send these parameters in a specific 
order, but I can't see any way to guarantee that order without 
hardcoding, or using an indexed array, which implies hardcoding 
somewhere else.


   Does anyone know of a way to do this - I suppose I could loop 
through the object, get the property keys, sort these, then loop 
through the result to read values, but guessing thats the only way.


   I could also argue that the back end needs to use an XML parser that 
does not care about element order, so if anyone has any tips on that, it 
would be appreciated.


   Ta

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


[Flashcoders] Express Install Help

2009-08-27 Thread Ktu
Hey Flashers,

I'm working with SWFObject 2.2 using the expressInstall.swf that comes with
the package. I understand that the swf is loading in another swf from an
adobe server which is the actual express install.

My problem is that when it loads, it loads at a larger dimension than I can
handle and causes my flash to wrap onto another line and makes the site
terribly ugly. Any ideas on how to prevent the dimensions from growing once
the express install is loaded?

(btw, no matter what dimension I change the expressInstall.swf to, it always
becomes something bigger than I can have on the screen)

Thanks guys,

Ktu
 [k-two]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] DSL - Standard Consumer K / Sec?

2009-08-27 Thread jared stanley
Hey all,

Looking for stats on connection speeds; looking for a 'minimum system
requirements' spec for connection...what would be an 'average' DSL
connection?

I have Charles proxy open and throttling the connection to test this
flash site, wondering what is the lowest common denominator to test
with?

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


Re: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread John R. Sweeney Jr
But did that really sound legit to you?

John


on 8/27/09 5:23 AM, Merrill, Jason at jason.merr...@bankofamerica.com wrote:

 Job listings related to Flash have generally been accepted here in the past.
 Especially given the current economic climate.
 
 
 Jason Merrill 


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com


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


RE: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread Merrill, Jason
 But did that really sound legit to you?

Legit?  Yes.  
Flash Platform related? Mmm... I guess that's debatable.  


Jason Merrill 

Bank of  America   Global Learning 
Learning  Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)


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


Re: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread Peter B
I don't object to job postings here in general, or this one
specifically. I was amused by the redundancy of asking if it was OK to
post it at the same time as posting.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread John R. Sweeney Jr
Seemed more like fishing... :)


on 8/27/09 8:14 PM, Peter B at pete...@googlemail.com wrote:

 I don't object to job postings here in general, or this one
 specifically. I was amused by the redundancy of asking if it was OK to
 post it at the same time as posting.


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com


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