[flexcoders] Adding data to a bubbling event

2008-11-07 Thread greenfishinwater
I have some view components with are used in a heirarchy: Application Store Department Product Each component only knows about itself, so the data passed to the product view only contains product data, and does not contain the department or store that the product is within. When a

Re: [flexcoders] Adding data to a bubbling event

2008-11-07 Thread Paul Andrews
I think it would be a better solution to stop the event bubbling and issue a new event - 'StoreProductEvent' or something. Then there's no question about how the event should be handled and the intent/purpose of the event is clearly understood, nether would you have to change your final event

[flexcoders] Re: Using XML Object passed from ASP.NET web service in a Flex Datagrid

2008-11-07 Thread valdhor
Another reason to move to remote objects is data size. In my particular situation the data I was returning was all numbers. Wrapping each number in a critical1/critical XML tag pair meant that the returned data size was 80KB+. Changing to remote objects dropped the size to 8KB. Also, an

[flexcoders] Re: Charts

2008-11-07 Thread mugsisme
Thanks for the links. --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Anthony DeBonis anthony@ wrote: Go to: http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html Right Click View Source on the app Dirrect link is

[flexcoders] Re: Use an .exe or a .dll

2008-11-07 Thread valdhor
Chack out the Merapi Project (http://www.merapiproject.net/) --- In flexcoders@yahoogroups.com, mugsisme [EMAIL PROTECTED] wrote: Hi, I have an interface I wrote in Flex/AIR and I want to be able to call or use an external program. My Flex/AIR program will accept inputs from the user,

RE: [flexcoders] Use an .exe or a .dll

2008-11-07 Thread Gregor Kiddie
You might want to take a look at Merapi or FluorineFX Aperture. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at

[flexcoders] Re: Using XML Object passed from ASP.NET web service in a Flex Datagrid

2008-11-07 Thread valdhor
Just an aside. My name is Steve - Valdhor was my alter-ego back in the days I was at university and playing ADD every day. I am a kiwi, now living in North Carolina. But, valdhor is correct

[flexcoders] httpservice/save-as question

2008-11-07 Thread Glenn Jones
I already have working code that uses HttpService to send various requests to the backend from my Flex client and process the responses. I also have a customized implementation of the flex DataGrid which implements paging such that the flex client only shows one page of data at a time. The

[flexcoders] mxml implements actionscript interface

2008-11-07 Thread Romain de Wolff
Hello all, Is there a way to implement an interface within an MXML file? Thanks for any info!

[flexcoders] sending a Flex Object() to a cfc

2008-11-07 Thread btroop202
I am trying to send a flex Object to a cfc but getting a error message. So if I define my object: var objectName:Object = new Object(); objectName.field1 = 'someData'; objectName.field2 = 'someData'; objectName.field3 = 'someData'; Then in the cfc I am looking for a struct, but I get this

Re: [flexcoders] tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Romain de Wolff
We need more code to see what happens there. You have events that might have not set a var? There is something to dig into your event order, or item initialization. Cheers, G Le 7 nov. 08 à 12:19, fotis.chatzinikos a écrit : Hello all, can anybody throw any pointer on this? I have a

[flexcoders] Re: AS3 Class, MXML implements it

2008-11-07 Thread florian.salihovic
Just just the implements Attribute in the root node and specify ypur interface, which will be implement. Best regards. --- In flexcoders@yahoogroups.com, geniium [EMAIL PROTECTED] wrote: Hello, Do you know any way to implement an interface in a MXML file? Thanks for any info, G

Re: [flexcoders] sending a Flex Object() to a cfc

2008-11-07 Thread Howard Fore
Have you tried creating an Actionscript class for objectName (in your code) instead of a generic object and then use a RemoteAlias directive to associate that .as class to a CFC? I know this works from CF to Flex, I'm not certain about the other way. What I'd love to do is to send an

Re: [flexcoders] Re: AS3 Class, MXML implements it

2008-11-07 Thread Romain de Wolff
Thanks a lot! I was looking for this to architecture my project in a best way! Regards, Romain DW Le 7 nov. 08 à 16:34, florian.salihovic a écrit : Just just the implements Attribute in the root node and specify ypur interface, which will be implement. Best regards. --- In

[flexcoders] sailorsea21 - How can I add the % symbol on my vertical axis in my chart?

2008-11-07 Thread sailorsea21
Hello everyone, How can I add the % symbol on my vertical axis after my value? mx:LinearAxis id=percent interval=10/ mx:LineSeries verticalAxis={percent} yField=test showDataEffect=interpolate/ Thanks -David

Re: [flexcoders] Re: AS3 Class, MXML implements it

2008-11-07 Thread gabriel montagné
On Fri, Nov 7, 2008 at 9:34 AM, florian.salihovic [EMAIL PROTECTED] wrote: Just just the implements Attribute in the root node and specify ypur interface, which will be implement. Like this: mx:Canvas implements=mx.controls.listClasses.IListItemRenderer, dsw.mmi.view.IGestureClient

[flexcoders] textArea's that are limited by the amount of lines

2008-11-07 Thread tchredeemed
Basically, I created a custom component that extends TextArea, and I created a getter that returns the super.textField. Right now, I am doing this: private var savedText:String; private var limitHit:Boolean = false; keyDown(){ savedText = textArea.text; var tf:TextField = TextField(

[flexcoders] need some help with extending the LinkBar a bit

2008-11-07 Thread Mark
I found this great post out there on how to remove the highlight from a LinkButton. This post shows how to put the underline under the text on rollOver which is what I need. But I'm using a LinkBar, can someone help with this on the LinkBar? Thanks, Mark package { import

RE: [flexcoders] httpservice/save-as question

2008-11-07 Thread Gregor Kiddie
You can keep the Javascript and use an ExternalInterface to communicate with it. Alternatively, use navigateToURL to call the required URL and pass it the correct window so the browser handles it. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread

Re: [flexcoders] tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Fotis Chatzinikos
Hello Romain, that is not so easy... Its inside a custom component with a couple hundrends lines of code... Any ideas on how to debug something like this? Can i somehow tell the debugger to catch any exceptions and step throught the code? Will i need to provide the flex sources for something

RE: [flexcoders] mxml implements actionscript interface

2008-11-07 Thread Ryan Graham
Sure... you can use the implements property on the root tag of your component: mx:Canvas implements=someInterface ... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Romain de Wolff Sent: Friday, November 07, 2008 2:30 AM

Re: [flexcoders] httpservice/save-as question

2008-11-07 Thread Howard Fore
Will that work with the stand-alone Flash player? On Fri, Nov 7, 2008 at 10:59 AM, Gregor Kiddie [EMAIL PROTECTED] wrote: You can keep the Javascript and use an ExternalInterface to communicate with it. Alternatively, use navigateToURL to call the required URL and pass it the correct

Re: [flexcoders] httpservice/save-as question

2008-11-07 Thread Fotis Chatzinikos
if your swf opens a NEW / POPUP browser window it will. On Fri, Nov 7, 2008 at 6:15 PM, Howard Fore [EMAIL PROTECTED] wrote: Will that work with the stand-alone Flash player? On Fri, Nov 7, 2008 at 10:59 AM, Gregor Kiddie [EMAIL PROTECTED]wrote: You can keep the Javascript and use an

Re: [flexcoders] Adding data to a bubbling event

2008-11-07 Thread Fotis Chatzinikos
Hello Andrew, your solution sounds correct. Another way would possibly be to check the parent component (and its parent) and manually set all 3 params in one go. On Fri, Nov 7, 2008 at 1:00 PM, greenfishinwater [EMAIL PROTECTED] wrote: I have some view components with are used in a

[flexcoders] removeEventListener

2008-11-07 Thread markgoldin_2000
I have spent some time trying to understand why removeEventListener would not remove an event listener. I have a Vbox that at run time I am adding a form to. In init of that form parent.addEventListener adds a listener to VBox. Then I am adding another form. That form is based on same class as

RE: [flexcoders] sending a Flex Object() to a cfc

2008-11-07 Thread Darrin Kay
Yeah I can create a VO.cfc but since there is no need to keep what is sent. Think of it as a search option, (from date, to date, state and so forth) so they are 8 simple values. Is there another way to create the object in Flex, another data type I should use? _ From:

Re: [flexcoders] Adding data to a bubbling event

2008-11-07 Thread Paul Andrews
I'm beginning to wonder if the best solution is for the component to know all of the required information - it can be set up when it is instantiated. It seems to me that while in most scenarios extending the event payload may work it means that the order in which events are handled will be

Re: [flexcoders] removeEventListener

2008-11-07 Thread Paul Andrews
- Original Message - From: markgoldin_2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 07, 2008 4:26 PM Subject: [flexcoders] removeEventListener I have spent some time trying to understand why removeEventListener would not remove an event listener. I have a

[flexcoders] callLater calls from flex

2008-11-07 Thread christian.menzinger
Hi all, I have a very special problem: By selecting an item in my navigation I start rendering my view with several display objects (container, components, ...). Everytime I select an other item, I remove all stuff from display list (destroying all bindings, remove all listeners, setting

[flexcoders] tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread fotis.chatzinikos
Hello all, can anybody throw any pointer on this? I have a tilelist (vertical/single column) with custom item renderer, when i use a state to shrink its height (minimize like functionality) sometimes i get the following error (note: SOMETIMES once every ... do not know 5 times): TypeError:

[flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Joy
Hi Andrew, what I think is that u want here, is to pass some parameter(s) along with the custom-event. If thats the case, then the sample below should help: 1. Create a custom package, eg: package com.joy9977.events { import flash.events.Event; /** *

Re: [flexcoders] sending a Flex Object() to a cfc

2008-11-07 Thread Howard Fore
On my search forms I just send plain strings back to the CFC. In Actionscript: publicationsRO.searchPublicationArticles( pubId, fromDate,

Re: [flexcoders] Adding data to a bubbling event

2008-11-07 Thread Paul Andrews
You don't have to attach individual fields as the payload of the event or as the information attached to the inside component. There's no problem having the internal component created using a class that contains whatever the info is available. For example: Class info could have attributes

RE: [flexcoders] sending a Flex Object() to a cfc

2008-11-07 Thread Darrin Kay
Yeah but in cairngorm, I have to pass the N number of variables from the view, to the event, to the command, to the delegate, then to the cfc. So if I can do it in a Object, I only have to pass one thing around and then in the cfc ref by objectName.Fieldname I have seen other people

[flexcoders] Re: removeEventListener

2008-11-07 Thread markgoldin_2000
Ok, I will try to show some code. Form's Init private function init():void { parent.removeEventListener(remoteDateEvent, remoteClickHandler) parent.addEventListener(remoteDateEvent, remoteClickHandler) }

[flexcoders] AS3 Class, MXML implements it

2008-11-07 Thread geniium
Hello, Do you know any way to implement an interface in a MXML file? Thanks for any info, G

[flexcoders] Re: tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: Hello Romain, that is not so easy... Its inside a custom component with a couple hundrends lines of code... Any ideas on how to debug something like this? Can i somehow tell the debugger to catch any

[flexcoders] Re: tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: Hello Romain, that is not so easy... Its inside a custom component with a couple hundrends lines of code... Any ideas on how to debug something like this? Can i somehow tell the debugger to catch any

[flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread greenfishinwater
Thanks for the replies, Ive been out and so was not able to respond to the replies earlier. I tend to think like Paul, and raise a second event DepartmentProduct then a third event StoreDepartmentProduct. This will keep the components more seperated. But its a pain in the A* to have to create

[flexcoders] Re: callLater calls from flex

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, christian.menzinger [EMAIL PROTECTED] wrote: Hi all, I have a very special problem: By selecting an item in my navigation I start rendering my view with several display objects (container, components, ...). Everytime I select an other item, I

Re: [flexcoders] Adding data to a bubbling event

2008-11-07 Thread Fotis Chatzinikos
Paul that is what i am doing with my components :-) but problems appear if you want to reuse your 'inside' components elsewhere and this elsewhere 'forgets' (because its not really needed) to initialize the component... Maybe a solution would be to check if parentComp is set or not and if not set

RE: [flexcoders] Re: Using XML Object passed from ASP.NET web service in a Flex Datagrid

2008-11-07 Thread Tracy Spratt
So, Steve, sign your posts! Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Friday, November 07, 2008 9:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using XML Object passed from ASP.NET web service

[flexcoders] Use an .exe or a .dll

2008-11-07 Thread mugsisme
Hi, I have an interface I wrote in Flex/AIR and I want to be able to call or use an external program. My Flex/AIR program will accept inputs from the user, create a file from those inputs and then I want to pass that file to a folder where a program resides, execute the program and return the

Re: [flexcoders] Re: tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Fotis Chatzinikos
Hello Amy, What kind of processing do you mean? The only solution i have found - so far- is to empty the datasource of the tilelist until the effect is finished and then reassign it, but this makes the tilelist look empty while schrinking... Is it a problem in general to change the height of a

Re: [flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Fotis Chatzinikos
Agreed, your solution (and Paul's) is more generic and clean but some times using parent is ok... you can test what kind of class the parent is and avoid any possible casting problems: if (parent is MyCustomComp) { do a } else { //we do not know this, so do nothing, throw an alert... etc }

Re: [flexcoders] Re: removeEventListener

2008-11-07 Thread Paul Andrews
- Original Message - From: markgoldin_2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 07, 2008 4:58 PM Subject: [flexcoders] Re: removeEventListener Ok, I will try to show some code. Form's Init private function init():void {

RE: [flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Tracy Spratt
Coding in reusability is bad if it is not likely that the component will be reused. Unless you have the time and just want the practice. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fotis Chatzinikos Sent: Friday, November

RE: [flexcoders] Casting Problem Dragging from one list and Dropping into another

2008-11-07 Thread Tracy Spratt
Why is it failing? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Thursday, November 06, 2008 8:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Casting Problem Dragging from one list and Dropping

[flexcoders] Re: removeEventListener

2008-11-07 Thread markgoldin_2000
I will try to get a sample. But what exactly are you asking for? I am showing how I am adding a custom event listener to a form's parent. And how the form then processes remote event. --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message -

[flexcoders] use AIR to read image and show them?

2008-11-07 Thread markflex2007
Hi, can you give me a idea how to do it. I am new for this .thanks mark

RE: [flexcoders] Re: removeEventListener

2008-11-07 Thread Alex Harui
I think Paul is saying that your example didn't do what you said it would do. It seems to leave a listener on the parent, and because your custom event has bubbling=true, the parent listener will get it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000

RE: [flexcoders] Re: callLater calls from flex

2008-11-07 Thread Alex Harui
The removeChild handling does not unregister the component from the validation scheme, so it will get validated if it got invalidated before or during its removal. Usually, cleaning up everything is unnecessary; nulling out a few high level pieces should be good enough, and will avoid such

RE: [flexcoders] textArea's that are limited by the amount of lines

2008-11-07 Thread Alex Harui
You might save the length of text and if it is getting smaller, allow the change From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Friday, November 07, 2008 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] textArea's that are limited by the

[flexcoders] Re: removeEventListener

2008-11-07 Thread markgoldin_2000
Yes, parent listener will get it, and that is my understanding of working with custom events. A child adds a custom event to its parent, and then when custom event is dispatched the parent pushes it back to this child for processing. Am I totally wrong about custom events? :( --- In

RE: [flexcoders] Flex Alert Auto-Resize

2008-11-07 Thread Alex Harui
Please post an example using Alert From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joy Sent: Thursday, November 06, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Alert Auto-Resize Hi I have a situation, where I have a long texts in the

RE: [flexcoders] Customize Flex-3 DateField calender

2008-11-07 Thread Alex Harui
Try subclassing DateChooser to add your close button, then make it the dropdownFactory for the DateField From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joy Sent: Thursday, November 06, 2008 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Customize Flex-3

RE: [flexcoders] NATIVE_DRAG_ENTER not working on AIR

2008-11-07 Thread Alex Harui
Looks ok. Add an interactive control and see if that helps From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: Thursday, November 06, 2008 5:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] NATIVE_DRAG_ENTER not working on AIR Hello, I can't

[flexcoders] ss - Is it possible to display all my series in my chart but not in my legend?

2008-11-07 Thread sailorsea21
Hi everyone, is it possible to display all my series in my chart but not in my legend? Thanks.

[flexcoders] Can the Loading message be localized?

2008-11-07 Thread twcrone70
I am currently passing the 'localeChain' into a SWF as a flash var and using it to explicitly set the locale on the resourceManager. This is working for the application but is there anyway to the Initializing message in the beginning openning swf to be localized? Thanks, - Todd

Re: [flexcoders] Casting Problem Dragging from one list and Dropping into another

2008-11-07 Thread anuj sharma
That's interesting because I am using the same code for both the lists, for both the lists I am enabling dragmove enabled property true. In short they all have the same property defined, so technically they should work but that's my surprise that they work one way and i cannot drop back. I have no

[flexcoders] show local image in AIR application.

2008-11-07 Thread markflex2007
Hi, I want to build a AIR app the browser local image file and show them. can you give me a idea to do this? I am new for AIR. Thanks Mark

Re: [flexcoders] Re: removeEventListener

2008-11-07 Thread Paul Andrews
- Original Message - From: markgoldin_2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 07, 2008 6:17 PM Subject: [flexcoders] Re: removeEventListener Yes, parent listener will get it, and that is my understanding of working with custom events. A child adds

Re: [flexcoders] Casting Problem Dragging from one list and Dropping into another

2008-11-07 Thread anuj sharma
Hey Guys How smart I am , I have given the same name to the both source and destination . So i figured that out and its working . Sorry for the stupid question and thanks fro ur help Anuj On Fri, Nov 7, 2008 at 10:32 AM, anuj sharma [EMAIL PROTECTED] wrote: That's interesting because I am using

[flexcoders] Re: Air question on tear off tabs into standalone windows

2008-11-07 Thread vkc_nair
Any help on this? Thanks --- In flexcoders@yahoogroups.com, vkc_nair [EMAIL PROTECTED] wrote: Hi All, Is it possible to tear off tabs into standalone windows in Air application with TabNavigator ad bring the tab back to original Air App? Like the feature in google chrome. Thanks

[flexcoders] Re: DataGrid sorting problem on variableRowHeight with headerrenderer

2008-11-07 Thread alex_harui
I wouldn't use mx.controls.Text as a headerrenderer. If you need wordwrap, just set wordwrap=true on the DataGridListItemRenderer --- In flexcoders@yahoogroups.com, sinacapho [EMAIL PROTECTED] wrote: Hi, I have writing a datagrid using the headerrenderer to make some controls , and

[flexcoders] Re: show local image in AIR application.

2008-11-07 Thread markflex2007
I try this but I can not get bitmap.why?Thanks for help. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.filesystem.File; import

[flexcoders] commitRequired returns true from DataService.fill()

2008-11-07 Thread uiowaflex
Hi We are having a number of issues with our Flex project (using LiveCycle Data Services 2.5) and are trying to address them one by one from the beginning to iron them out. There may be something fundamental about our approach that we need to change. The first issue is that the initial fills

[flexcoders] hijack events

2008-11-07 Thread flexaustin
Is it possible to hijack events? I want my events to bubble up but when they get to a certain parent say two up from the object that dispatched the event I want that parent (two levels) up to stop it before it bubbles any more? TIA

Re: [flexcoders] hijack events

2008-11-07 Thread Fotis Chatzinikos
event.stopPropagation or stopImediatePropagation ... check the docs for the differences On Fri, Nov 7, 2008 at 10:06 PM, flexaustin [EMAIL PROTECTED] wrote: Is it possible to hijack events? I want my events to bubble up but when they get to a certain parent say two up from the object that

Re: [flexcoders] NATIVE_DRAG_ENTER not working on AIR

2008-11-07 Thread Aldo Bucchi
Sorry. The sdk folder is 3.1.0 On Fri, Nov 7, 2008 at 5:25 PM, Aldo Bucchi [EMAIL PROTECTED] wrote: Alex, Thanks. But no luck so far. I am using the SDK bundled with FlexBuilder Plugin 3.0.1 ( that's what I meant ). I can get other examples to run when coding on different machines, but

[flexcoders] Re: tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: Hello Amy, What kind of processing do you mean? The only solution i have found - so far- is to empty the datasource of the tilelist until the effect is finished and then reassign it, but this makes the

Re: [flexcoders] NATIVE_DRAG_ENTER not working on AIR

2008-11-07 Thread Aldo Bucchi
Alex, Thanks. But no luck so far. I am using the SDK bundled with FlexBuilder Plugin 3.0.1 ( that's what I meant ). I can get other examples to run when coding on different machines, but not in this one. ¿What info would you need to identify each part ( os, air, etc )? As I said. The weird

Re: [flexcoders] Re: tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Fotis Chatzinikos
thanks, i will have a look On Fri, Nov 7, 2008 at 10:29 PM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: Hello Amy, What kind of processing do you mean? The only solution i have found -

[flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: I'm beginning to wonder if the best solution is for the component to know all of the required information - it can be set up when it is instantiated. It seems to me that while in most scenarios extending the event

[flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Amy
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Coding in reusability is bad if it is not likely that the component will be reused. Unless you have the time and just want the practice. Certainly if you want to make extra $$$ reimplementing when it turns out that the

RE: [flexcoders] Re: Adding data to a bubbling event

2008-11-07 Thread Tracy Spratt
Maintainability and reusability are not necessarily solved the same way. My real point is, don't implement loose coupling just because it is best practice. Write the code to meet the business requirements of the project. Tracy From:

[flexcoders] Re: Flex DataService problem: unexpected unsubscribe and release collection

2008-11-07 Thread uiowaflex
Jeff, You mentioned that there is a tool that will automatically generate data-management-config.xml from a hibernate configuration. Is this tool available yet and if so where can I get it? Thanks! Andrew The University of Iowa --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL

[flexcoders] Component as an itemRenderer - outerDocument?

2008-11-07 Thread oneworld95
Hi. I have a button in an itemRenderer that references a function like this, mx:Button id=btnBrowse label=Browse click=outerDocument.doBrowse( event )/ Everything worked fine until I moved this itemRenderer into its own MXML file as a VBox component. It gives an error: Access of undefined

RE: [flexcoders] Component as an itemRenderer - outerDocument?

2008-11-07 Thread Tracy Spratt
You can use parentDocument or Application.application, depending on your precise document model. A bubbling event is another solution to consider. With such an event, your precise document model is irrelevant, and you can listen for and handle the event anywhere in the parent chain that is

[flexcoders] Having trouble with XMLList

2008-11-07 Thread jeremy.carter_mg
I am calling a webservice with Flex3.0, the result format is specified as e4x. the event.result shows up as a XMLList when I try and debugg the app. Beyond this I am having a hell of a time parsing this thing. Anyone have some insite? How would I set the dataprovider to these results for a

RE: [flexcoders] NATIVE_DRAG_ENTER not working on AIR

2008-11-07 Thread Alex Harui
Send me the swf. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: Friday, November 07, 2008 12:25 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] NATIVE_DRAG_ENTER not working on AIR Alex, Thanks. But no luck so far. I am using the SDK

RE: [flexcoders] Having trouble with XMLList

2008-11-07 Thread Ryan Graham
//In my script block var comboProvider:XMLList = incomingXML..MGGenre; Where in your script block? This looks like it is executing in your result handler function, but since you are instantiating the comboProvider inside this function, it only has a local scope to the function. In order for the

[flexcoders] Re: Component as an itemRenderer - outerDocument?

2008-11-07 Thread oneworld95
Thanks, Tracy. Got an example of this bubbling event? Alex --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You can use parentDocument or Application.application, depending on your precise document model. A bubbling event is another solution to consider. With

[flexcoders] How to save/read image to database?

2008-11-07 Thread markflex2007
Hi, I want to save image to database as binary data and read the binary data out and show it in Flex application. I can handle back end codes and database. My question what need to do in Flex side for this? Thanks for help. Mark

RE: [flexcoders] Re: Component as an itemRenderer - outerDocument?

2008-11-07 Thread Tracy Spratt
Click=dispatchEvent(new Event(doBrowseEvent,true)); //the true in the second param makes the event bubble. You can listen for that event anywhere above the button: This.addEventListener(doBrowseEvent, doBrowse); In doBrowse(), event.target, returns a reference to the Button and

RE: [flexcoders] Having trouble with XMLList

2008-11-07 Thread Tracy Spratt
Not necessarily public. Just in instance scope, that is, not declared in a function. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Graham Sent: Friday, November 07, 2008 4:38 PM To: flexcoders@yahoogroups.com Subject: RE:

[flexcoders] Re: Component as an itemRenderer - outerDocument?

2008-11-07 Thread oneworld95
Thanks, Tracy :) Alex --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Click=dispatchEvent(new Event(doBrowseEvent,true)); //the true in the second param makes the event bubble. You can listen for that event anywhere above the button:

RE: [flexcoders] Re: show local image in AIR application.

2008-11-07 Thread Jim Hayes
You won't get anything from _loader.content *until* it's COMPLETE event fires, so add a listener for that and get it's content in the function you define in that listener. -Original Message- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Fri 07/11/2008 19:57 To:

RE: [flexcoders] How to save/read image to database?

2008-11-07 Thread Tracy Spratt
I have seen quite a few posts on implementing this functionality, and while I have not done it, it did not sound too difficult. Try searching the archives. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent:

RE: [flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object?

2008-11-07 Thread Gordon Smith
I rely on undocumented Flash Player API - flash.text.TextRun http://nondocs.blogspot.com/2007/05/flashtexttextrun.html - is it OK to rely on undocumented Flash Player API in our projects? I very much doubt that the Player team will remove this API, although I can't promise that. In any case,

RE: [flexcoders] textArea's that are limited by the amount of lines

2008-11-07 Thread Gordon Smith
I think you should be using the textInput event, which lets you intercept the text before it goes in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Friday, November 07, 2008 7:57 AM To: flexcoders@yahoogroups.com

[flexcoders] ModuleLoader does not load module when instance is created as ModuleLoader()

2008-11-07 Thread ilikeflex
Hi I am trying to load module as show below. I am using panel.addChild(mod2.child); but i never see module loaded in the panel. It is very simple app.I do not know why the module is not being loaded . Any pointer is highly appreciated. I have been putting my head for last 4 hours. Thanks

RE: [flexcoders] Re: Flex DataService problem: unexpected unsubscribe and release collection

2008-11-07 Thread Jeff Vroom
It is not so much a tool as just part of the HibernateAssembler in LCDS 2.6. In 2.5.1 you used to have to specify something like: destination id=support5.Account properties sourceflex.data.assemblers.HibernateAssembler/source scopeapplication/scope

RE: [flexcoders] commitRequired returns true from DataService.fill()

2008-11-07 Thread Jeff Vroom
As the fill response is being read from the server, data management is populating your value objects by calling the set methods. Most likely one of those is doing something that sends a property change event for some object which is already managed. The client debug log would probably

RE: [flexcoders] textArea's that are limited by the amount of lines

2008-11-07 Thread Keith Reinfeld
tchredeemed, The custom component extending TextArea is a great idea. Just get rid of the Boolean and the key events. Use the change event with the function I posted in the original thread and handle everything within the custom component. Regards, -Keith