Re: [Flashcoders] streaming mp3s not consistent
what would be the netstream method to do this please? On 6 Oct 2008, at 12:40, Allandt Bik-Elliott (Receptacle) wrote: hi guys i have a quick question regarding streaming mp3s. I have several (hundred) dynamically loaded mp3s that i've been streaming into flash using the following code: NOTE: AS2 [code] private function startMouth():Void { var avatarSound:Sound = new Sound(); avatarSound.loadSound(mp3, true); avatarSound.onSoundComplete = Delegate.create(this, stopMouth); } [/code] mp3 is a getter that grabs the property _mp3 which is set dynamically before the method the problem i'm having is that the mp3s don't always stream fully and can stop before the end (and because of this, the onSoundComplete never fires). This is for a high-use application so we expect high server-load and spikes which makes me think that streaming might not be the best way - the mp3s are between 5-8k each so i was thinking that preloading them individually before use might be better would you agree with this or is there a better way of doing this? thanks a lot alz ___ 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] RESUME: Senior Flash Developer (2)
at what point do daily job updates become spam? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RESUME: Senior Flash Developer (2)
LOL! I think people need to answer an as3 quiz in order to register so that only qualified people are subscribed, WHAT A GOOD IDEA :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RESUME: Senior Flash Developer (2)
I agree and although the occasional job is nice, if only to see what the market is like, I do feel that Beau is starting to use this list as his personal source for flash/flex developers. And what cracks me up even more is that he does not want any recruiters replying to his jobs. Isn't he a recruiter himself and isn't that what recruiters do anyway... Can we keep this list to what it supposed to be about and that is discussing flash/as3 issues and not recruiting... Seriously Beau, if you have nothing to contribute to the discussions of flash/as3 that will benefit the community and not your pockets then please don't use this list. I think people need to answer an as3 quiz in order to register so that only qualified people are subscribed, WHAT A GOOD IDEA :) My 2cents or should it be pennys??? M On 9 Oct 2008, at 09:05, allandt bik-elliott wrote: at what point do daily job updates become spam? ___ 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] RESUME: Senior Flash Developer (2)
Why set your sights so LOW... ;) on 10/9/08 7:21 AM, Weyert de Boer at [EMAIL PROTECTED] wrote: I am still waiting for that job offer on the list that requires me to travel to big cities around the globe every n weeks. And of course allows me to telecommute, pays my health care insurance. Not forget pays the ecnomy class tickets to the islands in the pacific where I prefer to telecommute from. Preferable four days of actual working and one paid day in the week for cultural matters. All for at least 80.000euro. ___ === John R. Sweeney Jr.([EMAIL PROTECTED]) Interactive Multimedia Developer/ Digital Media Specialist OnDemand - Interactive, Inc. 847.651.4469 (cell) 847.310.5959 (office/fax) === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RESUME: Senior Flash Developer (2)
- Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, October 09, 2008 1:21 PM Subject: Re: [Flashcoders] RESUME: Senior Flash Developer (2) I am still waiting for that job offer on the list that requires me to travel to big cities around the globe every n weeks. And of course allows me to telecommute, pays my health care insurance. Not forget pays the ecnomy class tickets to the islands in the pacific where I prefer to telecommute from. Preferable four days of actual working and one paid day in the week for cultural matters. All for at least 80.000euro. You should be on the government sponsored banking futures list... ;-) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RESUME: Senior Flash Developer (2)
I am still waiting for that job offer on the list that requires me to travel to big cities around the globe every n weeks. And of course allows me to telecommute, pays my health care insurance. Not forget pays the ecnomy class tickets to the islands in the pacific where I prefer to telecommute from. Preferable four days of actual working and one paid day in the week for cultural matters. All for at least 80.000euro. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] System.security HELP
Hey guys! i have a really weird question I have never ran into before. i am trying to host some SWF's on two serperate domains and get them to talk to each other. But i keep getting the error *** Security Sandbox Violation *** SecurityDomain 'http://www.mydomain-other.com/mySWF.swf' tried to access incompatible context 'http://www.mydomain.com/main.swf'. What can I do to get these two to allow them to talk to each other? Is it a crossdomain issue or soemthing else? I tried doing a few things like: System.security.allowDomain(http://www.mydomain-other.com;); System.security.sandboxType = remote; And also setup some crossdomain files on both but still nothing. Any ideas for me? Thanks! Oh and its a Flash 8 AS2 project. Thanks! -- Corban Baxter http://www.projectx4.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Question e4x attributes text replace
Hello, I have this xml file that I would like to filter on a certain string $$lang$$ and I was wondering if it is possible in one go using regExp instead of looping through an XMLList var conf:XML = config assets asset id=chapter1 path=assets/$$lang$$/chapter1.swf / asset id=chapter2 path=assets/$$lang$$/chapter2.swf / asset id=chapter3 path=assets/$$lang$$/chapter3.swf / asset id=chapter_$$lang$$ path=assets/$$lang$$/chapter4.swf / /assets /config I know it is possible to do inline functions but could get the current node and then replace the text var processed:XMLList = conf..*.(test(attributes()) ); function test(tValue:Object):void { trace('called' , tValue) } In this case how do I get acces to the current XMLList and change the $$lang$$ for another string Hope somebody can help me out. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question e4x attributes text replace
Convert the XML to a string. Do the regExp replace on the string. Reparse the XML? e.g. var str:String=xml.toXMLString(); // do replacement here... xml=new XML(str); Might not be the fastest in the world, depending on the amount of XML you are parsing, but it'll do the job. HTH, Ian On Thu, Oct 9, 2008 at 5:56 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Hello, I have this xml file that I would like to filter on a certain string $$lang$$ and I was wondering if it is possible in one go using regExp instead of looping through an XMLList var conf:XML = config assets asset id=chapter1 path=assets/$$lang$$/chapter1.swf / asset id=chapter2 path=assets/$$lang$$/chapter2.swf / asset id=chapter3 path=assets/$$lang$$/chapter3.swf / asset id=chapter_$$lang$$ path=assets/$$lang$$/chapter4.swf / /assets /config I know it is possible to do inline functions but could get the current node and then replace the text var processed:XMLList = conf..*.(test(attributes()) ); function test(tValue:Object):void { trace('called' , tValue) } In this case how do I get acces to the current XMLList and change the $$lang$$ for another string Hope somebody can help me out. Jiri ___ 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] Re: masking w/o using bitmapCaching = true?
Hello good folks, I was wondering if the silence to this email was an indication that there is no workaround/solution? :( Thank you kindly, Seb. sebastian wrote: Hello folks, quick question, I have a scrolling menu here and in the current design it has 'bitmapCaching = true' for the entire menu so that it can fade at the edges as it scrolls off screen. The menu has in it dynamic text fields, buttons vectors and images per menu-item all loaded via a combination of XML and timeline defined visual elements in Flash made by my predecessor. Only problem is, bitmapCaching=true means that the processor has real difficulty keeping up with animating the menu + all the BG animations that are present. The BG animations have to stay very fluid and not clunky. Once the menu stops tweening to its new locaiton, the BG animations resume smooth movement. If I remove the mask it stays slow when the menu moves, but if I turn off bitmap caching, the menu moves fine and the BG animations do not slow down. Is there any way to have a MC that has a mask assigned to it w/o using bitmap caching? Or, is there a way to use bitmapCaching w/o slowing down the whole sink with it? Thanks! Sebastian. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: masking w/o using bitmapCaching = true?
yes, you don't use bitmapCaching with animated movie. Catching must be done when nothing moves. You can try enabling and disabling BitmapCaching after and before animating it's content. L sebastian a écrit : Hello good folks, I was wondering if the silence to this email was an indication that there is no workaround/solution? :( Thank you kindly, Seb. sebastian wrote: Hello folks, quick question, I have a scrolling menu here and in the current design it has 'bitmapCaching = true' for the entire menu so that it can fade at the edges as it scrolls off screen. The menu has in it dynamic text fields, buttons vectors and images per menu-item all loaded via a combination of XML and timeline defined visual elements in Flash made by my predecessor. Only problem is, bitmapCaching=true means that the processor has real difficulty keeping up with animating the menu + all the BG animations that are present. The BG animations have to stay very fluid and not clunky. Once the menu stops tweening to its new locaiton, the BG animations resume smooth movement. If I remove the mask it stays slow when the menu moves, but if I turn off bitmap caching, the menu moves fine and the BG animations do not slow down. Is there any way to have a MC that has a mask assigned to it w/o using bitmap caching? Or, is there a way to use bitmapCaching w/o slowing down the whole sink with it? Thanks! Sebastian. ___ 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] streaming mp3s not consistent
If it's event sounds, it sounds you should download them all at first. L Allandt Bik-Elliott (Receptacle) a écrit : what would be the netstream method to do this please? On 6 Oct 2008, at 12:40, Allandt Bik-Elliott (Receptacle) wrote: hi guys i have a quick question regarding streaming mp3s. I have several (hundred) dynamically loaded mp3s that i've been streaming into flash using the following code: NOTE: AS2 [code] private function startMouth():Void { var avatarSound:Sound = new Sound(); avatarSound.loadSound(mp3, true); avatarSound.onSoundComplete = Delegate.create(this, stopMouth); } [/code] mp3 is a getter that grabs the property _mp3 which is set dynamically before the method the problem i'm having is that the mp3s don't always stream fully and can stop before the end (and because of this, the onSoundComplete never fires). This is for a high-use application so we expect high server-load and spikes which makes me think that streaming might not be the best way - the mp3s are between 5-8k each so i was thinking that preloading them individually before use might be better would you agree with this or is there a better way of doing this? thanks a lot alz ___ 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: masking w/o using bitmapCaching = true?
Sebastian, With cacheAsBitmap = false, can you overlay your menu with a gradient that has a transparent center then, using a separate graphic, mask the menu only? Regards, -Keith http://keithreinfeld.home.comcast.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] can audio be extracted from .flv (audio only) and converted to .mp3 using AS3?
Hi, I have been looking into this and ffmpeg should now be able to extract the MP3 from an FLV - a recent update includes the Nelly Moser codec. All my bookmarks are at work, but I will forward them tomorrow and if you are still stuck, I will post them. If you google flv mp3 ffmpeg you may get some hits. I am guessing that if you are running Red5, you have shell access to the server - you will need this to setup ffmpeg, but you can use PHP to call server side scripts - be careful of this because you are potentially opening security holes if you allow user input to name your files - you may also be able to get a Red5 application to do the same. If I remember, some of the Red5 samples show saving audio, but as FLV's. Maybe you can tap into these app's to see if you can call command line stuff. If it's Java, it may be trickier, because Java will probably enforce some kind of sandbox, whereas PHP is pretty loose about what you do. HTH Glen Juan Pablo Califano wrote: I think you can use exec, passthru, shell_exec or some other similiar function from the php side to run the program on the server as an external process (I never did that, but with the proper permissions, I believe it's possible). So, you would tell this program to extract the audio data to some file and when it returns, you could pass the path of the new mp3 to the flash app for it to load it. Cheers Juan Pablo Califano 2008/10/8, BOYD SPEER [EMAIL PROTECTED]: Thanks , Juan! can a php script interact with this converter (or how would you hook into this from a .swf that is running on a client machine?) I would like to save a streaming audio on Red5 streaming server and then quickly do the conversion and play it as an.mp3 so I can use the new sound api to draw an image of the sound. (I can't seem to get this to happen with the native nelly moser / flv files. ) -Boyd - Original Message - From: Juan Pablo Califano [EMAIL PROTECTED] Date: Wednesday, October 8, 2008 11:20 am Subject: Re: [Flashcoders] can audio be extracted from .flv (audio only) and converted to .mp3 using AS3? To: Flash Coders List flashcoders@chattyfig.figleaf.com I've tried (but not used extensively) Moyea FLV Converter SDK for extracting Nellymoser encoded audio. I has a command line interface so you can use it programmatically from the server side. I tried with .NET and I think it's Windows only, though, so if you're running php on Linux, it's probably not an option. I think the trial limits the extracted sample to 30 secs or something like that. http://www.flvsoft.com/flv_converter_sdk/ Cheers Juan Pablo Califano 2008/10/8, BOYD SPEER [EMAIL PROTECTED]: Can audio be extracted from .flv (audio only) and converted to .mp3 using AS3 / php? alternately... Is it possible to play a streaming sound from an .flv file on FMS or Red5 and use SpectrumAnalyzer class to display an image created from the byteArrays in the sound channels? How could you pass the data from the streaming sound to the spectrum analyzer instance? (Does not seem to work when passing a stream... needs a URLLoader ...). -Boyd ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] System.security HELP
Hi, I am not sure about 2 SWF's communicating across domains - that sounds like it would use JavaScript, which probably won't work because it is essentially cross site scripting (XSS), which is usually forbidden for JS. If you are loading one SWF inside another, you need to have a crossdomain.xml file in the root directory of mydomain-other.com (if that is the SWF you are loading). If it loads the SWF, then that bit works. The next bit is whether the SWF you loaded is allowed to talk to the parent one, that maybe a bigger can of worms and I am still trying to get my head around it all. I think you have to put the but there are some articles here... http://www.adobe.com/devnet/flashplayer/security.html FP7 has the System.security stuff in, which will apply to 8 too. I think you need to put your System.security.allowDomain in the child swf and allow the parent to call scripts on it... http://www.adobe.com/devnet/flashplayer/security.html HTH Glen Corban Baxter wrote: Hey guys! i have a really weird question I have never ran into before. i am trying to host some SWF's on two serperate domains and get them to talk to each other. But i keep getting the error *** Security Sandbox Violation *** SecurityDomain 'http://www.mydomain-other.com/mySWF.swf' tried to access incompatible context 'http://www.mydomain.com/main.swf'. What can I do to get these two to allow them to talk to each other? Is it a crossdomain issue or soemthing else? I tried doing a few things like: System.security.allowDomain(http://www.mydomain-other.com;); System.security.sandboxType = remote; And also setup some crossdomain files on both but still nothing. Any ideas for me? Thanks! Oh and its a Flash 8 AS2 project. Thanks! -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] System.security HELP
yeah thats the thing. I have a loded SWF that is trying to talk to the main swf from mydomain.com. I can make it do the reverse but I was getting the out of context error in both cases. On Thu, Oct 9, 2008 at 3:14 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, I am not sure about 2 SWF's communicating across domains - that sounds like it would use JavaScript, which probably won't work because it is essentially cross site scripting (XSS), which is usually forbidden for JS. If you are loading one SWF inside another, you need to have a crossdomain.xml file in the root directory of mydomain-other.com (if that is the SWF you are loading). If it loads the SWF, then that bit works. The next bit is whether the SWF you loaded is allowed to talk to the parent one, that maybe a bigger can of worms and I am still trying to get my head around it all. I think you have to put the but there are some articles here... http://www.adobe.com/devnet/flashplayer/security.html FP7 has the System.security stuff in, which will apply to 8 too. I think you need to put your System.security.allowDomain in the child swf and allow the parent to call scripts on it... http://www.adobe.com/devnet/flashplayer/security.html HTH Glen Corban Baxter wrote: Hey guys! i have a really weird question I have never ran into before. i am trying to host some SWF's on two serperate domains and get them to talk to each other. But i keep getting the error *** Security Sandbox Violation *** SecurityDomain 'http://www.mydomain-other.com/mySWF.swf' tried to access incompatible context 'http://www.mydomain.com/main.swf'. What can I do to get these two to allow them to talk to each other? Is it a crossdomain issue or soemthing else? I tried doing a few things like: System.security.allowDomain(http://www.mydomain-other.com;); System.security.sandboxType = remote; And also setup some crossdomain files on both but still nothing. Any ideas for me? Thanks! Oh and its a Flash 8 AS2 project. Thanks! -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Corban Baxter http://www.projectx4.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: masking w/o using bitmapCaching = true?
You should try BlendMode.ERASE. Draw a gradient with alpha=0 at center, and alpha=1 at the edges. Place it right on top of your menu and set its blendMode to ERASE. The sprite containing the menu and the mask must have blendMode set to LAYER (or any other blendMode with a similar working). maskGradient.blendMode = BlendMode.ERASE; container.blendMode = BlendMode.LAYER; -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders