[flexcoders] Booleans and Stardust

2007-04-22 Thread Shannon
I wrote a function to change state of details based on arg[0] (off_on): true - show false - hide null - toggle Seems ok, but if off_on is declared Boolean we get a warning: 1096: Illogical comparison with null. Variables of type Boolean cannot be null. Shucks ... :(~ So I now have

Re: [flexcoders] Booleans and Stardust

2007-04-22 Thread Muzak
Use int instead of Boolean ? -1 (instead of null) 0 (instead of false) 1 (instead of true) regards, Muzak - Original Message - From: Shannon [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 22, 2007 8:11 AM Subject: [flexcoders] Booleans and Stardust I wrote a

[flexcoders] Re: Conditional Compile?

2007-04-22 Thread Tim
Too bad! This would be handy when building with Apollo. --- In flexcoders@yahoogroups.com, Steve Kellogg @ Project SOC [EMAIL PROTECTED] wrote: Thanks, Gordon. Steve _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent:

[flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, munene_uk [EMAIL PROTECTED] wrote: i've got two canvases in a tabnavigator which are named students and courses the student canvas contains alot more information than the courses canvas my idea is that when the user click on the course tab the

[flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Steve Kellogg
Hello, The standard behavior for a combobox is to grow in width until it's wide enough to display the current selection. Is there anyway to tell a ComboBox to Truncate the current displayed Selection if it's too wide for a ComboBox? I've tried setting both the left and right for the

[flexcoders] using a check boxes on a list control

2007-04-22 Thread munene_uk
ive downloaded this sample http://blogs.adobe.com/aharui/CheckBoxList/listSample.swf from http://blogs.adobe.com/aharui/ http://blogs.adobe.com/aharui/ and im tryin to use it in my course management application. im using amfphp 1.9 i simply want the app to retrieve the list of courses

Re: [flexcoders] Booleans and Stardust

2007-04-22 Thread Manish Jethani
Boolean cannot be null. The default value is false if not initialised. I think you want to use int with predefined constants. On 4/22/07, Muzak [EMAIL PROTECTED] wrote: Use int instead of Boolean ? -1 (instead of null) 0 (instead of false) 1 (instead of true) regards, Muzak -

[flexcoders] Re: Resize Effect for Percentages?

2007-04-22 Thread Matt
Don't suppose you have some code you could post as an example? Are you actually going through the process of extending Resize and making it so if it ends on a percentage value when the effect finishes it actually does change to a percentage (so if you resize it acts appropriately)? If that's not

Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Manish Jethani
Set resizeToContent on the tab navigator to true. On 4/22/07, munene_uk [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, munene_uk [EMAIL PROTECTED] wrote: i've got two canvases in a tabnavigator which are named students and courses the student canvas contains alot more

[flexcoders] Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
Hello, i have one application with several sections. Each section is created with: section=addChild(new MySection()); and destroyed with: removeChild(section); section=null; Everytime i create one section, i destroy the previous ones. The section MySection has one component MyComponent that

[flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: Set resizeToContent on the tab navigator to true. On 4/22/07, munene_uk [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, munene_uk munene_uk@ wrote: i've got two canvases in a tabnavigator which are

[flexcoders] Re: Slow and jumpy scrolling in DataGrid. Is it possible to cache more?

2007-04-22 Thread harfga
Those are good suggestions, but I've already tried both of them. I don't think sticking the DataGrid in a big Canvas is a good solution because not only does it looks ugly, and you lose the feature of scrolling in increments of data columns. I optimized my item renderers by eliminating them.

[flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
I have created a minimal flex app to show the problem. You can access it on http://www.riapt.org/opensource/removeChildTest/removeChildTest.html. The source is available (right click- view source). As you can see, after creating, destroying and creating again (by pressing twice the first

[flexcoders] Re: trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
As promised, the url, VS Enabled. I'd be grateful for any help. http://shawngibson.com/imagesmech/main.html Shawn

[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Scott Barnes [EMAIL PROTECTED] wrote: Paul, How many enterprise / companies do you know are shopping around for electronic forms built in PDF vs SAAS solutions? Quite a few actually. The company I work for provides this as a service for many fortune 500

[flexcoders] trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
I swear to god I'm doing the best I can here, and I do seem to be getting closer. My problem right now is that I don't seen to be able to get the main image (orthe text label) to load after a particular thumb is clicked. I SEEM to be loading the entire array...which of course makes no sense. The

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread dorkie dork from dorktown
you wrote, How many enterprise / companies do you know are shopping around for electronic forms built in PDF vs SAAS solutions? PDF is a danger in some organisations, it's something they want to put as much distance away from as possible and prefer to leave them buried in the Document Management

Re: [flexcoders] trying here- get an image name and the images itself to load

2007-04-22 Thread Michael Wills
Hi there Shawn, I'm a relative newbie here as well but I thought I'd take a look. I learn as I do so I try. :-) It seems when your loadMainImage event is being triggered, you are parsing the data from the XML file correctly actually. But what you want to do is pull the unique data from the

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-22 Thread Troy Gilbert
When I was writing that e-mail I was thinking about that, as I have some code that does something similar... so, my argument may be completely wrong... needs investigation. Anyone from Adobe care to comment? Troy. On 4/21/07, Ronnie Liew [EMAIL PROTECTED] wrote: Hi Troy, U mentioned that

[flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Shannon
Thank you for the response, Boolean cannot be null. The default value is false if not initialised. So you're saying that AS3 sets a Boolean to false even without assignment? It takes some getting used to, but I suppose a compiler error makes sense then :) So in your reply: I think you want

Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Michael Wills
And this has a helper function for intelligently truncating a string: http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/ Michael Steve Kellogg wrote: Hello, The standard behavior for a combobox is to grow in width until it's wide enough to display the current selection.

Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Michael Wills
Have you tried maxWidth? I am not sure how it handles the truncation though. Michael Steve Kellogg wrote: Hello, The standard behavior for a combobox is to grow in width until it's wide enough to display the current selection. Is there anyway to tell a ComboBox to Truncate the

[flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Shannon
Thanks for your response: Use int instead of Boolean ? -1 (instead of null) 0 (instead of false) 1 (instead of true) You are right, this is better than declaring b:*. Hindsite tells me I would be a better programmer if I just created a second function (one to toggleDetails and one to

[flexcoders] Re: Getting progress events on Socket *write* (not read)

2007-04-22 Thread Tim
Any chance anyone well connected wants to discuss this? It's a pretty serious issue and really impairs the binary socket API, at least for uploading large amounts of data. --- In flexcoders@yahoogroups.com, Tim [EMAIL PROTECTED] wrote: Is there a way to get a progress event on a socket write

Re: [flexcoders] Re: IFrame problem

2007-04-22 Thread dorkie dork from dorktown
you can also check out the html component at www.drumbeatinsight.com/htmlcomponent follow the quickstart guide to get going. On 4/20/07, gotjosh819i [EMAIL PROTECTED] wrote: Mane, (blog entry) http://www.deitte.com/archives/2006/05/update_to_embed.htm A cpl things that need to be done

[flexcoders] Re: Resize Effect for Percentages?

2007-04-22 Thread iko_knyphausen
No I did not extend the resize effects. I used absolute values for x,y,width and height, and computed the percentage relative to its container. But I only had a few of them, so I did not create a custom effect.. --- In flexcoders@yahoogroups.com, Matt [EMAIL PROTECTED] wrote: Don't suppose

Re: [flexcoders] Resize Effect for Percentages?

2007-04-22 Thread Manish Jethani
You can use the AnimateProperty effect on the percentWidth/percentHeight property. On 4/22/07, Matt [EMAIL PROTECTED] wrote: Is there any way to use the Resize effect to either resize from 0 to a percentage or from a percentage to 0? -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Re: Getting progress events on Socket *write* (not read)

2007-04-22 Thread Manish Jethani
From looking at the API docs, my guess is that flush() is a blocking operation that returns only when it's complete. If for some reason the flush fails, it'll throw an I/O error. You could verify this by writing a large amount of data to the buffer, calling flush() and then pulling the plug on

[flexcoders] Re: trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
Michael: You did it! Thanks. And what makes it both wonderful for me and also very frustrating (but just in a DOH! way) is that I totally understand what you did. I guess I've lost a bit of perspective here, and need to step back a bit, because even I should have been able to figure that

Re: [flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Manish Jethani
On 4/22/07, Shannon [EMAIL PROTECTED] wrote: Thank you for the response, Boolean cannot be null. The default value is false if not initialised. So you're saying that AS3 sets a Boolean to false even without assignment? Every type of variable has a default value. Boolean is false, int is 0,

Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Manish Jethani
itemRenderer=mx.controls.Label That, and you set the width to a fixed width. On 4/22/07, Steve Kellogg [EMAIL PROTECTED] wrote: Hello, The standard behavior for a combobox is to grow in width until it's wide enough to display the current selection. Is there anyway to tell a

Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Luis Eduardo
Luckly i was doing something last week that i think can help you. (or at least give you some directions) here is the code. try change the tabs to see the resize. i dont know yet how to find the amount to shrink automaticly... if you or someone find the answer and share with us that

Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Manish Jethani
On 4/22/07, munene_uk [EMAIL PROTECTED] wrote: thanks for the reply but for some reason it doesn't seem to work can you maybe exaplin to me in a bit more detail how this should be implemented? You're looking for a way to automatically resize a TabNavigator to the size of its currently

[flexcoders] X axis of Area Chart how to make labels always vertical

2007-04-22 Thread {reduxdj}
Thanks, Patrick

[flexcoders] Canvas scrollbars not appearing

2007-04-22 Thread vitcheff
Hi everyone, I have following problem: Created a custom component by extending UIComponent using AS3. Added a Canvas to the Application container and then added an instance of that custom component. What the component does is load an image in a Loader instance and scales it down to fit into the

Re: [flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread Manish Jethani
Looks like the binding for the MyCanvas object is still around. You'll have to remove the MyCanvas object from the MyComponent object explicitly. Make sure you've assigned an id to it. MyCanvas myVar={...} id=myCanvas / Script function removeCanvas() { removeChild(myCanvas); myCanvas

[flexcoders] Re: using a check boxes on a list control

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, munene_uk [EMAIL PROTECTED] wrote: ive downloaded this sample http://blogs.adobe.com/aharui/CheckBoxList/listSample.swf from http://blogs.adobe.com/aharui/ http://blogs.adobe.com/aharui/ and im tryin to use it in my course management application. im

Re: [flexcoders] itemRenderer not provided with newValue

2007-04-22 Thread Manish Jethani
The DataGrid only updates the dataField (status_code in your case). If you want to update the other fields based on the value of the status_code field, you can listen for the itemEditEnd event and update it there. For example: DataGrid id=dg itemEditEnd=foo() ... function foo() {

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Scott Barnes
Paul: How many? Seriously, throw the numbers on the table because I got to tell you, both pre-Microsoft and post-Microsoft things haven't changed that radically that DMS is more favoured then SAAS. SAAS is the new SOA dream, and people want it because it's less red-tape to fight for a capital

[flexcoders] overlapping

2007-04-22 Thread Erhan Kayar
Hi guys, I create a vbox and some xopmponent inside. And this vbox also inside of a repeter. Why are those vbox overlapping in my repeter. What is wrong? thnx. Erhan Kayar __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

[flexcoders] HorizontalListrepeaterno scrollbar (mouse action moves left-right)

2007-04-22 Thread shawn.gibson
Taking a break from the data aspect of my project, and have a visual part I'd like to get working (more for a breather than anything else, though I do have to get it working eventually...). I have a HorizontalList populated by HTTPService/xml file...it loads thumbnails, as many as are in the

[flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
Great!!! It works as a charm So, for every component i want to remove, i need to make sure that i remove also sub-components with bindings, right? Is there an easier way to achieve this? I have several views being added or removed by addChild or removeChild, each one of them it a lot of bindings

Re: [flexcoders] overlapping

2007-04-22 Thread Manish Jethani
What is the repeater inside of? Can you post the MXML? On 4/22/07, Erhan Kayar [EMAIL PROTECTED] wrote: Hi guys, I create a vbox and some xopmponent inside. And this vbox also inside of a repeter. Why are those vbox overlapping in my repeter. What is wrong? thnx. Erhan Kayar

Re: [flexcoders] Canvas scrollbars not appearing

2007-04-22 Thread Manish Jethani
Is the size of the UIComponent really changing? Is invalidateDisplayList() getting called on the Canvas internally? If not, try calling it explicitly and your Canvas should show scrollbars. On 4/21/07, vitcheff [EMAIL PROTECTED] wrote: Hi everyone, I have following problem: Created a custom

Re: [flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread Manish Jethani
At the moment, yes, it looks like you have to remove *every* object with a binding on it explicitly or the binding still remains in the background (and the setter keeps getting called). This is definitely a bug in the Flex framework. (Probably someone from Adobe should log it using your standalone

[flexcoders] Transitions between views inside a viewStack using states defined inside th view

2007-04-22 Thread João
Hello, First of all, the example: http://www.riapt.org/opensource/states_test/states_test.html (with view source enabled). I have two components, Component1.mxml and Component2.mxml, both with two states. The default state has it's inner components proper placed, and the hidden state has the

Re: [flexcoders] HorizontalListrepeaterno scrollbar (mouse action moves left-right)

2007-04-22 Thread Manish Jethani
Hey, I can't stand that scrollbar either! You can turn it off by setting horizontalScrollPolicy to off. Then on roll over or whatever (two buttons on either side) you can set horizontalScrollPosition. On 4/23/07, shawn.gibson [EMAIL PROTECTED] wrote: Taking a break from the data aspect of my

[flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Bjorn Schultheiss
Hey, I'm getting an annoying error when i try to do a bitmap draw of an image loaded via a remote domain. **Error: A policy file is required, but the checkPolicyFile flag was not set when this media was loaded** To confirm i have a breakpoint where i set the source of the image tag, and

[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Scott Barnes [EMAIL PROTECTED] wrote: Paul: How many? 37... I don't know... I don't even work in that group. I just know that it has been very lucrative. I shouldn't even be responding to this rant. I'm not too sure how to respond to it really. I don't

[flexcoders] Re: Getting progress events on Socket *write* (not read)

2007-04-22 Thread maliboo_pl
Any chance anyone well connected wants to discuss this? It's a pretty serious issue and really impairs the binary socket API, at least for uploading large amounts of data. The same here: Socket doesnt't dispatch/throws *ANY* kind of activity related to emptying output buffer after flush:(

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Brian Lesser
Hi Paul, You made me laugh out loud when I read: I shouldn't even be responding to this rant. I've had a very similar feeling! Some news that may be of interest from the FITC conference here in Toronto summarized by Aral Balkan: http://aralbalkan.com/922 /*I'm very excited about the back-end

[flexcoders] Looking for a developer who can create a desktop application using Flex

2007-04-22 Thread fabiohcardoso
Hello, I'm looking for someone with experience who can create something similar to this; http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html Here are some details. It's not to run from an online server or WEB. It's to run on a desktop using the local machine HD.

[flexcoders] Re: HorizontalListrepeaterno scrollbar (mouse action moves left-right)

2007-04-22 Thread shawn.gibson
Wow, that seems like it should be easy. I got it about 1/2 done, already works, sort of. I'll figure out the rest, I'm sure...Was for once something I could wrap my brain around - thanks:) Shawn --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: Hey, I can't stand that

[flexcoders] Confusion on Image Component

2007-04-22 Thread Mike Anderson
Hello All, I have an Image Component, which holds an image that is quite large - and I only want a certain region of the image to be shown. What I was hoping to do, is set the Width and Height settings of the Image Component itself, and then set the ScaleX, ScaleY, X and Y Properties of the

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Scott Barnes
Oh yeah!..i agree.. I kind of wanted to dump and run on this rant as well... Happy to let it die of the natral death it deserves heheeh. On 4/23/07, Brian Lesser [EMAIL PROTECTED] wrote: Hi Paul, You made me laugh out loud when I read: I shouldn't even be responding to this rant. I've

[flexcoders] Viewstack showEffect and hideEffect playing at the same time

2007-04-22 Thread João
I have one viewStack with two views, both of them with the following effects: mx:Parallel id=showEffect duration=600 mx:Parallel target={p1} duration=600 mx:Move xTo=35/ mx:Fade alphaTo=1/ /mx:Parallel

Re: [flexcoders] Confusion on Image Component

2007-04-22 Thread Bjorn Schultheiss
You're probably better off re-writing your own Image component that does exactly that. You could borrow what you need from the existing class i guess to make it easier. Perhaps Ely Greenfield SuperImage already handles clipping, I'm not sure, either way another good place to start from.

RE: [flexcoders] FDS/LCDS First Time Set Up

2007-04-22 Thread Peter Farland
4) I tried to follow the Use the Data Management Service tutorial in the Flex Manual and got hung up in two places. First, I get a compiler error that says: Unexpected attribute 'url' found in 'endpoint' from file: services-config.xml (I assume I look in the WEB-INF/flex dir for this file,

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Weyert de Boer
Yeah, you would also say that when .NET was supported wonderfully and we got the problem with Java or ColdFusion connectivity? Now I can really care less about Java myself, but I can do tell that would hear the same sounds then. Of course, it ain't difficult to write some good connector .NET

Re: [flexcoders] Getting progress events on Socket *write* (not read)

2007-04-22 Thread Weyert de Boer
Hmm, as far as I know you can't really control such things with TCP sockets in general. I mean the TCP(/IP) itself doesn't enable to force sending the bytes from the buffer. It makes it own decision what and when to send stuff. I wants to send the stuff as efficient as possible. No, I have to

RE: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread David Mendels
Scott, This is all FUD. You contributed a lot to the Flex community for years, but the below is just so off-base. a) Flex 1.0 and 1.X did not crash and burn. It was one of the most successfull new product introductions in the history of the company. It was a 1.X product, and it wasn't

[flexcoders] Okay, I know this is possible...

2007-04-22 Thread Nate Pearson
...but I haven't seen it yet! I've seen the code but when I run it it doesn't work! How do allow for a datagrid to drop into a tree? All i need it to do is have DragManger.acceptDragDrop(UIComponent(event.currentTarget)) on drag enter work! Everytime i do it I get a little red x. Anyone have

Re: [flexcoders] Viewstack showEffect and hideEffect playing at the same time

2007-04-22 Thread Tim Walling
I don't think you can. I've had to write my own viewstack-like component in the past to achieve a series of animation effects. In my case it was a fade out, resize, fade in. You might have to write your own component as well if you can't live with the effects that you come up with using a

[flexcoders] xmlrpc

2007-04-22 Thread joshua gatcke
Hello All, I am having a hard time understanding how to use mx:http / with our xmlrpc server. I understand how to send a request with name value pairs and how to format the results etc., however, I have no idea how I can specify the xmlrpc method to use with the mx:http / tag or via

Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel
Hi Bjorn, I don't think it will allow you to do this for a remote domain. See Docs for BitMapData: The source object and (in the case of a Sprite or MovieClip object) all of its child objects must come from the same domain as the caller, or must be in a SWF file that is accessible to the caller

Re: [flexcoders] Re: trying here- get an image name and the images itself to load

2007-04-22 Thread Michael Wills
No problem. I know the pain, believe me. I'm working on an app now as I am starting out with Flex and decided to dive in with Cairngorm for it. There is definitely a learning curve but it really helps with the separation. Glad it worked out for you there. Michael shawn.gibson wrote:

[flexcoders] Font-size Bug in Text Area?

2007-04-22 Thread iko_knyphausen
Hi everyone: I think I have found a bug in the text area control and its htmlText property. When you set the fontsize property of an textarea to 11, it interprets it as 11 pixels (nb: 11px would not a valid value for this property). On screen it looks about right. Now when you get the htmlText

Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Bjorn Schultheiss
Hey Hilary, The guys at cynergy claimed they had a solution http://www.cynergysystems.com/blogs/page/karljohnson? entry=working_around_security_sandbox_errors But this is 101, i mean the only difference i can see with my implementation is that they're using mxml and binding for the

Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel
In my case I dont have control of the remote domain, so I cant do nuffink about it! Would just have been nice to do effects on a live streaming video ;-) Hilary -- On 4/23/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Hey Hilary, The guys at cynergy claimed they had a solution

[flexcoders] Re: Identifying line series for datatip function

2007-04-22 Thread Zhu Haifeng
Hi I'm having the same problem here, but I still haven't figured out how to deal with it. After calling LineSeries(h.element).yField, I got the name of the data series, which is great. But how do I then retrieve the y value of this data series for the datatip? For example, I get DATE after