[flexcoders] Re: Trees and ActionScript

2007-05-17 Thread Matt
As is usually the case, I spend all my time trying to figure out the solution to the problem and then finally give up and post a message. Then five minutes later I figure out the solution. ;) Here's an example: obj = new Tree(); dataProvider = new

Re: [flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-17 Thread dorkie dork from dorktown
hi barry, i emailed you offlist. sorry, i have been in the process of moving. so my time has been eaten up. On 5/17/07, barry.beattie [EMAIL PROTECTED] wrote: many thanks Michael, I'll check it out to see if it fits such a shame about HTMLcomponent.swc. It was just what I needed after being

Re: [flexcoders] anyone using HTMLcomponent.swc? possible bug.

2007-05-17 Thread dorkie dork from dorktown
what are you testing this in? On 5/15/07, barry.beattie [EMAIL PROTECTED] wrote: http://www.flexcapacitor.com/htmlcomponent/examples/HTMLFrameInApplication.html I'm using the HTML component in IFRAME mode on a canvas with other controls. When ever I click a button, the HTML content

[flexcoders] Re: WebService sending dynamic XML - problem

2007-05-17 Thread Nate Pearson
Ah, i gotcha. Totally possible. I do the same thing except backwards from .NET to Flex. So you want to pass N number of People. People is an object that contains fields like first name, last name, phone, ect... I would create a class called person with these fields in it. I would add N

[flexcoders] Re: Filtering Best Practices Question

2007-05-17 Thread Nate Pearson
The server I am running on is a 900mhz machine while the desktops at work are 3.0 Pentium 4s. I figured client side would be quicker. I am filtering off on a string. I there wasn't a nice computer sciencey way to do it I was going to use pointers to jump around in the sorted list. Any one

Re: [flexcoders] Trees and ActionScript

2007-05-17 Thread ivo
I implemented my tree using ArrayCollection for the data provider but the elements were simple objects...I would add deeper levels by manipulating the objects thru references rather than thru the dataprovider itself var tree:Tree = new Tree(); var hashOfNodes:Object = new Object(); var

RE: [flexcoders] Re: Trees and ActionScript

2007-05-17 Thread Gordon Smith
You could also use nested Array and Object literal syntax to do this in one statement: myTree.dataProvider = [ { label: Top level, children: [ { label: First }, { label: Second } ] }, { label: Another top level } ]; When you set the

SOLVED - but i think this is a bug Re: [flexcoders] Textformatter Object pushing boundaries of sprite, but should it?

2007-05-17 Thread Patrick Lemiuex
If you don't specify a height for your TextField, flash *assumes* that it's 100 pixels tall? That's what my trace was telling me 20 pixels tall before I added the TextField and then 100 pixels tall after i added a Textfield without the height specified. This has to be a bug, right?

[flexcoders] Can't get label to show up in my Growl Type notification window.

2007-05-17 Thread Nate Pearson
I'm trying to make a growl type notification bar on the bottom of my app. I can get the transparent bar to show up but I can't get a label to show up in it. In the code below i have described one in MXML and added one dynamically. I think it has to do with my resize function. I am going from 0

[flexcoders] Re: Is it possible to load a an intro.swf ( CS3 ) into ( without using swc ) ?

2007-05-17 Thread Syed Mazhar Hasan Qadri
If you just need to display the swf movie, then why dont you use the SWF loader that is a built in component of flex? --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello all, I have a a Intro.swf ( made in Flash CS3 ) which is compiled and ready to go ( has a

[flexcoders] Flex Builder - built in help ..

2007-05-17 Thread iilsley
I'm running Flex Builder Plugin 2.01 , yet the built-in help seems to be @ 2 . Is there an update for the built-in help ?

[flexcoders] Re: Filtering Best Practices Question

2007-05-17 Thread Doug Lowder
If your list is already sorted, the performance of a binary search is pretty hard to beat. It'd probably still be a good choice even if you have to perform the sort first. You could also check out an associative array or dictionary, but I don't know how well that will perform with thousands

[flexcoders] Re: Communication of data between parent and child movie.

2007-05-17 Thread ivansebastiansurya
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: And if loose coupling is not a key issue for you, you can simply access public members in the loaded swf using the content property of SWFLoader. If you are loading appliations, use SWFLoader, not Image. Access

[flexcoders] Fade Effect on Labels

2007-05-17 Thread Jurgen Beck
It seems that fade effects (fade in or fade out) do not fully work on labels, at least not the way I have implemented the fading. I have created MXML components containing labels that use embedded fonts configured through a style sheet. The fonts look fine, except that during a fade transition

[flexcoders] tightening between multiple lines in a mx:text object

2007-05-17 Thread JClouz
I'm using an embedded font in an mx:text object. When the text goes into multiple lines, there's a large amount of space between each line. Almost looks like it's double or triple spaced. Anyway I can tighten this up? Or is it a function of my embedded font? Please help! Thanks! -Jamie

[flexcoders] SORTA-SOLVED: Filtering Best Practices Question

2007-05-17 Thread Nate Pearson
one of the lists is sorted. Can I you do or operators on strings in flex? I think I'll sort the smaller compare list and use pointers to tell where I am in the list. I think I will only step through each list once this way; which should be acceptable performance. if sorting the compare

[flexcoders] Re: e4x problem

2007-05-17 Thread quinrou
Hi, the xml that I put in my post is only a section of an rss feed. i didn't want to copy the whole xml feed in the post and didn't relies the the mxml namespace at the top of the document were important. thanks for the explanations. the namespace is defined at the top of the xml document like

RE: [flexcoders] How do you generate inactive icon states

2007-05-17 Thread Lincoln Mitchell
Wonderful. Thanks for the help Petro! Linc _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Petro Bochan Sent: Friday, 18 May 2007 1:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do you generate inactive icon states Hi, Sure,

[flexcoders] Hide scrollbar on Horizontal List in Flex2

2007-05-17 Thread mondainx
I have a horizontal list and I want to hide the scrollbar, since I use buttons/images to scroll left or right. How do I go about doing this? Paul

[flexcoders] Re: SOLVED: Okay, I know this is possible...DataGrid to Tree

2007-05-17 Thread pereanend
its not really the way to do it. First you need to disable he drag drop ,drag enter and drag move on trees so that is does not call the default functions when you are dragging an item from the datagrid, then you need to implement the following : dropEnabled=false /*Set the

[flexcoders] Re: Fade Effect on Labels

2007-05-17 Thread Brian Morearty
Hi Jurgen, It seems that fade effects (fade in or fade out) do not fully work on labels, at least not the way I have implemented the fading. That's because you're using device fonts instead of embedded fonts. If you use native fonts, certain effects like fade and rotate do not work. This

[flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread barry.beattie
many thanx Ely, that got it going. you are indeed correct and it makes sence now (mea maximus culpa) but does that mean the docs are wrong? look at the month attribute:

[flexcoders] Re: SOLVED: Okay, I know this is possible...DataGrid to Tree

2007-05-17 Thread Nate Pearson
The tree still needs to drag/drop inside its self. The prevent default disables the standard dropEnabled when you drop from the datagrid. --- In flexcoders@yahoogroups.com, pereanend [EMAIL PROTECTED] wrote: its not really the way to do it. First you need to disable he drag drop ,drag

RE: [flexcoders] Re: Number data type rounding/flooring with FDS and Java

2007-05-17 Thread Peter Farland
The as operator is not really the same as a conversion function. If the expression is not of the specified datatype it usually returns null. Number cannot be null, so I'd expect it to result in 0. However, implicit coercion rules were added to the as operator in ECMAScript 4 (and hence AS3)...

Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Austin Kottke
Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through

[flexcoders] DataGrid setting selectedIndex causes text colors to change

2007-05-17 Thread dougco2000
Hi all, I am building out a datagrid in AS, and the mx piece is: mx:DataGrid id=tables dataProvider={gridData} change=selectTable(event) sortableColumns=true width=100% height=100% / Now, when I create the grid, everything shows up great but at the end of the populating the grid code I have a

Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Paul J DeCoursey
You can easily integrate a compile on demand system using the Flex SDK and Tomcat. The problem is the compilers are not very fast. I'm guessing that the Apache/IIS module does some caching so that compiles run faster because they don't have to reload large libraries each time. Once the

Re: {Disarmed} [flexcoders] Re: Fade Effect on Labels

2007-05-17 Thread Jurgen Beck
Hi Brian, Well, that may be the reason indeed. That's where Flex is getting a bit funky. I've embedded the fonts into the application, but for some reason Flex is not taking them. I've had mixed results embedding system/native fonts in Flex. Some of them take fine, others won't. I'll dig

[flexcoders] Does Drag Drop Only Update the DataProvider?

2007-05-17 Thread Geoffrey
I have a DataGrid that has a dataProvider bound to an ArrayCollection. code mx:DataGrid id=dgEmployees dataProvider={__employees} ... /code I also have another DataGrid (dgAllEmployees) that is within a popup, which I use as a source for Drag Drop operations to populate the dgEmployee

[flexcoders] Re: Adobe Flex Charts and royalty fees.

2007-05-17 Thread IrfanAsrar
--- In flexcoders@yahoogroups.com, IrfanAsrar [EMAIL PROTECTED] wrote: Hi All, I have a licence question for the Adobe Flex Charting component. to sell a web app based on Flex, and was wondering if anyone knew that if I used Adobe Flex Charts in the Web App, if there are any

[flexcoders] Strange Error with Embed Statement

2007-05-17 Thread Jurgen Beck
I've been working on this big project for the last 5 weeks and all of a sudden today started getting errors on all my Embed statements in my style sheet. The following lines are an example of what Flex Builder now thinks are invalid statements: .trashButton {

[flexcoders] ASDoc with multiple source directories

2007-05-17 Thread Greg McCreath
Hi all, This is driving me nuts. How do I use ASDoc with multiple source directories? Like: src1\mylib1\src ... etc etc src2\mylib2\src ... etc etc src3\mylib3\src ... etc etc plus a main project dir: src\com\ etc etc It seems like no combination of -doc-sources or -source-path

RE: [flexcoders] tree event using cairngorm

2007-05-17 Thread Thind, Aman
Hey Adam, Maintain the state of the tree in your model and map this state to the tree in your View using Data Binding. The command changes the state and the bindings refresh your view. You don't need to explicitly call methods on the tree. Cheers, Aman

Re: [flexcoders] tree event using cairngorm

2007-05-17 Thread Bjorn Schultheiss
You can call methods on the tree via binding by using the observe tag discussed by Alex Ulhmann On 18/05/2007, at 12:15 PM, Thind, Aman wrote: Hey Adam, Maintain the state of the tree in your model and map this state to the tree in your View using Data Binding. The command changes the

[flexcoders] Override failing.... between MXML base class and AS3 subclass

2007-05-17 Thread Matthew OMeara
Perhaps I shopuld not be trying to do this, but here it is anyway... I have a compound MXML component that I have created that has a few MXML children and 2 states. It serves as an agnostic visual control that Value Objects get assigned to for dipslay. I want to reuse the MXML control several

Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Austin Kottke
Yea - I'm mainly just thinking it would be great to have some dynamic layout code that you could fire off to an html layout guy and he could use MXML for dynamic layout and positioning. This could create some awesome workflows I feel, because it would open up the editing to non-flex designers

[flexcoders] Saving client data to local drive on user demand.

2007-05-17 Thread Guido
Hi, I've been working with Flex for a month now, and I am currently facing a problem I don't have any leads on how to address. Basically I want to let the user save the data on a grid or chart to its local drive (the user should be also able to choose the destination file path). I have an XML

[flexcoders] DistortionEffects in an itemRenderer possible?

2007-05-17 Thread Michael Wills
Hello all, I was wondering if it is possible to use the ever so groovy DistortionEffects as prepared by Alex Uhlmann, within an itemRenderer. Specifically a HorizontalList itemRenderer. I get a #2015 invalid BitmapData error currently when trying to trigger a SimpleFlip from one viewstack

RE: [flexcoders] Saving client data to local drive on user demand.

2007-05-17 Thread Thind, Aman
You can copy data to your clipboard and then paste it into a file. I don't think you can step out of the flash sandbox and create files on the local disk due to security constraints. System.setClipboard(YourXMLObject.toXMLString()) Cheers, Aman From:

Re: [flexcoders] tightening between multiple lines in a mx:text object

2007-05-17 Thread Daniel Freiman
You're probably looking for the leading style which in Flash/Flex is defined as Additional vertical space between lines of text. (Although designers tell me that this isn't the real definition of leading, this is how flash uses the term.) You should be able to set this value to negative numbers

Re: [flexcoders] Saving client data to local drive on user demand.

2007-05-17 Thread Daniel Freiman
Aman is correct. Apollo will be able to do it but it's still in pre-release form. There are workaround that involve using additional techniques and technologies. These workarounds obviously have drawbacks. One is bouncing the file off a server (which requires an upload and then download).

[flexcoders] Re: Flexbuilder2 bug: line number setting not remembered

2007-05-17 Thread Brian Morearty
Are you switching to another Eclipse Workspace when you see this? Eclipse has this bizarre behavior where your preferences are stored per workspace. - Brian Morearty Intuit --- In flexcoders@yahoogroups.com, li wenzhi [EMAIL PROTECTED] wrote: I use flexbuilder2.0.1 in windowsXP, when i

[flexcoders] Re: anyone using HTMLcomponent.swc? SOLVED.

2007-05-17 Thread barry.beattie
this issue has been successfully resolved offlist and input from the flexcomponents list. and just in the nick of time too. followup info can be read on the support forums for this component: http://drumbeatinsight.com/forums/viewforum.php?f=15 I now have no hesitation recommending this

Re: [flexcoders] DistortionEffects in an itemRenderer possible?

2007-05-17 Thread Michael Wills
A little further investigation looks like the error comes in because of the highlighting at the mouseOver which is when I am trying to trigger it. And it occasionally works if I have the mouse move the right way at the right time. I'll keep digging. I was trying to get it to work on a

[flexcoders] DistortionEffect triggered on mouseOver possible in itemRenderer in HorizontalList? - was : DistortionEffects in an itemRenderer possible?

2007-05-17 Thread Michael Wills
I just confirmed that the problem is in fact caused by being triggered by the mouseOver or rollOver event. Being trigger by a mouseUp event is fine. Still digging. Thanks, Michael Michael Wills wrote: A little further investigation looks like the error comes in because of the highlighting

<    1   2