Re: [flexcoders] Flex 2.0 Alpha: dispatchEvent(Event) method in ActionScript class

2005-12-03 Thread Sreejith Unnikrishnan
Try flash.events.EventDispatcher Ralf Rottmann wrote: Re: [flexcoders] Flex 2.0 Alpha: dispatchEvent(Event) method in ActionScript class Thanks. Part of the problem is that there is no EventDispatcher class. importing mx.events.* does not help. The popup typeahead in Eclipse does

[flexcoders] Parsing XML with namespaces in E4X (Flex2)

2005-12-03 Thread Yokota Satoshi
Hi, Is there a way in which I could parse XML with namespaces in E4X? following code, I can see the value without namespace. var res:XML = itemsitemapple/itemitemorange/item/items; trace(res.item[0]); but, following code, I could'nt. var res:XML = items xmlns=http://example.com/;

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Ralf Rottmann
Title: Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0 Jeff, Can you explain a bit more? Where in your statements is the cast? And: actually the first element in my component is a mx:TitleWindow so I guess I don't have to cast, or? Again, my current code is something

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Martin Wood
On the same topic, is there anyway you can stop the title bar being transparent? And does PopUpManager.removePopUp work for you? At the moment im using a little hack and just setting window.x = -1 when its closed because removePopUp throws an error (Null is not a property or similar)

Re: [flexcoders] Parsing XML with namespaces in E4X (Flex2)

2005-12-03 Thread Claus Wahlers
var res:XML = items xmlns=http://example.com/; itemapple/itemitemorange/item /items; trace(res.item[0]); var res:XML = items xmlns=http://example.com/; itemapple/itemitemorange/item /items; var ns:Namespace = res.namespace(); trace(res.ns::item[0]);

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Ralf Rottmann
Title: Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0 PopUpManager.removePopUp works fine for me. You gotta call it from within the component comprising the popup window. However I still have no answer as to how to pass parameters in and out of a popup. Anybody on

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
From inside the component which is popped up, I'm using removePopUp(). It is occasionally throwing a run time error, and I'm not sure why, but I worked around that like this: private function doClose(){ try{ PopUpManager.removePopUp(this); } catch(e:Error){ } } our old friend try/catch I

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Ralf Rottmann
Title: Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0 Jeff, Do you know how to pass parameters into PopUps? Regards RR -- mobile: +49-(0)170-914-5495 email: [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
quick answer on the titleBar transparency set the panelAlpha style property to 100 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; click=doClose() panelAlpha=100 closeButton=true At 11:23 AM 12/3/2005, you wrote: From inside the component which is popped up, I'm using

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
Take a look at my post from 9:14pm yesterday. At 09:14 PM 12/2/2005, you wrote: Cast the Title Window to the class of your component, for instance, from something I'm working on: win=ConfirmScreen(PopUpManager.createPopUp(this,views.dataEntry.ConfirmScreen, true)); win.prod = prod;

RE: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Ralf Rottmann
Jeff, Im either blind or not clever enough. J Can you try once more to explain or maybe submit a complete code example? Again: In my situation the MXML Component to popup is a mx:TitleWindow/. I assume Flex automatically generates a class TitleWindow for it. So my statement to open

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Sreejith Unnikrishnan
quick answer on the titleBar transparency set the panelAlpha style property to 100 Should be a bug! But any non-zero value for panelAlpha renders the transparency to 100. Even 9 would work! :-) Sree Yahoo! Groups Sponsor ~-- Get Bzzzy!

RE: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
In your example, the class is LoginForm (the mxml file with the title window), so try this: win = LoginForm(PopUpManager.createPopUp(this, LoginForm , true)); Your problem was that TitleWindow has no property named XYZ, but (hopefully) your LoginForm does. As you stated, my example uses a

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
According to the docs, the default value is 50, but if setting it to 0 makes it non transparent, then that does sound like a bug. Actually, in a quick test, I did set it to 0, and it is still transparent. Not sure what you are seeing... At 12:15 PM 12/3/2005, you wrote: quick answer on the

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Jeff Tapper
Actually, on a closer read, it seems i misinterpreted. it takes a value from 0 to 1, with a default of 0.5 Anything above 1 is interpreted as 1. So, when I do this: mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; click=doClose() panelAlpha=.75 closeButton=true Its more opaque

Re: [flexcoders] More questions regarding PopUp Windows in Flex 2.0

2005-12-03 Thread Sreejith Unnikrishnan
The default value according to the docs is 0.5, not 50! One too many drinks! I now am sure there' no bug. What I was seeing is that when I set the panelApha to 5, 50 or 100 it was all rendering the same ... Figured out, the value should be between 0 and 1. Some kind of 'not-used-to'

RE: [flexcoders] Parsing XML with namespaces in E4X (Flex2)

2005-12-03 Thread Abdul Qabiz
Title: RE: [flexcoders] Parsing XML with namespaces in E4X (Flex2) Hi, Use default xml namespace directive to solve this problem. Sorry, it is not documented in current livedocs for Flex 2 alphaWe are working many things, so hopefully you would see it updated soon... Solution: var

RE: [flexcoders] To Moderator

2005-12-03 Thread Matt Chotin
The moderators only approve the first message you send (though there have been times where for some reason the moderators have to approve each message, they usually let the person know though and try to work it out). I have a different problem where I sometimes see people responding to

RE: [flexcoders] Flex 2.0 Alpha: dispatchEvent(Event) method in ActionScript class

2005-12-03 Thread Ralf Rottmann
Matt, Thanks again for clarifying. Personally I think it would be a good idea to indicate built-in functions (is that the correct term) in the tooltip help, too. (By the way how is the tooltip help in editor called. I dont want to use the Redmond Intelli term J ). I find it a

[flexcoders] Where did the deletePopUp() method go? (Flex 2.0 Alpha)

2005-12-03 Thread Ralf Rottmann
Created a PopUp Window via Window Manager from MXML Application. PopUp Window contents are in an MXML Component containing the following Button control: mx:Button id=ButtonClose x=330 y=12 label=Close click=deletePopUp()/ Flex answers with an Access of undefined property

Re: [flexcoders] Where did the deletePopUp() method go? (Flex 2.0 Alpha)

2005-12-03 Thread Sreejith Unnikrishnan
Does this help? I put together a simple Popup scenario for you. = TestPopup.mxml == ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" mx:Script ![CDATA[ import mx.managers.PopUpManager; ]]

RE: [flexcoders] Re: Custom Validator on CheckBox

2005-12-03 Thread Matt Chotin
So the validator did fire when the box was checked. Guess youll have to look into the workaround I mentioned From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of im_sean_s Sent: Friday, December 02, 2005 7:07 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Datagrid Row Color based on Value in Column

2005-12-03 Thread Matt Chotin
Add a property called backgroundColor to each object in the dataProvider and set it to be the same value as the property you wanted to base it on. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware Sent: Friday, December

RE: [flexcoders] Annpuncing Log4x

2005-12-03 Thread Blake Kadatz
One more for you. Clicking on register generates the error message: document.getElementsByName(flexapp)[0].SetVariable is not a function This is in Firefox. However, if I navigate to your homepage first and then find the Flex area and click register, it works fine. -Blake

RE: [flexcoders] Annpuncing Log4x

2005-12-03 Thread Blake Kadatz
I've tried to subscribe and download log4X and I've noticed the form isn't working in player 8.5. When I focus textInputs I can't write in them. However player 8.0 works fine. Well, the 8.0 player doesn't work for me here. I can tab around and everything, but just can't type. That's in

RE: [flexcoders] Annpuncing Log4x

2005-12-03 Thread Blake Kadatz
Thanks for letting us know. We believe this has something to do with loading javascript files with certain browsers within the Flex iframe. Would you mind sharing with us the version of FFX that you are using? Version 1.0.7 ... probably time to upgrade though. :) Cheers, Blake

Re: [flexcoders] Rendering bug fixed with Firefox 1.5

2005-12-03 Thread Manish Jethani
On 12/3/05, Eric Raymond [EMAIL PROTECTED] wrote: A long standing bug in Firefox which cause Flash/Flex apps to only display the leftmost 100 pixels appears to have been fixed in the latest version of Firefox! Are you talking about this one? http://www.macromedia.com/go/82a37d49

Re: [flexcoders] Annpuncing Log4x

2005-12-03 Thread Carson Hager
Title: Re: [flexcoders] Annpuncing Log4x Thanks for letting us know. I believe that's the version that I'm running as well. I'll check this when I get back. Thanks again for letting us know. Your feedback is very important to us. Carson