Re: [Flashcoders] Using insertBefore to insert nodes into an extant XML document

2008-04-23 Thread Kenneth Kawamoto
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

[Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Christoffer Enedahl
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

RE: [Flashcoders] Determining sound sample rate?

2008-04-23 Thread Bernard Visscher
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

Re: [Flashcoders] Determining sound sample rate?

2008-04-23 Thread Juan Pablo Califano
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

Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Meinte van't Kruis
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

Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Pedro Kostelec
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

[Flashcoders] Question about the AIR security model...

2008-04-23 Thread John Axel Eriksson
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

Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Christoffer Enedahl
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

Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Meinte van't Kruis
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

[Flashcoders] problem detecting when progressive video has reached the end - AS3

2008-04-23 Thread Carl Welch
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

[Flashcoders] hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
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

[Flashcoders] Re: hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
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

[Flashcoders] SOLVED Re: hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
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

[Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread anuj sharma
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

RE: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread Kerry Thompson
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,

Re: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread maurice sallave
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

Re: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread Kenneth Kawamoto
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

Re: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread Glen Pike
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

[Flashcoders] Re: Language translation from English to german/russian etc

2008-04-23 Thread anuj sharma
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,

Re: [Flashcoders] Re: Language translation from English to german/russian etc

2008-04-23 Thread Glen Pike
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

[Flashcoders] Flex scrollbar skinning

2008-04-23 Thread Glen Pike
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

RE: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread Kerry Thompson
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

RE: [Flashcoders] Determining sound sample rate?

2008-04-23 Thread Bernard Visscher
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