Re: [Flashcoders] Mailing Lists and Tools

2013-05-24 Thread Kenneth Kawamoto
For what I do phpStorm looks perfect - it supports JS/jQuery and SASS, and it has FTP/SVN client. I'll try it out. Thanks guys. Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 May 2013, at 23:35, Rick Hassen wrote: if you really like Webstorm, some understand it to be a stripped down

Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kenneth Kawamoto
if there are alternative with above equipped. I don't like to be laughed at. But I know none. Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 May 2013, at 16:17, James Merrill wrote: I've been moving to StackOverflow for questions, and Reddit's coding subreddits for general programming discussion Here's

Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kenneth Kawamoto
Thanks for suggestions gentlemen. I don't think Sublime does jQuery? Jetbrains editors look good. Dreamweaver doesn't do SASS well so that's something I will definitely like in these editors :) Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 May 2013, at 17:39, Marco Terrinoni wrote

Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kenneth Kawamoto
Webstorm doesn't support PHP :( Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 May 2013, at 17:35, Jon Bradley wrote: There are many better alternatives for professional coding that include automated building, unit testing, support for SCSS and LESS, grunt, etc. I wouldn't

Re: [Flashcoders] E4X XML manipulation

2011-10-16 Thread Kenneth Kawamoto
)[0]; } trace(xml); // trace my_xml row id=a parent=a row id=b parent=a/ row id=c parent=a/ /row row id=d parent=d row id=e parent=d/ row id=f parent=d/ /row /my_xml Kenneth Kawamoto http://www.materiaprima.co.uk/ On 14/10/2011 17:34, Paul Andrews

Re: [Flashcoders] E4X XML manipulation

2011-10-16 Thread Kenneth Kawamoto
/row row id=f parent=d/ /row /my_xml Kenneth Kawamoto http://www.materiaprima.co.uk/ On 16/10/2011 13:25, Paul Andrews wrote: On 16/10/2011 13:01, Paul Andrews wrote: On 16/10/2011 10:06, Kenneth Kawamoto wrote: Here's one way: var xml:XML = my_xml row id=a parent=a / row id=b parent

Re: [Flashcoders] E4X XML manipulation

2011-10-12 Thread Kenneth Kawamoto
(xml); // trace my_xml row id=a row id=b/ row id=c/ /row /my_xml Kenneth Kawamoto http://www.materiaprima.co.uk/ On 11/10/2011 14:53, Paul Andrews wrote: What's the best way to turn this: myXMLNode = my_xml row id=a / row id=b / row id=c / /my_xml; into: my_xml row id=a row

Re: [Flashcoders] Vector.map()

2011-08-19 Thread Kenneth Kawamoto
item + 30; } trace(new uint[1, 2, 3, 4, 5].map(vectorMapper)); // traces undefined Vector.map() does, well, f-all. I can use forEach() to get what I want but this doesn't look right. Thanks for testing MM! Kenneth Kawamoto http://www.materiaprima.co.uk/ On 19/08/2011 13:36, Mendelsohn, Michael

[Flashcoders] Vector.map()

2011-08-18 Thread Kenneth Kawamoto
Dear coders, Vector.map() is supposed to return a new Vector but it appears to return nothing (undefined). Is this working for you? Regards, Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Vector.map()

2011-08-18 Thread Kenneth Kawamoto
What do you get for h? Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18/08/2011 21:08, Mendelsohn, Michael wrote: Hi Kenneth... This is working for me: var g:Vector.uint = Vector.uint([1,2,3,4,5]); var h:Vector.uint = g.map(mapper); function mapper(item:uint,ind:uint,g:Vector.uint

Re: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Kenneth Kawamoto
That's not valid XML Kenneth Kawamoto http://www.materiaprima.co.uk/ On 22/07/2011 19:06, Mendelsohn, Michael wrote: Hi list... The second line returns an XMLList only if the first line (bug) isn't commented out. If the first line is commented out, the second line returns null. How can

Re: [Flashcoders] Stage video

2011-06-17 Thread Kenneth Kawamoto
. Kenneth Kawamoto http://www.materiaprima.co.uk/ On 17/06/2011 00:06, John R. Sweeney Jr wrote: Well Mister Winkie :) what is the proper name? Thanks, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com

Re: [Flashcoders] Stage video

2011-06-17 Thread Kenneth Kawamoto
FP10.3 SWC http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer10-3/flashplayer10-3_playerglobal_052011.swc Kenneth Kawamoto http://www.materiaprima.co.uk/ On 17/06/2011 00:06, John R. Sweeney Jr wrote: Well Mister Winkie :) what is the proper name? Thanks, John

Re: [Flashcoders] Stage video

2011-06-16 Thread Kenneth Kawamoto
That's not the correct name! ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ On 16/06/2011 18:05, John R. Sweeney Jr wrote: I currently have CS3, CS4 and CS5 on my system and a global search for playerglobals.swc comes up with nothing. If that is the correct name, it is not anywhere on my

Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Kenneth Kawamoto
var xml:XML = root pets group=A pet name=Rover/ pet name=Buffy/ /pets pets group=B pet name=Spot/ pet name=Sugar/ /pets /root; trace(xml.pets.pet.(@name == Sugar).parent().@group); // B Perhaps you don't want to call your XML pets as it's a node name as well. Kenneth Kawamoto http

Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Kenneth Kawamoto
trace(xml.pets.pet.(toXMLString() == 'pet name=Sugar/').parent().@group); // B -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 05/05/2011 17:06, Mendelsohn, Michael wrote: Thanks everyone. I don't want to find thepet node by using just @name. I need to match a node in xml.pets

Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Kenneth Kawamoto
This may be slightly more elegant than using toXMLString(): trace(xml.pets.pet.(contains(pet name=Sugar/)).parent().@group); // B Kenneth Kawamoto http://www.materiaprima.co.uk/ On 05/05/2011 17:06, Mendelsohn, Michael wrote: Thanks everyone. I don't want to find thepet node by using just

Re: [Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file

2010-11-30 Thread Kenneth Kawamoto
not qualifying nodes: var xml2:XML = pack /; xml2.appendChild(xml.dog.(attribute(id) == 2)); Kenneth Kawamoto http://www.materiaprima.co.uk/ On 01/12/2010 05:33, Mendelsohn, Michael wrote: Sorry list! I didn't properly title that post! :-( - MM Hi list... I want loop through to delete certain nodes

Re: [Flashcoders] Actionscript 4?

2010-11-09 Thread Kenneth Kawamoto
What?! I don't know which Kenneth Kawamoto you're referring to, Kerry, but I do not work for Adobe and I'm definitely not an ECMA Script Committee member either! May be you got mixed up with someone else from my Director-list days? Anyway it's good to be confused with someone better than I

Re: [Flashcoders] Left shifting input text as user types is unreliable

2010-09-24 Thread Kenneth Kawamoto
Some testers had reported that they were unable to enter a '@' symbol because when the tried to they got an '' (double quote). This is usually caused by wmode set to transparent. Kenneth Kawamoto http://www.materiaprima.co.uk/ On 24/09/2010 15:36, Paul Andrews wrote: On 22/09/2010 20:25

Re: [Flashcoders] fl.controls.Label.textField.textColor not working

2010-09-21 Thread Kenneth Kawamoto
If you cancel the TextFormat you should be able to apply textColor, i.e. _label.setStyle(textFormat, new TextFormat(null, null, null)); _label.textField.textColor = 0xff; But then you may as well just do: _label.setStyle(textFormat, new TextFormat(null, null, 0xff)); ;) Kenneth

Re: [Flashcoders] E4X question: counting number of subnodes

2010-08-26 Thread Kenneth Kawamoto
You can use elements() (and attributes()) to avoid getting the error, i.e. trace(Full games: + games.game.(elements(user).length() == 3).length()); Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26/08/2010 11:00, Alexander Farber wrote: Hello fellow flashcoders, I'm still struggling

Re: [Flashcoders] E4X question: counting number of subnodes

2010-08-26 Thread Kenneth Kawamoto
I meant attribute() - attribute() and attributes() are quite different things ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26/08/2010 11:41, Kenneth Kawamoto wrote: You can use elements() (and attributes()) to avoid getting the error, i.e. trace(Full games: + games.game.(elements

Re: [Flashcoders] E4X question: counting number of subnodes

2010-08-19 Thread Kenneth Kawamoto
May be this is what you after? trace(Full games: + games.game.(user.length() == 3).length()); trace(Vacant games: + games.game.(user.length() 3).length()); // Trace Full games: 1 Vacant games: 2 Kenneth Kawamoto http://www.materiaprima.co.uk/ Alexander Farber wrote: Hello, my server

Re: [Flashcoders] XML Question

2010-05-05 Thread Kenneth Kawamoto
strongly recommend you to have a look at SWFAddress, which is absolutely indispensable framework if you are creating a site driven by dynamic data ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ John Singleton wrote: - Original Message From: kennethkawam...@gmail.com kennethkawam

Re: [Flashcoders] AS3 FLVPlayback buffering state never ends bug

2010-04-22 Thread Kenneth Kawamoto
NetStream.Buffer.Full/Empty/Flush - which *may* give you more accurate info. Kenneth Kawamoto http://www.materiaprima.co.uk/ patrick [insert last name here] wrote: Hey, thanks for your response. I didn't set a playheadupdate listener yet so i'm not sure if it fires once the video starts playing

Re: [Flashcoders] AS3 FLVPlayback buffering state never ends bug

2010-04-21 Thread Kenneth Kawamoto
If you set up a listener for playheadUpdate when bufferingStateEntered occurs, do you receive playheadUpdate event when the video starts playing again? Kenneth Kawamoto http://www.materiaprima.co.uk/ patrick [insert last name here] wrote: Ok, so I've spent a lot of time trying to figure

Re: [Flashcoders] container w/ text

2010-04-16 Thread Kenneth Kawamoto
multiline wordWrap ? Kenneth Kawamoto http://www.materiaprima.co.uk/ John Singleton wrote: Hi; I have this code: function Text() { parent_container5 = new Sprite(); addChild(parent_container5); //parent_container5.width = stage.stageWidth

Re: [Flashcoders] Variables in E4X ?

2010-03-15 Thread Kenneth Kawamoto
You can also do: var myNode:String = background; var myAttr:String = url; var foo:XMLList = customxml.config[mynod...@[myattr]; You almost got it ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Steven Loe wrote: In E4X we use dot notation to access a node in an XML: var foo

Re: [Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread Kenneth Kawamoto
the user image to the server - just do everything at the client ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Anthony Pace wrote: For the first sentence I meant to say that applying an overlay at the client is fine, if you are not concerned with your stream being ripped without branding

Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread Kenneth Kawamoto
(e.target.href); Kenneth Kawamoto http://www.materiaprima.co.uk/ Susan Day wrote: On Wed, Mar 10, 2010 at 2:20 PM, Susan Day suzieprogram...@gmail.comwrote: On Wed, Mar 10, 2010 at 1:21 PM, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote: If you trace e.currentTarget what do you get

Re: [Flashcoders] Preloader, Pt. 2

2010-02-27 Thread Kenneth Kawamoto
Loader is used to load SWF or images. loader3.load(new URLRequest(index.py)); Is your Python script meant to return SWF/image? If you want to load a data, use URLLoader instead. But I think what you want is to go to another page, if so use navigateToURL(). Kenneth Kawamoto http

Re: [Flashcoders] 404 page not showing with .htaccess

2009-12-28 Thread Kenneth Kawamoto
Is your embedding URL to your SWF in your 404.html specified as site-root relative? i.e. /errorPages/your.swf Kenneth Kawamoto http://www.materiaprima.co.uk/ Cor wrote: Hi List, I don't know if this is cross-posting, if so I apologize. I have this in my .htaccess: ErrorDocument 404

Re: [Flashcoders] 404 page not showing with .htaccess

2009-12-28 Thread Kenneth Kawamoto
When you view your 404 page as non existing page www.mysite.com/bla.html, relative URLs in your 404 HTML are treated as relative to bla.html Kenneth Kawamoto http://www.materiaprima.co.uk/ Cor wrote: Thanks for replying! No, I solved it with the help of Henrik by using BASE in my head

Re: [Flashcoders] how do i say string + anything?

2009-09-23 Thread Kenneth Kawamoto
Or you could just use indexOf(). Kenneth Kawamoto http://www.materiaprima.co.uk/ strk wrote: On Wed, Sep 23, 2009 at 12:40:55PM +0100, thomas horner wrote: what i need to know if how to say is ; if(event.validBranch == index/nav/his + anything else that might follow){ Compare

Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Kenneth Kawamoto
: 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

Re: [Flashcoders] empty XML Attributes..

2009-08-26 Thread Kenneth Kawamoto
XMLList, and you can check its length(). Kenneth Kawamoto http://www.materiaprima.co.uk/ Glen Pike wrote: Hi, I am having problems parsing some XML config files and testing for empty attributes. There is an example xml below. Problem is that I am asking for the following: _co

Re: [Flashcoders] Duplicate multiple lines in FlashDevelop?

2009-08-18 Thread Kenneth Kawamoto
No, it won't work on Macs ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Yeah it is, they call it copy-pasting ;-) The key command is CTRL-C to copy and CTRL-V to paste... Think it even works on a mac too... One extra key command, but still incredibly usefull

Re: [Flashcoders] bookmarking a dynamic flash page

2009-08-06 Thread Kenneth Kawamoto
SWFAddress? Kenneth Kawamoto http://www.materiaprima.co.uk/ Andrew Sinning wrote: How could I let the user bookmark the current state of a dynamic flash page? I know how to save the current state of the movie and then just load that as the default, but what if the user should be able

Re: [Flashcoders] Filtering xml with E4X

2009-07-16 Thread Kenneth Kawamoto
You may want to try: projectsXML.project.(tags.tag.contains(Website)) Kenneth Kawamoto http://www.materiaprima.co.uk/ Mark Burvill wrote: Hello flashcoders, I'm trying to work out how to filter the below XML (loaded into a var called projectsXML) by the contents of the tag nodes, but can't

Re: [Flashcoders] no more mac ppc for adobe?

2009-07-15 Thread Kenneth Kawamoto
Intel but I also have dual G5, so this makes me sad... :) Kenneth Kawamoto http://www.materiaprima.co.uk/ Gustavo Duenas wrote: Is adobe dropping the making of programs for the mac g5 ppc machines? I'm asking this because I've just downloaded the coldfusion builder beta and the flash builder

Re: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Kenneth Kawamoto
trace((Flash).replace(/(.{2}).(.*)/, $1e$2)); // Flesh Perhaps not the answer, I know ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Paul Steven wrote: Probably something really simple but can't for the life of me recall the syntax to change a particular character of a string

Re: [Flashcoders] Distributing Fonts in a standalone application

2009-07-06 Thread Kenneth Kawamoto
, but if you want to play safe you can use Adobe fonts :) http://www.adobe.com/type/browser/legal/embeddingeula.html Kenneth Kawamoto http://www.materiaprima.co.uk/ Sumeet Kumar wrote: Hi All, I am developing a desktop application in AS 2.0, in which user can design(add text, change text font

Re: [Flashcoders] Strange characters added to file when saving from AIR using fileStream

2009-07-03 Thread Kenneth Kawamoto
I may be wrong but that could be BOM? If you use writeUTF() and open the resulting file in a Unicode editor do you still see it? Kenneth Kawamoto http://www.materiaprima.co.uk/ Cheetham, Marcus wrote: I'm using fileStream to save a text file. This works OK, but introduces some strange

Re: [Flashcoders] Aaargh - how to put an image into a fl.controls.List?!

2009-06-30 Thread Kenneth Kawamoto
It should work if you create a MovieClip in the Library and place your PNG inside, then use the MovieClip Class name as icon. Kenneth Kawamoto http://www.materiaprima.co.uk/ Roman Blöth wrote: Hello folks, since hours now I'm trying to put an image into my List... I have built some small

Re: [Flashcoders] accessing embedded cue point names

2009-06-22 Thread Kenneth Kawamoto
cuePoint event object has info property, which is an object contains properties such as name, time, and type. In your situation you would just fire some actions depending on the name of the cue point. Kenneth Kawamoto http://www.materiaprima.co.uk/ Sam Brown wrote: Hi list, Quick question

Re: [Flashcoders] swfaddress help needed

2009-06-18 Thread Kenneth Kawamoto
You should not create your NewWindow in the newClick function. Do so on SWFAddressEvent.CHANGE event instead. Kenneth Kawamoto http://www.materiaprima.co.uk/ Gustavo Duenas LRS wrote: Hi Friends. I have seen the tutorial for the swfaddress in gotoandlearn.com, but I want to use

Re: [Flashcoders] AS3: Inserting text into textInput field via code... can't do it?

2009-05-06 Thread Kenneth Kawamoto
You should be able to set the text of a TextFieldType.INPUT type TextField using text property as you are doing. Kenneth Kawamoto http://www.materiaprima.co.uk/ Carl Welch wrote: Hi, I need to place some text into a input text field - the user needs to be able to edit some text (from

[Flashcoders] Re: CS4 on non intel

2009-05-05 Thread Kenneth Kawamoto
to play before the crash) but noticed my FLA didn't compile in CS3 because of ColorMatrix etc not available in CS3. Not a workaround there. Funny thing is the same set of fonts have no issues on my Quad Intel Mac. Kenneth Kenneth Kawamoto http://www.materiaprima.co.uk/ Stephen Matthews wrote

Re: [Flashcoders] Re: CS4 on non intel

2009-05-05 Thread Kenneth Kawamoto
issues with my fonts ever. Kenneth Kawamoto http://www.materiaprima.co.uk/ Karl DeSaulniers wrote: Are they True Type fonts? Karl DeSaulniers Design Drumm http://designdrumm.com On May 5, 2009, at 5:21 PM, Kenneth Kawamoto wrote: Cheers for the heads up Steve. I got to the bottom of this CS4

Re: [Flashcoders] Re: CS4 on non intel

2009-05-05 Thread Kenneth Kawamoto
Font Suitcase as in .suit (FFIL) like AGaramond-Semibold.suit. I am not referring to Extensis product. Kenneth Kawamoto http://www.materiaprima.co.uk/ Karl DeSaulniers wrote: You had trouble with SUITCASE! The program or just a Font Suitcase? I'm in trouble if its the program then. lol Karl

Re: [Flashcoders] Re: CS4 on non intel

2009-05-05 Thread Kenneth Kawamoto
I thought about this last night - I use PC as well, you see :) Leopard's Font Book is great that you can verify fonts. On PC I'd do the usual: remove half the fonts, restart, test, then remove another half, restart, test, etc, etc. Get a Mac :P Kenneth Kawamoto http://www.materiaprima.co.uk

Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Kenneth Kawamoto
I always thought $ stands for scaler, which is basically a variable in PERL, which PHP inherited (PHP was originally a PERL module ?) Kenneth Kawamoto http://www.materiaprima.co.uk/ Muzak wrote: What does the dollar symbol do? It shows that the developer broke the underscore key on his

Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Kenneth Kawamoto
Yes you are right, Dave. Lerdorf initially created these Personal Home Page Tools [in C] to replace a small set of Perl scripts he had been using to maintain his personal homepage. - Wikipedia Kenneth Kawamoto http://www.materiaprima.co.uk/ Dave Watts wrote: (PHP was originally a PERL

[Flashcoders] CS4 crashes on Leopard/G5

2009-05-03 Thread Kenneth Kawamoto
Intel. Needless to say, needless because these things only happens on deadlines, I have this deadline so any insights are appreciated! TIA, Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders

[Flashcoders] [OT] Help needed in Bratislava

2009-04-30 Thread Kenneth Kawamoto
. TIA, Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Kenneth Kawamoto
This is shorter: for(var i:uint = 0, len:uint = myXML.book.title.length(); i len; i++){ arr.push(myXML.book.title[i]); } Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: I was using this script, is there any short way to push them into an array? Thank you. var myXML:XML

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Kenneth Kawamoto
Shorter: for each(var item:XML in myXML.book.title){ arr.push(item.toString()); } Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: I was using this script, is there any short way to push them into an array? Thank you. var myXML:XML = order book

Re: [Flashcoders] xml and e4x searching question

2009-02-20 Thread Kenneth Kawamoto
If you want to find the EMPLOYEE node you can do something like: trace(staff2.EMPLOYEE.(text()[0] == leroy).toXMLString()); trace(staff2.EMPLOYEE.(child(0) == leroy).toXMLString()); trace(staff2.EMPLOYEE.(toString() == leroy).toXMLString()); Kenneth Kawamoto http://www.materiaprima.co.uk/ Ferd

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Kenneth Kawamoto
var snd:LinkedSound = new LinkedSound(); snd.play(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Mendelsohn, Michael wrote: Hi list... Silly AS3 question: how do you play a sound with a linkage identifier? public function playSound(linkageID:String):void{ // these don't work

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Kenneth Kawamoto
There are no Linkage IDs in AS3. Class names you are talking about? :) May be you can do something like: private function playSound(className:String):void { var ClassRef:Class = getDefinitionByName(className) as Class; var snd:Object = new ClassRef(); snd.play(); } Kenneth Kawamoto

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
trace(myXML.children().(localName() == Outcome)); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
You can extract it like this as well: var ns:Namespace = myXML.namespace(); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: I ended up with this 1. function onLoadXML( e:Event ):void 2. { 3. var ns:Namespace = new Namespace(http://www.xignite.com

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
You can reduce one more line :) default xml namespace = myXML.namespace(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Thanks for all of this!! So this should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML

Re: [Flashcoders] passing on ... args

2008-11-28 Thread Kenneth Kawamoto
You can accept them as an Array, e.g.: public function passingArgs(argsB:Array):void { trace(#args_B:,argsB.length); for(var i:int=0;iargsB.length;i++) { trace(argsB[i]); } } Kenneth Kawamoto http://www.materiaprima.co.uk/ Latcho wrote: Hi List, How can I pass a variable amount off

Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-15 Thread Kenneth Kawamoto
I don't think so. If the sound was Stream you could control the sound's playtime by sending the playhead to the desired frame. Kenneth Kawamoto http://www.materiaprima.co.uk/ karim beyrouti wrote: This worked - thanks - however - my sound is triggered on the timeline ( event - loop

Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-14 Thread Kenneth Kawamoto
Shouldn't it be more like: var stfm:SoundTransform = theMC.soundTransform; stfm.volume = 0; theMC.soundTransform = stfm; Kenneth Kawamoto http://www.materiaprima.co.uk/ Karim Beyrouti wrote: Hi ! Another simple AS3 question - well at least I hope so. I am trying to set the volume

Re: [Flashcoders] XML transformation

2008-11-13 Thread Kenneth Kawamoto
) } else { rearrenged.appendChild(target id={node.target}{node.data}/target); } } return rearrenged; } Kenneth Kawamoto http://www.materiaprima.co.uk/ Glen Pike wrote: Hi, I have a load of data loaded from a server as XML which is essentially a flat list. Nodes in the list

[Flashcoders] TextField Selection Colour

2008-11-07 Thread Kenneth Kawamoto
uniform colour. Do you have any good ideas? Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] MP4

2008-11-04 Thread Kenneth Kawamoto
H.264 playback capability was added in Flash Player 9 Update 3, Version 9.0.115.0 - a.k.a. MovieStar Kenneth Kawamoto http://www.materiaprima.co.uk/ Karim Beyrouti wrote: Hello ! - just wondering what is the lowest version of flash that plays MP4?... Kind regards Karim

Re: [Flashcoders] MP4

2008-11-04 Thread Kenneth Kawamoto
You ARE the Movie Star, John. Kenneth Kawamoto http://www.materiaprima.co.uk/ John R. Sweeney Jr wrote: I've done 4 projects, using tons of H.264 videos and they work great and look beautiful. ;) on 11/4/08 11:33 AM, Kenneth Kawamoto at [EMAIL PROTECTED] wrote: H.264 playback capability

Re: [Flashcoders] TextInput highlight color when set to blend layer mode

2008-10-30 Thread Kenneth Kawamoto
Embed fonts. Or if you set the blendMode of the TextInput and fade the TextInput itself instead of container MovieClip, you shouldn't get those side effects. Kenneth Kawamoto http://www.materiaprima.co.uk/ Preston Parris wrote: I have a MovieClip with a text input component on top

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-23 Thread Kenneth Kawamoto
The other thing caught my eye is this bit: mobileNumber.text != NaN mobileNumber.text != undefined text property is ALWAYS String, therefore it cannot be a Number or undefined. The code should not compile. Kenneth Kawamoto http://www.materiaprima.co.uk/ - Original Message - From

Re: [Flashcoders] open word document from flash

2008-10-23 Thread Kenneth Kawamoto
You could use fscommand exec to run a BAT file/Apple Script (in fscommand subdirectory) which opens the file (...in theory. I haven't done this for many years :) Kenneth Kawamoto http://www.materiaprima.co.uk/ Bassam M wrote: Hi guy Is there anyway that I can open word-excel files from flash

[Flashcoders] RTMP H.264 and FLVPlayback

2008-09-06 Thread Kenneth Kawamoto
OK I change the question: has anyone managed to play RTMP H.264 through FLVPlayback??? Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman

Re: [Flashcoders] RTMP H.264 and FLVPlayback

2008-09-06 Thread Kenneth Kawamoto
Thanks Muzak. I didn't know about this mp4:file source string - it's not documented by Adobe is it...? How strange ;) Will ask my colleague to test again on Monday. Kind regards, Kenneth Kawamoto http://www.materiaprima.co.uk/ Muzak wrote: Works fine here. Make sure to use the following

[Flashcoders] RubyIzumi and FLVPlayback

2008-09-05 Thread Kenneth Kawamoto
Has anyone successfully played RTMP H.264 from RubyIzumi on FLVPlayback? I can play the video through NetStream but I get VideoError: 1004: Invalid source when I assign the source for the FLVPlayback... Kenneth -- Kenneth Kawamoto http://www.materiaprima.co.uk

Re: [Flashcoders] Using fscommand in AS 3 still legal??

2008-09-04 Thread Kenneth Kawamoto
Have you done: import flash.system.fscommand; ? Kenneth Kawamoto http://www.materiaprima.co.uk/ BOYD SPEER wrote: I often use the fscommand feature to help debug but when I use this in AS 3 I get an error message --1061: Call to a possibly undefined method fscommand through a reference

Re: [Flashcoders] AS3 for each loop / splice issue

2008-08-28 Thread Kenneth Kawamoto
If you post your XML as well that'll help, but this: cue_points[cue].splice(1,1,cueIn); ...looks dodgy to me. cue needs to be an uint for this to work but it's an XML, also you set cueIn = cue ??? Kenneth Kawamoto http://www.materiaprima.co.uk/ noentourage wrote: Hey flashcoders... I'm

Re: [Flashcoders] Xml menu recursion - AS3

2008-08-27 Thread Kenneth Kawamoto
Shouldn't it be trace(child.title); instead? Kenneth Kawamoto http://www.materiaprima.co.uk/ Vayu Robins wrote: Hi. I am trying to build a dynamic menu system with unlimited submenus. I have this from Colin Moock's book (Essential AS3) and it works fine. var xml:XML = course

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Kenneth Kawamoto
If so I'd ask my PHP coder to generate formatted string so that I need to code less ;) e.g. var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 / var targetDate:Date = new Date([EMAIL PROTECTED]()); ...a lot less code than yours! Kenneth Kawamoto http://www.materiaprima.co.uk/ Cor wrote

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Kenneth Kawamoto
Isn't that always the case no matter how you construct the date object? Kenneth Kawamoto http://www.materiaprima.co.uk/ Cor wrote: Yes, but still it is depending of the localtime. Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00 GMT+0200 2008 -Original Message

Re: [Flashcoders] Full Screen issue on a Mac

2008-08-18 Thread Kenneth Kawamoto
By the way your HTML closing tags are wrong. Kenneth Kawamoto http://www.materiaprima.co.uk/ http://venturawave.com/fs/fullscreen.html This site crashed on my client's Mac. The problem was likely that I didn't include or nest the the embed tags within the object tags in my html page when

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
You should be able to do access the parent by using, parent. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Hi guys, im having some trouble accessing a function from another class and I would like to know how its done. In my project i have 2 FLAs 'gallery.fla

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
What do you get if you do trace(parent);? Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Again another solution i tried but this too does not work! Thanks SJM - Original Message - *From:* Kenneth Kawamoto mailto:[EMAIL PROTECTED] *To:* Flash Coders

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
No, I mean when you trace it from the button. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Kenneth i get... [object Loader] when tracing parent SJM - Original Message - *From:* Kenneth Kawamoto mailto:[EMAIL PROTECTED] *To:* Flash Coders List

Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Kenneth Kawamoto
This post from Tinic Uro sounds promising: http://www.craftymind.com/guimark/#comment-1032 Kenneth Kawamoto http://www.materiaprima.co.uk/ Matt S. wrote: Mac has always been inferior to PC when it comes to Flash performance (and I say that as a dedicated Mac user). It's improved alot

Re: [Flashcoders] E4X question in regards to ill-formed node

2008-07-29 Thread Kenneth Kawamoto
One way is: trace(foo.descendants(P-E).toXMLString()); Kenneth Kawamoto http://www.materiaprima.co.uk/ eric e. dolecki wrote: I am getting XML from a WSDL and one of the nodes is like so: P-E26.95/P-E now, how can I address this node? trace( foo..P-E ); won't work, how can I use E4X

Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Kenneth Kawamoto
It works fine for me every time. What is your code look like? Kenneth Kawamoto http://www.materiaprima.co.uk/ Helmut Granda wrote: Hello all, I have a small dilema, my application is working properly and I am relying on Stage width and height to position some elements. FOr some odd reason

Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Kenneth Kawamoto
If you output stageWidth/stageHeight to a TextField I think you can verify they are not zero. Kenneth Kawamoto http://www.materiaprima.co.uk/ Helmut Granda wrote: Yeah, that is the first setting in my Document's class constructor, specially since i need that info through out the application

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-22 Thread Kenneth Kawamoto
I could be wrong but that (user input validation) should be done prior to RegExp construction. Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: That was it, it works now, thanks. Funny, I didn't notice that, I had it in my code before, but somewhere along the line

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
Yes that's that :) Anyway in your case you know the incoming XML schema so you shouldn't use wildcard * - I think wildcards have serious performance hits. i.e. theXML.topics.topic. should be used rather than theXML..*. Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
I don't think you need g (Global flag) for this. Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: Wait, think I got it: var re:RegExp = new RegExp(searchInput.text, g,i); var xmlListSearch:XMLList = testXML..*.( re[test]( attribute(title))); trace(result

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
The Lazy Dog because it looks for the from the character 41 onwards, namely Dog, which has no the. Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: OK, I'm like 95% there, but there is still some kind of bug - here is how to reproduce: var testXML:XML = data topics

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
:) Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: OK good to know, thanks! Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-19 Thread Kenneth Kawamoto
(*))); Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: Thanks. However, I have been told using @title is not good in most situations because it will return an error if a node doesn't have the attribute, wheras attribute(title) will not. Also this is shorter: var

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-18 Thread Kenneth Kawamoto
I get the correct node (although I also get Warning 3594). If you are tracing, you must do trace(xmlListSearch.toXMLString()); Also this is shorter: var xmlListSearch:XMLList = test..topic.(re.test(@title)); Kenneth Kawamoto http://www.materiaprima.co.uk/ Wagner Amaral wrote: I was doing

Re: [Flashcoders] Re: loaderURL from child object

2008-07-13 Thread Kenneth Kawamoto
I probably misunderstood your question, but since you are loading MyFileGoesHere.SWF you must know the path to it...? Kenneth Kawamoto http://www.materiaprima.co.uk/ Helmut Granda wrote: hello all, I just wanted to re-write my question in case I didnt make sense. So what I want to know

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Kenneth Kawamoto
You can do something like this as well - you don't need to know the node name at all: _officesXML.descendants().(hasOwnProperty(@name) @name == NJ Agency) Kenneth Kawamoto http://www.materiaprima.co.uk/ Pavel Kru*šek wrote: Hi, Unfortunately this solution is out of action: 1084: Syntax

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Kenneth Kawamoto
Slightly shorter: _officesXML..*.(hasOwnProperty(@name) @name == NJ Agency) Kenneth Kawamoto http://www.materiaprima.co.uk/ On Jul 9, 2008, at 4:51 PM, Kenneth Kawamoto wrote: You can do something like this as well - you don't need to know the node name at all: _officesXML.descendants

  1   2   3   >