[Flashcoders] Flash Player 10.2 RC

2011-01-12 Thread kennethkawam...@gmail.com
http://labs.adobe.com/technologies/flashplayer10/ Native custom mouse cursors - does this mean Flash finally caught up with Director 4 c.1994? ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list

Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread kennethkawam...@gmail.com
/offtopic    Leandro Ferreira On Tue, Nov 9, 2010 at 18:56, Kenneth Kawamoto kennethkawam...@gmail.com wrote: 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

Re: [Flashcoders] sorting xml

2010-08-31 Thread kennethkawam...@gmail.com
You can do something like: var xml:XML = nodes node aaa=twa ccc=hpo/ node aaa=eas ccc=zpd/ node aaa=oro ccc=jii/ node aaa=cbm ccc=mpt/ node aaa=leg ccc=gzb/ node aaa=oro ccc=jih/ node aaa=kfb ccc=ldx/ /nodes; var a:Array = new Array(); for each(var item:XML in xml.node){

Re: [Flashcoders] Animation showing through Text

2010-06-23 Thread kennethkawam...@gmail.com
Set blendMode of the TextField to BlendMode.ALPHA before setting the TextField as mask. This is pure AS and you can even change the text dynamically while being used as mask :) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 22 June 2010 21:40, Bill S. lists...@fo.com wrote: Thank you

Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
(?Pnamegroup) Is this what you are looking for? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote: I know you can have named groups, but are there named group back references in AS3?  if so, do you have any examples of it

Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
Can you access using result.name ? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote: I know you can have named groups, but are there named group back references in AS3?  if so, do you have any examples of it working? it

Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
I wasn't reading your post properly :) Have you tried (?P=name) ? (or you may want try \n) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote: I know you can have named groups, but are there named group back references in AS3?  

Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can pass any number of parameters with ExternalInterface.call() method - or are you talking about something else...? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 May 2010 08:07, Ashim D'Silva as...@therandomlines.com wrote: This seems fairly impossible but if there's an awesome

Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can count them in the receiving function, e.g. arguments.length in JavaScript. (Then may be I misunderstood again ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 May 2010 09:39, Glen Pike g...@engineeredarts.co.uk wrote: On 26/05/2010 09:33, kennethkawam...@gmail.com wrote

Re: [Flashcoders] Upgrade from MX2004 to CS4 - issues?

2010-05-20 Thread kennethkawam...@gmail.com
I have this vague memory that texts all went weird if you export to SWF from MX2004 FLA in Flash 8 - but not 100% certain as this is a long time ago now... :) There's only one way to find out? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 20 May 2010 16:40, Paul Jinks

Re: [Flashcoders] Modifying a already defined tween

2010-05-13 Thread kennethkawam...@gmail.com
I recommend TweenMax, which you can just call updateTo() to change the end value of the tween on the fly. If you need to use your Tween, then I'd imagine you would call continueTo(), but then you have to determine how much time left to complete the tween to new goal. Messy. -- Kenneth Kawamoto

Re: [Flashcoders] Random Sort of Array

2010-05-11 Thread kennethkawam...@gmail.com
Have two arrays - first one with 2 products and second one with 7 products. Randomise the 2nd array (with Fisher-Yates shuffle ;) and concat() the two arrays to produce the array with 9 products. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 11 May 2010 01:44, Donald Talcott

Re: [Flashcoders] Producing a random list with no repeats

2010-05-06 Thread kennethkawam...@gmail.com
I always use Fisher-Yates shuffle method to randomise an Array, which yields more unbiased result. http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle My AS3 interpretation of Fisher-Yates is as follows; I can just call this from anywhere in my scripts ;) package utils { public

Re: [Flashcoders] XML Question

2010-05-06 Thread kennethkawam...@gmail.com
Wrap your text with XML character data, i.e. DETAILS![CDATA[h3Senior Citizen Discount/h3... ]]/DETAILS -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 6 May 2010 13:56, John Singleton johnsingleton...@yahoo.com wrote: Whoops. Now I have this in my XML:    DETAILSh3Senior Citizen

Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
It's not just about missing break, your switch statement fundamentally does not make sense (sorry ;) switch (xmldata.pa...@pg_name.tostring()) ... this evaluates to indexcontact as your trace shows, therefore none of your cases will pass the test. In order to make this work you have to iterate

Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
...@yahoo.com wrote: - Original Message From: kennethkawam...@gmail.com kennethkawam...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wed, May 5, 2010 11:53:53 AM Subject: Re: [Flashcoders] XML Question It's not just about missing break, your switch statement

Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
I think you just need a root node. No way. Your first example traces true just because there is only one pg_name attribute. Consider this: var xmlData:XML = root PAGE pg_name='index'DETAILSpage/DETAILS/PAGE PAGE

Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread kennethkawam...@gmail.com
If you are talking about sound imported into the Library in IDE, you can assign a Class name to it and instantiate it as normal: var snd:Sound = new LibaraySound(); snd.play(); ...etc. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 29 April 2010 10:35, Jim Andrews j...@vispo.com wrote:

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread kennethkawam...@gmail.com
I have now working solutions, and here are few things may be beneficial for someone in the future doing Red5 streaming: - onMetaData does not get called, but to obtain the length of the stream you can use NetConnection.call(getStreamLength, Responder, stream) - onXMPdata does get called but not

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-15 Thread kennethkawam...@gmail.com
as well) a On 13 April 2010 17:34, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote: Hi Flash Coders, I have this issue: NetStream onMetaData does not get triggered. Using Red5. onPlayStatus does get called correctly without fail though. Basically I need to know the duration

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-15 Thread kennethkawam...@gmail.com
as callbacks on a client object which is passed into netstream.client - have you done this? On 15 April 2010 12:19, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote: I am monitoring onXMPData as well but that does not get called either. I am using FLV. All I wanted from the meta data

[Flashcoders] NetStream onMetaData does not get called

2010-04-13 Thread kennethkawam...@gmail.com
Hi Flash Coders, I have this issue: NetStream onMetaData does not get triggered. Using Red5. onPlayStatus does get called correctly without fail though. Basically I need to know the duration of the video. Has anyone ever experienced the same or have any ideas what is going on...? -- Kenneth

Re: [Flashcoders] List component transparentBackground?

2010-04-13 Thread kennethkawam...@gmail.com
If you are using Flash IDE, at least you can do this manually. To see the effect go to Library Component Assets ListSkins List_Skin and CellRendererSkins CellRenderer upSkin then change the background fill alpha to 0. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 13 April 2010 16:21,

Re: [Flashcoders] Process issue

2010-03-29 Thread kennethkawam...@gmail.com
Create a Class which processes your XML and dispatches an Event when it's done. Upon receiving the Event, you can proceed to the next function. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 29 March 2010 13:56, Lehr, Theodore ted_l...@federal.dell.com wrote: The problem is that the

Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread kennethkawam...@gmail.com
I won't - the beauty of E4X is to me is that you no longer need to translate XML into Array or Object like in AS2 days! -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 March 2010 11:13, Lehr, Theodore ted_l...@federal.dell.com wrote: So does it make sense to think that it would be

Re: [Flashcoders] Counting xml attributes

2010-03-23 Thread kennethkawam...@gmail.com
xml..*.(@attribute == value).length() -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 March 2010 13:20, Lehr, Theodore ted_l...@federal.dell.com wrote: Is there a way to loop through xml and count how many times an attribute has a given value?

Re: [Flashcoders] xml: counting parents

2010-03-23 Thread kennethkawam...@gmail.com
I am not a database person but I think in this case you would have 2 tables in the database: one for roles/report lines and one for employees - they are two completely different data sets. (And the 3rd table for the relationships between the two.) -- Kenneth Kawamoto

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread kennethkawam...@gmail.com
It's very hackish, but here we go :) Say you have this recursive function: private function transformXMLWithParentCount(original:XML, xml:XML, n:uint):void { for(var i:uint = 0, len:uint = xml.children().length(); i len; i++){ original..*.(@att == xml.children()[...@att)@parent =

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread kennethkawam...@gmail.com
I don't think you need to know the depth of the node in order to create a chart because you can traverse the XML and generate the chart as you go along. But if you need to know the deapth: function transformXMLWithParentCount(original:XML, xml:XML, n:uint):void { for(var i:uint =

[Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread kennethkawam...@gmail.com
Anyone??? Just contemplating the strategy for dynamically superimposing an image onto a video. A good recent example is: http://en.tackfilm.se/ Any ideas to achieve this? (Just the final video rendering bit, you can leave the file upload etc. ;) TIA, Kenneth -- Kenneth Kawamoto

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

2010-03-12 Thread kennethkawam...@gmail.com
of the image by AS. This is not going to be an easy one... ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 12 March 2010 13:55, Nathan Mynarcik nat...@mynarcik.com wrote: Why not just overlay a mc that contains your image on top of the video? --Original Message-- From: kennethkawam

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

2010-03-12 Thread kennethkawam...@gmail.com
Subject: Re: [Flashcoders] Fwd: Dynamically superimposing image onto video Why not just overlay a mc that contains your image on top of the video? --Original Message-- From: kennethkawam...@gmail.com Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash

Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread kennethkawam...@gmail.com
PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: If I understand you correctly you want to trace index.html? One funky way is... trace(new XML(a href='index.html'Home/a)@href); // traces index.html ...therefore if your e.currentTarget.getChildAt(0).htmlText is giving you a href

Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread kennethkawam...@gmail.com
If aChild is a public property of your currentTarget, your code would work. If not you can use getChildByName()/getChildAt() -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 10 March 2010 12:05, Susan Day suzieprogram...@gmail.com wrote: Hi; I have this line of code that I need to fix:

Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread kennethkawam...@gmail.com
If you trace e.currentTarget what do you get? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 10 March 2010 14:58, Susan Day suzieprogram...@gmail.com wrote: On Wed, Mar 10, 2010 at 10:38 AM, Geografiek geograf...@geografiek.nlwrote: Hi Susan, The error means that

Re: [Flashcoders] Manipulating and Removing loaded swf

2010-03-09 Thread kennethkawam...@gmail.com
Create a var outside of your functions to reference your loaded SWF: var mc:MovieClip; So that you can assign it to your SWF when loaded: mc = loadEvent.target.content as MovieClip; Then you can interact with it: with(mc){ x = 100; y = 200; } removeChild(mc); etc. -- Kenneth

Re: [Flashcoders] Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Browsers such as IE blocks local JavaScript execution from SWF. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 3 March 2010 16:18, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Hi I cannot find solution for this small problem Simple code getURL

[Flashcoders] Dynamically superimposing image onto video

2010-03-03 Thread kennethkawam...@gmail.com
Just contemplating the strategy for dynamically superimposing an image onto a video. A good recent example is: http://en.tackfilm.se/ Any ideas to achieve this? (Just the final video rendering bit, you can leave the file upload etc. ;) TIA, Kenneth -- Kenneth Kawamoto

Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Can you test it from HTML? i.e. a hef=javascript:NewWindow -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 3 March 2010 17:58, natalia Vikhtinskaya natavi.m...@gmail.com wrote: But if locally I test script like getURL

Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
There are many ways to achieve what (I think) you want to achieve but may be the most simple way is to place your intro SWF in one HTML and when it finishes playing go to another HTML page contains your main stuff. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 February 2010 14:17,

Re: [Flashcoders] Can u combine....

2010-02-26 Thread kennethkawam...@gmail.com
Can you set a private var other functions can use? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 February 2010 14:24, Lehr, Theodore ted_l...@federal.dell.com wrote: ..how to combine: function loadXML(dfile:String):void {   urlLoader.load(new URLRequest(dfile));  

Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
, Feb 26, 2010 at 11:47 AM, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote: There are many ways to achieve what (I think) you want to achieve but may be the most simple way is to place your intro SWF in one HTML and when it finishes playing go to another HTML page contains your main

Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
Does your preloader load your splash movie? Or is it just an intro movie? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 February 2010 18:04, Victor Subervi victorsube...@gmail.com wrote: On Fri, Feb 26, 2010 at 1:52 PM, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote

Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
Then when the splash finishes playing just go to another HTML with your contents. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 February 2010 19:01, Victor Subervi victorsube...@gmail.com wrote: On Fri, Feb 26, 2010 at 2:56 PM, kennethkawam...@gmail.com kennethkawam...@gmail.com

Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
...@gmail.com kennethkawam...@gmail.com wrote: Then when the splash finishes playing just go to another HTML with your contents. Just to be dead clear... 1) The fake preloader is not the splash. It will load the heavy image that is used in both the splash and the main html page with the embedded

Re: [Flashcoders] Matrix Transformation Problem

2010-02-17 Thread kennethkawam...@gmail.com
Your transformation code may be a little too funky :) I (drastically) simplified your code and it works fine: private function companyName():void { var coName:TextField = new TextField(); with(coName){ x = 100; y = 100; autoSize = TextFieldAutoSize.LEFT; embedFonts

Re: [Flashcoders] Matrix Transformation Problem

2010-02-17 Thread kennethkawam...@gmail.com
, kennethkawam...@gmail.com kennethkawam...@gmail.com wrote: Your transformation code may be a little too funky :) I (drastically) simplified your code and it works fine: private function companyName():void {    var coName:TextField = new TextField();    with(coName){      x = 100;      y

Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread kennethkawam...@gmail.com
In this case you may use String as parameter for the constructor. var xmlList:XMLList = new XMLList('user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20 whist2=100 /user pos=2 money=-123 changed=4 mount=1.2.3whist1=10.20.100.300 whist2=100 /'); You can also use Boolean and Number as

Re: [Flashcoders] E4X question

2010-02-03 Thread kennethkawam...@gmail.com
You can condense it a little: var xmllist:XMLList = xml.p.(child(s) == animal); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 3 February 2010 15:21, Jer Brand thejhe...@gmail.com wrote: Give this a try -- worked for me : ) var x:XML = new XML(allp id='1'sdog/s/pp id='2'scat/s/pp

Re: [Flashcoders] WIRED hates Flash

2010-01-29 Thread kennethkawam...@gmail.com
There's Flash Player written in Javascript (Gordon) - it's not deployable yet but there's a hope ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 29 January 2010 14:53, Merrill, Jason jason.merr...@bankofamerica.com wrote: I'm waiting for Apple to be sued by the Lego company for the

Re: [Flashcoders] Why is my HTML file so huge

2009-12-17 Thread kennethkawam...@gmail.com
Which version of Flash and what publish settings are you using? But in any case I would not use Flash IDE for generating HTML. Do it manually using SWFObject (which will be used if you publish from Flash CS5 :) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ 2009/12/17 Alan Neilsen

Re: [Flashcoders] simple E4X question, getting two types of nodes

2009-12-01 Thread kennethkawam...@gmail.com
This may work for you? xml.child(*).(new RegExp(dog|bird).test(name())) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ 2009/12/1 Mendelsohn, Michael michael.mendels...@fmglobal.com: Thanks for replying Jason.  I'd do that, but I'm also trying to preserve the order in which things occur,

Re: [Flashcoders] re: alpha for dynamic text without embedding font

2009-10-29 Thread kennethkawam...@gmail.com
I did say this before, but you can do this in Flash 10 - you do not need to embed fonts to apply alpha values to TextFields. -- Kenneth Kawamoto http://www.materiaprima.co.uk/ 2009/10/29 Kevin McFarland ke...@teracent.com: As I described in my eMail I'm using author-time created assets. Follow

Re: [Flashcoders] alpha on text without embedding font

2009-10-26 Thread kennethkawam...@gmail.com
Yes - just export to Flash 10 ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ 2009/10/25 Pedro Kostelec pedrok...@gmail.com: Hi, is there a way to set alpha transparency to dynamically imported text with as3 without having to embed the font? Thanks, Pedro Kostelec

Re: [Flashcoders] Converting .swf playback to .mov

2009-10-21 Thread kennethkawam...@gmail.com
CS4 feature list says: QuickTime export Render content published in a SWF file as a QuickTime video using the advanced QuickTime exporter. Export content that includes nested MovieClips, content generated with ActionScript language, and runtime effects such as drop shadow and blur. ...however