Re: [Flashcoders] Adding MC with some frames from library

2010-05-06 Thread natalia Vikhtinskaya
Yes that works of course. But I am trying to understand why AS3 do this thing. What is wrong? Is it just bug? 2010/5/6 Mattheis, Erik (MIN - WSW) ematth...@webershandwick.com: Duh, just realized I replied in the wrong thread. Got me why that's happening, but a fix: What about just saying

Re: [Flashcoders] SIP library in as3 for player 10.1

2010-05-06 Thread Henrik Andersson
Anthony Pace wrote: Anyone know of a working SIP library in AS3 for player 10.1? You mean that phone protocol? I don't think that is possible. At least not without AIR. For some bizare reason, UDP support is restricted to AIR. ___ Flashcoders

Re: [Flashcoders] XML Question

2010-05-06 Thread allandt bik-elliott (thefieldcomic.com)
i agree with kenneth - swf address forms the basis of my navigation i take the current url from the swfaddress event in my model, pass it through a function to make sure the url exists and then dispatch the page change event to the rest of the application which updates the page view and the

Re: [Flashcoders] Producing a random list with no repeats

2010-05-06 Thread kennethkawam...@gmail.com
I always use Fisher-Yates shuffle method to randomise an Array, which yields more unbiased result. http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle My AS3 interpretation of Fisher-Yates is as follows; I can just call this from anywhere in my scripts ;) package utils { public

[Flashcoders] Writing to text file

2010-05-06 Thread Lehr, Theodore
Is it possible to use flash to write to a text file (maybe an xml file)? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson
Lehr, Theodore wrote: Is it possible to use flash to write to a text file (maybe an xml file)? You can write to user chosen files using the FileRefernce class. You can also use network comunication/ExternalInterface to cause other applications to write to files. If you use AIR, you have

Re: [Flashcoders] Writing to text file

2010-05-06 Thread ekameleon
Hello :) in the FP10 see the FileReference.save() method http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/ EKA+ :) 2010/5/6 Lehr, Theodore ted_l...@federal.dell.com Is it possible to use flash to write to a text file (maybe an xml file)?

RE: [Flashcoders] SIP library in as3 for player 10.1

2010-05-06 Thread Andrew Murphy
You may want to take a look at red5phone, if you haven't already: http://code.google.com/p/red5phone/ -- Andrew Murphy Interactive Media Developer amur...@delvinia.com Delvinia 370 King Street West, 5th Floor, Box 4 Toronto Canada M5V 1J9 P (416) 364-1455 ext. 232

RE: [Flashcoders] Writing to text file

2010-05-06 Thread Lehr, Theodore
Perhaps my methodology is wrong - here is what I want to do: Say I have 100 links... I want to track which ones get clicked the most and have something like Top 10 links and have those be the ones that get clicked the most. My thought was to have a text file on the server that I can add to

Re: [Flashcoders] Writing to text file

2010-05-06 Thread Eric E. Dolecki
import flash.net.FileReference; var s:XML = categorynode id=testHello/node/category; var file:FileReference = new FileReference(); file.save( s, testing.xml ); On Thu, May 6, 2010 at 8:13 AM, ekameleon ekamel...@gmail.com wrote: Hello :) in the FP10 see the FileReference.save() method

Re: [Flashcoders] Writing to text file

2010-05-06 Thread Eric E. Dolecki
Use PHP or something like that as middleware. However can more than one app instance run at the same time? On Thu, May 6, 2010 at 8:24 AM, Lehr, Theodore ted_l...@federal.dell.comwrote: Perhaps my methodology is wrong - here is what I want to do: Say I have 100 links... I want to track which

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
Jason Merrill says he sent an earlier reply concerning my question about how to write my switch statement. No, I don't recall seeing it. I just resurrected it with Google, and thank you! This works: pageDetails = xmlData.PAGE.(@pg_name == contact).DETAILS.text(); Meanwhile,

RE: [Flashcoders] Writing to text file

2010-05-06 Thread Lehr, Theodore
not in a php environment - pretty much has to be a pure flash solution - if possible... From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki [edole...@gmail.com] Sent: Thursday, May 06,

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
Whoops. Now I have this in my XML: DETAILSh3Senior Citizen Discount/h3 bDelta Electric and Construction Co., Inc./b finds its pricing to be fair and reasonable. Their prices are competitive and based on the local market rates. Delta Electric offers a 10% discount to Senior Citizens living

Re: [Flashcoders] XML Question

2010-05-06 Thread tom rhodes
http://www.w3schools.com/xml/xml_cdata.asp On 6 May 2010 14:56, John Singleton johnsingleton...@yahoo.com wrote: Whoops. Now I have this in my XML: DETAILSh3Senior Citizen Discount/h3 bDelta Electric and Construction Co., Inc./b finds its pricing to be fair and reasonable. Their prices

Re: [Flashcoders] XML Question

2010-05-06 Thread kennethkawam...@gmail.com
Wrap your text with XML character data, i.e. DETAILS![CDATA[h3Senior Citizen Discount/h3... ]]/DETAILS -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 6 May 2010 13:56, John Singleton johnsingleton...@yahoo.com wrote: Whoops. Now I have this in my XML:    DETAILSh3Senior Citizen

[Flashcoders] One Video, multiple Audio tracks?

2010-05-06 Thread Matt S.
Is there a reliable way to have one video track, but then swap in audio tracks on the fly and have them sync properly? The client wants a 26 minute video which would be in English, but then also have 8 other language versions that would be dubbed, eg the audio would play over the video. We're

Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson
Lehr, Theodore wrote: not in a php environment - pretty much has to be a pure flash solution - if possible... Flash has no server power at all. It can make HTTP requests and do socket connections, that's it. No random file writing on other computers.

[Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Merrill, Jason
I understand what a binary search algorithm is, but am wondering how that could be implemented on an array in Actionscript (if at all) without using methods that would defeating the purpose of a binary search (speed). Anyone have experience in this area? So for example, if you have a list like

Re: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Henrik Andersson
Merrill, Jason wrote: I understand what a binary search algorithm is, but am wondering how that could be implemented on an array in Actionscript (if at all) without using methods that would defeating the purpose of a binary search (speed). Anyone have experience in this area? So for example,

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
- Original Message From: kennethkawam...@gmail.com kennethkawam...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, May 6, 2010 9:08:22 AM Subject: Re: [Flashcoders] XML Question Wrap your text with XML character data, i.e. DETAILS![CDATA[h3Senior

RE: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Merrill, Jason
Just compare the middle element, if it is bigger, use the left half, else use the right half. I don't follow - can you post an Actionscript example? Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit

Re: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Hans Wichman
the most important thing being as Hendrik said that it is sorted, which in your example it is not. Say you have: [apple, banana, cherry, kiwi, orange, peach pear, pineapple, ] and you are looking for banana: middle element is orange (or kiwi) take apple, banana, cherry, kiwi, middle element is

RE: [Flashcoders] Producing a random list with no repeats

2010-05-06 Thread Merrill, Jason
/** * Generates an array of random numbers from 1 or 0 to max where all numbers through max are used, and no number is zero (if specified). * Specify true if no zeros are to be included, specify false if zeros are to be included in the

RE: [Flashcoders] XML Question

2010-05-06 Thread Merrill, Jason
Jason Merrill says he sent an earlier reply concerning my question about how to write my switch statement. No, I don't recall seeing it. I just resurrected it with Google, and thank you! This works: Well, THAT's annoying (not your fault though)- do you see this reply? I hope I'm not being

Re: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Henrik Andersson
Merrill, Jason wrote: Just compare the middle element, if it is bigger, use the left half, else use the right half. I don't follow - can you post an Actionscript example? //warning, not fully correct, will infinity loop while(leftright) { var middle=(left+right)/2; var

RE: [Flashcoders] Writing to text file

2010-05-06 Thread Merrill, Jason
in the FP10 see the FileReference.save() method That's a bit misleading. You might want to also tell him what else he needs on the server side to use that. You can't just use FileReference to save an XML file on anyone's computer. FileReference won't let you write files locally from the

RE: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Merrill, Jason
Ah - I see - very good, thanks! But you also need to employ some logic at looking at the characters in the string - first the first letter, then once you get down to a list where they all have the same first letter, then take the second, and so forth until you only have one item left - sounds

Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson
Merrill, Jason wrote: in the FP10 see the FileReference.save() method That's a bit misleading. You might want to also tell him what else he needs on the server side to use that. You can't just use FileReference to save an XML file on anyone's computer. FileReference won't let you write

RE: [Flashcoders] Writing to text file

2010-05-06 Thread Merrill, Jason
Ah - new in Flash player 10! I didn't know that. Ok -my mistake. Was never possible before - good to know. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design

Re: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Hans Wichman
Hi Jason, the complexity probably isnt that hard. You have s, you look at wordlist[wordlist.length/2], you find a g, so clearly you have to repeat that for the upper half of the list etc. Dictionary is not going to work here at least not on the whole words, you would have to store partial lookups

RE: [Flashcoders] Doing a binary search in AS3?

2010-05-06 Thread Merrill, Jason
Thanks - no, I only mentioned Dictionary to see if anyone knew if looking something up in a Dictionary object was faster or slower than a binary search. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and

[Flashcoders] Scribd CTO: “We Are Scrapping Flash And Betting The Company On HTML5″

2010-05-06 Thread Matt S.
Warning: Typical TechCrunch hyberbole and schadenfreude ahead. Scribd CTO: “We Are Scrapping Flash And Betting The Company On HTML5″ Read more: http://techcrunch.com/2010/05/05/scribd-html5/?qfds#ixzz0nBF5BxSv ___ Flashcoders mailing list

Re: [Flashcoders] Scribd CTO: “We Are Scrapping Fl ash And Betting The Company On HTML5″

2010-05-06 Thread Steve Mathews
Right tool for the job? IMO Flash has never been that great at displaying documents. On Thu, May 6, 2010 at 12:45 PM, Matt S. mattsp...@gmail.com wrote: Warning: Typical TechCrunch hyberbole and schadenfreude ahead. Scribd CTO: “We Are Scrapping Flash And Betting The Company On HTML5″ Read

Re: [Flashcoders] Scribd CTO: “We Are Scrapping Fl ash And Betting The Company On HTML5″

2010-05-06 Thread Bob Wohl
I wasn't much of a fan of the scribd docs. Not easy to search out your keywords. Different tool for different jobs. With a different view, this could be competing directly with apple since you can get some of the same content w/o paying for it through the app store? Who knows... On Thu, May 6,

RE: [Flash coders] Scribd CTO: “We Are Sc rapping Flash And Be tting The Company On HTML5″

2010-05-06 Thread David Hunter
saw this video on the following comments. nice dry delivery, very funny: http://www.youtube.com/watch?v=rfmbZkqORX4 From: mattsp...@gmail.com Date: Thu, 6 May 2010 15:45:07 -0400 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Scribd CTO: “We Are Scrapping Flash And Betting The

Re: [Flashcoders] Scribd CTO: “We Are Scrapping Fl ash And Betting The Company On HTML5″

2010-05-06 Thread Yousif Masoud
On Thu, May 6, 2010 at 9:51 PM, Steve Mathews happy...@gmail.com wrote: Right tool for the job? IMO Flash has never been that great at displaying documents. I've been using Flash to display document for just over a year now, I must admit, I didn't (and still don't) think it is inappropriate.

Re: [Flashcoders] Scribd CTO: “We Are Scrapping Fl ash And Betting The Company On HTML5″

2010-05-06 Thread Yousif Masoud
On Thu, May 6, 2010 at 8:45 PM, Matt S. mattsp...@gmail.com wrote: Warning: Typical TechCrunch hyberbole and schadenfreude ahead. Scribd CTO: “We Are Scrapping Flash And Betting The Company On HTML5″ Read more: http://techcrunch.com/2010/05/05/scribd-html5/?qfds#ixzz0nBF5BxSv I agree with

[Flashcoders]

2010-05-06 Thread poste9
static public function hex_to_ascii(sText:String):String { var thisHexChar:String; var retString:String = ; for (var i:int =0; i sText.length/2; i++) { thisHexChar= sText.charAt(i*2).toString() + sText.charAt((i*2)+1).toString();

Re: [Flashcoders] One Video, multiple Audio tracks?

2010-05-06 Thread Gerry Beauregard
Hi Matt, You could probably put the 8 other languages into mp3 files, which you can play back using the Sound class. Sound.play() has an optional startTime argument, so you can start playback at any position in the mp3. Suppose the user is playing back the FLV in English, then switches to

Re: [Flashcoders]

2010-05-06 Thread poste9
I found the problem When I use writeUTFBytes something transform my string and send the data wrong... if I use writeUTF same thing... I tryied writeMultiByte but the string goes to 2 bytes... but i dont know what charset use I really need this, can some one help me? -- Rafael Lúcio

Re: [Flashcoders]

2010-05-06 Thread Henrik Andersson
What is wrong with parseInt(str,16)? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] One Video, multiple Audio tracks?

2010-05-06 Thread Henrik Andersson
https://bugs.adobe.com/jira/browse/FP-3551 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders