[flexcoders] File - flexcodersFAQ.txt

2006-01-29 Thread flexcoders
Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 Contributors: Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper,

[flexcoders] Gtalk windows question

2006-01-29 Thread Dan Plesse
Hello, Recently I played with googles' Gtalk jabber client and basically for each new IM session a new window is created. What I need to know in Flex or Flash is does each new window have or can have an unique ID (I was thinking I could use the JID) and how can you check for the existence of

Re: [flexcoders] Gtalk windows question

2006-01-29 Thread JesterXL
import mx.containers.TitleWindow; private static var uniqueID:Number = 0; function createNewWindow():TitleWindow { uniqueID++; var ref:TitleWindow = TitleWindow(wins_canvas.createChild(TitleWindow, win + uniqueID)); return ref; } mx:Canvas id=wins_canvas / You could use

[flexcoders] Re: Gtalk windows question

2006-01-29 Thread Dan Plesse
wow thanks. I was thinking windows has been done to death. Can you do this with Tabs too? Thanks a ton. Dan --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: import mx.containers.TitleWindow; private static var uniqueID:Number = 0; function

Re: [flexcoders] Re: Gtalk windows question

2006-01-29 Thread JesterXL
You can: - either add a child to a ViewStack that an TabNavigator is bound to - add data to the dataProvider a TabBar is bound to - Original Message - From: Dan Plesse [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, January 29, 2006 2:20 PM Subject: [flexcoders] Re: Gtalk

[flexcoders] Re: Gtalk windows question

2006-01-29 Thread Dan Plesse
Thanks I added your code to a PopUpManager.createPopUp() function showWindow(modal) { uniqueID++; var popup = mx.managers.PopUpManager.createPopUp( _root, testWindowPopup, modal, {deferred: true}, win + uniqueID); debugTxt.text = popup; } Is

RE: [flexcoders] Using HTTPService to POST complex data

2006-01-29 Thread Mark Wales
I've tried using child tags in the same namespace, I've also tried creating objects in Actioncript and then embedding them such as: In MXML: request{myRequestObject}/request In Actionscript: new myRequestObject:Object = new Object; new embeddedObject:Object = new

RE: [flexcoders] unselectable nodes in Tree

2006-01-29 Thread Matt Chotin
I'm not sure we really provide a way to do that. It's either all or nothing. You could use a custom cell renderer that avoids sending a click up through to the Tree I suppose. I think the same will be true in 2.0. Might be worth filing an enhancement request at

RE: [flexcoders] Flex 2 using the exercise from FlexBook

2006-01-29 Thread Matt Chotin
Im not sure if the example requires you to have the server proxy running as the destination may not have a crossdomain.xml file (I dont have the book with me). The proxy didnt ship with the Alpha so youd need to just find a different service that does work without a proxy for now.

RE: [flexcoders] Customizing default Flex preloader

2006-01-29 Thread Matt Chotin
There's a whole section in the docs on writing a custom progress bar: http://livedocs.macromedia.com/flex/15/flex_docs_en/0325.htm Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robs Sent: Friday, January 27, 2006 1:58 AM To:

RE: [flexcoders] How to send data to server by using Remote Object ?

2006-01-29 Thread Matt Chotin
Create a Java object that has a method that takes two parameters, login and password. mx:RemoteObject id=ro source=yourclass result=handleResult(event) fault=handleFault(event) /mx:RemoteObject //somewhere in your code ro.yourMethod(login, password); //when the method returns

RE: [flexcoders] Re: Errors in lines that do not exist (Flex 2)

2006-01-29 Thread Matt Chotin
Usually the compiler doesn't know where that left brace is located, and like I said this is probably via generated code so it's having a hard time matching it up into your source file. Check all of your event handlers and binding statements. Also you can turn on keep-generated

RE: [flexcoders] TitleWindow width issue

2006-01-29 Thread Matt Chotin
You can pass in your application.width and application.height as the real values, I don't think percentage will work. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Friday, January 27, 2006 8:38 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Form as CellRenderer Strangeness in 1.5

2006-01-29 Thread Matt Chotin
Check out layoutChildren and measure() and see if any strangeness is going on? Are you calling super in the createChildren() method too? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ehogberg Sent: Friday, January 27, 2006 9:59 PM To:

[flexcoders] Re: Using HTTPService to POST complex data

2006-01-29 Thread Dave Wolf
Here is an example of doing a login form which does a POST from a MXML form. This simulates the posting of a HTML form to the standard J2EE login service. This also goes to show how simple it is to integrate into J2EE security. There's no reason to need to roll your own security. mx:Script

[flexcoders] Beware - Matt Chotin is back!

2006-01-29 Thread Andrew Spaulding
Hey all, looks like Matt Chotin is back on the list and in fine form with a nice run of replies :-p So if you have any questions now's your chance hehe good luck! Andrew Spaulding Adobe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Re: [flexcoders] Re: Gtalk windows question

2006-01-29 Thread JesterXL
No, you can't set the name of a popup window; PopUpManager does that. Instead, store a reference. private var popups:Object; function initApp() { popups = {}; } function showWindow(modal) { uniqueID++; var popup = mx.managers.PopUpManager.createPopUp( _root, testWindowPopup,

[flexcoders] Re: Gtalk windows question

2006-01-29 Thread Dan Plesse
Thanks Jester, Have you ever seen anyone having to do this and what does thier code look like? Dan --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: No, you can't set the name of a popup window; PopUpManager does that. Instead, store a reference. private var

Re: [flexcoders] Re: Gtalk windows question

2006-01-29 Thread JesterXL
Having to do what, create Window managers? In my DD app, I had a set amount of windows, so didn't really need an abstracted factory function; I just defined the 12 window variables I knew I needed up top: private var signIn_win:SignIn; private var chat_win:Chat; etc If you need a guide to

Re: [flexcoders] Using HTTPService to POST complex data

2006-01-29 Thread Mark Wales
Matt, I've tried what you suggest, and the closest I seem to be able to come is something like this: Parameters: {category={\name\=\flex\}, commit=Create,... versus the desire output which is: Parameters: {category={name=flex}, commit=Create, ... Basically, it has proven hard to get

RE: [flexcoders] Using HTTPService to POST complex data

2006-01-29 Thread Matt Chotin
What about swapping in single-quotes? Not sure if the http server would take it. Otherwise maybe do a encoding, %22 I think is the double-quote? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Wales Sent: Sunday, January 29, 2006 8:47 PM

[flexcoders] Custom Tree Icons Flex 2.0

2006-01-29 Thread Brendan Meutzner
Hi, When I try to implement a custom icon in a Tree component for Flex 2.0, it gives me a runtime error stating that it can't find the variable I've defined for the icon class... Has anyone gotten this to work? I can post code if need be... Thanks, Brendan -- Flexcoders Mailing List