RE: [flexcoders] Re: LoadModule, creating a history so the Back Button works...

2007-05-31 Thread Alex Harui
Not sure what your delivery timeframe is, but you would be a good candidate for the new Deep Linking feature in the upcoming beta. If you can't wait that long, google for UrlKit and try that out. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL

[flexcoders] Re: DataGrid HeaderRenderer Recreates every click

2007-05-31 Thread e_baggg
Alex- Thanks. The issue is when a user clicks a column header, all the column headers are re-created and now there is no way to know what just happened since any state of that click event is lost. So I guess I am forced to save it outside the headerRenderer. I suppose I can store the column

Re: [flexcoders] Re: Socket Connection to Port 80 on Serving Host

2007-05-31 Thread Jesse Hallam
OK -- I'll see where I might be able to redirect this. While I'm fully aware of security restrictions -- I didn't expect to run into them when I'm fully in control of the server and fully in control of the client app. Making the necessary modifications ( i.e. recompiling the httpd server!) to

[flexcoders] layout help

2007-05-31 Thread Rohan Pinto
hi folks, i'm building this app (a video sharing app) and am having issues with layout.. app URL: http://demo.rohanpinto.com if you notice the right TileWindow titled Desktop Control i have an accordion which loads data from my backend webservice... here's the issue: in the control titled

RE: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-05-31 Thread Robert Chyko
I believe the displaying of the tooltip causes the itemEditor to lose focus which fires an itemEditEnd event.. thus destroying your itemEditor. I had tried something similar in the past and could not get it working so had to take a different approach. If you find a solution, please repost to

[flexcoders] URL parameters into mx:application

2007-05-31 Thread Rohan Pinto
how do I pass URL parameters into my application ? I need to be able to pass URL parameters into my app in order to display the appropriate components based on the URL... any advise ?

Re: {Disarmed} [flexcoders] URL parameters into mx:application

2007-05-31 Thread Jurgen Beck
You do this the same way you would with a Flash application. You can use flashvars to do that, which become available in your application. Look for info on Flex and flashvars. Jurgen Rohan Pinto wrote: how do I pass URL parameters into my application ? I need to be able to pass URL

[flexcoders] Re: create new button with an icon

2007-05-31 Thread mazarflex
so i am making a toolbar each button has a specific name (ex.CmdInfo). in sql i have a procedure. if you pass it CmdInfo is returns F meaning visibility=false. i need to loop through all of the buttons on my form and pass their names to SQL. i dont know where to start i thought i had it with an

[flexcoders] Re: URL parameters into mx:application

2007-05-31 Thread Rohan Pinto
i asked the question too soon: i found the answer here: http://tech.groups.yahoo.com/group/flexcoders/message/71471 sorry folks. Rohan Pinto http://konkan.tv --- In flexcoders@yahoogroups.com, Rohan Pinto [EMAIL PROTECTED] wrote: how do I pass URL parameters into my application ? I need to

[flexcoders] Progress Bar/Screen Refresh

2007-05-31 Thread jayparnau
Is there any way to force a progress bar to update during a long process? I am looping through a lot of data, and I want the progress bar to indicate what percentage has been processed. I guess I'm looking for the actionscript equivalent of a .NET DoEvents.

[flexcoders] Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread discipl4
Hi friends - thanks in advance for any help you can provide. I am displaying a simple XML in a TREE component and if I have an empty branch, it shows up as a file icon instead of a folder - which is expected. My XML looks like root parent1 child1 parent2 /root Parent one is a folder...

RE: [flexcoders] Array errors

2007-05-31 Thread Tracy Spratt
This error occurs because of the way the Flex compiler converts the mxml into an as class before compiling the swf. homeNav does not yet exist when you make the assignment in the second line. The fix is to do all posible initialization in a function, rather than in the root of the script

[flexcoders] CSS Gurus: Different StyleManagers within one Application???

2007-05-31 Thread Aldo Bucchi
Hi all, I have two different applications ( swfs ) that are loaded at runtime using two SWFLoaders inside a third application ( that acts mainly as a shell ). I need their CSS styles, skinning, etc to be independent... but the behaviour I get is that their styles get merged ( first one loaded

Re: [flexcoders] Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread Richard Rodseth
Not sure exactly what you're asking, but I recently did the following to make leaf nodes have a folder icon: mx:Tree x=0 y=0 width=100% height=100% dataProvider={folders} labelField=@name showRoot=false defaultLeafIcon=@Embed(source='Assets.swf', symbol='TreeFolderClosed')/mx:Tree On 5/31/07,

[flexcoders] Re: Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread discipl4
Sorry - I forgot to state... this xml is coming from a webservice .. so .. I cant just change my XML to say isBranch=true :):) Unless the solution is to append that attribute onto each node programatically. Thanks!! - - Dan --- In flexcoders@yahoogroups.com, discipl4 [EMAIL PROTECTED] wrote:

[flexcoders] Dynamic Icon for Button

2007-05-31 Thread Matt
Is there any way to dynamically load a icon for a Button at runtime instead of embedding it? If not, is there any third-party components that add support for this or am I left to do this for myself?

[flexcoders] Re: coldfusion wizard

2007-05-31 Thread David
Sounds like a path problem. Make sure you check your syntax for each component to see if the root folder is first. IE - if you have a website path of mysite/flexapp/etc and your components are in the flexapp, they won't be found. Make sure your components say mysite.flexapp.component . Hope this

[flexcoders] Re: Labels on inner side of axis for Charts

2007-05-31 Thread Brendan Meutzner
Throwing this one out there again... Ely, can you point me in the right direction to start?... it doesn't seem like this can be accomplished through a custom AxisRenderer, but instead might require digging into the ChartBase class, or subclasses of? Just a bit of a nudge in the right direction

[flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Derek Vadneau
Code follows... Setting styles for ToggleButtonBar overrides styles set for buttons of TabNavigator. The TabNavigator uses the ToggleButtonBar (actually, TabBar, which extends ToggleButtonBar) for the tabs. What happens is if I set styles for the TabNavigator tabs, they are ignored if I also

[flexcoders] Re: Web Service Problems

2007-05-31 Thread lfw_mara
Peter Thanks for your help! :) 1) I updated flex builder 2.0.1 to hotfix 2. Since I am running my flex app using tomcat I decided to update WEB-INF/flex dir with relevant files I found in updated Flex SDK 2. After this I can't even compile my app I get an error. Not sure if i am doing this right?

RE: [flexcoders] Re: Labels on inner side of axis for Charts

2007-05-31 Thread Ely Greenfield
Yes, this can be done with a custom axis renderer. The axis renderer can render into the data area, if it wants. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Thursday, May 31, 2007 12:38 PM To:

RE: [flexcoders] Re: create new button with an icon

2007-05-31 Thread Alex Harui
ButtonBar, if you used it, has a dataProvider that represents each button in the bar. Show us some sample code so we can see what direction you're going in From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mazarflex Sent: Thursday, May

RE: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-05-31 Thread Alex Harui
If you can post an mini-example it will help us see what you're doing and what kind of solution to propose. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Thursday, May 31, 2007 11:55 AM To:

RE: [flexcoders] Re: Web Service Problems

2007-05-31 Thread Peter Farland
1. You need fds.swc from LCDS 2.5. I'll send you details offlist (it's due out publically very very soon). Actually, are you using the flex webtier compiler on tomcat to also compile or are you using flex builder? If you're using the webtier compiler you could just get the new flex.war from

[flexcoders] Re: Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread discipl4
Richard, Thanks for the response. I want my leafnodes to keep the file icon, although I will save your code snippet for the future because that might come in handy :) I really want my empty branch node to be treated as a branch. But if you have an empty branch, apparently it shows up like a

[flexcoders] btn.width wont accept %

2007-05-31 Thread Dave @ VitalPodcasts.com
Trying to generate a Navigation... newBtn.width = 100%; - doesnt work newBtn.width = '100%'; - doesnt work newBtn.width = 100%; - doesnt work Why can I not set a button to 100%?

[flexcoders] Deploying Flex app to web server

2007-05-31 Thread sarah_e_boys
I get the following error when I deploy and access my Flex app on a web server. Can anyone help? TypeError: Error #1009: Cannot access a property or method of a null object reference. at samples::MyTreeItemRenderer/set data()

Re: [flexcoders] btn.width wont accept %

2007-05-31 Thread Paul deCoursey
newBtn.percentWidth = 100; Dave @ VitalPodcasts.com wrote: Trying to generate a Navigation... newBtn.width = 100%; - doesnt work newBtn.width = '100%'; - doesnt work newBtn.width = 100%; - doesnt work Why can I not set a button to 100%?

RE: [flexcoders] btn.width wont accept %

2007-05-31 Thread Alex Harui
Width is of type Number. Through MXML black magic we detect the % and assign to percentWidth instead. So, newBtn.percentWidth = 100; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave @ VitalPodcasts.com Sent: Thursday, May 31,

Re: [flexcoders] Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Michael Schmalle
Hi, The stage object does not get defined until right at the end of the players init cycle. Try listening to the Sprites Event.ADDED_TO_STAGE event, then access the stage object. Peace, Mike On 5/31/07, patricklemiuex [EMAIL PROTECTED] wrote: Dear Actionscript wizards: I have an all

Re: [flexcoders] FlexUnit asserError()?

2007-05-31 Thread Douglas McCarroll
Just posted on my blog about this: http://www.brightworks.com/flex_ability/?p=39 Thanks again, Angus. Douglas McCarroll wrote: Thanks, Angus! Angus Johnson wrote: Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not

[flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread patricklemiuex
Michael, Thanks so much, where was that event hiding? I was using a hackish timer to do the job. However, your solution doesn't work from within the class that I create (haven't tried outside yet). Is there a way to do this all from inside the class I am using, or does the event listener have

Re: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Michael Schmalle
Hi, You could add a listener to that sprite from the inside or outside. Don't know about the timing if it might already have passed from the out side. The reason the stage object cannot be defined in the constructor is the parent stage has not added it yet. :) That is where you get the event

Re: [flexcoders] Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread khair
Run this method over your XML before using it as you dataProvider. Probably a better way to do but it worked for me in similar situation. var myXMLWithBranches:XML=iconizeXML(myOriginalXML); //--- private function iconizeXML(xmlobj:XML):XML { function iconize(xml:XML):XML

[flexcoders] Re: create new button with an icon

2007-05-31 Thread mazarflex
i finally figured it out i put the buttons in a hbox and used the hbox.xhilddescriptors array with a loop. once the visibility is set it moves them into another hbox to keep the buttons side by side. i am not sure how to paste the code in here where it is still aligned, sorrry. public

Re: [flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Michael Schmalle
Hi, The reason it doesn't work is because TypeSelectors order in inheritance. Tab { cornerRadius: 20; } Solves your Problem. This is not a bug. Since you are setting a firstButtonStyleName on an actual selector, TabNavigator will not pick it up since it is undefined to begin with and now

[flexcoders] Dynamic LineSeries based upon Array Collection?

2007-05-31 Thread tedgies
Has anyone had any success in creating a chart with a series that you can add to at runtime? (Like Yahoo finance charts 2.0). I haven't yet seen an example where the LinSeries is based upon a changing (growing) set of external xml data files. Below i paste a snippet where i try to for loop

RE: [flexcoders] Re: Charts and Business day axis

2007-05-31 Thread Ely Greenfield
The DateTimeAxis doesn't currently do business weeks. It's something we're looking at adding for the next version. In the meantime, you have three choice, in increasing order of difficulty: 1) Use a category axis, and deal with tiny labels 2) Use a category axis, set

[flexcoders] Under flex Builder, is it possible to step into an app loaded by SWFLoader?

2007-05-31 Thread Tracy Spratt
For one of our clients, we make heavy use of SWFLoader to load applications into a shell app. This works very well but is hard to debug, since I haven't found any way to debug the loaded apps (except for trace, of course). Is it even possible to debug apps loaded this way? Running the loaded

[flexcoders] Brainstorming; Dynamic Conditionals in MXML

2007-05-31 Thread Aldo Bucchi
Hi Guys, Has anyone flirted with the idea of creating MXML conditional-structure components that can be used to dynamically generate interfaces?? just to be more graphical... something like this mx:Repeater id=rep2 dataProvider={rep1.currentItem.elements('*')} foo:If

RE: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Alex Harui
applciationComplete systemManager.stage should be available to you at initialize From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of patricklemiuex Sent: Thursday, May 31, 2007 2:15 PM To: flexcoders@yahoogroups.com Subject:

Re: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Michael Schmalle
Alex, I think he said he was using an AS3 project. There is no applicationComplete event right? Peace, Mike On 5/31/07, Alex Harui [EMAIL PROTECTED] wrote: applciationComplete systemManager.stage should be available to you at initialize -- *From:*

RE: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Alex Harui
Sorry, didn't read the whole thing. The stage should be there for the root class right away. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Thursday, May 31, 2007 4:17 PM To:

[flexcoders] Re: Deploying Flex app to web server

2007-05-31 Thread arieljake
I think this is happening because you are trying to access a property or method of a null object reference. :) I couldn't help myself. But really, if this is happening after a deploy, maybe one of your web service calls or server data calls are failing and in your code you are not checking

[flexcoders] Re: Dynamic LineSeries based upon Array Collection?

2007-05-31 Thread Aaron Wright
You set the data provider of the series to nothing. myService.lastResult is not set to anything until the HTTPService has returned. I normally call send(), and then in a seperate function handle the complete event. Then the the lastResult will be set. I suppose you could data bind the data

[flexcoders] Hyperlink in datagrid

2007-05-31 Thread Ekta Aggarwal
Hi, I am displaying some data in a datagrid where dataprovider is a XML file. Now, I have a requirement where I need to provide a hyperlink on each data cell of the datagrid, so that clicking on the item can take me to some other page. e.g.

[flexcoders] FW: Dynamic LineSeries based upon Array Collection?

2007-05-31 Thread Dimitrios Gianninas
forwarding... Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: [EMAIL PROTECTED] on behalf of majid.tahir Sent: Thu 5/31/2007 7:20 PM To: [EMAIL PROTECTED] Subject: Re: Dynamic LineSeries based upon Array Collection? I am struggling with same issue. I can

[flexcoders] Re: Empty branch in a TREE - show folder instead of file icon?

2007-05-31 Thread discipl4
Keith, It was very kind of you to provide your function to me. This will definitely work for me. I was just hoping I could avoid manipulating the xml but I suppose theres nothing too wrong with it unless the XML is huge hehe. Thanks a ton! Best Regards, - - Dan --- In

[flexcoders] Re: Labels on inner side of axis for Charts

2007-05-31 Thread Aaron Wright
You can simply specify a negative labelGap for the AxisRenderer to get the labels on the inside of the chart. It's not elegant, but... --- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi, Before I go digging through the charting framework, I thought I'd see if

[flexcoders] Re: Brainstorming; Dynamic Conditionals in MXML

2007-05-31 Thread Aldo Bucchi
ok, just realized that you can accomplish something similar by using navigators... just set creationPolicy=auto and conditionally set the selectedIndex... only it will just work under some particular circumstances and is quite hacky. i need to destroy children when the condition changes, to

Re: [flexcoders] Re: Labels on inner side of axis for Charts

2007-05-31 Thread Brendan Meutzner
Yep... thought of that... but if your label widths change that labelGap value is bunk... I've tried playing around with binding to the gutterWidth and such, but have had no success so far... Brendan On 5/31/07, Aaron Wright [EMAIL PROTECTED] wrote: You can simply specify a negative

[flexcoders] Re: Brainstorming; Dynamic Conditionals in MXML

2007-05-31 Thread Aldo Bucchi
Hi all, The component below gets to instantiate its chid correctly but it doesn't show up in the displaylist. any clues?? package foo.conditionals { import mx.containers.HBox; /** * * Does not support changing the condition property at runtime yet *

[flexcoders] Re: Brainstorming; Dynamic Conditionals in MXML

2007-05-31 Thread Aldo Bucchi
jjeje IT WORKS!!! I can now build my UI declaratively from an XML spec... needs some tweaking to allow runtime reassignment of the condition property... but is fine for one time generation ( or within a repeater. dirty trick ) i forgot to call validateNow() after creating the child On

[flexcoders] Error #1009 - Problem running swf on production server

2007-05-31 Thread sarah_e_boys
I get the following error when I try and run my application on a production server: TypeError: Error #1009: Cannot access a property or method of a null object reference. at samples::MyTreeItemRenderer/set data() The application works fine if I reference it with http://localhost or

[flexcoders] Re: Socket Connection to Port 80 on Serving Host

2007-05-31 Thread powertool786
Why do I need to implement an XMLSocket server, to open a Socket to a service on my server that isn't an XMLSocket service? Why can't it get the information it needs from an HTTP resource? It would seem that the Flash designers/implementors thought that perhaps the ubiquity of the Flash

Re: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Troy Gilbert
Not in the constructor. During the constructor of a Sprite it has not yet been added. What you need to do in your constructor is: this.addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage); And then in handleAddedToStage() method of your class this.stage will be valid. If you need to know

Re: [flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Derek Vadneau
Thank you for the workaround, it will work great for my project. Now, I can maybe understand that it's perhaps not a bug but it definitely is a shortcoming of the style system and docs. There is no mention of Tab in the docs. I had to go look for the class in the SDK just to know how you got

Re: [flexcoders] Hyperlink in datagrid

2007-05-31 Thread Derek Vadneau
You could setup a hyperlink by creating a custom cellrenderer, but the easier way would be to listen for the change event. That will give you the rowIndex and columnIndex so you can get the data for the cell pressed and execute the navigateToURL (or whatever other code) based on that data. On

Re: [flexcoders] Error #1009 - Problem running swf on production server

2007-05-31 Thread Flexing...
This is basically a null pointer exception. In your itemrenderer you must be trying to access the variable of an object to probably display the value. The object in this case is null. You need to add nullity check in your code. On Jun 1, 2007, at 12:19 AM, sarah_e_boys wrote: I get the

RE: [flexcoders] Re: Actionscript SAX Parser ?

2007-05-31 Thread Gordon Smith
I'd be interested to know what your use case is that requires a SAX parser. How large is your XML? Did you run into a memory or performance problem with AS3's E4X capabilities? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-05-31 Thread nxzone
Is not a custom tooltip... It a custom itemeditor in the datagrid. This itemeditor is a textinput with a validator. When the text change the validator validate and show a red border with a tooltip... Something like this mx:TextInput x=50 y=21 width=208 creationComplete=doInit() ![CDATA[

RE: [flexcoders] Re: Brainstorming; Dynamic Conditionals in MXML

2007-05-31 Thread Gordon Smith
c'mon adobe guys! you can do it ;) When we implemented mx:Repeater, we considered whether to add conditional tags like mx:If. We decided against it on the grounds that it would be confusing about whether these tags worked at compile time or at runtime. We felt that dynamic runtime logic belongs

Re: [flexcoders] Re: Accessing the illusive stage Object through sprite (a near impossible feat)

2007-05-31 Thread Derek Vadneau
[quote by Troy Gilbert] Not in the constructor. Assuming your SWF is being loaded into another SWF. [quote by Alex Harui] The stage should be there for the root class right away. If your SWF is the main (root) SWF, then Alex is correct. Although listening for ADDED_TO_STAGE would be the safest

[flexcoders] AutoComplete component?

2007-05-31 Thread Kevin
Does anyone know what happened to the AutoComplete component? I can't seem to find it in the Adobe Exchange anymore. i just had a hard drive crash and I am trying to reinstall my swc libs for my project. Is there another good AutoComplete component out there? Thanks, Kevin

RE: [flexcoders] Question about delete

2007-05-31 Thread Gordon Smith
Just to be pedantically correct... In AS3 you can't destroy any object... only the garbage collector can. But by nulling the (only) var referring to your Podz instance, it becomes elegible for garbage collection at some point in the future. Setting the var to null is not the only way to

RE: [flexcoders] Re: Is there any way to call super.super.method in AS3?

2007-05-31 Thread Gordon Smith
Alex meant to say If a method is overridden, you can NOT skip around the override like you can in some other languages. And you can't directly, with super.super. But you can, indirectly. The way the framework codes around the lack of super.super is to use the following pattern: class A {

Re: [flexcoders] AutoComplete component?

2007-05-31 Thread Kevin
thanks! - kevin On Jun 1, 2007, at 1:35 AM, Brendan Meutzner wrote: Not sure what happened to it, but here's the swc at least... hope this attachment works... Brendan On 5/31/07, Kevin [EMAIL PROTECTED] wrote: Does anyone know what happened to the AutoComplete component? I can't seem to

RE: [flexcoders] How to use UIComponentDescriptor type property

2007-05-31 Thread Gordon Smith
Lets say that your custom component class is MyComponent. Are you trying to determine whether the descriptor is for any instance of MyComponent, or for a particular instance of MyComponent? If it is the latter, I would do if (someDescriptor.type == MyComponent) rather than if

<    1   2