Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Stanislav Zayarsky
Hello, Yes dispatchEvent({type:event_name}) is the right command, But also you need to specify MetaData, so compiler knows that this component is dispatching event, so you should type: [Event(event_name)] in Script tag. Best regards Stanislav On 9/15/05, jcrane [EMAIL PROTECTED] wrote: I am

[flexcoders] doLater and deletePopUp with Cairngorm

2005-09-15 Thread fowleryj
Hi everyone, I am writing an app using the Cairngorm framework, and I am having a problem getting a pop-up to close. Here's the scenario: - I have a Main.mxml and a MainViewHelper.as - Upon clicking one of many SomeSearch Search buttons in Main.mxml, the MainViewHelper.as calls the

Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread jcrane
Yes, I have the MetaData setup. It actually is working the way I expect it to, I just wanted to see if there is a way use dispatchEvent() to go directly from the grandchild - grandparent rather then from child - parent - grandparent. Thanks, Jeremy Yahoo! Groups

[flexcoders] How to overload methods in Actionscript?

2005-09-15 Thread Libby
When I use same method name more than once (with additional arguments), Flex compiler says I can't use the same name more than once. Is this really true (Flex doesn't support method overloading?) or do I need to do something different? Thanks, Libby Yahoo! Groups

Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Stanislav Zayarsky
Yeah, interesting question. Maybe you will just need to add your own listener!? So grandparent will be listen for events from grandchild. Best regards Stanislav On 9/15/05, jcrane [EMAIL PROTECTED] wrote: Yes, I have the MetaData setup. It actually is working the way I expect it to, I just

Re: [flexcoders] How to overload methods in Actionscript?

2005-09-15 Thread Stanislav Zayarsky
Libby, ActionScript doesn't support method overloading. Best regards Stanislav On 9/15/05, Libby [EMAIL PROTECTED] wrote: When I use same method name more than once (with additional arguments), Flex compiler says I can't use the same name more than once. Is this really true (Flex doesn't

RE: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Abdul Qabiz
Hi, I think it is good idea that your components dispatch events. It allows decoupling within application and increases reusability of component. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jcrane Sent: Thursday, September 15, 2005

RE: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Allen Manning
Jeremy, Why would you want to skip a step in your bubbling? Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jcrane Sent: 15 September 2005 14:30 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to properly use

RE: [flexcoders] doLater and deletePopUp with Cairngorm

2005-09-15 Thread Allen Manning
Are any exceptions being thrown in the flash log from Cairngorm? In particular anything about ViewHelpers? Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: 15 September 2005 14:26 To: flexcoders@yahoogroups.com

Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread jcrane
Why have the grandchild tell the parent to tell their parent(the grandparent) to switch the view to the parent when the chandchild could tell the grandparent directly to switch the parent? If A-B and B-C, then A-C, right? I just really don't understand the whole listerner, dispatchEvent

RE: [flexcoders] How to overload methods in Actionscript?

2005-09-15 Thread Abdul Qabiz
Hi, ActionScript doesn't support method overloading. Instead you can use following approach. function sayHello() { var n:Number = arguments.length; if(n==0) { alert(Hello World); } else if(n==1) { alert(Hello +

Re: [flexcoders] Question about accordions

2005-09-15 Thread nostra72
Well I put in creationPolicy= ”all” in the accordion tag right after the width and I got an error message that says open quote is expected for Attribute "creationPolicy". -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

[flexcoders] Re: How to overload methods in Actionscript?

2005-09-15 Thread Libby
That makes perfect sense in lieu of function overloading. Thank you, Abdul. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, ActionScript doesn't support method overloading. Instead you can use following approach. function sayHello() { var n:Number =

[flexcoders] Re: doLater and deletePopUp with Cairngorm

2005-09-15 Thread fowleryj
Allen, Nothing in WEB-INF\flex\logs\flex.log has anything of that nature-- is there another log I should look at? Thanks --- In flexcoders@yahoogroups.com, Allen Manning [EMAIL PROTECTED] wrote: Are any exceptions being thrown in the flash log from Cairngorm? In particular anything about

[flexcoders] What does this error message mean

2005-09-15 Thread nostra72
I put in creationPolicy=”all” right in the opening tag of an accordion and I got the following error message back. Open quote is expected for attribute "creationPolicy".Did I type something wrong? -- Flexcoders Mailing List FAQ:

RE: [flexcoders] Question about accordions

2005-09-15 Thread Abdul Qabiz
can you please post the code that is giving you error message? Are you copying and pasting the creationPolicy="all" from some other place? Chances are that quotes are not in right format, as I can see below in your mail.. Try this: creationPolicy="all" -abdul From:

[flexcoders] input field cursor management

2005-09-15 Thread Drew Falkman
Hey all- I have a question: how would I place the cursor in a TextInput field when the application is loaded? I tried using Selection.setFocus(), but that simply highlights the field. The user still has to click on it to get it into the field. I am just embedding the function in creationComplete

RE: [flexcoders] Drawing a rectangle in Flex

2005-09-15 Thread Abdul Qabiz
Hi, It is working for me, however it doesn't draw a rectangle instead some other shape. I am using following code along with myClass.as: ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"

RE: [flexcoders] Re: doLater and deletePopUp with Cairngorm

2005-09-15 Thread Abdul Qabiz
Type %HOMEDRIVE% in your Run prompt to see the home drive. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: Thursday, September 15, 2005 7:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: doLater and

RE: [flexcoders] Re: doLater and deletePopUp with Cairngorm

2005-09-15 Thread Abdul Qabiz
Check out your home directory on your machine for flash.log? It is generally, root_drive\Documents and Settings\username\ f.ex. C:\documents and settings\abdul\ If you have ever changed the settings in mm.cfg (which is also found at the same place), then look at the new path. -abdul

RE: [flexcoders] flexstore not working

2005-09-15 Thread Tom Fitzpatrick
At 06:51 PM 9/14/2005, you wrote: Turn on web service debugging in flex config and look at the monitor or logs. Any clues there? I don't know how to do this. Since none of my services are working, I wonder if the problem is with the {context.root} reference in the flex-config.xml whitelist.

RE: [flexcoders] Re: doLater and deletePopUp with Cairngorm

2005-09-15 Thread Allen Manning
Fire up the Flash log: http://www.macromedia.com/devnet/flex/articles/client_debug_03.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: 15 September 2005 15:22 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: doLater

RE: [flexcoders] Drawing a rectangle in Flex

2005-09-15 Thread Mink, Joseph
Well, I finally figured out that createEmptyMovieClip() doesn't return anything...so instead of: var emptyClip = createEmptyMovieClip(rectangleInNode, getNextHighestDepth()); emptyClip.beginFill(0xFF); //Currently harcoding a white fill... ... I should have done:

[flexcoders] Cairngorm .99 VO Question

2005-09-15 Thread dave buhler
Hello Everyone, I had a question regarding best practices when passing over my valueobjects. In Short, I've been alternating between two ways of referencing the VOs properties: 1) assigning the VO as a new object in my command, and passing over this new object or new object's props to my

Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread jeff tapper
I wrote an EventManager for just this reason. You can find its source and use up on http://jeff.mxdj.com/using_the_event_manager.htm At 09:50 AM 9/15/2005, you wrote: Yeah, interesting question. Maybe you will just need to add your own listener!? So grandparent will be listen for events from

RE: [flexcoders] What does this error message mean

2005-09-15 Thread Abdul Qabiz
Hi, Are you copying and pasting the creationPolicy="all" from some other place? Chances are that quotes are not in right format, as I can see below in your mail.. Try this: creationPolicy="all" -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL

[flexcoders] Re: Looping over a tree and selecting an entry

2005-09-15 Thread delaquae
Kai, I've been wanting to do the same thing (preselecting a particular entry or array of entries), would you be willing to share the code that you wrote to do it? Martin --- In flexcoders@yahoogroups.com, Kai König [EMAIL PROTECTED] wrote: Hi folks, I want to have a tree with the

[flexcoders] Dynamic Object Instantiation

2005-09-15 Thread chip1062
Hello All, I am dynamically instantiating a new VBox in a tab container (tbFlyingHours). No problem with that. It exists and can be interacted with. The problem comes when I read the children of the tab container. If I use tbFlyingHours.childDescriptors.length the new VBox doesn't show up, but

[flexcoders] Flex, Coldfusion and RH

2005-09-15 Thread Fernando Barros
I cant put to work my flex 1.5, coldfusionmx 7 and RH AS: My coldfusion is working fine but flex only errors: Any idea will be great! Tks, Fernando Here is my cfserver.log: Starting Macromedia JRun 4 (Build 84683), coldfusion server 15/09 15:54:20 warning Unable to open

[flexcoders] Just joined

2005-09-15 Thread John C. Bland II
testing... Hello alll...-- John C. Bland II -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS

[flexcoders] DateField question

2005-09-15 Thread delaquae
Is it possible to set the style of the field test seperately from the text on the actual control that selects the date? What I want is the selected date text to be displayed in 18pt fontSize but not have the fontSize of the control be that large. Also, is there a way to remove the border

[flexcoders] Help to create an object instance dynamically

2005-09-15 Thread Michel Bertrand
Title: Help to create an object instance dynamically Hi all ! I'm trying to get a component instance using the following: var workspace:Workspace = Workspace.getInstance(); var name:String = com.datasul.framework.custom.view.LoanForm; var type:Function =

RE: [flexcoders] Help to create an object instance dynamically

2005-09-15 Thread Mink, Joseph
I don't know if you're using import statements, but those might help if you're not: import com.datasul.framework.custom.view.LoanForm; import Workspace; var workspace:Workspace = Workspace.getInstance(); //Do you mean 'new Workspace ();' ? workspace.createChild(LoanForm,instanceName, {attr:

[flexcoders] events between siblings

2005-09-15 Thread Rajesh Jayabalan
Hi, Can anyone tell me if I can send an event from onr sibling to another i.e., I have an application, it has two custom components lets say both are canvas and contain elements in them (Sib1 and sib2) How do I let sib2 know that something has changed in sib1. For addeventlistener I beleive

[flexcoders] Flex applications not working with Mozilla firefox

2005-09-15 Thread nostra72
I am able to get flex applications working with internet explorer but for some odd reason every time I try to run them on firefox there not working can someone please explain why this could be? -- Flexcoders Mailing List FAQ:

RE: [flexcoders] Help to create an object instance dynamically

2005-09-15 Thread Jim Phelan
Title: Help to create an object instance dynamically Hi Michel, Are you referencing this class elsewhere? If not, you need to in order for flex to compile it. A simple reference like: com.datasul.framework.custom.view.LoanForm; Might do the trick. Not sure about the rest of

RE: [flexcoders] flexstore not working

2005-09-15 Thread Tom Fitzpatrick
At 02:01 PM 9/15/2005, you wrote: In Flex-config: !-- turn on debug to see the request and response on the server side as well as debug information in client side tracing -- web-service-proxy-debugtrue/web-service-proxy-debug I did try setting that tag to true, but wasn't sure what to do

[flexcoders] Re: Slider: 3 Thumbs, 3 Thumbclasses, Multiple Track Colors ?

2005-09-15 Thread Aldo Bucchi
One more problem... When a thumb is dragged over another, it stops before the real point ( thumb MCs collide ). This makes setting the limits a little harder. Too bad. I am still working on my own component. Any hints on how to reuse some of the existing Slider's functionality is more than

[flexcoders] Slider: 3 Thumbs, 3 Thumbclasses, Multiple Track Colors ?

2005-09-15 Thread Aldo Bucchi
Hi all, The HSlider allows me to drag the thumb freely along the track, between points A and B ( minimum and maximum attributes): A-V---B I now need a slider that allows me to set limits, so that the thumb is now restricted to the range between C

[flexcoders] Re: Slider: 3 Thumbs, 3 Thumbclasses, Multiple Track Colors ?

2005-09-15 Thread Aldo Bucchi
OK, nobody is following but, anyway... I figured out how to do all this with the HSlider, but it involves some dirty hacking at runtime. slider.__thumbs[0].enabled = false; slider.__thumbs[2].enabled = false; I can also draw the colors on the track with the drawing API, on top

Re: [flexcoders] Cairngorm .99 VO Question

2005-09-15 Thread Sean McKibben
I am not sure what the best practice is, but I often bind UI items directly to objects in my model - sometimes a particular instance might be bound to multiple controls both inbound and outbound. Because of this, sending the objects in my model directly to a remote service could suffer from the

[flexcoders] Re: Flex, Coldfusion and RH

2005-09-15 Thread kaibabsowats
What is your Coldfusion server version, Standard or Enterprise? Renaun --- In flexcoders@yahoogroups.com, Fernando Barros [EMAIL PROTECTED] wrote: I cant put to work my flex 1.5, coldfusionmx 7 and RH AS: My coldfusion is working fine but flex only errors: Any idea will be great! Tks,

RE: [flexcoders] Flex applications not working with Mozilla firefox

2005-09-15 Thread Kelly
Do you have the Flash player installed on Firefox? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, September 15, 2005 4:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex applications not

[flexcoders] Error: Cannot invoke method

2005-09-15 Thread Daniel Romero
Guys I don't know what else to do with this error. The problem is that flex do not recognize the mapping between a VO Client Class and the Server VO. In fact I get the following message using the Alert PopUp Window: The expected argument types are (vo.VOEmpleado) but the supplied types were

RE: [flexcoders] flexstore not working

2005-09-15 Thread Tracy Spratt
Look at ...\tomcat 5.0\logs\stdout.log. To see it in FB, you need to use the Net connection pane, but I don't really use this myself. The tomcat log will be better. Hmm, you might also need to set the logging level on tomcat. Tracy -Original Message- From: flexcoders@yahoogroups.com

RE: [flexcoders] Dynamic Object Instantiation

2005-09-15 Thread Shahnavaz Alware
I do the similar stuff using getChildAt(i) instead of childDescriptors[i] and that works fine if I want to read the properties I set during createChild. Eg parentID.getChildAt(i).id Thanks, Shahn From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On

[flexcoders] Problem with trying to set the focusedCell in a Tree

2005-09-15 Thread Peter Armstrong
Hi, I am trying to set the focusedCell in a Tree and having no luck. (Flex 1.5, Flash 8 beta). In the following test app, while the Select bar button works correctly (selecting the bar node), the Edit bar button edits the foo node. ?xml version=1.0 encoding=utf-8? mx:Application

RE: [flexcoders] Re: User Infor in Flex Architecture

2005-09-15 Thread shahnavaz Alware
Hi Rishi, I use Cairngorm 0.99 in my Flex App. When my user authentication on the J2EE AppServer is successful I return UserInfoVO and set it to ModelLocator.UserInfoVO=event.result. Now from this point on I have the whole userInfo object on the client side so no worries about

[flexcoders] Re: Error: Cannot invoke method

2005-09-15 Thread Daniel Romero
I already found the issue. The problem is when you start setting the values entered in the form I was using in the visual component. You have to explicitly cast the values, because they can be handled like strings and this may lead to don't match your client object with the remote VO Class.

[flexcoders] Screen Cap a frame from a webcam?

2005-09-15 Thread Tariq Ahmed
Hey All. I'm thinking of building a little proof of concept. Part of it is to take a snapshot image from a webcam. So I did some searching and found this awesome post from Abdul: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg10143.html Which is good, the first example works great

RE: [flexcoders] change component name programatically

2005-09-15 Thread shahnavaz Alware
Just a small eg as below. # ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ function changeID(event){ mx.controls.Alert.show(Original Id --- + event.target.id); getChildAt(0).id =