Re: [Flashcoders] question SO class

2006-06-17 Thread Caruso Canepari
John Grden [EMAIL PROTECTED] wrote: I use this SO class ;) . Hi, it's interesting but I wanted to use that class. The only thing I can't do now is to have a method getContent to trace the names of the properties. That is: if I use it this way ---getContent(A), I get A value, but I can't see

RE: [Flashcoders] flashcoders google search

2006-06-17 Thread Nick Weekes
Excellent idea Muzak, good work fella. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: 17 June 2006 04:16 To: Flashcoders mailing list Subject: [Flashcoders] flashcoders google search Put together a little Flash app that will search the

[Flashcoders] DataGrid Scrollbar

2006-06-17 Thread ScriptJunkies
Hey, I'm currently working on a flash app that uses a datagrid, I've come across a problem with customizing this component, Does anyone know if it's possible to change the scrollbar position?, i want there to be a gap between the datagrid and it's scrollbar, I've tried playing with the

Re: [Flashcoders] DataGrid Scrollbar

2006-06-17 Thread Chris Hill
I'm confused as to how the drawHeaderBG function relates to moving a scrollbar. Regardless, this should move you in the right direction: for (var i=0;i20;i++){ foo.push({test:blah}); } dg.dataProvider = foo; onEnterFrame = function(){ dg.vSB._x = dg.width + 10;

[Flashcoders] Local serial port and USB access from Flash on a web page

2006-06-17 Thread Spencer Nassar
Hi Flashcoders, I'm interested in presenting users with a web page that contains a flash object that can communicate to a device on a serial or USB connection (think camera or GPS unit). It needs to be able to detect active USB connections and do basic serial communications over USB or

Re: [Flashcoders] DataGrid Scrollbar

2006-06-17 Thread ScriptJunkies
The drawHeaderBG function doesn't really relate to moving the scrollbar, i was just thinking, that function seems to be overwriting one in the datagrid, i thought it was possible that you could do a similar thing for the scrollbar position, it was just a possibility that ran through my head.

Re: [Flashcoders] question SO class

2006-06-17 Thread John Grden
try looking at it at runtime with xray: http://www.osflash.org/xray you can check the SO object at runtime to see what values are being stored, that might help you JG On 6/17/06, Caruso Canepari [EMAIL PROTECTED] wrote: John Grden [EMAIL PROTECTED] wrote: I use this SO class ;) . Hi,

[Flashcoders] XML named node values

2006-06-17 Thread D_C
hi list - Q on flash and XML. is there a way to read named values from XML without using attributes? eg using atrribute names, a flash XML object can read named values, like associative arrays. channel chName='stocks' / xmlData.attributes[chName] but what if i want to use text nodes, like

Re: [Flashcoders] XML named node values

2006-06-17 Thread Ron Wheeler
If the chNames do not have any key or ids, with what are you trying to stay in sych? If you are trying to use the node value as a key, then that is what you have to check. This is an XML fact of life - nothing to do with Flash or Actionscript. XPATH will simplify the problem of finding specific

Re: [Flashcoders] flashcoders google search

2006-06-17 Thread GregoryN
Hello Muzak, The url http://muzakdeezign.com/flashcoders/ doesn't respond for me :-( Also, I'm sorry for asking, but: As users have to use their browser anyway, what's the advantage over using operators like site: in Goggle itself (or google toolbar in browser)? As I can't access your url so far

Re: [Flashcoders] flashcoders google search

2006-06-17 Thread Muzak
try adding index.cfm http://www.muzakdeezign.com/flashcoders/index.cfm prefixing a search string with 'site:' tells google to search within the specified domain. site:www.adobe.com will only return results from adobe.com http://www.google.com/help/features.html regards, Muzak - Original

Re: [Flashcoders] Calculate Color on a Gradient Given a Percentage

2006-06-17 Thread Bernard Poulin
this works for me: */** @param factor is between 0 and 1 (if higher/lower, it will clip correctly) */* *public* *static* *function* mixColor(a:*Number*, b:*Number*, factor:*Number *):*Number* { *if*(factor = 1) *return* a; *if*(factor = 0) *return* b; *var* fb:*Number* = 1-factor; *return*