Re: [Flashcoders] Using insertBefore to insert nodes into an extant XML document
var my_xml = new XML(); my_xml.parseXML(BASEBALLFIELDFIRSTBASE /THIRDBASE //BASEBALLFIELD); my_xml.firstChild.insertBefore(my_xml.createElement(SECONDBASE), my_xml.firstChild.childNodes[1]); trace(my_xml.toString()); Now you need a HOMEBASE. This is one of many areas you wish you could use E4X... Kenneth Kawamoto http://www.materiaprima.co.uk/ matt stuehler wrote: All, Sorry in advance - this is probably a trivial question, but I'm trying to figure out how to create an XML node, and insert it into a specific location in an XML document. It looks like the insertBefore method is what I need. However, the problem is that it only seems to work if I create the XML structure one node at a time (using createElement). For example, this works: my_xml = new XML(BASEBALLFIELD /); my_xml.firstChild.appendChild(my_xml.createElement(FIRSTBASE)); my_xml.firstChild.appendChild(my_xml.createElement(THIRDBASE)); my_xml.firstChild.insertBefore(my_xml.createElement(SECONDBASE),my_xml.firstChild.firstChild.nextSibling); trace(my_xml.toString()); this produces: BASEBALLFIELDFIRSTBASE /SECONDBASE /THIRDBASE //BASEBALLFIELD However, this doesn't: var my_xml = new XML(); my_xml.parseXML(BASEBALLFIELDFIRSTBASE /THIRDBASE //BASEBALLFIELD); my_xml.insertBefore(my_xml.createElement(SECONDBASE),my_xml.firstChild.firstChild.nextSibling); trace(my_xml.toString()); As far as I can tell, these two code samples are identical. The practical application - I'm loading a large document received from a webservice (In other words, I haven't created each node using createElement). I'd then like to locate a specific node deep in the hierarchy, and try to insert a new node before it. I can confirm that the node I'm using for the second parameter of insertBefore exists (using trace()), so I don't think that's the cause of the problem. Many thanks in advance for any help or insight! Cheers, Matt Stuehler ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] New game: Exxon - The decontaminator
This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including source. http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/ /Christoffer aka drZool ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Determining sound sample rate?
I would go for the second frame. I've done some testing with loading MP3's in bytearrays then creating a SWF in a bytearray with the mp3 data. When I use the info from frame 1, 50% of the mp3's play with a wrong samplerate/bitrate. I think this is done by the Xing encoder. When I skip frame 1, all is ok. Greetz, Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens ben gomez farrell Verzonden: woensdag 23 april 2008 3:42 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Determining sound sample rate? Thanks! That should get me on my way. This, in combination with the last reply about getting raw ID3, should help me out. So thanks to both of ya. ben Juan Pablo Califano wrote: Hi, as far as I know, the info you're looking for is not in the ID3 tags (which are not mandatory by the way). An mp3 file is a formed by an arbitrary number of frames, which carry information about chunks of the sound stream; each one contains a header and the actual audio data. There's no global file header, but if you're looking for the sample rate, I think it's fair to assume that the sample rate stored in the header of the first frame is the sample rate of the whole file (that might not be true if you were looking for, say, the bitrate). So, I think you can get that data if you read the file directly in binary format, look for the first frame, and read the bits indicating the sample rate. A good reference for the format spec: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html And this graphic may help to visualize the meaning of each bit in a frame header: http://upload.wikimedia.org/wikipedia/commons/0/01/Mp3filestructure.svg By the way, if you want to inspect the raw file, you should use an hexadecimal editor, you won't get far with a text editor. There are many available, some of them are free, like Hexplorer, which is what I've been using for a while. ( you can find it here: http://artemis.wszib.edu.pl/~mdudek/ ) I don't know much about the mp3 format specifically, but I have worked a bit with raw files, so if you want to give it a try and need some help, maybe I can lend you a hand. Cheers Juan Pablo Califano 2008/4/21, Steven Sacks [EMAIL PROTECTED]: Ben has an open source project on Google code that is the evolution of his old classes called Metaphile. http://code.google.com/p/metaphile/ ___ 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] Determining sound sample rate?
Bernard, are you sure the sample rate is sometimes wrong in the first frame or you mean just the bitrate? I've put some code together to read the tags and I always seem to get the right value for the sample rate (even for Xing-encoded mp3's -- assuming those are the ones with a Xing string within the first frame). In most cases, it's true that the bitrate in the first frame doesn't match the bitrate you can read if you hover the file name in Windows Explorer (in Windows, of course), but that's most likely due to variable bitrates. (By the way, I'm curious about how the explorer -- or any other software -- determines that average bitrate; is it really an average of all frames, is just the bitrate of a fixed frame... does anyone have any clue?) Anyway, it seems in some cases, the first frame stores some kind of metadata (I've seen the string LAME3.92 within the first frame of a Xing-encoded file, for instance), so it's probably a good idea to go for the second frame. Cheers Juan Pablo Califano 2008/4/23, Bernard Visscher [EMAIL PROTECTED]: I would go for the second frame. I've done some testing with loading MP3's in bytearrays then creating a SWF in a bytearray with the mp3 data. When I use the info from frame 1, 50% of the mp3's play with a wrong samplerate/bitrate. I think this is done by the Xing encoder. When I skip frame 1, all is ok. Greetz, Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens ben gomez farrell Verzonden: woensdag 23 april 2008 3:42 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Determining sound sample rate? Thanks! That should get me on my way. This, in combination with the last reply about getting raw ID3, should help me out. So thanks to both of ya. ben Juan Pablo Califano wrote: Hi, as far as I know, the info you're looking for is not in the ID3 tags (which are not mandatory by the way). An mp3 file is a formed by an arbitrary number of frames, which carry information about chunks of the sound stream; each one contains a header and the actual audio data. There's no global file header, but if you're looking for the sample rate, I think it's fair to assume that the sample rate stored in the header of the first frame is the sample rate of the whole file (that might not be true if you were looking for, say, the bitrate). So, I think you can get that data if you read the file directly in binary format, look for the first frame, and read the bits indicating the sample rate. A good reference for the format spec: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html And this graphic may help to visualize the meaning of each bit in a frame header: http://upload.wikimedia.org/wikipedia/commons/0/01/Mp3filestructure.svg By the way, if you want to inspect the raw file, you should use an hexadecimal editor, you won't get far with a text editor. There are many available, some of them are free, like Hexplorer, which is what I've been using for a while. ( you can find it here: http://artemis.wszib.edu.pl/~mdudek/ ) I don't know much about the mp3 format specifically, but I have worked a bit with raw files, so if you want to give it a try and need some help, maybe I can lend you a hand. Cheers Juan Pablo Califano 2008/4/21, Steven Sacks [EMAIL PROTECTED]: Ben has an open source project on Google code that is the evolution of his old classes called Metaphile. http://code.google.com/p/metaphile/ ___ 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] New game: Exxon - The decontaminator
pretty cool, would be nice to work out the concept and add some features here and there On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl [EMAIL PROTECTED] wrote: This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including source. http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/ /Christoffer aka drZool ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] New game: Exxon - The decontaminator
I like it. As you were talking about competition, can someone tell me which are the most common Flash competition out there, in which you can compete via a webcam. Thnks On Wed, Apr 23, 2008 at 5:38 PM, Meinte van't Kruis [EMAIL PROTECTED] wrote: pretty cool, would be nice to work out the concept and add some features here and there On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl [EMAIL PROTECTED] wrote: This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including source. http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/ /Christoffer aka drZool ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Question about the AIR security model...
I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] New game: Exxon - The decontaminator
Thanks. Yes, I have a couple of stuff I want in. Stuff like: preventing animals getting stuck in the oil, multiplayer, race, prevent oil getting lit on fire, boat upgrades. Online leveleditor. Ahhh so many possibilities, so little time. Meinte van't Kruis skrev: pretty cool, would be nice to work out the concept and add some features here and there On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl [EMAIL PROTECTED] wrote: This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including source. http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/ /Christoffer aka drZool ___ 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] New game: Exxon - The decontaminator
haha, well, not everything has to be multiplayer ;) I have some ideas, but it's always tricky, maybe a little more of some sort of a story line, not neceserally a story but just something where you can grow and expand your skills, oh well. anyway, kudos, amazing what can be done in 48 hours On Wed, Apr 23, 2008 at 8:26 PM, Christoffer Enedahl [EMAIL PROTECTED] wrote: Thanks. Yes, I have a couple of stuff I want in. Stuff like: preventing animals getting stuck in the oil, multiplayer, race, prevent oil getting lit on fire, boat upgrades. Online leveleditor. Ahhh so many possibilities, so little time. Meinte van't Kruis skrev: pretty cool, would be nice to work out the concept and add some features here and there On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl [EMAIL PROTECTED] wrote: This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including source. http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/ /Christoffer aka drZool ___ 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 -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] problem detecting when progressive video has reached the end - AS3
Hi guys, I am have a difficult time detecting when a progressive video has played to the end. is there listener for this? note: I'm not using the flvPlayback - I'm creating the video using : _video=new Video(510,382); -- Carl Welch http://www.carlwelch.com http://www.jointjam.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] hitarea not working when cacheAsBitmap is true?
Hi folks, I have a clip with a hitarea attached ie: myClip.hitArea = myHitArea; works like a charm... but now I want to attach a filter to the hitArea. Attaching a filter automatically sets cacheAsBitmap to true, and the hitarea no longer works. Any ideas why this is happening? It is only happening in a certain version of the player 8 (in as2). When I run my content in the default flashdevelop player or player 9, it all works ok. greetz JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: hitarea not working when cacheAsBitmap is true?
Hi, further investigation reveals it only happens when myHitArea is drawn by code :-S and we turn on cacheAsBitmap greetz JC On Wed, Apr 23, 2008 at 10:16 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi folks, I have a clip with a hitarea attached ie: myClip.hitArea = myHitArea; works like a charm... but now I want to attach a filter to the hitArea. Attaching a filter automatically sets cacheAsBitmap to true, and the hitarea no longer works. Any ideas why this is happening? It is only happening in a certain version of the player 8 (in as2). When I run my content in the default flashdevelop player or player 9, it all works ok. greetz JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] SOLVED Re: hitarea not working when cacheAsBitmap is true?
Hi, for n1 who is interested, if I simply attach a dynamically drawn bitmap as hitarea instead of a dynamically drawn movieclip, it works just fine. Crappy bug tbh. greetz JC On Wed, Apr 23, 2008 at 10:16 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi folks, I have a clip with a hitarea attached ie: myClip.hitArea = myHitArea; works like a charm... but now I want to attach a filter to the hitArea. Attaching a filter automatically sets cacheAsBitmap to true, and the hitarea no longer works. Any ideas why this is happening? It is only happening in a certain version of the player 8 (in as2). When I run my content in the default flashdevelop player or player 9, it all works ok. greetz JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Language translation from English to german/russian etc
Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Language translation from English to german/russian etc
anuj Sharma wrote: I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage I strongly recommend against using machine translation, especially for languages as different as Japanese and English. I just plugged this into the Web site you mentioned: お兄ちゃんに嫌われたくないから、いつまでもお気に入りでいて欲しいから、ちょっ とはずかしいけど、頑張っちゃった and got this translation: Because we would not like to be disliked because, forever we want being favorite in the brother, however the just a little expectation oak to be, the obstinate Hari [tsu] [chi] [ya] [tsu] you want. Is that what you want your clients to see? You have another issue to deal with--the Flash player doesn't support bidirectional languages like Hebrew, Arabic, or Farsi. You can make output work with a lot of hard work--I know an Israeli woman living in Dublin who has done Hebrew successfully, but she had to do all sorts of workarounds, and she's a genius to start with. You need to get good human translators for your UI, and plan on spending some time getting it to work right. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Language translation from English to german/russian etc
Not sure about what your deadline is on these things but wouldn't it be better to rip all the text out and have that feed from an xml file? On Wed, Apr 23, 2008 at 2:13 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ 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] Language translation from English to german/russian etc
I don't know where you got it from, but perhaps it's good that you got dodgy translation because your Japanese text itself is well dodgy (not in grammatical sense). Kenneth Kawamoto http://www.materiaprima.co.uk/ Kerry Thompson wrote: anuj Sharma wrote: I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage I strongly recommend against using machine translation, especially for languages as different as Japanese and English. I just plugged this into the Web site you mentioned: お兄ちゃんに嫌われたくないから、いつまでもお気に入りでいて欲しいから、ちょっ とはずかしいけど、頑張っちゃった and got this translation: Because we would not like to be disliked because, forever we want being favorite in the brother, however the just a little expectation oak to be, the obstinate Hari [tsu] [chi] [ya] [tsu] you want. Is that what you want your clients to see? You have another issue to deal with--the Flash player doesn't support bidirectional languages like Hebrew, Arabic, or Farsi. You can make output work with a lot of hard work--I know an Israeli woman living in Dublin who has done Hebrew successfully, but she had to do all sorts of workarounds, and she's a genius to start with. You need to get good human translators for your UI, and plan on spending some time getting it to work right. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Language translation from English to german/russian etc
Hi, Look at the Strings Panel - Window-Other Panels-Strings With this, you can apply ID's to each of your text fields on stage. You then create separate XML files, one for each language, with the ID's and corresponding text, that you can Apply at authoring time. (Check the help in the panel for more info). This seems like the best way to help you with non-actionscript swapping of languages. It's probably a bit late now, but it would have been a good idea to design with translation in mind - you will reduce the amount of problems with translated words screwing up your layout if you have translations in advance... Dave Williamson gave a useful presentation on Localisation Mobilisation at Flash On The Beach. A blog post presentation files are here. Although it's missing his speech, the files have some useful snippets of code and links - especially a useful bit of AS to deal with choosing which font to use and fall backs... http://blog.bittube.com/2007/11/11/flash-on-the-beach-07-presentation-files/ HTH Glen anuj sharma wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ 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
[Flashcoders] Re: Language translation from English to german/russian etc
Thanks for your help guys, Hmm this seems little trickier than i thought. ok i will se if I can convince my management to give some time to me to create XML for languages. Anyone if find any other shorter and easier way please let me know. All your help is/will be highly appreciated Anuj On Wed, Apr 23, 2008 at 2:13 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Language translation from English to german/russian etc
http://www.ambysoft.com/essays/brokenTriangle.html http://office.microsoft.com/en-us/project/HA010211801033.aspx anuj sharma wrote: Thanks for your help guys, Hmm this seems little trickier than i thought. ok i will se if I can convince my management to give some time to me to create XML for languages. Anyone if find any other shorter and easier way please let me know. All your help is/will be highly appreciated Anuj On Wed, Apr 23, 2008 at 2:13 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ 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
[Flashcoders] Flex scrollbar skinning
Hi, I am trying to skin a Scrollbar - using Flex 2.0.1 and am seeing some inconsistent results. I have deliberately made the skins 21px wide as opposed to the standard 16px wide skin images supplied in the flex skins PSD / FLA files - to match a design for the project - as I understand the width of the arrow skins is supposed to force the ScrollBar's width (or height for an HScrollBar) The problem is that Flex is not consistent at applying the layout properly: For my Canvas component - it gets the track width correct, but the arrows are resized to 16px x 16px and the track to 16px wide for VScrollBar HScrollBar For my TextArea - it gets the VScrollBar correct, but TextArea's do not show an HScrollBar methinks... I have a custom component which extends ScrollBase for showing an oversized image - for this Flex gets the VScrollbar dimensions correct for all the elements, but the HScrollbar is drawn the same as the Canvas component. I am guessing this is a bug somewhere - are there any workarounds people can recommend - apart from setting all my skins to the same dimensions as the Flex default ones? Cheers Glen -- 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] Language translation from English to german/russian etc
Kenneth Kawamoto wrote: I don't know where you got it from, but perhaps it's good that you got dodgy translation because your Japanese text itself is well dodgy (not in grammatical sense). I figured there would be a Japanese speaker who would catch that ^_^ I copied and pasted it from a Japanese Web site. It's a little pop-culture poem, kind of impressionistic, and poems don't play by the grammar rules. Perhaps I chose an extreme case to make my point--poems seldom translate well--but the English gibberish it output certainly shows the limits of machine translation. Even though I chose a pop poem, it's from a Japanese Web site, based in Japan, and run by a Japanese company in Japan. I can't vouch for the grammar--I speak Chinese, but not Japanese--but I still stand by my position that machine translation is nowhere near ready for prime time. Perhaps now is a good time to mention that I used to be Engineering Manager for what was then the world's largest localization company, Bowne Global Solutions. You can partially automate the translation process using a program like Trados, but you still need a human native-level speaker to do your translation, not a program. Just a couple of quick examples from Chinese where there isn't one-to-one mapping. In English, we have words for gate and door. In Chinese, they're the same (pronounced men in Chinese, guchi in Japanese). Chinese also uses one word for the English words question and problem. When I was living in Beijing, my wife (a native Chinese woman who speaks English better than I do--she edits college text books) worked for the PRC's Foreign Languages Press as a polish editor. That mean, briefly, that they had Chinese translators who translated their books into English, and she translated their English into real English. So, even with human translators who speak English on a fairly high level, you still need that native-speaker eye. And, I know from experience that straight machine translations aren't anywhere near the level of the human translators my wife worked with. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Determining sound sample rate?
Well, I was just looking @ my code when you posted this. I found that I read the channels wrong for stereo (not joint), I use the channel data to calculate how many samples I need. I now tried starting @ frame 1 and no problems yet. So I think it's my mistake, but I can't see why frame 2 always worked for me :S About the Meta data, that's true, but that is ignored when the correct seek is used :) -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Juan Pablo Califano Verzonden: woensdag 23 april 2008 14:40 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Determining sound sample rate? Bernard, are you sure the sample rate is sometimes wrong in the first frame or you mean just the bitrate? I've put some code together to read the tags and I always seem to get the right value for the sample rate (even for Xing-encoded mp3's -- assuming those are the ones with a Xing string within the first frame). In most cases, it's true that the bitrate in the first frame doesn't match the bitrate you can read if you hover the file name in Windows Explorer (in Windows, of course), but that's most likely due to variable bitrates. (By the way, I'm curious about how the explorer -- or any other software -- determines that average bitrate; is it really an average of all frames, is just the bitrate of a fixed frame... does anyone have any clue?) Anyway, it seems in some cases, the first frame stores some kind of metadata (I've seen the string LAME3.92 within the first frame of a Xing-encoded file, for instance), so it's probably a good idea to go for the second frame. Cheers Juan Pablo Califano 2008/4/23, Bernard Visscher [EMAIL PROTECTED]: I would go for the second frame. I've done some testing with loading MP3's in bytearrays then creating a SWF in a bytearray with the mp3 data. When I use the info from frame 1, 50% of the mp3's play with a wrong samplerate/bitrate. I think this is done by the Xing encoder. When I skip frame 1, all is ok. Greetz, Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens ben gomez farrell Verzonden: woensdag 23 april 2008 3:42 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Determining sound sample rate? Thanks! That should get me on my way. This, in combination with the last reply about getting raw ID3, should help me out. So thanks to both of ya. ben Juan Pablo Califano wrote: Hi, as far as I know, the info you're looking for is not in the ID3 tags (which are not mandatory by the way). An mp3 file is a formed by an arbitrary number of frames, which carry information about chunks of the sound stream; each one contains a header and the actual audio data. There's no global file header, but if you're looking for the sample rate, I think it's fair to assume that the sample rate stored in the header of the first frame is the sample rate of the whole file (that might not be true if you were looking for, say, the bitrate). So, I think you can get that data if you read the file directly in binary format, look for the first frame, and read the bits indicating the sample rate. A good reference for the format spec: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html And this graphic may help to visualize the meaning of each bit in a frame header: http://upload.wikimedia.org/wikipedia/commons/0/01/Mp3filestructure.svg By the way, if you want to inspect the raw file, you should use an hexadecimal editor, you won't get far with a text editor. There are many available, some of them are free, like Hexplorer, which is what I've been using for a while. ( you can find it here: http://artemis.wszib.edu.pl/~mdudek/ ) I don't know much about the mp3 format specifically, but I have worked a bit with raw files, so if you want to give it a try and need some help, maybe I can lend you a hand. Cheers Juan Pablo Califano 2008/4/21, Steven Sacks [EMAIL PROTECTED]: Ben has an open source project on Google code that is the evolution of his old classes called Metaphile. http://code.google.com/p/metaphile/ ___ 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