[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
Yeah, as Tracy says, the constant only helps to avoid mis-spelling, by having the compiler help out. You could have done this as well: win.addEventListener("userSubmit", onSubmit); -TH --- In flexcoders@yahoogroups.com, Alan Rother wrote: > > A!!! > > Bingo, thanks everyone... Coming from

Re: [flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
A!!! Bingo, thanks everyone... Coming from the a very linear programming background the OO stuff is getting me... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
//File: UserEvents.as package events { import flash.events.Event; import vo.User; public class UserEvents extends Event { public static const USER_SUBMIT:String = "userSubmit"; public var user:User; public function UserEvents(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(t

[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
Brilliant, it works now! Thank you so much! No doubt I will return with more questions soon...! Cheers, Annelie --- In flexcoders@yahoogroups.com, "Gregor Kiddie" wrote: > > Its close, you do need to have a UIComponent wrapper to add the Sprite > to, and then add the UIComponent to the appl

RE: [flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread Gregor Kiddie
.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of annelie2008 Sent: 29 January 2009 14:27 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: newbie question - call to actionscript class I tried addChild(notes); but that th

[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
> From: "annelie2008" > To: > Sent: Thursday, January 29, 2009 1:47 PM > Subject: [flexcoders] Re: newbie question - call to actionscript class > > > >I should probably have commented out that bit of code, it's not the > > xml I'm having prob

Re: [flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread Paul Andrews
To: Sent: Thursday, January 29, 2009 1:47 PM Subject: [flexcoders] Re: newbie question - call to actionscript class >I should probably have commented out that bit of code, it's not the > xml I'm having problems with now (well, I have, but I'll get to those > questions later

[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
I should probably have commented out that bit of code, it's not the xml I'm having problems with now (well, I have, but I'll get to those questions later). I thought that by calling my actionscript class, var notes:DrawNotes = new DrawNotes();, that would display my hard coded score on screen?

Re: [flexcoders] Re: Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-07 Thread Josh McDonald
The BindUtils doesn't work quite like that. Let's take this MXML snippet: {model.someObject.name} The equivalent call to bindSetter would be: var watcher : ChangeWatcher = BindingUtils.bindSetter(setterFunction, this, ["model","someObject","name"]); -Josh On Wed, Jan 7, 2009 at 3:20 PM, john.c

[flexcoders] Re: Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-07 Thread john.casey64
Gotit. or Bindutils don;t work. But listening for the event does. __model.managedElements.addEventListener(CollectionEvent.COLLECTION_CHANGE, buildTree); I figured it was a newbie question. Thanks for the help. --- In flexcoders@yahoogroups.com, "Josh McDonald" wrote

[flexcoders] Re: Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-07 Thread john.casey64
Apparently not. http://www.actionscript.org/forums/showthread.php3?t=165084 My remote value object is a [Bindable] ArrayCollection. My tree provider object is a [Bindable] xlmlistcollection which I rebuild using a function, once the ArrayCollection gets populated. This does not work. var w

RE: [flexcoders] Re: Newbie question: Removing text from textarea/disabling a character

2008-04-25 Thread Alex Harui
@yahoogroups.com Subject: [flexcoders] Re: Newbie question: Removing text from textarea/disabling a character Thanks for your reply. #1: Actually I wanted to disable backspace and this cannot be done with restrict. Any other method you would like to suggest ? --- In flexcoders@yahoogroups.com

[flexcoders] Re: Newbie question: Removing text from textarea/disabling a character

2008-04-24 Thread khan.ibraheem
Thanks for your reply. #1: Actually I wanted to disable backspace and this cannot be done with restrict. Any other method you would like to suggest ? --- In flexcoders@yahoogroups.com, "wesley.petrowski" <[EMAIL PROTECTED]> wrote: > > For #1, you can use the restrict property of TextArea. It sho

[flexcoders] Re: Newbie question: Removing text from textarea/disabling a character

2008-04-24 Thread wesley.petrowski
For #1, you can use the restrict property of TextArea. It should do exactly what you need. http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html#res trict --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote: > > For 1 you would probably have to add an event liste

[flexcoders] Re: Newbie question: Removing text from textarea/disabling a character

2008-04-24 Thread valdhor
For 1 you would probably have to add an event listener for keydown, see what key it was and then stop that keycode from reaching the textarea. For 2, check out the following I found in the Help: http://www.adobe.com/2006/mxml";> This is a test of the emergency broadcast sys

RE: [flexcoders] Re: Newbie Question: loading text file.

2008-04-22 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Newbie Question: loading text file. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "khan.ibraheem" <[EMAIL PROTECTED]> wrote: > > I want to do 2 different things: > > 1) I want to load a text file from

[flexcoders] Re: Newbie Question: loading text file.

2008-04-22 Thread Amy
--- In flexcoders@yahoogroups.com, "khan.ibraheem" <[EMAIL PROTECTED]> wrote: > > I want to do 2 different things: > > 1) I want to load a text file from a hard-coded location and load its > contents in a string. > 2) I want to load a text file from a location choosed by user and load > its cont

[flexcoders] Re: Newbie Question - TextArea, RichTextboxEditor.

2008-03-31 Thread khan.ibraheem
Yeah, many thanks. I understood the whole thing. Many thanks :) --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote: > > You need to check out the TextRange object. > > There is an example in the manual at > http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_0

[flexcoders] Re: Newbie Question - TextArea, RichTextboxEditor.

2008-03-31 Thread valdhor
You need to check out the TextRange object. There is an example in the manual at http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_05.html. --- In flexcoders@yahoogroups.com, "khan.ibraheem" <[EMAIL PROTECTED]> wrote: > > I am a newbie and am learning this technology. Here is

[flexcoders] Re: Newbie question - Dialog box

2008-03-04 Thread Abyss Knight
I think what you need is a TitleWindow popup. Here's a link to a good reference: http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=0376.htm --- In flexcoders@yahoogroups.com, "ivovnenko" <[EMAIL PROTECTED]> wrote: > > Hi! >

Re: [flexcoders] Re: newbie question: Timer across components..

2007-03-28 Thread Bjorn Schultheiss
I guess the idea would then be to apply a Front Controller Pattern. On 29/03/2007, at 1:50 PM, iilsley wrote: Thank you for responding , interesting but not really what I'm looking for. Your example makes it 'tightly coupled' ( if thats the correct terminology :) ) .. ie. Application relies o

[flexcoders] Re: newbie question: Timer across components..

2007-03-28 Thread iilsley
Thank you for responding , interesting but not really what I'm looking for. Your example makes it 'tightly coupled' ( if thats the correct terminology :) ) .. ie. Application relies on comp1 being a child and also having a 'fired' method. The ultimate goal is to have a bunch of 'panels' that w

Re: [flexcoders] Re: newbie question: Timer across components..

2007-03-28 Thread Bjorn Schultheiss
How about this http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:ns1="*" creationComplete="init()"> http://www.adobe.com/2006/mxml"; layout="absolute" width="400" height="300">

[flexcoders] Re: newbie question: Timer across components..

2007-03-28 Thread iilsley
Thanks for the response .. This is the code that I have ( it works ) but is it the right way to do it :) .. http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init()" width="100%" height="100%" xmlns:ns1="*"> and then

[flexcoders] Re: newbie question re: BarSeries programatically setting the showDataEffect

2007-03-15 Thread iilsley
If only I'd waited 5 more minutes before making the previous post :) I found my answer .. series.setStyle('showDataEffect','zoomIn'); series.setStyle('hideDataEffect','zoomOut'); sorry for the trouble .. > > > I have the following mxml code.. > > > > Is there a way in actionScript I can

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread danfrap767
Hey mike, I received your posts after I posted that. Thanks for the info though. very helpful. It's difficult starting to understand the change from a movieclip-based view architecture where I would create classes that push to a view and now this architecture. Baby steps... --- In flexcoders@y

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
> danfrap767Have you been reading my posts? From the thread it dosn't look like you are seeing them or something.You need to create a skin class from ProgrammaticSkin. Subclass it.Peace, MikeOn 8/11/06, danfrap767 < [EMAIL PROTECTED]> wrote: I thought so too, as

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Tom Bray
Here's a response from Gordon to a similar question I had way back:What does your component extend? If you're extending a Container, you can only use addChild() to content children which implement the IUIComponent interface. In order to support the LayoutManager, a content child has to implement

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread danfrap767
I thought so too, as it even says in the addChild for a Canvas documentation that it takes a display object. but for some reason when I test and after attaching the canvas I then attach the sprite I still get that same error: "TypeError: Error #1034: Type Coercion failed: cannot convert flash.di

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
Hi Jim,> Canvas.addChild(Sprite),You cannot do this because "The DisplayObject to add as a child of this Container.  It must implement the IUIComponent interface."Sprite does not implement IUIComponent. Basically all children of a container have to be a IUIComponent becasue of the way Flex lays

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread dadrobson
You should be able to use Canvas.addChild(Sprite), because it takes a DisplayObject, and Sprite does exted DisplayObject. I don't have time to test it right now, but based on the inheritance outlined in the docs, it looks like it should work. I'll try to run a test later; meanwhile, if you have a

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread dadrobson
I stand corrected: I wrote "extend" instead of "implement". Thanks Mike! -Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your g

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
> extend mx.core.IUIComponent,A DisplayObject dosn't have to extend UIComponent it just has to implement the IUIComponent interface which ProgrammaticSkin does.ProgrammaticSkin is a Shape/FlexShape subclass. Peace, MikeOn 8/11/06, dadrobson <[EMAIL PROTECTED]> wrote:

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread danfrap767
Thanks, Jim. That worked! After considering myself a very advanced actionscripter I feel like an idiot with these questions, but... So than how are you supposed to go about attaching a sprite? since I can't attach that to the Canvas either. like I said, I know these are very newbie questions b

[flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread dadrobson
Sprite doesn't extend mx.core.IUIComponent, and so you can't use it as a parameter in the addChild() method of the Panel class. Instead of using Sprite, try Canvas instead. HTH Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archive

[flexcoders] Re: newbie question: Populating Datagrid from external complex xml

2006-05-18 Thread josulliv101
gt; labelFunction="lfnGeneral" /> >  > labelFunction="lfnGeneral" /> >  > labelFunction="lfnGeneral" /> >  > labelFunction="lfnGeneral" /> >  >   >    > > > -Original Me

RE: [flexcoders] Re: newbie question: Populating Datagrid from external complex xml

2006-05-18 Thread Tracy Spratt
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of josulliv101 Sent: Thursday, May 18, 2006 3:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: newbie question: Populating Datagrid from external complex xml Thanks - i will try it. i am using Flex 2 beta 3. -J

[flexcoders] Re: newbie question: Populating Datagrid from external complex xml

2006-05-18 Thread josulliv101
Thanks - i will try it. i am using Flex 2 beta 3. -Joe --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Have you tried using a labelFunction on each column? > > That function gets run for every element in the dataProvider array and gets passed a reference tothat

[flexcoders] Re: Newbie Question

2005-12-01 Thread im_sean_s
João, Thank you so much for the quick reply. This binding thing takes some getting use to. - Sean --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > I usually use the selectedIndex property and use a function to return the index of item corresponding to my id. > >

[flexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files

2005-11-03 Thread Pablo Apanasionek
m: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Pablo Apanasionek > Sent: donderdag 3 november 2005 15:40 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Newbie Question: Drag-And-Drop between two > Flex-SWF files > > Sure! > > First o

[flexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files

2005-11-03 Thread Pablo Apanasionek
Pablo Apanasionek > Sent: donderdag 3 november 2005 15:40 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Newbie Question: Drag-And-Drop between two > Flex-SWF files > > Sure! > > First of all, I have my JSP based application, which manages all the > interactio

Re: [flexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files

2005-11-03 Thread Clint Modien
Ya I thought so...  technically no it isn't "wrong"  it's just not what flex was meant for.  Instead of writing multiple small flex SWF "pages" you'd write one user interface in flex and use ActionScript to control the interaction on the client.  There are so many advantages of doing it this way

RE: [flexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files

2005-11-03 Thread Tom Versweyveld
lexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files Sure! First of all, I have my JSP based application, which manages all the interaction between pages and business objects. When reaching the frontend subject, we thought of Flex for that job. So we began analyzing buildin

[flexcoders] Re: Newbie Question: Drag-And-Drop between two Flex-SWF files

2005-11-03 Thread Pablo Apanasionek
Sure! First of all, I have my JSP based application, which manages all the interaction between pages and business objects. When reaching the frontend subject, we thought of Flex for that job. So we began analyzing building some UI components which combine business logic in a fancy way. Those c

[flexcoders] RE: Newbie Question about Value Objects on client side

2005-08-04 Thread Steven Webster
Hi Chris, QUESTION: Do I *have* to create a corresponding Person class on the client side using ActionScript to access the attributes (firstName and lastName) on the client, and use registerObject()? If I don't create a corresponding Person class on the client side, how I can I access the propert

RE: [flexcoders] Re: Newbie Question - referencing value in Remote Object

2005-05-06 Thread Peter Farland
onously. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dval823 Sent: Friday, May 06, 2005 7:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Newbie Question - referencing value in Remote Object Tried that with no luck --- In f

[flexcoders] Re: Newbie Question - referencing value in Remote Object

2005-05-06 Thread dval823
Tried that with no luck --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote: > Did you try: > > ro.getCerts.result[i]['field_name'] > > > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of dval823 > Sent: Friday, Ma