Re: [Flashcoders] select columns-datagrid

2006-02-05 Thread srishti
Hi, My application displays records in a datagrid.User clicks on a button.A popup window appears.Window displays all the column names in a list component.There is a checkbox next to each column name.i am using cellrenderer() to display checkboxes.User can select a column name.Then,only the sel

Re: [Flashcoders] select columns-datagrid

2006-02-05 Thread Grant Cox
How is your edit button embedded in the column, are you using a Cell Renderer? When I have done something similar using a CellRenderer I made the CellRenderer dispatch an event (actually from the Datagrid), which contained the cell's row and column. This way in my class containing the Datagri

[Flashcoders] select columns-datagrid

2006-02-05 Thread srishti
hi, I have a datagrid that I'm using to display records. One of the columns has an "edit" button. When the user clicks edit, the window pops up. What I'd like to do is when a user clicks edit, one of the columns is set to "selected". I mean to ask that how can i select the whole column for

[Flashcoders] Datagrid-select columns

2006-02-05 Thread Srishti Bhatia
hi, I have a datagrid that I'm using to display records. One of the columns has an "edit" button. When the user clicks edit, the window pops up. What I'd like to do is when a user clicks edit, one of the columns is set to "selected". I mean to ask that how can i select the whole column for dis

[Flashcoders] Loading multiple swfs simultaneously with MovieClipLoader.loadClip()

2006-02-05 Thread Fumio Nonaka
Is it no problem to load multiple SWFs simultaneously with MovieClipLoader.loadClip() method? I saw a sample fla, [Flash 8 Application]/Samples and Tutorials/Samples/ActionScript/Galleries/gallery_tween.fla, which calls MovieClipLoader.loadClip() method multiple times in for loop as follows: /* c

Re: [Flashcoders] if not working. (urgent help again?)

2006-02-05 Thread Charles Parcell
concidering that we have no idea what you are setting those variables to, and the the != works I would GUESS yes, it is a typing problem. "5" != 5 Charles P. On 2/4/06, dls <[EMAIL PROTECTED]> wrote: > > Don't know what's up, but the following if statement doesn't work... > both variables trace

Re: [Flashcoders] How do you code your Flash applications?

2006-02-05 Thread Nathan Derksen
Then I create a placeholder movie clip in the order I intend for it to go, then put the new movie clips in that clip later. The parent clip holds the depth, so no matter how many child clips I create, they are always ordered relative to the rest of the content as intended. I always group re

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Helen Triolo
er, make that: Number is suitable for converting/casting a string representation of a number in decimal format (contains only digits between 0 and 9 and does not start with 0), octal format (begins with "0"), or hexadecimal format (begins with "0x") to a number, and for converting/casting a Bo

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Karthik
> What does Number("011") return? 9? The same as Number("0x11") will (probably) return 17. This is just the reverse of Number.toString(radix).. -K ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listi

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Helen Triolo
The decimal equivalent of octal 11, in the same way that trace(Number("0x33")) returns 51. So Karthik's statement should just be revised to say that Number is suitable and correct if the aim is to convert/cast a string representation of a decimal number into that decimal number. Helen Ron

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Ron Wheeler
What does Number("011") return? Ron Karthik wrote: At least when working with XML, I have found Number() to be fairly inconsistent in converting strings to numbers. parseInt() seems to work everytime. How exactly? An example would be good. I find Number a lot more suitable and corre

Re: [Flashcoders] XML-Object: How to detect server-timeout?!

2006-02-05 Thread Ryan Sexton
I've found this to be an invaluable tool http://www.gskinner.com/blog/archives/2005/12/xml2_updated.html Thank you, Ryan Sexton On Feb 5, 2006, at 11:32 AM, Roman Blöth wrote: Hello folks, a question comes into my mind while working with XML-Objects: How do you detect when the server is n

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Karthik
> At least when working with XML, I have found Number() to be fairly > inconsistent in converting strings to numbers. parseInt() seems to work > everytime. How exactly? An example would be good. I find Number a lot more suitable and correct i.e. the aim is to _convert_/_cast_ a string into a n

[Flashcoders] XML-Object: How to detect server-timeout?!

2006-02-05 Thread Roman Blöth
Hello folks, a question comes into my mind while working with XML-Objects: How do you detect when the server is not reachable? Here in my working-environment when I simply detach the testing server from the ethernet, my sendAndLoad() starts and then nothing happens any more - the receiving X

Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread dls
Jason, I was able to convert the data from XML using parseInt() yesterday, and today I learned that to get information into a usable string I needed to use .nodeValue. both of these methods are taking considerable time to code for every variable. Is there a more efficient way to get everythin

RE: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Merrill, Jason
>>You can also just use var a:Number = Number(b); >> >>This is also slightly faster (IIRC) than parseInt. At least when working with XML, I have found Number() to be fairly inconsistent in converting strings to numbers. parseInt() seems to work everytime. Jason Merrill ICF Consulting E-lear

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-05 Thread Jim Kremens
ClassFinder is basically that, but not using eval. You're right, it's the same. You can just use your own, as I do. I only mentioned ClassFinder because it was referenced in the thread. Jim Kremens On 2/5/06, Tyler Wright <[EMAIL PROTECTED]> wrote: > > Then you can use classfinder to instantia

Re: [Flashcoders] variables from XML -- Newbie still having trouble

2006-02-05 Thread Mark Winterhalder
On 2/5/06, dls <[EMAIL PROTECTED]> wrote: > lack of knowledge of .nodeValue's use = 5 hours of my life. > > Much Thanks! you're welcome. i'm glad that trace( typeof _root.country ); tracing "object" instead of "XMLNode" as i forecast didn't discourage you :) mark -- http://snafoo.org/ jabber: [E

[Flashcoders] Width limit on dynamically sized MC?

2006-02-05 Thread Adrian Lynch
I'm creating a very long line, about 65700 pixels long. This is placed in a scroll pane. Is there a limit on the width,or height, of an MC in Flash? I've not nailed down the exact width that fails, but it's about the 65700 mark. Would that be right? Thanks. Adrian Lynch http://www.halestorm.co.u

Re: [Flashcoders] variables from XML -- Newbie still having trouble

2006-02-05 Thread dls
lack of knowledge of .nodeValue's use = 5 hours of my life. Much Thanks! Mark Winterhalder wrote: i'm guessing that... trace( typeof _root.country ); // XMLNode trace( _root.country.nodeValue ); // US trace( _root.country.nodeValue == "US" ); // true am i right? hth, mark On 2/5/06, dls

RE: [Flashcoders] variables from XML -- Newbie still having trouble

2006-02-05 Thread Adrian Lynch
That does seem strange. My first thought would be that there might be some white space characters around the string in the XML. Try: trace(":" + _root.country + ":"); Or to remove the change that it's messing up somewhere between assigning to _root, try: trace(":" + myXML.firstChild.childNodes[4

Re: [Flashcoders] variables from XML -- Newbie still having trouble

2006-02-05 Thread Mark Winterhalder
i'm guessing that... trace( typeof _root.country ); // XMLNode trace( _root.country.nodeValue ); // US trace( _root.country.nodeValue == "US" ); // true am i right? hth, mark On 2/5/06, dls <[EMAIL PROTECTED]> wrote: > I am bringing data in from XML, and assigning it a variable name in flash >

[Flashcoders] variables from XML -- Newbie still having trouble

2006-02-05 Thread dls
I am bringing data in from XML, and assigning it a variable name in flash _root.country = myXML.firstChild.childNodes[4].childNodes[3].childNodes[0]; so far so good, I know it has loaded and when I view my variables _root.country shows as US. In my code I am trying to do the following comparis

Re: [Flashcoders] How do you code your Flash applications?

2006-02-05 Thread Anggie Bratadinata
You guys rock! Thanks for all advice you gave me. I got so much more than what I was asking for. Hmmm .. I can even make a book out of this thread :D Thanks a million, -- Anggie Bratadinata Graphic|Web|Flash Jl. Raya Langsep 21 Malang - East Java I N D O N E S I A www.ibshastautama.com www.nextran

Re: [Flashcoders] How do you code your Flash applications?

2006-02-05 Thread ryanm
and you want to add something between the content and the footer, then just add it in between: buildHeader(); buildContent(); buildMoreContent(); buildFooter(); Guess where the new stuff ends up? No figuring out what depth to assign, no re-assigning depths, no collisions. Nice and simple.