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 strip

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 wou

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

Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kenneth Kawamoto
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

Re: [Flashcoders] E4X XML manipulation

2011-10-16 Thread Kenneth Kawamoto
if(row.@id != row.@parent){ xml..row.(@id == row.@parent).appendChild(row.copy()); delete xml.row.(@id == row.@id)[0]; } } trace(xml); // trace Kenneth Kawamoto

Re: [Flashcoders] E4X XML manipulation

2011-10-16 Thread Kenneth Kawamoto
t;d"]; for each (var s:String in ids){ xml.row.(@id == s).children = xml.row.(@parent == s && @id != s); while(xml.row.(@parent == s && @id != s).length()) delete xml.row.(@parent == s && @id != s)[0]; } trace(xml); // trace

Re: [Flashcoders] E4X XML manipulation

2011-10-12 Thread Kenneth Kawamoto
"a")); trace(xml); // trace 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 = < row id="a" /> < row id="b" /> < row id="c" /> ; into: < r

Re: [Flashcoders] Vector.map()

2011-08-19 Thread Kenneth Kawamoto
+ 30; } trace(new [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

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. = Vector.([1,2,3,4,5]); var h:Vector. = g.map(mapper); function mapper(item:uint,ind:uint,g:Vector.):void

[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] 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.

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-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-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

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()).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 the node by using just @name. I ne

Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Kenneth Kawamoto
trace(xml.pets.pet.(toXMLString() == '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 the node by using just @name. I need to match

Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Kenneth Kawamoto
var xml:XML = ; 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://www.materiaprima.co.uk/ On 05/05/2011 16:32, Mendelsohn, Michael wrote:

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

2010-11-30 Thread Kenneth Kawamoto
instead of deleting not qualifying nodes: var xml2:XML = ; 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 H

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 s

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, Pau

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,

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("F

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 wrot

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 wr

Re: [Flashcoders] XML Question

2010-05-05 Thread Kenneth Kawamoto
SWF here But I 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...@g

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 star

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.stageW

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

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

2010-03-12 Thread Kenneth Kawamoto
pload 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 bra

Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread Kenneth Kawamoto
L(e.currentTarget.getChildAt(0).htmlText)@href); Or you can use RegExp to extract the string without using XML. But this is crazy, really ;) You should not need to use getChildByName/getChildAt at all for this. Just extend Sprite and create public property, so that you can for example just do

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 Kaw

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] 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: ErrorDocumen

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

Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Kenneth Kawamoto
...so instead this should be used: 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

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 us

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 to

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 content

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

2009-07-15 Thread Kenneth Kawamoto
have 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 th

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 ch

Re: [Flashcoders] Distributing Fonts in a standalone application

2009-07-06 Thread Kenneth Kawamoto
ght Adobe's stance is the same, 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

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 st

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

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.c

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

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 te

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 origina

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 u

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.materiap

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

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

[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

[Flashcoders] CS4 crashes on Leopard/G5

2009-05-03 Thread Kenneth Kawamoto
Quad 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 l

[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
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

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:

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

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] 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.xignit

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 c

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Kenneth Kawamoto
There are no "Linkage ID"s 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(); } Kennet

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

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;ihttp://www.materiaprima.co.uk/ Latcho wrote: Hi List, How can I pass a variable amount off function arguments to a next function ? Below the way I

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 (

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
{ rearrenged.appendChild(id={node.target}>{node.data}); } } 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 have a child n

[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
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 capab

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] 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] 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-e

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

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

[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

[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.materiap

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 with

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

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 work

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 Me

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 = var targetDate:Date = new Date([EMAIL PROTECTED]()); ...a lot less code than yours! Kenneth Kawamoto http://www.materiaprima.co.uk/ Cor wrote: In PHP you can do whatever you want

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

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 Coder

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]>

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 'g

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: 26.95 now, how can I address this node? trace( foo..P-E ); won't work, how can I use

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 li

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 applic

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] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
n "@", moreover "(re as RegExp).test()" is slower than "re["test"]()" - well they are all logical too, you may say :) Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: OK good to know, thanks! Jason Merrill Bank of America Enterprise Te

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Kenneth Kawamoto
de Of The World - true 0 - The Quick Brown Fox Jumped Over The Lazy Dog - true 0 - Violet Hill - false With global flag RegExp will not find "the" in "The Quick Brown Fox Jumped Over The Lazy Dog" because it looks for "the" from the character 41 onwards, namel

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"]( a

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:/

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-19 Thread Kenneth Kawamoto
quot;*")) || re["test"](child("*"))); 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, whe

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 is

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Kenneth Kawamoto
It's attribute("name"), not attribute(@name) Kenneth Kawamoto http://www.materiaprima.co.uk/ Romuald Quantin wrote: I've tried it yet. But I guess you might need to write it like that? _officesXML..*.(attribute(@name) == "NJ Agency") Romu www.soundstep.com -

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Kenneth Kawamoto
Yes, I can verify that. Thanks. _officesXML..*.(attribute("name") == "NJ Agency") Kenneth Kawamoto http://www.materiaprima.co.uk/ Romuald Quantin wrote: Also, Grant Skinner explained that you can avoid: hasOwnProperty("@name") By using : (attribute(name) == &q

  1   2   3   >