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
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
//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
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
.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
> 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
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
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?
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
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
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
@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
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
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
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
@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
--- 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
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
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
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!
>
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
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
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">
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
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
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
> 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
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
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
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
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
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
> 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:
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
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
gt; labelFunction="lfnGeneral" />
>
> labelFunction="lfnGeneral" />
>
> labelFunction="lfnGeneral" />
>
> labelFunction="lfnGeneral" />
>
>
>
>
>
> -Original Me
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
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
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.
>
>
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
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
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
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
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
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
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
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
47 matches
Mail list logo