Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Kenneth Kawamoto
On Tue, May 20, 2008 at 1:09 PM, Kenneth Kawamoto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Not sure if it's related to the crash but your movie generates null object reference error. Kenneth Kawamoto http://www.materiaprima.co.uk/ Andrei Thomaz wrote

Re: [Flashcoders] Best way to architect a kind of keyCode rotation

2008-06-12 Thread Kenneth Kawamoto
Will parseInt be quicker? Kenneth Kawamoto http://www.materiaprima.co.uk/ eric e. dolecki wrote: I am going to be getting key events that sum up a degree of rotation. ie. 3, 0, 1, ^ = 301 degrees (well, I get keCodes that I need to translate back into their corresponding numbers) So I

Re: [Flashcoders] Is it possible to display in the xml file

2008-06-12 Thread Kenneth Kawamoto
amp; Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: hey there, Is it possible to display in the xml file? I tried to convert it to %26, but it won't display in the flash for example: depFin IT /dep thanks ___ Flashcoders

Re: [Flashcoders] Re: Is it possible to display in the xml file

2008-06-12 Thread Kenneth Kawamoto
Are you sure about that? var xml:XML = new XML(depFin amp; IT/dep); var tf:TextField = new TextField(); tf.text = xml; addChild(tf); I get Fin IT in the TextField. Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: But you have to say your textfield is HtmlText else

Re: [Flashcoders] Bad User

2008-06-16 Thread Kenneth Kawamoto
I thought it's standard that the mailing list server rejects duplicate emails - Dave, does the server of this list have this feature??? Kenneth Kawamoto http://www.materiaprima.co.uk/ David Christy wrote: 900 Bounced emails and counting

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
select the text or anything :) Kenneth Kawamoto http://www.materiaprima.co.uk/ [EMAIL PROTECTED] wrote: Hello, I have a little question that seems obvious but on which I pull my hair off my head: Does anybody know how to deform a TextField instance? I tried the basics: var txt:TextField = new

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
The max size for BitmapData is 2880 x 2880 px, so if you want scale something up to x1000 you may run into a problem unless you chop it up first. Kenneth Kawamoto http://www.materiaprima.co.uk/ [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much

Re: [Flashcoders] calling public static methods on Class using getDefinitionByName

2008-06-24 Thread Kenneth Kawamoto
trace(getDefinitionByName(Test).parse(false)); Output false Kenneth Kawamoto http://www.materiaprima.co.uk/ Patrick Matte | BLITZ wrote: Does anybody know if it's possible to call a static method of a reference to a class created with getDefinitionByName without actually creating an instance

Re: [Flashcoders] switch statement more efficient than if...else?

2008-06-25 Thread Kenneth Kawamoto
One thing worth noting is switch statement uses strict equality (===) therefore it's not exactly the same as if/else with equality (==). Kenneth Kawamoto http://www.materiaprima.co.uk/ Paul Andrews wrote: Hi guys quick question that came up in a conversation I had the other day

Re: [Flashcoders] question re: path for nested movies

2008-06-27 Thread Kenneth Kawamoto
Use loaderInfo.url as the base and create paths relative to that. Kenneth Kawamoto http://www.materiaprima.co.uk/ Allandt Bik-Elliott (Receptacle) wrote: Hi folks i have a quick question regarding pathing for a streaming flv. i have a banner swf that streams an flv which is loaded

Re: [Flashcoders] E4X question

2008-07-02 Thread Kenneth Kawamoto
var xml:XML = someNode some-attribute=attribute data /; trace([EMAIL PROTECTED]some-attribute]); trace(xml[@some-attribute]); trace(xml.attribute(some-attribute)); Kenneth Kawamoto http://www.materiaprima.co.uk/ Alias? wrote: Hi guys, Quick E4X question. I have an XML node, with an attribute

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

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Kenneth Kawamoto
I don't think that will not work unless every single node in the XML has the attribute called name. hasOwnProperty(@name) checks if the node has the attribute. Kenneth Kawamoto http://www.materiaprima.co.uk/ Romuald Quantin wrote: This will search through everything if you need: _officesXML

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) == NJ) It won't throw an error

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 -Original Message- From

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

[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

[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

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

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

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

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

[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

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

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

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

<    1   2   3   >