Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)

2009-01-27 Thread Ralf Bokelberg
ant.apache.org is a good place to start. The replace task allows you
to replace strings in a file. The buildNumber task gives you a updated
buildNumber per build. I looked into it, and i start to think that
Cato has a valid point though. It is not easy and it is not as perfect
as a Flex Builder internal solution could be. So lets all sign his
petition :)

Ralf.

On Tue, Jan 27, 2009 at 6:24 PM, Alan K  wrote:
> Anyone have any suggestions of good places to learn about using ANT,
> particularly in context of Flex's compiler?
>
> Alan
>
>>I'm not sure if it is necessary to change FlexBuilder to do this. Have
>>you tried a ant script running as a builder before your flex build.
>
> 


Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)

2009-01-27 Thread Ralf Bokelberg
I'm not sure if it is necessary to change FlexBuilder to do this. Have
you tried  a ant script running as a builder before your flex build.

Cheers
Ralf.

On Tue, Jan 27, 2009 at 10:40 AM, Cato Paus  wrote:
> https://bugs.adobe.com/jira/browse/FB-16764
>
> 


Re: [flexcoders]How would you rewrite this isset PHP condition in AS3?

2009-01-18 Thread Ralf Bokelberg
doesn't try catch help here? If no error is thrown, isset returns true

ralf

On Sun, Jan 18, 2009 at 1:46 PM, dorkie dork from dorktown
 wrote:
> I have a PHP statement that I am trying to write in AS3. So far it errors
> out because the properties do not exist on it yet. How would/should I
> rewrite this for AS3? Here is the statement:
>
> // at the time this is run "this.language_data" is an object with 2
> properties
> // the "STYLES" property does not exist yet and it generates a
> // TypeError: Error #1010: A term is undefined and has no properties.
> if (isset(this.language_data['STYLES']['BRACKETS'][0])) {
>
> ddfd
>
> 


Re: [flexcoders] Re: ExternalInterface erros

2009-01-12 Thread Ralf Bokelberg
Why do you want to use JSON? You can pass in plain objects instead, e.g.

ExternalInterface.call("someJSMethod", { a: 1, b: { c: true, d: "hello"} } );

Ralf.

On Mon, Jan 12, 2009 at 7:55 PM, flexaustin  wrote:
> I can't really post the code. The issue is either I think is either
> one of two things, but I can't seem to resolve either of them.
>
> #1. I am passing data to a javascript function in json format, which
> contains escaped " & \.
>
> #2. This is the issue.
> http://joshblog.net/2008/01/03/flash-player-externalinterface-variable-name-bug/
> On this one I tried putting my function call in '' to as this blog
> post suggests, but it didn't help.
>
> The JSONENcoder is escaping the " and \ on the flex/actionscript side,
> but when it is getting passed to the javascript file I don't think the
> javascript file is understanding the escaped items. I am not a JS guy
> so I don't know if JS/Broswer knows about escaped characters?
>
> TIA, J
>
> --- In flexcoders@yahoogroups.com, "Anthony DeBonis"  wrote:
>>
>> -What browser are you using - or does it happen in all browsers
>>
>> - Can you get something simple to work like this
>> ExternalInterface.call("alert('TEST')");
>>
>> -Can you post the code?
>>
>
> 


Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Ralf Bokelberg
Maybe nobody is listening when you dispatch the event? How do you add
the listener?

Ralf.

On Mon, Jan 5, 2009 at 8:42 PM, markflex2007  wrote:
> But it works with button click event like following.
>
> http://www.adobe.com/2006/mxml"; >
> 
> [Event(name="loginEvent", type="flash.events.Event")]
> 
> 
> 
> 
>
> 
>
> 
>
> I need it works with creationComplete
>
> Thanks
>
> Mark
>
> 


Re: [flexcoders] Cairngorm proper usage

2009-01-04 Thread Ralf Bokelberg
It would be in the spirit of Cairngorm to fire off a EnterRoom event,
which triggers a EnterRoom command. The command calls a enterRoom
method in some model.  The TabNavigator binds to this model and
updates itself, whenever the model changes

With kind regards,
Ralf.

On Sun, Jan 4, 2009 at 7:49 AM, someguy7_7  wrote:
> I am trying to determine the best way to use cairngorm for the
> following use case. I want to display a tabnavigator that only has 1
> child which is a component that has a list of rooms in a datagrid.
> When one of the rooms is clicked a instance of the room component is
> added to the tabnavigator as a child. The room component just has a
> label that says "You are in room xx". Can I just fire off a
> regular event from the room list component that the main view is
> listening for so it can add the new child to the tabnav or do I need
> to fire off a cairngorm event that goes through a command which
> somehow gets back to the view and tells it to add a new child to the
> tabnav?
>
> Any ideas on the best way to set this up so it does not violate the
> spirit/laws of cairngorm?
>
> Thanks
>
> 


Re: [flexcoders] flex builder 3 on mini notebooks

2009-01-02 Thread Ralf Bokelberg
I had one (1.8 Atom) for a day and decided to send it back. It was too
weak to scroll large websites, so i don't even bothered to install
something like FlexBuilder.
Ralf.

On Fri, Jan 2, 2009 at 7:09 PM, hworke  wrote:
>
>
> Hi now a days the stores are full of those $300 to $500
> mini notebooks with intel atom processor and up to 1 GB
> memory. Did any one try to install and use the Flex
> builder 3 on any of those mini laptops? If so how was
> the performance?
>
> Regards
>
> 


Re: [flexcoders] Any Developers on a Mac?

2008-12-30 Thread Ralf Bokelberg
I wonder if people see problems with teams of Mac & Windows machines?
We sometimes see some problems, and i wonder if the problem comes from
a Mac user, who joined our Team lately. We share some of our Workspace
settings via SubVersion. We don't use absolute pathes in our settings
though.

Cheers
Ralf.

On Tue, Dec 30, 2008 at 7:51 PM, Cole Joplin  wrote:
> What is better or worse is a matter of opinion, I think. I have used FB on
> Windows and Mac, and it really doesn't matter. I've switched to the Mac, as
> a developer, fulltime, and I'm having no problems, it's solid. It seems to
> me that the biggest problems people have are more about which version of the
> library/player/AIR they are using than FB.
>
> I say choose the OS you like, and get Flex, FB or not. You're not getting
> dinged here. Personally, I'd choose the Mac in a heartbeat.
>
> 
> From: Jim Hayes 
> To: flexcoders@yahoogroups.com
> Sent: Monday, December 29, 2008 4:04:20 AM
> Subject: RE: [flexcoders] Any Developers on a Mac?
>
> General platform discussions aside, what is it that makes flexbuilder
> "slightly worse" on mac than it is in windows?
>
> I'm considering trying out a macbook pro as my next laptop (been on windows,
> sometimes linux, for past ten years or so),
>
> but most of my work is in flexbuilder these days so it would be nice to
> know.
>
> Many thanks!
>
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Josh McDonald
> Sent: 29 December 2008 10:44
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Any Developers on a Mac?
>
>
>
> Kevlar suit... *check*!
>
> It's good. I'm happy with it, many people are. I think it's much better,
> many people agree. And many *other* people here will call me a big girl for
> thinking so. Which I find hilarious. But this is a well-abused topic here.
> Builder is slightly better in Windows. in my opinion everything else is
> better on Mac :)
>
> -Josh
>
> On Mon, Dec 29, 2008 at 8:24 PM, composerguru 
> wrote:
>
> I'm thinking of converting now that I've dumped Vista... just
> wondering what your experience might be and if you recommend the change?
>
> Thanks in advance,
> Kevin
>
>
>  - - --
>
> --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
> Alternative FAQ location: https://share. acrobat.com/ adc/document.
> do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7
> Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups.
> comYahoo! Groups Links
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: j...@gfunk007. com
> :: http://flex. joshmcdonald. info/
> :: http://twitter. com/sophistifunk
>
> __
> This communication is from Primal Pictures Ltd., a company registered in
> England and Wales with registration No. 02622298 and registered office: 4th
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
> VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, copied
> and used only by the intended recipient. If you have received it in error,
> please contact the sender immediately by return e-mail or by telephoning
> +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
> contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email
> Security System.
> __
>
> 


Re: [flexcoders] What is '*' in class type?

2008-12-23 Thread Ralf Bokelberg
There is another difference. You can assign a * variable to anything
else while an Object variable needs to be casted.

var x : *;
var y : Object;

var string : String;
var uicomp : UIComponent;
var bool : Boolean;
var num : Number;
var arr : Array;
var i : int;
var obj : Object;

string = x;
string = y; //error
num = x;
num = y; //error
i = x;
i = y; //error
bool = x;
bool = y; //huh, no error? implicit conversion?
arr = x;
arr = y; //error
uicomp = x;
uicomp = y; //error

Cheers
Ralf.

On Tue, Dec 23, 2008 at 7:06 PM, Alex Harui  wrote:
> '*' can hold the value undefined.  Object cannot, it can only hold null.
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of luvfotography
> Sent: Tuesday, December 23, 2008 9:05 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] What is '*' in class type?
>
>
>
> Hi, I saw this in someone's code:
>
> public function parseResult( result:*):Array {
>
> if( result is XML || result is XMLList ) {
> . . . .
> ...
>
> what is the '*' , is this the same as (result:object) ?
> where result can be any type of object?
>
> 


Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-18 Thread Ralf Bokelberg
Flex is more interactive? This must be a misunderstanding. Flex is
really more about enterprise development process, less about
technology. And it is not concerned about size, just features. Your
500k Flex widget is 20k in Flash probably.

Ralf.


On Thu, Dec 18, 2008 at 10:02 PM, Alan  wrote:
> It's all Flash, why is there any notion of Flash vs. Flex.  It's like saying
> 'Should we use PHP or Zend?'. Rather it should be 'Do we need Flex in our
> Flash app?'  Unless you
>
> Flex as newer? Flex came out 5 years ago.  ActionScript 3 was publicly
> released in June 2006.  Although Flex is now AS3, still the notion that Flex
> is 'newer' doesn't make any sense to me.
> It's all Flash and soon Flex will have a new name so.
>
> On Dec 18, 2008, at 3:27 PM, devenhariyani wrote:
>
> This restricts us to Flash or Flex. Flex being the
> newer technology it made sense to try flex, especially for our plans
> to have more interactive widgets in the future.
>
> 


Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-17 Thread Ralf Bokelberg
If you go for size, i'd use Flash. There is nothing wrong with it, as
you are not developing a enterprise application with a big team.
Cheers
Ralf.

On Thu, Dec 18, 2008 at 5:50 AM, Josh McDonald  wrote:
> I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex
> Flash project at all- I was under the impression the OP was *very* concerned
> about size, although that could just've been my (often lax) comprehension
> skills :)
>
> -Josh
>
> On Thu, Dec 18, 2008 at 2:38 PM, gabriel montagné 
> wrote:
>>
>> >> On Dec 16, 2008, at 9:36 PM, devenhariyani wrote:
>> > Thanks for the advice so far. If I follow the advice not to use the
>> >  tag, *and* if I also remove all the MXML and re- write the
>> > app
>> > to use only ActionScript do you think I can get the size down to under
>> > 200KB? I think Flex is a great technology, but if its not the right tool
>> > for
>> > the job I will sadly have to go to Flash.
>>
>> I'm primarily a Flex developer and, of course it depends on what you want
>> to
>> do, but I wouldn't go for a "pure AS3" project unless it was a simple
>> banner.
>> 200KB is too little.  A normal medium size flickr image already weights
>> about
>> 100KB.
>>
>> Even though widgets might use little area, they are often complete
>> websites
>> upon themselves.  I did a facebook widget for Target not long ago.  It was
>> a
>> simple widget but still it had to load data from different sources, it had
>> to
>> do reporting, it had to forward requests for products, it had a carousel
>> with
>> details info and additional images, etc... and of course, it had to do the
>> normal things that all of these flash movies have to do: it had to load
>> smoothly, it had instantiate it's components, it had to load and cache
>> stuff,
>> it had to have embedded fonts and assets, load backgrounds, etc.  And it
>> had
>> to be ready in a very short time.
>>
>> All these things Flex solves already for you... you can redo them and
>> perhaps
>> save some bandwidth, but the cost is high: you'll loose all the
>> architecture
>> and debugging that the Adobe engineers (not to mention the Flex community
>> in
>> general) have already put into the framework, (which is made, of course,
>> from
>> the very same kind of actionscript that you would have to write yourself
>> anyways to solve the very same problems.)
>>
>> I did that widget in full fledged Flex (+ Cairngorm + UM Extensions,
>> etc.), it
>> ended up "costing" like 350KB... and nobody complained, specially since we
>> could cut down one third of the initially scoped development time and it
>> turned out to be robust and pretty much bug free.
>>
>> --
>> gabriel montagné láscaris comneno
>> http://rojored.com
>> t/506.8367.6794
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: j...@gfunk007.com
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
> 


[flexcoders] FlexBuilder on 64bit machine any good?

2008-12-15 Thread Ralf Bokelberg
Hi guys

I'm in the process of choosing a new machine to be placed under my
christmas tree :). I wonder, if anybody has some experiences with 64
bit machines and FlexBuilder? Does it run at all? What is the
performance like? Does it make use of lots of RAM?

Cheers
Ralf.


Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Ralf Bokelberg
You can use arguments.callee to let a anonymous listener remove itself.

Cheers
Ralf.



On Fri, Dec 12, 2008 at 7:23 PM, Alex Harui  wrote:
> I think Amy's point is that, w/o a reference to the anonfun, you can't call
> removeEventListener on it.  If I do:
>
>
>
> someObj.addEventListener("foo", function (e:Event) { … } );
>
>
>
> someObj will release the anonfun when it gets garbage collected.  However,
> until that time, all objects in the scope chain won't be collectable.  I
> don't know if that's the case in Java.
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mark Carter
> Sent: Friday, December 12, 2008 6:28 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Best practice for calling asynchronous functions?
>
>
>
> So are you saying that, in general, anonymous functions should not be used
> as
> listeners?
>
> If its anything like in Java, (once the calling method returned) the
> anonymous function would only be referenced by the event dispatcher and so
> (assuming weak references are not used) would only be garbage collected when
> the event dispatcher is garbage collected. At least, that's how I understand
> it.
>
> I posted a question about this a few weeks ago, but didn't get a reply.
>
> Amy-28 wrote:
>>
>> My understanding is that anonymous functions _cannot_ get garbage
>> collected unless you use weak references when you add them. Which
>> means there's a really good chance they'll get garbage collected
>> before they get called.
>>
>
> --
> View this message in context:
> http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20976648.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
> 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Re: Parsley MVC :: some thoughts

2008-12-09 Thread Ralf Bokelberg
Haha Amy, that's a good one. Maybe it should :)

But seriously, dispatchEvent is nothing more than a function call,
which calls all the event handler methods. Of cause you can think of
pathologic examples like Paul likes to do :) But this is really the
same with function calls. It is completely synchronous and there is
nothing like "three lines later it does something strange to my code".
It would be really bad, if something like this could happen.

I would be happy to reconsider, if you can provide me with a example,
which does what you were seeing.

Cheers
Ralf.



On Wed, Dec 10, 2008 at 12:02 AM, Amy <[EMAIL PROTECTED]> wrote:
> --- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
>
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi Amy
>>
>> Afaik this is not possible in Flashplayer. A block of code is always
>> running through without any interuption. Colin Moock has a good
>> chapter of how all this works in his nice AS3 book.
>
> Apparently the code in question didn't read the book to realize what it
> was doing wasn't possibl LOL.
>
> 


Re: [flexcoders] Re: Parsley MVC :: some thoughts

2008-12-09 Thread Ralf Bokelberg
Hi Amy

Afaik this is not possible in Flashplayer. A block of code is always
running through without any interuption. Colin Moock has a good
chapter of how all this works in his nice AS3 book.

Cheers
Ralf.



On Tue, Dec 9, 2008 at 3:44 PM, Amy <[EMAIL PROTECTED]> wrote:

> I actually had this very thing happen in my code a couple of weeks
> ago. I normally expect that the code in a function will all run as a
> block unless, of course, I'm calling out to another function. But in
> one case, one of the statements I was using (addEventListener, I
> think), opened up enough of a timing "hole" in my code that some
> other code (not the function that was being added in the event
> listener, which might have been partially understandable) ran
> unexpectedly at that point. The only solution I found was to make
> sure I put all of the other code that _had_ to run in that block
> before anything else happened above the addEventListener code.
>
> -Amy


Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-09 Thread Ralf Bokelberg
I'm confused. Let's clarify what we are talking about.

The event dispatching is fully synchronous.
If you call dispatchEvent, all event handlers are called, before the
next statement is executed.

Some processes (eg loading something from the backend or a timer)
dispatch events in an asynchronous manner. So they call dispatchEvent
at some unknown point in time

I think, this is how it works.

Cheers
Ralf.



On Tue, Dec 9, 2008 at 10:27 AM, Paul Andrews <[EMAIL PROTECTED]> wrote:
> Jules, I confess I actually misread your original post - I had anticipated
> that when an event is despatch it wouldn't be actioned until the current
> code section had been completed then the player would act upon events
> awaiting despatch.
>
> On the face of it, if events are despatched and all handlers invoked
> synchronously before the next statement runs then there's an opportunity for
> an unexpected race condition if handlers are updating the same data
> structures as the code that despatched the event. Like you I would be
> surprised at this behaviour and I might try and check that out for myself
> later today.
>
> So you are right my comments don't match your findings. I don't have a
> problem with the event despatcher invoking all handlers for an event in
> sequence - event handling has a predefined order through the display list,
> but there's no guarantee that multiple handlers at the same place in the
> hierarchy will be invoked in a set sequence.
>
> I'm somewhat surprised at your assertion that despatching an event will
> invoke handlers for that event synchronously - it would be interesting to
> get a better handle on this from someone who knows thelow-level mechanism
> more intimately than I do. My event handling code doesn't anticipate that
> despatched events are handled syncronously and as i've already said, there's
> always a danger of an unexpected race condition if that were true.
>
> In my previous life writing a lot of code running on multiprocessor systems
> we took great care to control asynchronous behaviour and to protect data
> structures from multiple updates using semaphores. In a faux system like the
> flash player, there isn't true concurrency, but if what you say is true
> there would be a real potential of getting an unwanted side-effect since
> effectively shared data structures would be open to being updated
> unexpectedly whenever an event is despatched.
>
> So, I'm kinda with you.
>
> Paul
>
> - Original Message -
> From: "Jules Suggate" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, December 09, 2008 8:55 AM
> Subject: Re: [flexcoders] Parsley MVC :: some thoughts
>
>> How can something be asynchronous but not concurrent? Asynchronous
>> means that control returns from the function call immediately although
>> the transaction triggered by the call may still be ongoing. To me,
>> that absolutely *requires* concurrency, even if it's simulated through
>> a timeslicing scheduler or some such.
>>
>> I'm pretty sure for something to be asynchronous there has to be some
>> sort of interleaving.
>>
>> That's the whole point of what I just realised: there is no such
>> interleaving within the Flex framework. Event dispatch in Flex/Flash
>> is a *blocking* operation. There's no scheduler or anything within the
>> event bus. Maybe your handlers will make calls to a truly asynchronous
>> API like network calls or something, but until they make that call and
>> return control to the code that dispatched the event, the next line of
>> code in your event producer object will *not* execute.
>>
>> I'm just freaked out that I never realised this. How have my
>> applications even been *usable* until now?!?!? Pure luck and good
>> API design from Adobe/Macromedia.
>>
>> Cheers to the Player team!
>>
>> On Tue, Dec 9, 2008 at 03:02, Paul Andrews <[EMAIL PROTECTED]> wrote:
>>> They are asynchronous but they aren't concurrent.
>>>
>>> Paul
>>>
>>> - Original Message -
>>> From: "Jules Suggate" <[EMAIL PROTECTED]>
>>> To: 
>>> Sent: Monday, December 08, 2008 1:59 PM
>>> Subject: Re: [flexcoders] Parsley MVC :: some thoughts
>>>
  head explodes heh!

 I have been happily thinking the whole time that events really *are*
 asynchronous, but that's obviously not true. Reality check...

 Thanks guys. I think I might have run out of reasons *not* to use
 Parsley
 :)

 On Tue, Dec 9, 2008 at 01:06, Paul Andrews <[EMAIL PROTECTED]> wrote:
> - Original Message -
> From: "Jules Suggate" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 08, 2008 6:49 AM
> Subject: [flexcoders] Parsley MVC :: some thoughts
>
>> Anyone used Parsley MVC? I'm a bit confused by it.
>>
>> There's the standard MVC FrontController class, which exposes a method
>> dispatchEvent() for app-wide notifications. It also has a concept of
>> interceptors which is nice... so far so good.
>>
>> BUT... that dispatchEvent() call executes

Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-08 Thread Ralf Bokelberg
> BUT... that dispatchEvent() call executes *synchronously*.

That's always the case with Flash/Flex.

Cheers
Ralf.

On Mon, Dec 8, 2008 at 7:49 AM, Jules Suggate <[EMAIL PROTECTED]> wrote:
> Anyone used Parsley MVC? I'm a bit confused by it.
>
> There's the standard MVC FrontController class, which exposes a method
> dispatchEvent() for app-wide notifications. It also has a concept of
> interceptors which is nice... so far so good.
>
> BUT... that dispatchEvent() call executes *synchronously*. Control
> won't return to your code until *every single listener* to that event
> finishes executing!! In a single-threaded environment like Flash
> Player, I would have thought this to be a disastrous design
> decision... can anyone shed any light on this, as I'm sure there's
> something I'm missing here!
>
> TIA,
> +J
>
> PS another thing I haven't figured out yet is how to inject
> dependencies into a View component... it seems Parsley can only inject
> into objects that have been created in the Parsley config file ... and
> because View components are instantiated by the Flex framework, from
> what I can tell Parsley has no way to reference them... this has the
> unpleasant side-effect of requiring all my View code to access the
> FrontController directly through the FrontController.root static
> property.
>
> In fact, the FrontController class is bugging me -- it is a concrete
> class with no abstract interface I can code to. It's making me nervous
> about lock-in to the Parsley framework.
>
> Kinda goes against the whole IoC thing, no?
>
> PPS And yeah, I will post this to the Parsley forums, but I want the
> esteemed opinion of those on this list too!
>
> 


Re: [flexcoders] Re: Getting Its Function Name...

2008-12-02 Thread Ralf Bokelberg
If you want to call the current function recursively, you can use
arguments.callee

function something( count : int )
{
trace( count );
if( count > 0 ) arguments.callee( count-- );
}

Cheers
Ralf.

On Tue, Dec 2, 2008 at 1:02 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> That'll only work in AS2 or dynamic AS3 objects, I think. But it's easy
> enough to cook up the same thing using DesrcibeTypeCache.
>
> -Josh
>
> On Tue, Dec 2, 2008 at 9:36 AM, Amy <[EMAIL PROTECTED]> wrote:
>>
>> --- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > Awesome Alex!
>> >
>> > It's a bit "buggy" , but helpful :)
>>
>> Not sure this is any less buggy, but here's a slightly different
>> approach:
>> http://www.actionscript.org/forums/showthread.php3?t=86924
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
> 


Re: [flexcoders] Compiler errors from css file

2008-11-23 Thread Ralf Bokelberg
You don't have to write them in ActionScript style. Flex understands
background-alpha as well as backgroundAlpha. I guess you are talking
about some external validator for the css, or?

r.

On Sun, Nov 23, 2008 at 2:27 AM, Rick Winscot <[EMAIL PROTECTED]> wrote:
> Are you getting Flex compiler errors or just warnings? If it's just warnings
> you can use the –warnings=false compiler option.
>
> http://www.quilix.com/node/9
>
> To be fair - I'm not sure if I understand the true nature of your problem...
> You are talking about styles in Flex correct? If so... HTML styles aren't
> your problem.
>
> Rick Winscot
>
>
> On 11/22/08 3:46 PM, "Tom McNeer" <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> When using an external CSS file in my Flex apps, I receive compiler errors
> from attributes that are not valid for normal browser CSS ('property
> "backgroundAlpha" doesn't exist'), either because the attributes don't exist
> in HTML (fillAlphas) or because they are written in Actionscript "style"
> ("fontSize" rather than "font-size").
>
> Is there a way to prevent this? Perhaps a preference setting in Eclipse, or
> a Flex project setting?
>
> 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Memory Leaks... Cumulative Memory and Memory.

2008-11-19 Thread Ralf Bokelberg
That is the normal behaviour of the GC. It only runs, if it is
necessary. You could try loading/unloading your module 1000 times to
see if you really have a leak.
r.

On Wed, Nov 19, 2008 at 9:29 PM, sailorsea21 <[EMAIL PROTECTED]> wrote:
> Hi everyone, I think I'm having some issues with memory leaks.
> The memory of my Cumulative Memory and of my Memory keep increasing.
> When I unload modules, the memory doesn't drop and if I reload the
> modules, the memory keeps climbing...
>
> When I use the import command (ie:import mx.controls.Alert;), do I need
> to unload the "mx.controls.Alert" when I unload my module?
> If so, how do I do this?
>
> If not, why does my memory keep climbing when I unload a module and
> reload it? Shouldn't it drop and then climb back?
>
> Thanks.
>
> -David
>
> 


Re: [flexcoders] Dispatch events - sequencing

2008-11-19 Thread Ralf Bokelberg
Your assumption is correct. However - if make some backend calls, they
might still come back in a different order.
r.

On Wed, Nov 19, 2008 at 8:38 PM, rviswanathan
<[EMAIL PROTECTED]> wrote:
>
> I have a flex module where events get dispatched based on user clicks. The
> user can click on several areas of the screen and each click would dispatch
> an event. I am trying to figure out if the order in which the user clicks
> would be the order in which the events would be dispatched? (I am not taking
> about the callbacks here, they can come in any order)
>
> For example, if the user clicks 5 times on a UI area that would dispatch an
> event with every click, is it correct to assume that the 5 events will be
> dispatched in the same order as the clicking was done? I am using Cairngorm
> to dispatch these events.
>
> If this is a wrong assumption, is this even feasible?
>
> Thanks & Regards
> Ram
> --
> View this message in context:
> http://www.nabble.com/Dispatch-events---sequencing-tp20587631p20587631.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
> 


Re: [flexcoders] Observer pattern

2008-11-09 Thread Ralf Bokelberg
Very difficult to debug, because we don't know, what is going on
behind the scenes. Try googling Grant Skinner's articles about Flash
Player memory and garbage collection. Might be helpful. Also you could
try to create and destroy the popup a billion times and see, if the
problem manifests into a real problem.

Ralf.


On Mon, Nov 10, 2008 at 8:20 AM, jitendra jain
<[EMAIL PROTECTED]> wrote:
> Profiler still shows that popup occupied the memory. I'm
> enforcing garbage Collector but not working. Let me know..
>
> Thanks Relf for your reply.
>
> Thanks,
>
> with Regards,
> Jitendra Jain
>
>
> 
> From: Ralf Bokelberg <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, 10 November, 2008 12:46:12 PM
> Subject: Re: [flexcoders] Observer pattern
>
> Afaik the gc only runs, if the player is running out of memory. What
> makes you think, that your popup doesn't get garbage collected?
>
> Ralf.
>
> On Mon, Nov 10, 2008 at 6:08 AM, jitendra jain
>  wrote:
>> Hi friends,
>>
>> I'm using Observer pattern to create popups in my application. But when i
>> tried to remove PopUpManager. removePopUp( displayObj) , it does not get
>> garbage collected. I even tried with assigning null to my Observer. ITs
>> not
>> working. I removed event Listeners and also firing Observer by setting the
>> boolean 'false' the way we did with 'true'. But nothing seems working.
>>
>> Please help.
>>
>> Thanks,
>>
>> with Regards,
>> Jitendra Jain
>>
>>
>>
>>  _ _ __
>> Connect with friends all over the world. Get Yahoo! India Messenger.
>>
>
> 
> Add more friends to your messenger and enjoy! Invite them now.
> 


Re: [flexcoders] Observer pattern

2008-11-09 Thread Ralf Bokelberg
Afaik the gc only runs, if the player is running out of memory. What
makes you think, that your popup doesn't get garbage collected?

Ralf.

On Mon, Nov 10, 2008 at 6:08 AM, jitendra jain
<[EMAIL PROTECTED]> wrote:
> Hi friends,
>
>  I'm using Observer pattern to create popups in my application.But when i
> tried to remove PopUpManager.removePopUp(displayObj), it does not get
> garbage collected. I even tried with assigning null to my Observer. ITs not
> working. I removed event Listeners and also firing Observer by setting the
> boolean 'false' the way we did with 'true'. But nothing seems working.
>
> Please help.
>
> Thanks,
>
> with Regards,
> Jitendra Jain
>
>
>
> 
> Connect with friends all over the world. Get Yahoo! India Messenger.
> 


Re: [flexcoders] Local Conenction Issue

2008-11-09 Thread Ralf Bokelberg
This might have to do with the security restrictions of the flash
player. The swfs seem to be runnning in different sandboxes and
therefore cannot communicate. Have a look at the documentation about
flash player security.

Ralf.

On Mon, Nov 10, 2008 at 6:55 AM, [EMAIL PROTECTED] Uttarwar
<[EMAIL PROTECTED]> wrote:
> I am trying to use local connection object to communicate between SWF
> files. One of them is running in the browser as a part of the web
> application and the other is running on the desktop in a ActiveX
> container.
>
> I tried using local connection and calling a function from the other
> SWF. If I run both from the server it is working (even from different
> domains) but this does not seem to work. I did not find anything in
> Adobe documentation mentioning about this issue.
>
> Let me know if any one has tried it or if I am missing anything here.
> Any pointers are appreciated.
>
> Regards,
>
> Pravin Uttarwar
>
> 


Re: [flexcoders] Help on sorting an ArrayCollection then adding an item to the top

2008-11-08 Thread Ralf Bokelberg
You can provide your own sort function, which sorts your special entry
at the top.
Alternatively you can use the prompt propertyof the combobox. It is
shown if the selectedIndex is set to -1
Cheers,
Ralf.

On Sat, Nov 8, 2008 at 3:07 PM, Mark <[EMAIL PROTECTED]> wrote:
> I'm trying to sort an arrayCollection that is the dataProvider for a
> comboBox. But I also need to add an item to the top of the
> list "Select One". Everything I've tried always sorts that object
> as well. Is there a way to exclude something from a sort or am I
> just doing this completly wrong? Here's what I have?
>
> var sort:Sort = new Sort();
> sort.fields = [];
> sort.fields.push(new SortField("title",true));
> nameCollection.sort = sort;
> nameCollection.refresh();
> //
> // add new item to the top
> //
> var sItem:Object = new Object;
> sItem = {title:"Select One"};
> nameCollection.addItemAt(sItem,0);
> //nameCollection.refresh();
>
> Thank You,
> Mark
>
> 


Re: [flexcoders] change selected tab using variable containing tab label string?

2008-11-02 Thread Ralf Bokelberg
Maybe you can add name="{label}" to the children?

Ralf.

On Sun, Nov 2, 2008 at 11:20 AM, Mic <[EMAIL PROTECTED]> wrote:
> myTabBar.selectedIndex =
> myTabBar.getChildIndex(myTabBar.getChildByName(e.label)); does not
> work because the child name is not the tab label text. How would I do
> this? TIA,
>
> Mic.
>
> 


Re: [flexcoders] Daily WTF..." Property top not found on mx.containers.HBox and there is no default value."

2008-10-28 Thread Ralf Bokelberg
top is not a property, it is a style.
The solution is to use setStyle instead of setProperty

Ralf.

On Tue, Oct 28, 2008 at 10:34 PM, Adrian Williams
<[EMAIL PROTECTED]> wrote:
> All,
>
> Ok,  so this is a bit infuriating...how is it that this is choking on my
> setting a "top" property from within a state for an HBox, which by all
> appearances is a very valid property for an HBox? All I've found on Google
> is everyone saying...'oh you need to get the latest flash plugin'...well,
> all that does is surpress the error message...there's a reason I'm using the
> Flash debugger...
>
> So, here is the code:
>
> top="10" bottom="10" id="groupedParts">
> .
>.
>.
>
> Then in my state change, I need to change the relative position of the
> hbox to allow for an inserted line of text:
>
> 
>
> So when I run the app and change the state, it throws the error
> ReferenceError: Error #1069: Property top not found on mx.containers.HBox
> and there is no default value.
> at
> mx.states::SetProperty/apply()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\states\SetProperty.as:205]
> .
> .
> .
>
> I would greatly appreciate any help anyone can provide into this very
> mysterious error...
>
> Thanks,
> Adrian
>
> 


Re: [flexcoders] Html file in Flex application.

2008-10-28 Thread Ralf Bokelberg
Unfortunately it is not that easy.
The Flex/Flash TextField displays a small subset of html only, eg. a,
p, b, i, u, li, font and br. All the other tags are ignored
A common method to display a full fledged html page is to place a html
iframe on top of the Flex application.
Alex Harui showed a experimental approach of interpreting xhtml inside
Flex. Try searching for Alex' blog.

Cheers
Ralf.

On Tue, Oct 28, 2008 at 9:40 AM, kotha poornima <[EMAIL PROTECTED]> wrote:
> Hi all,
> Can i embed html file in my flex application? If it is possible please give
> me an idea how can i do the same.
>
>
> Thanks in Advance,
> Poornima.
>
> 


Re: [flexcoders] Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread Ralf Bokelberg
includeInLayout=false maybe?

On Mon, Oct 20, 2008 at 9:57 PM, flexaustin <[EMAIL PROTECTED]> wrote:
> Is it possible using MXML, not AS3 classes, to keep an item out of the
> updateDisplayList and/or the measure() method?
>
> I have an icon that is 30px by 30px and needs to remain centered
> within a component. But the catch is that if someone clicks the icon
> it will show another state where I add a graph underneath the icon.
> This works fine but what happens is that flex on the next
> updatedisplaylist and measure call it sees the new graph then centers
> on the icon + graph, which I don't want to happen. I don't want Flex
> to know it exists.
>
> Isn't there a property for?
>
>
> 


Re: [flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread Ralf Bokelberg
I see. Have you tried a binding function to do this?

 wrote:
> I wanna format the datas receive before passing them to dataProvider
> of the repeater.
>
> --- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
>
> <[EMAIL PROTECTED]> wrote:
>>
>> I'm not sure if you can subclass mx:Repeater. What are you trying to
>> do with your repeater subclass?
>>
>> Ralf.
>>
>> On Mon, Oct 20, 2008 at 12:16 PM, lysfael <[EMAIL PROTECTED]> wrote:
>> > Re,
>> >
>> > I made a component based on the repeater, to have the control on the
>> > datas.
>> >
>> > and i use it like i should use a repeater.
>> >
>> > i have an error on the compil.
>> >
>> > Symbol
>> > '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
>> > multiply defined in
>> > _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
>> > and
>> >
> C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
>> > IG_ModuleCore
>> >
>> > i use the component like this
>> >
>> > 
>> > 
>> > 
>> >
>> > where the setter specialDatas format the datas and set
>> > this.dataProvider with the correct datas.
>> >
>> > --- In flexcoders@yahoogroups.com, "lysfael"  wrote:
>> >>
>> >> Hello,
>> >>
>> >> Sorry for the absence,
>> >>
>> >> These datas are an example of the datas that i get from my
> HttpService.
>> >>
>> >> 
>> >> OUV
>> >> 
>> >> 5
>> >> 
>> >> 
>> >> ETA
>> >> 
>> >> 5
>> >> 
>> >>
>> >> These datas should match the repeater F0010_T0056 which contains the
>> >> following components :
>> >> TextInput Id = F0010_48
>> >> Label Id = F0010_49
>> >> TextInput Id = F0010_50.
>> >>
>> >> In the other post Tom Chiverton told me this
>> >>
>> >> "You could use a setter method (i.e. public function set
>> >> myDatas(d:*):void{}). If you need more control over what happens,
> or a
>> >> changeWatcher inside the component observing the public bindable."
>> >>
>> >> Like you said i think i'm making it harder than what it needs to be.
>> >> I'll think a bit for a much more simple solution and keep you posted.
>> >> I think to do something like Tom said.
>> >>
>> >>
>> >>
>> >>
>> >> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>> >> >
>> >> > Yes, I still think Lysfael may be approaching this incorrectly,
>> > probably
>> >> > making it harder than it needs to be. There is rarely a good
>> > reason to
>> >> > use the document model hierarchy to manipulate data driven
> components.
>> >> >
>> >> >
>> >> >
>> >> > Lysfael, can you explain again what you are trying to do?
>> >> >
>> >> >
>> >> >
>> >> > What data is the dataProvider for the repeater?
>> >> >
>> >> >
>> >> >
>> >> > Is that data different from the data you are trying to show in the
>> >> > repeated controls?
>> >> >
>> >> >
>> >> >
>> >> > Tracy
>> >> >
>> >> >
>> >> >
>> >> > 
>> >> >
>> >> > From: flexcoders@yahoogroups.com
>> > [mailto:[EMAIL PROTECTED] On
>> >> > Behalf Of Amy
>> >> > Sent: Thursday, October 16, 2008 5:51 PM
>> >> > To: flexcoders@yahoogroups.com
>> >> > Subject: [flexcoders] Re: Repeater control and custom Component
>> >> >
>> >> >
>> >> >
>> >> > --- In flexcoders@yahoogroups.com
>> > <mailto:flexcoders%40yahoogroups.com>
>> >> > , "lysfael"  wrote:
>> >> > >
>> >> > > Hello,
>> >> > >
>> >> > > Since it's not the same problem as the old one, i post a new
>> > topic on
>> >> > > this, i hope this way to do enter in the ToS.
>> >> > >
>> >> > > I created a component Box-Based, which contains a repeater
> and some
>> >> > > other attributes.
>> >> > >
>> >> > > Since my english isn't perfect i'll post part of the code i
> produced
>> >> > > and tell you what's the problem now.
>> >> >
>> >> > There is no point using a repeater from AS. This is one component
>> > that
>> >> > you should use in MXML if you want to use it.
>> >> >
>> >>
>> >
>> >
>>
>
> 


Re: [flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread Ralf Bokelberg
I'm not sure if you can subclass mx:Repeater. What are you trying to
do with your repeater subclass?

Ralf.

On Mon, Oct 20, 2008 at 12:16 PM, lysfael <[EMAIL PROTECTED]> wrote:
> Re,
>
> I made a component based on the repeater, to have the control on the
> datas.
>
> and i use it like i should use a repeater.
>
> i have an error on the compil.
>
> Symbol
> '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
> multiply defined in
> _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
> and
> C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
> IG_ModuleCore
>
> i use the component like this
>
> 
> 
> 
>
> where the setter specialDatas format the datas and set
> this.dataProvider with the correct datas.
>
> --- In flexcoders@yahoogroups.com, "lysfael" <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> Sorry for the absence,
>>
>> These datas are an example of the datas that i get from my HttpService.
>>
>> 
>> OUV
>> 
>> 5
>> 
>> 
>> ETA
>> 
>> 5
>> 
>>
>> These datas should match the repeater F0010_T0056 which contains the
>> following components :
>> TextInput Id = F0010_48
>> Label Id = F0010_49
>> TextInput Id = F0010_50.
>>
>> In the other post Tom Chiverton told me this
>>
>> "You could use a setter method (i.e. public function set
>> myDatas(d:*):void{}). If you need more control over what happens, or a
>> changeWatcher inside the component observing the public bindable."
>>
>> Like you said i think i'm making it harder than what it needs to be.
>> I'll think a bit for a much more simple solution and keep you posted.
>> I think to do something like Tom said.
>>
>>
>>
>>
>> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>> >
>> > Yes, I still think Lysfael may be approaching this incorrectly,
> probably
>> > making it harder than it needs to be. There is rarely a good
> reason to
>> > use the document model hierarchy to manipulate data driven components.
>> >
>> >
>> >
>> > Lysfael, can you explain again what you are trying to do?
>> >
>> >
>> >
>> > What data is the dataProvider for the repeater?
>> >
>> >
>> >
>> > Is that data different from the data you are trying to show in the
>> > repeated controls?
>> >
>> >
>> >
>> > Tracy
>> >
>> >
>> >
>> > 
>> >
>> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
>> > Behalf Of Amy
>> > Sent: Thursday, October 16, 2008 5:51 PM
>> > To: flexcoders@yahoogroups.com
>> > Subject: [flexcoders] Re: Repeater control and custom Component
>> >
>> >
>> >
>> > --- In flexcoders@yahoogroups.com
> 
>> > , "lysfael"  wrote:
>> > >
>> > > Hello,
>> > >
>> > > Since it's not the same problem as the old one, i post a new
> topic on
>> > > this, i hope this way to do enter in the ToS.
>> > >
>> > > I created a component Box-Based, which contains a repeater and some
>> > > other attributes.
>> > >
>> > > Since my english isn't perfect i'll post part of the code i produced
>> > > and tell you what's the problem now.
>> >
>> > There is no point using a repeater from AS. This is one component
> that
>> > you should use in MXML if you want to use it.
>> >
>>
>
> 


Re: [flexcoders] Module Interfaces Inheritance question

2008-10-17 Thread Ralf Bokelberg
It has to do with the ApplicationDomain. Unless otherwise specified, a
module lives in its own ApplicationDomain. This way it can have its
own copies of every class. If you load the modules into the same
ApplicationDomain as the main application, the warning should be gone
as well. Its just, in this case the classes are still included in all
of the modules.

Ralf.

On Fri, Oct 17, 2008 at 2:23 PM, Purushottam Yeluripati
<[EMAIL PROTECTED]> wrote:
> Thank you for your response, Ralf. I am going to try that option as well.
> But I am still not clear on why the current setup does not work. I have
> ensured (through explicit package import and variable declaration in MyApp)
> that IAppModule, IModule1 and IModule2 are all referenced within the main
> application.
>
> I have been trying a host of other things such as trying to load all the
> modules into the same domain as the application, but no luck there either :(
>
> - Original Message 
> From: Ralf Bokelberg <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, October 17, 2008 2:36:19 AM
> Subject: Re: [flexcoders] Module Interfaces Inheritance question
>
> Hi Purush
>
> I think iAppModule needs to go into a library project, which is
> referenced by the modules but marked as external, while it is embedded
> completely in the main application.
>
> Ralf.
>
> On Fri, Oct 17, 2008 at 2:51 AM, purush_y <[EMAIL PROTECTED] com> wrote:
>> Hi,
>> I did a basic search on this topic and read a few posts, but I
>> think my case seems to be a little different here. I have a fairly
>> large application that I am designing to be broken into one main
>> application that loads multiple modules as required.
>>
>> My main application implements an IMyApp interface with one method
>> right now:
>> getModule(modName: String):*
>>
>> All my modules implement a generic IAppModule interface which includes
>> 2 methods:
>> -initModule( ) Called after loading and creation of module
>> -handleEvent( evt:Event) : Called whenever an event such as MenuEvent
>> etc need to be passed to the module.
>>
>> Each of the modules implement a specific interface, for eg. Module1
>> implements IModule1 which extends IAppModule, and Module2 implements
>> IModule2 which also extends IAppModule to expose specific
>> functionality within each of the module.
>>
>> So I have the following package structure and classes with their
>> interfaces:
>> 1) class a.MyApp implements a.mod.common. IMyApp (My main app)
>> 2) interface a.mod.common. IModule1 extends interface
>> a.mod.common. IAppModule
>> 3) interface a.mod.common. IModule2 extends interface
>> a.mod.common. IAppModule
>> 4) class a.mod.mod1.Module1 implements
>> a.mod.common. IModule1 (Module 1 compiles to Module1.swf)
>> 5) class a.mod.mod2.Module 2 implements
>> a.mod.common. IModule2 (Module 2 compiles to Module2.swf)
>>
>> My main application handles the logic of loading all the modules at
>> starting and as required as runtime and any module requiring access to
>> another module asks the main application (through the IMyApp
>> interface) for a handle to the other module.
>>
>> Here is my problem. I am trying to access IModule2 from within
>> Module1. I use IMyApp.getModule( "Module2" ) to get a handle to the
>> second module, but when I try to downcast it to IModule2, it throws me
>> an error saying it encountered error with the type coercion. In the
>> error detail it says that it cannot convert
>> a.mod.mod2.Module2 to a.mod.common. IModule2 which
>> stumps me as the class implements that specific interface.
>>
>> If I include all methods from IModule1 and IModule2 into the base
>> interface IAppModule, remove IModule2 entirely and try to cast the
>> IMyApp.getModule( "Module2" ) to IAppModule, it works fine, but this is
>> not what I was looking for. I will end up with one monolithic
>> IAppModule with every method from every module interface. I am not
>> sure what I am missing here. Is there a problem with interface
>> inheritance and modules? When I run a link report for the modules, I
>> am not sure if I am reading the report right, but I do not see
>> IModule2 interface as part of the definitions within script Module2.
>>
>> Can someone please point me in the right direction for this problem?
>>
>> Thank you for your help,
>> Purush
>
> 


Re: [flexcoders] Module Interfaces Inheritance question

2008-10-16 Thread Ralf Bokelberg
Hi Purush

I think iAppModule needs to go into a library project, which is
referenced by the modules but marked as external, while it is embedded
completely in the main application.

Ralf.


On Fri, Oct 17, 2008 at 2:51 AM, purush_y <[EMAIL PROTECTED]> wrote:
> Hi,
> I did a basic search on this topic and read a few posts, but I
> think my case seems to be a little different here. I have a fairly
> large application that I am designing to be broken into one main
> application that loads multiple modules as required.
>
> My main application implements an IMyApp interface with one method
> right now:
> getModule(modName:String):*
>
> All my modules implement a generic IAppModule interface which includes
> 2 methods:
> -initModule() Called after loading and creation of module
> -handleEvent(evt:Event): Called whenever an event such as MenuEvent
> etc need to be passed to the module.
>
> Each of the modules implement a specific interface, for eg. Module1
> implements IModule1 which extends IAppModule, and Module2 implements
> IModule2 which also extends IAppModule to expose specific
> functionality within each of the module.
>
> So I have the following package structure and classes with their
> interfaces:
> 1) class a.MyApp implements a.mod.common.IMyApp (My main app)
> 2) interface a.mod.common.IModule1 extends interface
> a.mod.common.IAppModule
> 3) interface a.mod.common.IModule2 extends interface
> a.mod.common.IAppModule
> 4) class a.mod.mod1.Module1 implements
> a.mod.common.IModule1 (Module 1 compiles to Module1.swf)
> 5) class a.mod.mod2.Module 2 implements
> a.mod.common.IModule2 (Module 2 compiles to Module2.swf)
>
> My main application handles the logic of loading all the modules at
> starting and as required as runtime and any module requiring access to
> another module asks the main application (through the IMyApp
> interface) for a handle to the other module.
>
> Here is my problem. I am trying to access IModule2 from within
> Module1. I use IMyApp.getModule("Module2") to get a handle to the
> second module, but when I try to downcast it to IModule2, it throws me
> an error saying it encountered error with the type coercion. In the
> error detail it says that it cannot convert
> a.mod.mod2.Module2 to a.mod.common.IModule2 which
> stumps me as the class implements that specific interface.
>
> If I include all methods from IModule1 and IModule2 into the base
> interface IAppModule, remove IModule2 entirely and try to cast the
> IMyApp.getModule("Module2") to IAppModule, it works fine, but this is
> not what I was looking for. I will end up with one monolithic
> IAppModule with every method from every module interface. I am not
> sure what I am missing here. Is there a problem with interface
> inheritance and modules? When I run a link report for the modules, I
> am not sure if I am reading the report right, but I do not see
> IModule2 interface as part of the definitions within script Module2.
>
> Can someone please point me in the right direction for this problem?
>
> Thank you for your help,
> Purush


Re: [flexcoders] Custom index.template.html for each new project

2008-10-16 Thread Ralf Bokelberg
What about creating a empty project, which contains your settings and
copy this stuff over to the new project?
Cheers
Ralf.

On Thu, Oct 16, 2008 at 7:41 PM, Mark Lapasa <[EMAIL PROTECTED]> wrote:
> bumpanybody?
>
>
> Mark Lapasa wrote:
>
> How can I edit the index.template.html so that everytime I create a Flex
> Project, it will always load up my custom template.
>
> I find myself always copying and pasting from a working index.template.html
> from another project everytime I create a new one.
>
> Thx,
> -mL
>
> 
> Notice of confidentiality:
> The information contained in this e-mail is intended only for the use of the
> individual or entity named above and may be confidential. Should the reader
> of this message not be the intended recipient, you are hereby notified that
> any unauthorized dissemination, distribution or reproduction of this message
> is strictly prohibited. If you have received this message in error, please
> advise the sender immediately and destroy the e-mail.
>
>
> --
>
> Mark Lapasa | Developer | [EMAIL PROTECTED] | Tier1CRM Inc. | T:
> 416.932-4784 | www.Tier1CRM.com
>
>
>
> Tier1CRM Inc. formerly StraightThrough CRM Solutions Inc.
>
>
>
> 
> Notice of confidentiality:
> The information contained in this e-mail is intended only for the use of the
> individual or entity named above and may be confidential. Should the reader
> of this message not be the intended recipient, you are hereby notified that
> any unauthorized dissemination, distribution or reproduction of this message
> is strictly prohibited. If you have received this message in error, please
> advise the sender immediately and destroy the e-mail.
> 


Re: [flexcoders] Re: Obtaining name of method

2008-10-04 Thread Ralf Bokelberg
I've done it in Cairngorm before. My business delegate extends the
flash.utils.Proxy class and forwards all the calls to the backend. To
make this work, you have to make the delegate dynamic though. This
means you loose some type safety.

Ralf


On Sat, Oct 4, 2008 at 12:42 AM, frank_sommers <[EMAIL PROTECTED]> wrote:
> Thanks. I wonder how the describeType() function does its work... that seems
> to have
> access to some reflective information about a class.
>
> Actually, I have a system that uses BlazeDS for remote calls. What I'd like
> to do is to be
> able to automatically proxy server-side classes: given a method name on the
> local proxy,
> I want to be able automatically dispatch a remote method with the same name
> and same
> arguments to the server. The calls are made asynchronously and dispatch
> events when
> they return. Right now I have to refer to the current method name with a
> String. That's
> duplicate information, and also doesn't enforce that the local and remote
> method names
> are the same. I'd hate to use code generation for this, so if a
> Function.name property
> existed, that'd do the trick.
>
> Thanks,
>
> -- Frank
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>>
>> I bet you are trying to find a nifty way to log your code's processing,
>> right? This comes up a lot and really, there is no good way to do it.
>>
>>
>>
>> You might try the archives, in case I missed something, but if I'd ever
>> heard a good solution I would have used it myself.
>>
>>
>>
>> Tracy
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>> Behalf Of frank_sommers
>> Sent: Thursday, September 25, 2008 12:39 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Obtaining name of method
>>
>>
>>
>> Hi,
>>
>> I'm looking for a way to obtain the name of method, given a Function
>> object.
>>
>> For instance, inside a method, I can obtain a reference to the method by
>> calling
>> arguments.callee. But how do I then obtain from the Function object the
>> function's name:
>>
>> public function testFunction():void {
>> var f:Function = arguments.callee;
>> // How do I get f's name (e.g., "testFunction") here?
>> }
>>
>> I was thinking of iterating through the object's properties, and finding
>> if a given property
>> is the function itself, but this only works for methods dynamically
>> added to the object:
>>
>> public function testFunction():void {
>> var f:Function = arguments.callee;
>> for (var p:String in this) {
>> if (f == this[p]) {
>> // Function name is p
>> }
>> }
>> }
>>
>> Again, this doesn't work.
>>
>> Any suggestions would be appreciated.
>>
>> Thanks,
>>
>> -- Frank
>>
>
> 


Re: [flexcoders] Flex Builder Does Not Compile Module

2008-09-29 Thread Ralf Bokelberg
Hi Ilike

Can you make sure, that AutoInsurance is added as a application to the
project properties?

Cheers
Ralf.

On Mon, Sep 29, 2008 at 7:37 PM, ilikeflex <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am using module to create application.I have taken sample from
> http://blogs.adobe.com/flexdoc/2007/01/modules_documentation_update.ht
> ml
>
> I have put the following files into seprate project.
> AutoInsurance.mxml(Is a module)
> IModuleInterface.as
> Main.mxml
>
> Now when i run Main.mxml file.AutoInsurance.mxml is not compiled and
> seprate AutoInsurance.swf is not generated. Though doc below says
> that it should happen. Is this bug.
>
> Flex Documentation says
>
> "In Flex Builder, you can either run the module as if it were an
> application or you can build the module's project. If the modules are
> in the same project as your Flex application, then when you run your
> application, Flex Builder compiles the modules' SWF files for you.
> The SWF files are then loaded into the application at run time. "
>
> Please let me know if there is anothe group for flex builder
>
> Thanks
> ilikeflex
>
> 


Re: [flexcoders] AS3 - single-fire event listener

2008-09-27 Thread Ralf Bokelberg
arguments.callee?

Cheers
Ralf.

On Sat, Sep 27, 2008 at 2:12 AM, Matt Bennett <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> In certain javascript libraries I've used previously, there is the
> ability to create a single-fire event listener -- one that
> automatically removes itself as a listener immidiately after it has
> executed.
>
> I'd really like a generic solution that just involved an overridden
> 'addEventListener' function and an optional 'single-fire' argument.
> Hopefully someone out there has solved this problem already.
>
> In the mean time however, I tried a more simplistic approach - calling
> removeEventListener inside my listener function, so it runs once and
> then removes itself. I can't get this approach to work for anonymous
> functions though, because I don't know how the anonymous function can
> refer to itself. There doesn't appear to be anything useful in the
> Event object passed to the listener, the 'this' keyword refers to
> something else, and I don't know how to alter the scope with which the
> listener function is called.
>
> Does anyone have a simple way to acheive this?
>
> Many thanks,
> Matt.
>
> 


Re: [flexcoders] Obtaining name of method

2008-09-26 Thread Ralf Bokelberg
describeType gives you the names of public properties.
You would have to retrieve all the function properties and compare
them to your callee to know which name it has.

Cheers
Ralf.

On Thu, Sep 25, 2008 at 6:38 AM, frank_sommers <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm looking for a way to obtain the name of method, given a Function object.
>
> For instance, inside a method, I can obtain a reference to the method by
> calling
> arguments.callee. But how do I then obtain from the Function object the
> function's name:
>
> public function testFunction():void {
> var f:Function = arguments.callee;
> // How do I get f's name (e.g., "testFunction") here?
> }
>
> I was thinking of iterating through the object's properties, and finding if
> a given property
> is the function itself, but this only works for methods dynamically added to
> the object:
>
> public function testFunction():void {
> var f:Function = arguments.callee;
> for (var p:String in this) {
> if (f == this[p]) {
> // Function name is p
> }
> }
> }
>
> Again, this doesn't work.
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> -- Frank
>
> 


Re: [flexcoders] Re: Bad quality for JPEG encoded images ,,<***(sample images INSIDE)***>

2008-09-24 Thread Ralf Bokelberg
Actually i always found Flash/Flex to be rather good in converting
images. What exactly is your workflow?

Cheers
Ralf.

On Wed, Sep 24, 2008 at 4:46 PM, semelak1 <[EMAIL PROTECTED]> wrote:
> Where can I get it from ?? I thought it is not yet available !!
> My project is pending because of these low quality images...
>
> --- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]>
> wrote:
>
>>
>> There is a compiler that can take C / C++ code and output
> Actionscript
>> that you might want to take a look at.
>>
>>
>>
>> Gk.
>>
>> Gregor Kiddie
>> Senior Developer
>> INPS
>>
>> Tel: 01382 564343
>>
>> Registered address: The Bread Factory, 1a Broughton Street, London
> SW8
>> 3QJ
>>
>> Registered Number: 1788577
>>
>> Registered in the UK
>>
>> Visit our Internet Web site at www.inps.co.uk
>> http://www.inps.co.uk/>
>>
>> The information in this internet email is confidential and is
> intended
>> solely for the addressee. Access, copying or re-use of information
> in it
>> by anyone else is not authorised. Any views or opinions presented
> are
>> solely those of the author and do not necessarily represent those of
>> INPS or any of its affiliates. If you are not the intended recipient
>> please contact [EMAIL PROTECTED]
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
>> Behalf Of semelak1
>> Sent: 23 September 2008 09:45
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Re: Bad quality for JPEG encoded images
>> ,,<***(sample images INSIDE)***>
>>
>>
>>
>> Is it possible to use external libraries with Flex/Air ??? Say I
> found
>> a c++ or c sharp class that does the image encoding,,, can I call it
>> and make use of it in my AIR application ??
>>
>> --- In flexcoders@yahoogroups.com
> 
>> , "semelak1"  wrote:
>> >
>> > I have noticed that the quality of the images produced by the
>> > JPEGEncoder does not match that of other encoders available (i.e.
>> > php's built in image compression functions from the gd library)
>> >
>> > Any explanation ? or hints/workarounds for improving the quality
> of
>> > compressed images by JPEGEncoder ??
>> >
>> > Please have a look at the following samples:
>> >
>> > original image:
>> > http://img212.imageshack.us/img212/5930/67624460qh5.jpg
>> 
>> > Size: 110KB
>> >
>> > Image encoded with JPEGAsync (same effect with JPEGEncoder):
>> > http://img136.imageshack.us/img136/3554/77570198qp0.jpg
>> 
>> > Size:46.7KB
>> >
>> > Image encoded with Php's built-in functions (gd library):
>> > http://img382.imageshack.us/img382/7751/1492if8.jpg
>> 
>> > Size:33.4KB
>> > Much smoother than the JPEGAsyncencoder and JPEGEncoder version..
>> and
>> > smaller too
>> >
>> >
>> > Any hints ? or workarounds to improve the quality of the encoded
>> > images ?
>> >
>>
>
> 


Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
Of cause. This makes perfect sense. We don't want to reference the class.

Cheers
Ralf.

On Wed, Sep 24, 2008 at 10:25 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> You can't have an object of a type that's not part of the VM at runtime, but
> it doesn't include any classes into the swf of the class making that call.
> It returns a String, which you can then use with getDefinitionByName()
> without ever knowing (or referencing) the Class object.
>
> -Josh
>
> On Wed, Sep 24, 2008 at 5:52 PM, Ralf Bokelberg <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi Josh
>>
>> Does it work without the class beeing linked to the project? Is it a
>> compiler instruction?
>>
>> Cheers
>> Ralf.
>>
>>
>> On Wed, Sep 24, 2008 at 9:19 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>> > getFullyQualifiedClassName(instance);
>> >
>> > -Josh
>> >
>> > On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg
>> > <[EMAIL PROTECTED]>
>> > wrote:
>> >>
>> >> I don't think this is possible, unless you put the class name in a
>> >> string property of your object. If you want to use introspection (eg.
>> >> is, instanceof, describeType), the class itself has to be available,
>> >> otherwise there is nothing to introspect really.
>> >>
>> >> Cheers
>> >> Ralf.
>> >>
>> >> On Wed, Sep 24, 2008 at 12:53 AM, pratikshah83 <[EMAIL PROTECTED]>
>> >> wrote:
>> >> > Hi Guys,
>> >> >
>> >> > I would like to know if there is any other way to find out if the
>> >> > object is of a particular type.
>> >> >
>> >> > I am currently using the "IS" keyword to check if the object is of a
>> >> > particular type. (Object is Type)
>> >> >
>> >> > But doing that is loading the complete class in the swf file which if
>> >> > increasing the size of the swf to a great extend and affecting the
>> >> > performance of the application.
>> >> >
>> >> > Can you suggest me any way to check for an object is of some type
>> >> > which would not increase the swf size of than (Object is Type).
>> >> >
>> >> > Thanks
>> >> > Pratik
>> >> >
>> >> >
>> >>
>> >> 
>> >>
>> >> --
>> >> Flexcoders Mailing List
>> >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> >> Alternative FAQ location:
>> >>
>> >> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> >> Search Archives:
>> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> >> Links
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > "Therefore, send not to know For whom the bell tolls. It tolls for
>> > thee."
>> >
>> > http://flex.joshmcdonald.info/
>> >
>> > :: Josh 'G-Funk' McDonald
>> > :: 0437 221 380 :: [EMAIL PROTECTED]
>> >
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> http://flex.joshmcdonald.info/
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
Hi Josh

Does it work without the class beeing linked to the project? Is it a
compiler instruction?

Cheers
Ralf.


On Wed, Sep 24, 2008 at 9:19 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> getFullyQualifiedClassName(instance);
>
> -Josh
>
> On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg <[EMAIL PROTECTED]>
> wrote:
>>
>> I don't think this is possible, unless you put the class name in a
>> string property of your object. If you want to use introspection (eg.
>> is, instanceof, describeType), the class itself has to be available,
>> otherwise there is nothing to introspect really.
>>
>> Cheers
>> Ralf.
>>
>> On Wed, Sep 24, 2008 at 12:53 AM, pratikshah83 <[EMAIL PROTECTED]>
>> wrote:
>> > Hi Guys,
>> >
>> > I would like to know if there is any other way to find out if the
>> > object is of a particular type.
>> >
>> > I am currently using the "IS" keyword to check if the object is of a
>> > particular type. (Object is Type)
>> >
>> > But doing that is loading the complete class in the swf file which if
>> > increasing the size of the swf to a great extend and affecting the
>> > performance of the application.
>> >
>> > Can you suggest me any way to check for an object is of some type
>> > which would not increase the swf size of than (Object is Type).
>> >
>> > Thanks
>> > Pratik
>> >
>> >
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> http://flex.joshmcdonald.info/
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
I don't think this is possible, unless you put the class name in a
string property of your object. If you want to use introspection (eg.
is, instanceof, describeType), the class itself has to be available,
otherwise there is nothing to introspect really.

Cheers
Ralf.

On Wed, Sep 24, 2008 at 12:53 AM, pratikshah83 <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I would like to know if there is any other way to find out if the
> object is of a particular type.
>
> I am currently using the "IS" keyword to check if the object is of a
> particular type. (Object is Type)
>
> But doing that is loading the complete class in the swf file which if
> increasing the size of the swf to a great extend and affecting the
> performance of the application.
>
> Can you suggest me any way to check for an object is of some type
> which would not increase the swf size of than (Object is Type).
>
> Thanks
> Pratik
>
> 


Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Ralf Bokelberg
Also shouldn't it be
BindingUtils.bindProperty(this,"xyz",MyModel.getInstance(),"someVar");

Note the "()" after getInstance
r.

On Tue, Sep 23, 2008 at 1:21 PM, jitendra jain
<[EMAIL PROTECTED]> wrote:
> BindingUtils will automatically notify "this" object about Property change
> event.
> Make sure xyz is bindable.
>
>
> Example look below:
>
>
> BindingUtils.bindProperty(textBox,
>
> "text",grpCbx.selectedItem,"value");
>  Here my textBox ix TextInput control and grpCbx is Combo Box . I used this
> statement in creation complete
> So whenever my combo box selected item changes , it automatically binds into
> the TextInput Control.
>
> Let me know your view and also if possible paste some part of the code.
>
>
> Thanks,
>
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
>
> - Original Message 
> From: Manu Dhanda <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, 23 September, 2008 4:43:12 PM
> Subject: Re: [flexcoders] [Bindable] is not getting updated..
>
>
> Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..)
> to
> happen ??
>
> Cuz, I am not getting my "xyz" var changed with the change in someVar.
>
> Note: I am putting this line of code
> (BindingUtils.. bindProperty( this,"xyz" ,MyModel. getInstance, "someVar" )
> in
> creationComplete( ).
>
> Thanks,
> Manu.
>
> jitendra jain wrote:
>>
>> sorry, use this
>> BindingUtils. bindProperty( this,"xyz" ,MyModel. getInstance, "someVar" );
>>  Thanks,
>>
>> with Regards,
>> Jitendra Jain
>> Software Engineer
>> 91-9979960798
>>
>>
>>
>> - Original Message 
>> From: jitendra jain 
>> To: [EMAIL PROTECTED] ups.com
>> Sent: Monday, 22 September, 2008 9:03:42 AM
>> Subject: Re: [flexcoders] [Bindable] is not getting updated..
>>
>>
>> Hi,
>>
>> Instead of this use
>> BindingUitls. bindProperty( this,"xyz" ,MyModel, getInstance( ).someVar) ;
>> This statement is called in the creationComplete of the component.
>> Cheers it will work..
>>  Thanks,
>>
>> with Regards,
>> Jitendra Jain
>> Software Engineer
>> 91-9979960798
>>
>>
>>
>> - Original Message 
>> From: Manu Dhanda 
>> To: [EMAIL PROTECTED] ups..com
>> Sent: Monday, 22 September, 2008 8:56:09 AM
>> Subject: Re: [flexcoders] [Bindable] is not getting updated..
>>
>>
>>
>> Josh,
>>
>> Is it a right way to do the following:
>>
>> [Bindable] private var xyz:String = MyModel.getInstance ().someVar;
>>
>> Now, if I use xyz in my code then it is not updated. Where as if i use
>> 'MyModel.getInstanc e().someVar' then I am getting perfect result.
>>
>> For Ex:
>>
>>  // view not updated with changes in model.
>>  //view updated
>> everytime
>> with changes in model..
>>
>> So, I didn't get the difference between two above logically.
>>
>> Please explain the case as above. Thanks.
>>
>> Josh McDonald-4 wrote:
>>>
>>> I get what you're saying, but you're coming at it from the wrong angle is
>>> all.
>>>
>>> When you have this:
>>>
>>> [Bindable]
>>> public var myvar = someFunction( );
>>>
>>> You're making it so that *other code* will be called when myvar changes.
>>> You're also giving it the initial value of someFunction( ). It won't
>>> "escape"
>>> back into the code for someFunction( ) and alter it so it becomes
>>> bindable.
>>> We need to have a difference betwen "X = Y" and "create a binding from X
>>> to
>>> Y", otherwise the entire virtual machine would slow to a crawl.
>>>
>>> If you want to create a binding from actionscript from
>>> "sourceObject. someValue" to "myValue" you do this:
>>>
>>> BindingUtils. bindProperty( this, "myValue", sourceObject, "someValue") ;
>>>
>>> Then whenever sourceObject tells the word that "someValue" has been
>>> updated
>>> (with events), Flex will set the "myValue" field on your object.
>>>
>>> -Josh
>>>
>>> On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda
>>> wrote:
>>>

 Hi Paul,

 if [Bindable] works just for initialization, then I think it is loosing
 it's
 existence altogether.

 At least I think it this way.. that [Bindable] changes with every change
 that it is bind to. And not just it's initialization. .

 Waiting for expert comments..

 Thanks,
 Manu.


 Paul Andrews-4 wrote:
 >
 > - Original Message -
 > From: "Manu Dhanda" 
 > To: 
 > Sent: Monday, September 22, 2008 3:08 AM
 > Subject: [flexcoders] [Bindable] is not getting updated..
 >
 >
 >>
 >> Hii Guyz,
 >>
 >> Although it's very strange (even for me), but this [Bindable] tag is
 not
 >> working for me.
 >>
 >> I am following the cairngorm structure and storing a variable in
 Model.
 >>
 >> Now, in one of my code file, if I 'll create a local bindable
 variable,
 >> that
 >> binds to model.. then it is not being updated with the changes in
 model.
 >>
 >> [Bindable] private var xyz:String = MyModel.getInstance ().someVar;
 >>
 >> Now, if I use x

Re: [flexcoders] Re: Preventing cut&paste in Flex3 application

2008-09-22 Thread Ralf Bokelberg
Is this a technical or a grandmas-complaining-about-managers forum ? :)

You can probably add capturing phase listeners to the SystemManager
and filter out the events your managers dont like ;)

Cheers
Ralf.


Re: [flexcoders] Overriding the UI Graphics Update?

2008-09-22 Thread Ralf Bokelberg
You might want to have a look at this excerpt from Colin Mook's AS3 book:
http://www.moock.org/blog/archives/000235.html
It should give you a good understanding of how rendering works in Flash/Flex.
Cheers
Ralf.


On Mon, Sep 22, 2008 at 7:15 PM, Ralf Bokelberg
<[EMAIL PROTECTED]> wrote:
> Afaik the Flashplayer does this for you. Nothing is rendered as long
> as you are in a script. You can try to draw a line and then do a
> simple while loop for 5 seconds. You will not see any updates of the
> screen.
>
> Cheers
> Ralf.
>
> On Mon, Sep 22, 2008 at 5:05 PM, Samuel Colak <[EMAIL PROTECTED]> wrote:
>> Alex, Adobe Guys, Community, Romans.
>>
>> Is there a way to halt the UI Graphics Renderer so that (in a way) you
>> can achieve the ability to post UI changes (in effect double
>> buffering) before
>> the renderer performs any UI update ? An obvious although troublesome
>> way of doing this is with bitmap however the routines for drawing do not
>> appear to be common between BitmapData and DisplayObject.
>>
>> Such like under DisplayObject
>>
>> graphics.unlock; // disassociate graphics device from
>> renderer...
>> graphics.[do stuff here] // misc graphics routines...
>> graphics.lock; // re-associate renderer to graphics device and
>> flush activity to renderer
>>
>> (lock/unlock might be switched depending upon your perspective to the
>> renderer)
>>
>> I might be jumping the gun with you guys producing some hardware
>> acceleration so if i am apologies in advance.
>>
>> I am also aware that there is a possibility that if the re-associate
>> does not take place, then all other render activity might be lost
>> so obviously
>> this is not something that you do on a whim. Since everything is more
>> of less sequential then im pretty sure that most programmers would not
>> forget to do this.
>


Re: [flexcoders] Overriding the UI Graphics Update?

2008-09-22 Thread Ralf Bokelberg
Afaik the Flashplayer does this for you. Nothing is rendered as long
as you are in a script. You can try to draw a line and then do a
simple while loop for 5 seconds. You will not see any updates of the
screen.

Cheers
Ralf.

On Mon, Sep 22, 2008 at 5:05 PM, Samuel Colak <[EMAIL PROTECTED]> wrote:
> Alex, Adobe Guys, Community, Romans.
>
> Is there a way to halt the UI Graphics Renderer so that (in a way) you
> can achieve the ability to post UI changes (in effect double
> buffering) before
> the renderer performs any UI update ? An obvious although troublesome
> way of doing this is with bitmap however the routines for drawing do not
> appear to be common between BitmapData and DisplayObject.
>
> Such like under DisplayObject
>
> graphics.unlock; // disassociate graphics device from
> renderer...
> graphics.[do stuff here] // misc graphics routines...
> graphics.lock; // re-associate renderer to graphics device and
> flush activity to renderer
>
> (lock/unlock might be switched depending upon your perspective to the
> renderer)
>
> I might be jumping the gun with you guys producing some hardware
> acceleration so if i am apologies in advance.
>
> I am also aware that there is a possibility that if the re-associate
> does not take place, then all other render activity might be lost
> so obviously
> this is not something that you do on a whim. Since everything is more
> of less sequential then im pretty sure that most programmers would not
> forget to do this.


Re: [flexcoders] Tomcat giving 404 error within Eclipse? Help

2008-09-18 Thread Ralf Bokelberg
Yes, this took me some time before as well. Actually, Eclipse doesn't
run from the folder in your workspace but from a internal folder in
the .metadata directory named
.metadata\.plugins\org.eclipse.wst.server.core
For some reason Eclipse stops copying the stuff into this directory
sometimes. As far as i remember stopping Eclipse and deleting the tmp
directory inside helps.

Cheers
Ralf.



On Thu, Sep 18, 2008 at 9:01 PM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I've got a new laptop and trying to set up all my goodies on it.. I
> believe I have everything set up properly however I'm getting a 404
> error when I view my flex site.
> I start Tomcat server from within Eclipse, and I've cleaned and rebuilt the
> app.
> I see the .swf files in the WebContent folder but when I visit
> http://localhost:8080/myApp/ I get a 404 error.
>
> Root Folder shows : C:\eclipseworkspace\flexdev\myApp\WebContent
> Root URL: http://localhost:8080/myApp/
> Context root: /myApp
>
> I'm not getting this error on my old laptop.. I've checked the
> properties tab and the only difference is
> under Properties >> Java Build Path >> Libraries
> the old laptop had files listed under Web App Libraries
> This one has the same files but they aren't under any folder..
> Could this be causing the problem and if so, how do I add them under
> the Web App Libraries folder?
>
> What else can I check?
>
> HTTP Status 404 - /myApp/index.html
>
> --
>
> type Status report
>
> message /myApp/index.html
>
> description The requested resource (/myApp/index.html) is not available.
>
> --
>
> Apache Tomcat/5.5.20
>
> 


Re: [flexcoders] Bizarre XML data transformation

2008-09-17 Thread Ralf Bokelberg
That's crazy :) Can you post a small piece of the xml?

Cheers
Ralf.

On Wed, Sep 17, 2008 at 9:09 PM, cjsutherland <[EMAIL PROTECTED]> wrote:
> Once again, I've hit a roadblock with Flex for something that should
> be easy as pie.
>
> Here's the problem: I'm loading in an XML feed from Flickr, a list of
> photoset IDs. There's nothing wrong or unusual about the XML document.
>
> I load the XML into an ArrayCollection, and can view all the data just
> fine, except the ONE element I need... the ID number. Flex is
> screwing it up somehow.
>
> For example, the ID number in the XML file looks like this:
> 72157607109678346
>
> However, when Flex returns the ID number, it becomes: 72157607109678350
>
> Every ID is changed like that, but it's not consistent. The first
> one, 4 is added to the ID. In the next, 12 is subtracted. No rhyme
> or reason.
>
> What Flex is doing to this number or why it's doing it escapes me.
> I've tried copying the XML file locally and appending the ID with a
> character... it then comes across fine. So Flex thinks the ID is some
> kind of number datatype, and manipulating it somehow.
>
> Any idea how to make Flex cut that out?
>
> 


Re: [flexcoders] Ant property for compiler option "Copy non-embedded files to output folder"

2008-09-16 Thread Ralf Bokelberg
i dont know, if the mxml task has an option for it, but ant has the
copy task, which gives you a lot more flexibility i guess.

cheers
r.

On Tue, Sep 16, 2008 at 4:08 PM, srikanth_reddy_007
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using the Ant script to compile my mxml files and Using the Flex
> Builder in the compiler options Properties->Flex Compiler there is an
> option with a check-box "Copy non-embedded files to output folder"
> which will copy all the non embedded resources to a folder outside
> the generated swf. How can I tell my build target to do the same? how
> should I Set the property for ant mxmlc?
>
> Can any one please provide me the solution.
>
> Thanks,
> Srikanth
>
> 


Re: [flexcoders] package structure for different programming languages

2008-09-06 Thread Ralf Bokelberg
completely separated, but the packages can have the same structure/name
r.

On Sat, Sep 6, 2008 at 11:37 PM, ibid049 <[EMAIL PROTECTED]> wrote:
> Just an organizational question.
>
> If you have a client-server app in flex, and you have your domain-
> specific package structure, e.g. com.yahoo.groups.tech.etc., Do you
> put your AS classes within the same structure as your server-side
> classes, whatever language they're written in, or do you keep you
> language-specific classes completely separate in duplicated
> com.yahoo.groups.tech folder structures elsewhere on the hard drive?
>
> I imagine this is a preference thing, but I wanted to know how
> everyone else usually does it, specifically for ease of development
> and setting up Flex Builder.


Re: [flexcoders] BindingUtils, How to detect null values when the data type is Number???

2008-09-01 Thread Ralf Bokelberg
bindSetter?
Cheers,
Ralf.

On Mon, Sep 1, 2008 at 6:32 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> Numbers can't be null, and you might need to use your own watcher function
> if you'd like to return NaN rather than 0 when the text is empty.
>
> -Josh
>
> On Mon, Sep 1, 2008 at 2:08 PM, jitendra jain <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi Coders,
>>
>>  I have the following decalration in my User defined component .
>>
>> prodQty & rawQty are Number datatypes. txtProdLot and txtRawLot are
>> TextInputs in a Repeater Container,allItemList is an ArrayCollection
>>
>> BindingUtils.bindProperty(allItemList[i],"prodQty",txtProdLot[i],"text");
>> BindingUtils.bindProperty(allItemList[i],"rawQty",txtRawLot[i],"text");
>>
>> Everything works fine. But when my TextInput having no data that is empty,
>> it binds zero values. How can I stop that??
>>
>>  When
>> Thanks,
>>
>> with Regards,
>> Jitendra Jain
>> Software Engineer
>> 91-9979960798
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


Re: [flexcoders] Results of Direct Phone Call to Scene7.com

2008-08-28 Thread Ralf Bokelberg
> Perhaps it's time to start hosting with MacPro servers and looking more into
> QuickTime, if the worst is found to be true.

Hm. I always found to be Apple the personified greed. For example
IPhone developers are not even allowed to talk to each other. This is
just plain ridicilous, as is your whole claim. I'd check the tap,
maybe somebody put some paranoia drug into it?

Cheers,
Ralf.


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Ralf Bokelberg
I wonder, what happens, if you make a interface bindable. Does this
change the code beeing created from the implementing class?

Cheers
Ralf.

On Wed, Aug 27, 2008 at 8:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> I thought he was talking about a compile-time warning :)
>
> On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>>
>> The final class that gets listened to needs to have its property be
>> bindable.  The interface being bindable gets you past the compiler, but the
>> warning is a run-time when it actually looks at the instance it is hooking
>> up to.
>>


Re: [flexcoders] addFrameScript (will it be officially supported?)

2008-08-24 Thread Ralf Bokelberg
Exactly. Why make things easy, if you can please Enterprise developers
with a 100 lines equivalent, so they have something to show to their
boss ;)

Cheers
Ralf.

On Mon, Aug 25, 2008 at 6:26 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> That, plus "ew" :)
>
> addFrameScript() is not good for readability or maintainability when you're
> doing Flex, and I'm sure if you're trying to hook into imported assets you
> could use an event handler and simply check framenumber (and write a 5 line
> closure-generator that lets you do that as easily as addFrameScript).
>
> -Josh


Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Ralf Bokelberg
Say you are waiting for an object myDispatcher to dispatch an event myEvent.
Then you call myDispatcher.addEventListener("myEvent", addAsync(
handleSuccess, 1000 ));
Inside handleSuccess you can assert as usually. If handleSuccess is
not called within 1000 ms, the test fails.

Cheers
Ralf.


Re: [flexcoders] Re: returning an Array from an ArrayCollection

2008-08-20 Thread Ralf Bokelberg
Yep, it is the initializer for the array, which isn't correct.
Array({label: 'A', label: 'B', label: 'C', label: 'D'});
This creates an array with one object having a label property.

If you want to create an array of four objects with a label property,
you have to write it like that:
Array({label: 'A'}, {label: 'B'}, {label: 'C'}, {label: 'D'});

Ralf.

On Wed, Aug 20, 2008 at 9:33 PM, Jayson <[EMAIL PROTECTED]> wrote:
> The Array that is being passed in to the class, is in the format of
> Object, not Array. The array is coming from an ArrayCollection, and I
> am using getItemAt to reference it.
>
> Below is my PieChart class.
>
> It will display the first object in the array as an item in the chart
> legend, but only the first object. Maybe my array isn't formatted right.
>
> So if this is my array that is being passed in:
> Array({label: 'A', label: 'B', label: 'C', label: 'D'});


Re: [flexcoders] Re: returning an Array from an ArrayCollection

2008-08-20 Thread Ralf Bokelberg
Hi Jayson

What exactly is not working?

Ralf.

On Wed, Aug 20, 2008 at 8:32 PM, Jayson <[EMAIL PROTECTED]> wrote:
> Yeah, Flex suggests that when you do Array(Object) - it gives you a
> warning and suggests do to what you suggested. That didn't work for me
> either.
>
> --- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
>
> <[EMAIL PROTECTED]> wrote:
>>
>> The "as" operator might help you out, eg.
>>
>> var a : Array = SomethingFromSomwhere as Array;
>>
>> Ralf.
>>
>>
>> On Wed, Aug 20, 2008 at 7:39 PM, Jayson <[EMAIL PROTECTED]> wrote:
>> > I have a class that extends PieChart(I'm calling this CustomPie) and
>> > I'm passing in an array returned from an ArrayCollection. The new
>> > array I've called "alternateLegendData." So I define this as a public
>> > variable(Object) in the class and I can now pass in a new parameter.
>> > My goal is to use this array being passed in as the data for the
>> > PieChart legend.
>> >
>> > In mxml in CustomPie, I have
>> > alternateLegendData="{myArrayCollection.getItemAt(x)}" - this works,
>> > and it passes in the right array, but for some reason it is an Object
>> > and not an Array and I cannot manipulate it.
>> >
>> > So my problem is that I built an ArrayCollection:
>> >
>> > myArrayCollection.addItem(array1);
>> > myArrayCollection.addItem(array2);
>> > myArrayCollection.addItem(array3);
>> > myArrayCollection.addItem(array4);
>> >
>> > So essentially the ArrayCollection is, as the name states, a
>> > collection of arrays.
>> >
>> > When I do, for example, myArrayCollection.getItemAt(1), an Object is
>> > returned and not an Array.
>> >
>> > I've tried doing Array(myArrayCollection.getItemAt(1)),
>> > ArrayUtil.toArray(myArrayCollection.getItemAt(1)) - neither of these
>> > will return an array.
>> >
>> > Anyone have an idea?
>> >
>> >
>>
>
> 


Re: [flexcoders] returning an Array from an ArrayCollection

2008-08-20 Thread Ralf Bokelberg
The "as" operator might help you out, eg.

var a : Array = SomethingFromSomwhere as Array;

Ralf.


On Wed, Aug 20, 2008 at 7:39 PM, Jayson <[EMAIL PROTECTED]> wrote:
> I have a class that extends PieChart(I'm calling this CustomPie) and
> I'm passing in an array returned from an ArrayCollection. The new
> array I've called "alternateLegendData." So I define this as a public
> variable(Object) in the class and I can now pass in a new parameter.
> My goal is to use this array being passed in as the data for the
> PieChart legend.
>
> In mxml in CustomPie, I have
> alternateLegendData="{myArrayCollection.getItemAt(x)}" - this works,
> and it passes in the right array, but for some reason it is an Object
> and not an Array and I cannot manipulate it.
>
> So my problem is that I built an ArrayCollection:
>
> myArrayCollection.addItem(array1);
> myArrayCollection.addItem(array2);
> myArrayCollection.addItem(array3);
> myArrayCollection.addItem(array4);
>
> So essentially the ArrayCollection is, as the name states, a
> collection of arrays.
>
> When I do, for example, myArrayCollection.getItemAt(1), an Object is
> returned and not an Array.
>
> I've tried doing Array(myArrayCollection.getItemAt(1)),
> ArrayUtil.toArray(myArrayCollection.getItemAt(1)) - neither of these
> will return an array.
>
> Anyone have an idea?
>
> 


Re: [flexcoders] Re: The end of ActionScript 3 as an EcmaScript 4 implementation

2008-08-14 Thread Ralf Bokelberg
Why does everybody need their own language? Why not implementing a
language or multiple languages, which are well known and successful
already? We could have C#, JavaScript, Lisp, Scala, whatever running
side by side on the same virtual machine.
Cheers
Ralf.


Re: [flexcoders] Loading Stuff In Order - Advice?

2008-08-07 Thread Ralf Bokelberg
I'm using states to do this. As soon, as the data is loaded, i switch
currentState to dataLoadedState, which adds the view.

Cheers
Ralf.

On Thu, Aug 7, 2008 at 4:11 PM, nwebb <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a small application. A single view is declared in the main mxml file.
> This view loads some [remote] data upon initialisation.
>
> I  rejigged the application so that it loads in a config file first (this
> config file contains the url from which I should load the data). Initially
> the config file didn't finish loading in until after my view's
> initialization event had fired .. so the view attempted to load data but
> threw an error.
>
> To solve this I plumped for declaring my view in MXML, but changing its
> creationPolicy to "none", then calling createComponentsFromDescriptors()
> once my config had loaded. It works fine. I also realise there are various
> other ways to solve this (e.g. I could call my view's init() method
> manually, or I could add the view using ActionScript  both being done
> after the config file had loaded).
>
> I wanted to post because I'm curious to find out how other people have been
> handling situations like this, and what arguments for/against your own
> methods you have become aware of (mainly because I think it could make a
> really useful blog post). So if you can spare a moment, I would appreciate
> the feedback. For example, do you feel that it's unacceptable to make data
> requests from within a View, even in a small app, and if so what would you
> change? All that kind of stuff is useful :)
>
> Cheers,
> Neil
>
> p.s. I haven't really run in to this before because I usually don't make
> data calls from inside views (but rather in Commands). As this is a small
> application I wonder if setting up a FrontController would be overkill
> though.
>
>
> 


Re: [flexcoders] Event Phase clarification "bubbling" - please Diagram

2008-08-06 Thread Ralf Bokelberg
Here is a simple example, which demonstrates what the docs say



http://www.adobe.com/2006/mxml";
layout="absolute"
applicationComplete="main()">














output
1 TestBubbling0.hb2.b1 TestBubbling0
1 TestBubbling0.hb2.b1 TestBubbling0.hb2
2 TestBubbling0.hb2.b1 TestBubbling0.hb2.b1
3 TestBubbling0.hb2.b1 TestBubbling0.hb2
3 TestBubbling0.hb2.b1 TestBubbling0

if you switch hb3 to visible, so it covers the button, the output is

1 TestBubbling0.hb3 TestBubbling0
2 TestBubbling0.hb3 TestBubbling0.hb3
3 TestBubbling0.hb3 TestBubbling0


So it is exactly like the docs say. The event goes down the parent
chain to the leaf (which is the top most visible thing) and then it
goes back up to the root.

Cheers
Ralf.

On Wed, Aug 6, 2008 at 6:21 PM, Scott Melby <[EMAIL PROTECTED]> wrote:
> Patrick -
>
> Events bubble up the parental chain from the dispatcher. So, your child
> will not ever catch an event that is dispatched by its parent (bubbling
> or non). Conversely, parents will always catch bubbling events
> dispatched by their children. This should also aid you in understanding
> why registering for the bubbling event out at the application level
> works. Your dispatching component contains the application in its
> ancestry (parental chain), so eventually the event will bubble up to
> that level.
>
> hth
> Scott
>
> djhatrick wrote:
>> Fellow FlexCoders...
>>
>> I am sitting here having a debate on how the event phases works in
>> AS3. A couple of us have differing opinions of how events bubble, up
>> or down, inside or out. Maybe I've always been a little confused
>> "exactly" how bubbling works through the display object hierarchy, can
>> you clarify?..
>>
>> (from the docs, complete with typo)
>>
>> "When an event occurs, it moves through the three phases of the event
>> flow: the capture phase, which flows from the top of the display list
>> hierarchy to the node just before the target node; the target phase,
>> which comprises the target node; and the bubbling phase, which flows
>> from the node subsequent to the target node back up the display list
>> hierarchy."
>>
>> If I have 100 display Objects on the stage, is the top of the list
>> 100, or is it 0? And, isn't the word top, a little confusing, because
>> aren't the displayObjects actually containers? I bet if you work for
>> adobe, this is on a diagram on paper, would the docs team mind adding
>> it to the documentation, just because this really needs a visual aid.
>>
>> So if you can clear this up, then I will understand how the event
>> phase works (and more importantly why it does not like in my current
>> situation). What I want to achieve is have a nested child receive an
>> events from one of it's parents? Bubbling is not working, which is
>> odd, because, shouldn't the whole display list be traversed with
>> bubbling set to true, eventually?
>>
>> The solution, I have used several times, is to add the listener to the
>> application object in Flex, but that seems hackish to me.
>>
>> Thanks, for your time, because I really want to remove all doubt in
>> this area once and for all, since i have been working with as3 for
>> over 2 years now...
>>
>> Patrick
>>
>>
>>
>
> --
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
> http://blog.fastlanesw.com
>
> 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Ralf Bokelberg
Exactly. And please have a look at Josh's very good explanation of why
it is that "long winded".
You have the same thing in other programming systems as well. Eg. last
time i looked at Java client programming, you need to establish a
second thread for beeing able to update the UI and receive user input
while other calculations are running. Instead of threads we have this
movieclip/frames methaphor in Flex/Flash Player.

With kind regards
Ralf.

On Tue, Aug 5, 2008 at 10:36 AM, Paul Steven <[EMAIL PROTECTED]> wrote:
> When you say delay the call to the method, do you mean set a timer to a
> small time period (say 500 milliseconds) after which it will call the
> "createStudentDataXMLFile" function?
>
>
>
> I definitely must be missing something fundamental here as seems a really
> long winded way to get some text to update as soon as I set its value? Would
> binding the text to a variable make it update any quicker?
>


Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Ralf Bokelberg
Another option is to delay the call to the method, which does the main work.

Cheers
Ralf.

On Tue, Aug 5, 2008 at 9:56 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> What does your method do?
>
> Most changes made to most components (such as changing the text property)
> won't be reflected on-screen until the next ENTER_FRAME is dispatched by the
> player due to the way Flex works internally. If your method is simply some
> gigantic or slow loop, you won't see anything until it's done- and you
> should probably split it apart and schedule it in pieces :)
>
> -Josh
>
> On Tue, Aug 5, 2008 at 5:43 PM, Paul Steven <[EMAIL PROTECTED]>
> wrote:
>>
>> Probably something really basic, but I am having trouble with delays
>> updating some text on screen.
>>
>>
>>
>> Basically I want to display a message on screen to tell the user to wait
>> whilst a save operation takes place and after the save operation change the
>> text message back to blank. However I am not seeing this update. Here is the
>> code
>>
>>
>>
>> savingMessage.text = "Saving. Please wait...";
>>
>>
>>
>> _dataManager.createStudentDataXMLFile();
>>
>>
>>
>> savingMessage.text = "";
>>
>>
>>
>>
>>
>> Please note the createStudentDataXMLFile function takes about 10 seconds
>> to complete so in theory the "Saving. Please wait..." message should appear
>> for this time. If I put an alert in before the calling of the
>> "createStudentDataXMLFile" function, then the text updates correctly.
>>
>>
>>
>> I have also experienced similar problems trying to get a "busy cursor to
>> appear" using the cursor manager and a call such as
>> CursorManager.setBusyCursor();
>>
>>
>>
>> Again, the problem here is the cursor is not updating as soon as I call
>> the function.
>>
>>
>>
>> Anyone any ideas why these things are not updating on screen immediately?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Paul
>>
>>
>>
>> p.s I am using Flex Builder and packaging in Zinc 2.5
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


Re: [flexcoders] Re: AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
I've heard this happening, if you edit your code, while you are in
Debug mode. I rarely ever use it, maybe that's why i haven't seen it
yet. Bring your machine and FlexBuilder into a clean state and from
then on, whenever you edit your code, stop a running debug session and
switch to the development mode.

Hope it helps,
Ralf.

On Mon, Jul 14, 2008 at 6:07 PM, Scott <[EMAIL PROTECTED]> wrote:
> Coldfusion is just the webservice that is being called from Flex. For some
> reason, flex isn't updating its code properly. I have run into this but
> never found the root cause or easy fix. I just recreated the application and
> continued on. I've had times where flex will lock open a file and it will
> not update and I'm forced to reboot the computer. (I did try that as well).
> I know when that happens though, when I hit project->clean I get an error
> that a file is open. I've closed everything off that I can see running on
> the computer but the file still remains open. The only way I found to clear
> that up is rebooting the computer (which is very annoying).
>
> Another thing I'm seeing right now is that when I select a break point and
> debug the application, the program moves the break point to a location a few
> lines down. So it looks like it may be out of sync. It does this every where
> I try setting a break point.
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Ralf Bokelberg
> Sent: Monday, July 14, 2008 10:36 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: AS3 function returning true when it only can
> be false
>
> The compiler might have issues, but it seems to work pretty well most
> of the time. I'm using it for years on a daily base. I have never used
> Coldfusion though, so i cannot say anything about the interface
> between Flex and Coldfusion. Anyways, a simple trace statement should
> give you clarity about what is going on.
>
> Good luck,
> Ralf.
>
> On Mon, Jul 14, 2008 at 5:52 PM, Scott <[EMAIL PROTECTED]> wrote:
>> I do have another function that returns bool and it does work ok... And
>> for
>> sake of argument I changed the "true" and "false" to 0 and 1 and had the
>> same effect.
>>
>>
>>
>> I just noticed that another one of my functions isn't returning the
>> correct
>> information. It's returning the email address which was changed days ago.
>> I've had similar things like this happen in the past when I was playing
>> around with flex before being serious about developing with it. My
>> solution
>> then was to recreate the application and copy over the mxml files. I'm
>> thinking something is stuck again with the compiler.
>>
>>
>>
>> Regardless, I'm going to look at that proxy. I've written a .cfm file to
>> test the component and everything tests out ok.
>>
>>
>>
>> Has anyone had issues with things getting "stuck" in the compiler as well?
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>> Behalf Of valdhor
>> Sent: Monday, July 14, 2008 10:12 AM
>> To: flexcoders@yahoogroups.com
>> Subject: {Disarmed} [flexcoders] Re: AS3 function returning true when it
>> only can be false
>>
>>
>>
>> All that means is that ColdFusion is returning a boolean. When it goes
>> across the pipe and is returned to Flex, it may be a different type
>> altogether.
>>
>> I would suggest using an HTTP Proxy like Charles
>> (www.charlesproxy.com) to see exactly what is being returned over the
>> pipe.
>>
>> As an aside, I find that Charles is indispensable when trying to debug
>> remote calls and results. It has saved me countless hours and is well
>> worth the cost.
>>
>> --- In flexcoders@yahoogroups.com, "Scott" <[EMAIL PROTECTED]> wrote:
>>>
>>> Actually it does return a Boolean
>>>
>>> 
>>>
>>> -Original Message-
>>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
>> On Behalf Of Ralf Bokelberg
>>> Sent: Monday, July 14, 2008 8:58 AM
>>> To: flexcoders@yahoogroups.com
>>> Subject: Re: [flexcoders] AS3 function returning true when it only
>> can be false
>>>
>>> It appears to me, that your Coldfusion script returns a string instead
>>> of a boolean. Every string with a length > 0 evaluates to true in a
>>> boolean expression.
>>> Cheers
>>> Ralf.
>&

Re: [flexcoders] Re: AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
The compiler might have issues, but it seems to work pretty well most
of the time. I'm using it for years on a daily base. I have never used
Coldfusion though, so i cannot say anything about the interface
between Flex and Coldfusion. Anyways, a simple trace statement should
give you clarity about what is going on.

Good luck,
Ralf.

On Mon, Jul 14, 2008 at 5:52 PM, Scott <[EMAIL PROTECTED]> wrote:
> I do have another function that returns bool and it does work ok…  And for
> sake of argument I changed the "true" and "false" to 0 and 1 and had the
> same effect.
>
>
>
> I just noticed that another one of my functions isn't returning the correct
> information.  It's returning the email address which was changed days ago.
> I've had similar things like this happen in the past when I was playing
> around with flex before being serious about developing with it.  My solution
> then was to recreate the application and copy over the mxml files.  I'm
> thinking something is stuck again with the compiler.
>
>
>
> Regardless, I'm going to look at that proxy.  I've written a .cfm file to
> test the component and everything tests out ok.
>
>
>
> Has anyone had issues with things getting "stuck" in the compiler as well?
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Monday, July 14, 2008 10:12 AM
> To: flexcoders@yahoogroups.com
> Subject: {Disarmed} [flexcoders] Re: AS3 function returning true when it
> only can be false
>
>
>
> All that means is that ColdFusion is returning a boolean. When it goes
> across the pipe and is returned to Flex, it may be a different type
> altogether.
>
> I would suggest using an HTTP Proxy like Charles
> (www.charlesproxy.com) to see exactly what is being returned over the
> pipe.
>
> As an aside, I find that Charles is indispensable when trying to debug
> remote calls and results. It has saved me countless hours and is well
> worth the cost.
>
> --- In flexcoders@yahoogroups.com, "Scott" <[EMAIL PROTECTED]> wrote:
>>
>> Actually it does return a Boolean
>>
>> 
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of Ralf Bokelberg
>> Sent: Monday, July 14, 2008 8:58 AM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] AS3 function returning true when it only
> can be false
>>
>> It appears to me, that your Coldfusion script returns a string instead
>> of a boolean. Every string with a length > 0 evaluates to true in a
>> boolean expression.
>> Cheers
>> Ralf.
>>
>> On Mon, Jul 14, 2008 at 4:05 PM, Scott <[EMAIL PROTECTED]> wrote:
>> > This is weird...
>> >
>> >
>> >
>> > I'm linking to a coldfusion component I'm creating.
>> >
>> >
>> >
>> > For the sake of playing around a bit, I created the variable "rc"
>> >
>> >
>> >
>> > The following AS3 function queries the CF server to see if the user is
>> > logged in or not; returns true for yes, false for no
>> >
>> >
>> >
>> > public function userStatus():Boolean
>> >
>> > {
>> >
>> > rc = authManager.userStatus();
>> >
>> > return rc;
>> >
>> > }
>> >
>> >
>> >
>> > That function always returns "true", even though the coldfusion
> query is now
>> > set to return false for both cases as you see below.
>> >
>> >
>> >
>> > This is the coldfusion function:
>> >
>> >
>> >
>> >  returntype="boolean">
>> >
>> > 
>> >
>> >  ß-- this is normally true but set it
> to false
>> > to verify what is going on
>> >
>> > 
>> >
>> > 
>> >
>> > 
>> >
>> > 
>> >
>> >
>> >
>> >
>> >
>> > This is the actual Flex display/call:
>> >
>> > 
>> >
>> >
>> >
>> > This displays the following:
>> >
>> >
>> >
>> > Logged in? True
>> >
>> >
>> >
>> > Any idea on what is going on here?
>> >
>> >
>> >
>> >
>> >
>> > (as a side note, I can't set a break point in that function. The
> break
>> > point keeps moving to the

Re: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
Try trace( getQualifiedClassname( rc )) in your userStatus method to
make sure. You can see the output if you run in debug mode.

Cheers
Ralf.

On Mon, Jul 14, 2008 at 4:16 PM, Scott <[EMAIL PROTECTED]> wrote:
> Actually it does return a Boolean
>
> 
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Ralf Bokelberg
> Sent: Monday, July 14, 2008 8:58 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] AS3 function returning true when it only can be
> false
>
> It appears to me, that your Coldfusion script returns a string instead
> of a boolean. Every string with a length > 0 evaluates to true in a
> boolean expression.
> Cheers
> Ralf.
>
> On Mon, Jul 14, 2008 at 4:05 PM, Scott <[EMAIL PROTECTED]> wrote:
>> This is weird...
>>
>>
>>
>> I'm linking to a coldfusion component I'm creating.
>>
>>
>>
>> For the sake of playing around a bit, I created the variable "rc"
>>
>>
>>
>> The following AS3 function queries the CF server to see if the user is
>> logged in or not; returns true for yes, false for no
>>
>>
>>
>> public function userStatus():Boolean
>>
>> {
>>
>> rc = authManager.userStatus();
>>
>> return rc;
>>
>> }
>>
>>
>>
>> That function always returns "true", even though the coldfusion query is
>> now
>> set to return false for both cases as you see below.
>>
>>
>>
>> This is the coldfusion function:
>>
>>
>>
>> 
>>
>> 
>>
>>  ß-- this is normally true but set it to false
>> to verify what is going on
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>>
>>
>> This is the actual Flex display/call:
>>
>> 
>>
>>
>>
>> This displays the following:
>>
>>
>>
>> Logged in? True
>>
>>
>>
>> Any idea on what is going on here?
>>
>>
>>
>>
>>
>> (as a side note, I can't set a break point in that function. The break
>> point keeps moving to the bottom of the function and out of the scope of
>> the
>> variable so I can't watch it.)
>>
>>
>>
>>
>>
>> Thanks!
>>
>>
>
> --
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
It appears to me, that your Coldfusion script returns a string instead
of a boolean. Every string with a length > 0 evaluates to true in a
boolean expression.
Cheers
Ralf.

On Mon, Jul 14, 2008 at 4:05 PM, Scott <[EMAIL PROTECTED]> wrote:
> This is weird…
>
>
>
> I'm linking to a coldfusion component I'm creating.
>
>
>
> For the sake of playing around a bit, I created the variable "rc"
>
>
>
> The following AS3 function queries the CF server to see if the user is
> logged in or not; returns true for yes, false for no
>
>
>
> public function userStatus():Boolean
>
> {
>
>   rc = authManager.userStatus();
>
>   return rc;
>
> }
>
>
>
> That function always returns "true", even though the coldfusion query is now
> set to return false for both cases as you see below.
>
>
>
> This is the coldfusion function:
>
>
>
> 
>
> 
>
>   ß-- this is normally true but set it to false
> to verify what is going on
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
> This is the actual Flex display/call:
>
> 
>
>
>
> This displays the following:
>
>
>
> Logged in? True
>
>
>
> Any idea on what is going on here?
>
>
>
>
>
> (as a side note, I can't set a break point in that function.  The break
> point keeps moving to the bottom of the function and out of the scope of the
> variable so I can't watch it.)
>
>
>
>
>
> Thanks!
>
> 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Item renderers cause processor to max out

2008-07-07 Thread Ralf Bokelberg
Hi Tom

Have you trid using a labelFunction instead of the item renderer?

Kind regards,
Ralf

On Mon, Jul 7, 2008 at 3:37 PM, Tom McNeer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I began asking about this problem last week and Alex Harui tried to help me.
> But I did such a bad job of explaining my problem, I don't think he quite
> understood the issue.
>
> Also, I've done a lot more work over the weekend, stepping through the
> debugger. And my problem is a bit different than I first thought, anyway.
>
> My application allows users to create multiple sets of product
> configurations. Within each configuration, there are multiple products, each
> with a possibility of multiple options.
>
> Thus, within a Configuration object, there is an itemAC that is a collection
> of product objects. Within each Item/Product object, there is an optionArray
> which holds Option objects. The optionArray cannot be an arrayCollection,
> because the Product objects are VOs populated from a RemoteObject, and need
> to match the signature of a matching object on the server.
>
> When the user wishes to view the contents of a Configuration, the itemAC
> (with its collection of Products) becomes the dataProvider of a DataGrid:
>
> variableRowHeight="true" width="80%" updateComplete="setGridHeight(event)" >
> 
>  headerText="Quantity" />
>  headerText="Category" />
>  wordWrap="true" />
>  itemRenderer="views.OptionList" />
> 
> 
>
> However - one cell within the DataGrid needs to display a list of options.
> The user should see these options as a comma-delimited list, essentially,
> not a Flex List element or anything like that. So I have created an
> itemRenderer for the Options column which has a simple function that creates
> the list from the optionArray in the Product which is represented by a row
> in the DataGrid:
>
>public function setOptionList(options:Array):void{
> optionList = "";
> for (var i:int = 0;i if (options.length > 1 && i != 0){
> optionList = optionList + ', ';
> }
> optionList += options[i].optionItem;
> }
> }
>
> Since a user may be adding options to a product at any time, the option list
> must update as an option is added.
> I have tried providing the update in various ways. Currently, I am
> overriding the set data function for the itemRenderer component:
>
> override public function set data(value:Object):void{
> if (value != null){
> super.data = value;
> setOptionList(value.options)
> }
> dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> }
>
> The symptom of my problem is that once a few products are added, the
> processor pegs and stays there.
>
> My debugging walkthrough has led to find that as products are added (with or
> without options), extra instances of the itemRenderer component seem to be
> generated, and the setOptionList function (triggered by set data) is called
> over and over.
>
> On the first product added, (with an empty option array), two separate
> instances of the itemRenderer component seem to be created. The
> setOptionList function is called three times, showing two unique identifiers
> for views.OptionList components. The function is called on the first
> instance (a), then the second (b), then the first again: a,b,a.
>
> When I add a second product (also with an empty option array, the
> setOptionList function is called 14 times. I can see another instance of
> views.OptionList (c). The setOptionList calls go:
> b,b,a,a,b,c,b,c,a,a,b,c,a,a.
>
> Adding a third product results in 22 calls to the function, on 4 instances.
> The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.
>
> Can anyone help me understand what's up with all this proliferation?
>
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>
> 


Re: [flexcoders] Pass a Run Time Composite Component to customize a Pop Up Form?

2008-07-02 Thread Ralf Bokelberg
I think it should be possible to do something like popup.addChild(
composite control )
Cheers
Ralf.



On Wed, Jul 2, 2008 at 11:45 AM, pbrendanc <[EMAIL PROTECTED]> wrote:
> I't trying to create a composite control (in AS) at run time and pass
> this to a popup (as an object) - the popup is responsible for the
> display and the contents vary based on a user input (e.g. 2*2 grid;
> 3*3 grid etc).
>
> My initial thought was to create a composite component and then pass
> this for display via the Popup Manager as part of the popup. However
> I'm not sure this will work as it appears that the composite control
> methods (createChildren etc) apply to the current form and do not
> support the creation of a package that can be rendered in a separate
> form/window.
>
> Maybe I need to have the popup form create the composite control
> directly instead?
>
> Any suggestions/comments?
>
> TIA,
> Patrick
>
> 


Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Ralf Bokelberg
You don't have to do a deep copy.
Use ListCollectionView instead, which allows you to apply different
filters to the same underlying Collection.
Cheers
Ralf.

On Tue, Jul 1, 2008 at 11:58 AM, linko27 <[EMAIL PROTECTED]> wrote:
> I need to show two lists with different filter function on the same
> dataprovider. Therefore I have to make a deep copy of the array for
> the second list, otherwise the second filter will not include the
> items filtered by the first filter - is'nt it?
>
> --- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>>
>> - Original Message -
>> From: "linko27" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Tuesday, July 01, 2008 10:08 AM
>> Subject: [flexcoders] Hide a list item without changing (filtering) the
>> dataprovider?
>>
>>
>> > Hallo!
>> >
>> > How can i hide a list item. I am trying to make a lists and hide the
>> > 'mandatory=true' items without changing (filtering) the dataprovider.
>>
>> A filter function on the dataprovider is the way to go. It doesn't
> alter the
>> data in the dataprovider permamently and is the only way to have
> your list
>> populate correctly.
>>
>> Why don't you want to filter the dataprovider?
>>
>> Paul
>>
>> snip
>>
>
> 


Re: [flexcoders] synchronous events in flex

2008-06-28 Thread Ralf Bokelberg
You could either set a bindable property on your model,
or pass in a object, which does the result handling.

Cheers
Ralf.

On Sat, Jun 28, 2008 at 8:09 PM,  <[EMAIL PROTECTED]> wrote:
> You mean if i have to display an alert message 'Customer name already
> exists' them i have to put this code in result method as follows, Basically
> this is Command class which implements IResponder .
>
> public function result( event : Object ) : void
> {
> // Some processing
> Alert.show( 'Name XYZ Already Exists' ) ;
> CursorManager.removeBusyCursor();
> Application.application.enabled =true ;
> }
> If you meant this then don't you think it is not good design , now suppose
> if instead of Alert message i am going to display inline error message on
> the view then i have to access view in my command class to display error
> message.
> ,
>
> - Original Message -
> From: "Paul Andrews" <[EMAIL PROTECTED]>
> To: 
> Sent: Sat, 28 Jun 2008 19:00:07 +0100
> Subject: Re: [flexcoders] synchronous events in flex
>
>> - Original Message -
>> From: <[EMAIL PROTECTED]>
>> To: 
>> Sent: Saturday, June 28, 2008 2:54 PM
>> Subject: [flexcoders] synchronous events in flex
>>
>>
>> > Hi
>> > Can anyone tell me how to write synchronous events in flex application?
>>
>> There are no synchronous events.
>>
>> > I am calling an Httpservice on focus out event of text field this
>> > service
>> > checks name duplication. I want my application to wait for service to
>> > finish and then do some processing
>>
>> Supply a result handler for the httpservice and put your code in that. It
>> will be called asynchronously when the result is ready.
>>
>> Flex doesn't do waiting, except through event handlers.
>>
>> > Thanks in advance
>>
>> Paul
> 


Re: [flexcoders] AS3 interface question

2008-06-26 Thread Ralf Bokelberg
Yep, it's a language feature, which is not there. I think it is called
covariant return types.
Afaik, all you can do is check the type and cast.
Cheers
Ralf.

On Thu, Jun 26, 2008 at 3:14 PM, diehlryan <[EMAIL PROTECTED]> wrote:
> I'm running into a wall when trying to use extension with interfaces.
> The example I'm about to provide works using Java, so I believe the
> OOP practices behind it are valid. But I can't figure out how to
> accomplish the same thing in Flex, I keep running into compiler
> issues. The example is a condensed version of something I'm working
> on, for simplicity sake.
>
> Let's say you have a bunch of events that all have some common
> functionality, like the ability to have a nextEvent. Also, a subset
> of those events also have additional functionality, they can be
> filtered by a type of criteria. We'll call them search events.
>
> Now, there are some parts of the application that can work with any
> type of search event, and any type of criteria. But when the
> individual searches are executed, that implementation expects a
> specific type of search event and search criteria. That's my end goal
> here.
>
> Here are the interfaces I'm using:
>
> public interface ICriteria
> {
> // just a marker
> }
>
> public interface ICustomCriteria extends ICriteria
> {
> function get name():String;
> function set name(name:String):void;
> }
>
> public interface IEvent
> {
> function get nextEvent():IEvent;
> function set nextEvent(event:IEvent):void;
> }
>
> public interface ISearchEvent
> {
> function get criteria():ICriteria;
> function set criteria(criteria:ICriteria):void;
> }
>
> So far, so good. And now the implementing classes:
>
> // would like to make this an abstract class, but not supported in AS
> public class BaseEvent implements IEvent
> {
> private var _nextEvent:IEvent;
>
> public function set nextEvent(event:IEvent):void
> {
> this._nextEvent = event;
> }
>
> public function get nextEvent():IEvent
> {
> return this._nextEvent;
> }
> }
>
> // would like to make this an abstract class, but not supported in AS
> public class BaseSearchEvent extends BaseEvent implements ISearchEvent
> {
> private var _criteria:ICriteria;
>
> public function set criteria(criteria:ICriteria):void
> {
> this._criteria = criteria;
> }
>
> public function get criteria():ICriteria
> {
> return this._criteria;
> }
> }
>
> Those base classes are fine and compile correctly. Now if you
> remember from the requirements, there are some places that can work
> with any type of ISearchEvent, and some places that can only work with
> an individual subclass. Here is where the compiler errors come in.
> Doing what I am about to do works in Java, and I'm wondering if there
> is a way to accomplish it in AS3.
>
> public class CustomSearchEvent extends BaseSearchEvent
> {
> private var _criteria:ICustomCriteria;
>
> public override function get criteria():ICustomCriteria
> {
> return this._criteria;
> }
>
> public override function set criteria(criteria:ICustomCriteria):void
> {
> this._criteria = criteria;
> }
> }
>
> The above class does not compile because the method signatures for
> get/set criteria are different than those specified in the interface.
> But from an OO perspective, I think this is a valid thing to want to
> do. If you're working with an ISearchEvent instance, you should be
> able to subclass the base class and provide custom behavior. The
> ICustomCriteria is a subclass of ICriteria, so you should be able to
> substitute them in this context. Is there another way to accomplish
> this? Or is this just a language feature that's not there?
>
> 


Re: [flexcoders] Warning: Source path entry XXXX is a subdirectory of source path entry

2008-06-11 Thread Ralf Bokelberg
Maybe  -allow-source-path-overlap=true helps
Cheers
Ralf.

On Wed, Jun 11, 2008 at 4:39 PM, bjorn <[EMAIL PROTECTED]> wrote:
> I'm cleaning up my (proje)act and trying to remove all warnings.
>
> This one is bugging me:
> "Source path entry, C:\dev\flexworkspace\project\src\assets\locale\en_US' is
> a subdirectory of source path entry, 'C:\dev\flexworkspace\project\src\"
>
> It's becuase I have these additional compiler arguments:
> -locale en_US -source-path+=assets/locale/{locale}
> -default-background-color=0x00
>
> It's needed to find the locale properties file, if I remove it from
> the build path I get this error: "Unable to resolve class for
> ResourceBundle: myresourcebundle"
> It's probably fixable by moving the /assets/locale/ folder out of the src
> path. However, we have our src folder checked into Subversion which has an
> 'external' link to the assets folder. So the assets need to be a subfolder
> to src (for the externals link to work when we update the src folder)
>
> Anyhow - why doesn't it find the ResourceBundle when I don't include it in
> the additional compiler settings (it's in the source path, as it says in the
> warning ..)
> --
>
> 
> http://www.juicability.com - flex blog
> http://www.43min.com - funny movies
> 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Finding the last day of the month

2008-06-11 Thread Ralf Bokelberg
Pass in -1 as the day, eg. the date of the last day of February is
Date(2008,2,-1);
Cheers
Ralf.

On Wed, Jun 11, 2008 at 2:02 PM, Michel Scoz <[EMAIL PROTECTED]> wrote:
>
>
> There you go...
>
>
>
> public function getLastDayOfMonth(month:Number, year:Number):Number
>
> {
>
>   var lastDay:Number;
>
>
>
>if (month == FEBRUARYNUMBER)
>
>  {
>
>  if (((year % 4) == 0 && (year % 100)!=0) || (year %
> 400)==0) {
>
>   lastDay = 29;
>
>  } else {
>
>   lastDay = 28;
>
>  }
>
>} else if((month < 7 && month % 2 == 0)||(month >= 7 &&
> month % 2 == 1)) {
>
> lastDay = 31;
>
>} else{
>
> lastDay = 30;
>
>   }
>
>   return lastDay;
>
> }
>
>
>
> 
>
> De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome
> de Indra Prastha
> Enviada em: quarta-feira, 11 de junho de 2008 05:33
> Para: flexcoders@yahoogroups.com
> Assunto: [flexcoders] Finding the last day of the month
>
>
>
> Hi,
>
> I used to work with Coldfusion where they have this function like
> DaysInMonth(date), to obtain the last day of the month (31 / 30, or 28 / 29
> for feb / leap year)
> ,and it's very handy, is there anyway I could achieve the same function in
> Flex?
>
> Thanks.
>
> Cheers!
>
> Indra Prastha,
> [EMAIL PROTECTED]
> ERP Team @ DataOn Corp.
>
> 
>
>
>
> 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread Ralf Bokelberg
If you want to use Windows on Macbooks you also need an external
keyboard and a mouse maybe. Not the most convenient package, if you
need to travel.
Cheers
Ralf.


Re: [flexcoders] How to pass handled errors from the server to Flex

2008-05-10 Thread Ralf Bokelberg
We had the very same discussion last week. One of our developers made
the valid comment, that Method2 is less readable, because both success
and error are returned in the same ResultDTO. So we decided to go with
Method1. Our delegate wraps the expected business errors into a
BusinessException. The fault handler can analyze the type of the
exception and specifically handle business errors, while other errors
are passed to a default handler.

Cheers
Ralf.

-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


On Sat, May 10, 2008 at 5:26 PM, Mike Chabot <[EMAIL PROTECTED]> wrote:
> I'm wondering what people do to pass friendly messages for handled
> errors to Flex. Examples of handled errors are you try to log in and
> your password is wrong, or maybe you try to buy a product that is no
> longer in stock. I'm looking at server communication via Remoting, if
> that matters.
>
> [Method 1]
> I see experienced programmers throwing server exceptions for
> unsuccessful conditions to pass strings such as "incorrect password"
> to Flex, such that the RemoteObject result handler deals with
> successful logins and the RemoteObject fault handler deals with failed
> logins. The majority of examples I see use this technique. In the
> ColdFusion world, this is done using cfthrow.
>
> [Method 2]
> Another method is to handle both successful and unsuccessful logins
> using the result handler, and only handle unexpected server failures
> using the fault handler. So when you try to log in, instead of
> returning a Boolean value, you return a structure with possibly a
> success key (Boolean) and a message key (String). This is the method I
> am used to using with Web services. I'm seeing enough programmers
> recommending cfthrow combined with the fault handler, however, that
> I'm starting to wonder whether there is some place which says that
> throwing server exceptions to pass validation failure messages is the
> better method.
>
> Does anyone have any thoughts on this?
>
> Thank you,
> Mike Chabot
>
> 


Re: [flexcoders] Re: Cache memory Issue (Strange)

2008-04-28 Thread Ralf Bokelberg
To avoid cacheing you can add the creation or change date of the swf
to the url ike so: myApp.swf?created=200804281835

Good luck,
Ralf.

-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


On Mon, Apr 28, 2008 at 6:27 PM, Anthony DeBonis
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Yes – we have seen this issue mainly in IE not Firefox. The browser
>  cache would need to be cleared for it to pick up the new swf file.
>
>  We ended up adding in a version check to be sure the user is running
>  the latest swf
>
>  Also see:
>  http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
>  p.htm?context=LiveDocs_Book_Parts&file=performance_118_13.html
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Re: TypeError: Error #2007: The parameter listener must not be NULL + Cairngorm

2008-04-28 Thread Ralf Bokelberg
I would pass a ui component reference to the command and directly
manipulate it in the result handler. You can use an interface instead
of the concrete type to make it loosely coupled.

Cheers
Ralf.

On Mon, Apr 28, 2008 at 4:12 PM, Ralf Bokelberg
<[EMAIL PROTECTED]> wrote:
> Repeated UIComponents can be accessed using Array notation.
>
> 
> 
> 
>
>
> 
> 
>  click="traceButtons()"/>
> 
>
> 
>
>
>  Cheers
>  Ralf.
>
>
>
>  On Mon, Apr 28, 2008 at 3:52 PM, valdhor <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  >
>  >
>  >
>  > I am afraid that I don't use Cairngorm.
>  >
>  >  Could it be a Cairngorm bug? Unlikely but still a possibility. Does it
>  >  work without the Cairngorm framework?
>  >
>  >
>  >  --- In flexcoders@yahoogroups.com, Jon Santos <[EMAIL PROTECTED]> wrote:
>  >  >
>  >  > For sure the function loaderCompleteHandler exists.
>  >  > Any other suggestions?
>  >  > I have one similar example.and i get the result succesfully.
>  >  > Here is the soruce.
>  >  >   >  > creationComplete="doInit()" width="
>  >  > height="xmlns:mx="http://www.adobe.com/2006/mxml"; 100%"438"
>  >
>  >  backgroundAlpha="1.0"
>  >
>  > 
> borderStyle="solid"> this.coverImg.source = event.currentTarget.content asBitmap;
>  >>
>  >  dataTipField="synopsis" click="detailMovie()"
>  >  dataProvider="{model.listMovies}" top="231" left="10" width="95%">
>  > >  headerText="Title" dataField="title"/>
>  >>  labelFunction="showDirectorName"
>  >  sortCompareFunction="ordenarPorDirector"/>
>  >>  labelFunction="showActorName"/>
>  >  
>  >   privatefunctionshowCover():void{
>  >  this.coverImg.source = null; vargetCoverEvent:GetCoverEvent =
>  >  newGetCoverEvent(this.myMovieId); this.myMovieId =
>  >  this.grdMovies.selectedItem.movieId;
>  >  > In this examplei display the image...when i selected one row in
>  >  the datagrid.
>  >  >
>  >  > The event, command and other class are the same as in the other example.
>  >  > And teh unique thing diferent thing in the ViewModelLocator.as
>  >  > import
>  >  > {
>  >  > loader.loadBytes(
>  >
>  >  > loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
>  >  Application.application.adminmovies.loaderCompleteHandler);
>  >  > }
>  >  > }
>  >  > I hope someone can help me. Thanks in
>  >  advanceflash.display.Loader;publicfunctiondisplayImage():void{
>  >  if(this.movieCover != null&& this.movieCover.length > 0)
>  >  varloader:Loader = newLoader();this.movieCover);
>  >
>  >
>  >  > - Original Message 
>  >  > From: valdhor <[EMAIL PROTECTED]>
>  >  > To: flexcoders@yahoogroups.com
>  >  > Sent: Saturday, April 26, 2008 3:26:28 AM
>  >  > Subject: [flexcoders] Re: TypeError: Error #2007: The parameter
>  >  listener must not be NULL + Cairngorm
>  >  >
>  >  >
>  >  > Instead of adding an event listener, just try to call the function -
>  >  > does it work? Does the function exist?
>  >  >
>  >  > --- In [EMAIL PROTECTED] ups.com, Jon Santos  wrote:
>  >  > >
>  >  > > But i don´t understand.. ..i have debug my application. ...i have
>  >  > traced.. ..but i donñt understand why always this errorfrom
>  >  > where is generated... .
>  >  > > please...can you check my source...
>  >  > > Thanks in advance.
>  >  > >
>  >  > >
>  >  > >
>  >  > > - Original Message 
>  >  > > From: valdhor 
>  >  > > To: [EMAIL PROTECTED] ups.com
>  >  > > Sent: Thursday, April 24, 2008 8:19:27 PM
>  >  > > Subject: [flexcoders] Re: TypeError: Error #2007: The parameter
>  >  > listener must not be NULL + Cairngorm
>  >  > >
>  >  > >
>  >  > > Check the value of your listener function:
>  >  > >
>  >  > > Application. application. repeatermovies. detailmovie.
>  >  > loaderCompleteHa ndler
>  >  > >
>  >  > > The error says that this is null.
>  >  > >
>  >  > >
>  >  > >
>  >  > >
>  >  > >
>  >  >  _ _ _ _ _ _
>  >  > > Be a better friend, newshound, and
>  >  > > know-it-all with Yahoo! Mobile. Try it now.
>  >  > http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
>  >  > >
>  >  >
>  >  >
>  >  >
>  >  >
>  >  >
>  >  __
>  >  > Be a better friend, newshound, and
>  >  > know-it-all with Yahoo! Mobile. Try it now.
>  >
>  > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>  >  >
>  >
>  >  
>
>
>
>  --
>  Ralf Bokelberg <[EMAIL PROTECTED]>
>  Flex & Flash Consultant based in Cologne/Germany
>



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: TypeError: Error #2007: The parameter listener must not be NULL + Cairngorm

2008-04-28 Thread Ralf Bokelberg
Repeated UIComponents can be accessed using Array notation.









  




Cheers
Ralf.

On Mon, Apr 28, 2008 at 3:52 PM, valdhor <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I am afraid that I don't use Cairngorm.
>
>  Could it be a Cairngorm bug? Unlikely but still a possibility. Does it
>  work without the Cairngorm framework?
>
>
>  --- In flexcoders@yahoogroups.com, Jon Santos <[EMAIL PROTECTED]> wrote:
>  >
>  > For sure the function loaderCompleteHandler exists.
>  > Any other suggestions?
>  > I have one similar example.and i get the result succesfully.
>  > Here is the soruce.
>  >   > creationComplete="doInit()" width="
>  > height="xmlns:mx="http://www.adobe.com/2006/mxml"; 100%"438"
>
>  backgroundAlpha="1.0"
>
> borderStyle="solid"> this.coverImg.source = event.currentTarget.content asBitmap;
>  
>  dataTipField="synopsis" click="detailMovie()"
>  dataProvider="{model.listMovies}" top="231" left="10" width="95%">
> headerText="Title" dataField="title"/>
>labelFunction="showDirectorName"
>  sortCompareFunction="ordenarPorDirector"/>
>labelFunction="showActorName"/>
>  
>   privatefunctionshowCover():void{
>  this.coverImg.source = null; vargetCoverEvent:GetCoverEvent =
>  newGetCoverEvent(this.myMovieId); this.myMovieId =
>  this.grdMovies.selectedItem.movieId;
>  > In this examplei display the image...when i selected one row in
>  the datagrid.
>  >
>  > The event, command and other class are the same as in the other example.
>  > And teh unique thing diferent thing in the ViewModelLocator.as
>  > import
>  > {
>  > loader.loadBytes(
>
>  > loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
>  Application.application.adminmovies.loaderCompleteHandler);
>  > }
>  > }
>  > I hope someone can help me. Thanks in
>  advanceflash.display.Loader;publicfunctiondisplayImage():void{
>  if(this.movieCover != null&& this.movieCover.length > 0)
>  varloader:Loader = newLoader();this.movieCover);
>
>
>  > - Original Message 
>  > From: valdhor <[EMAIL PROTECTED]>
>  > To: flexcoders@yahoogroups.com
>  > Sent: Saturday, April 26, 2008 3:26:28 AM
>  > Subject: [flexcoders] Re: TypeError: Error #2007: The parameter
>  listener must not be NULL + Cairngorm
>  >
>  >
>  > Instead of adding an event listener, just try to call the function -
>  > does it work? Does the function exist?
>  >
>  > --- In [EMAIL PROTECTED] ups.com, Jon Santos  wrote:
>  > >
>  > > But i don´t understand.. ..i have debug my application. ...i have
>  > traced.. ..but i donñt understand why always this errorfrom
>  > where is generated... .
>  > > please...can you check my source...
>  > > Thanks in advance.
>  > >
>  > >
>  > >
>  > > - Original Message 
>  > > From: valdhor 
>  > > To: [EMAIL PROTECTED] ups.com
>  > > Sent: Thursday, April 24, 2008 8:19:27 PM
>  > > Subject: [flexcoders] Re: TypeError: Error #2007: The parameter
>  > listener must not be NULL + Cairngorm
>  > >
>  > >
>  > > Check the value of your listener function:
>  > >
>  > > Application. application. repeatermovies. detailmovie.
>  > loaderCompleteHa ndler
>  > >
>  > > The error says that this is null.
>  > >
>  > >
>  > >
>  > >
>  > >
>  >  _ _ _ _ _ _
>  > > Be a better friend, newshound, and
>  > > know-it-all with Yahoo! Mobile. Try it now.
>  > http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
>  > >
>  >
>  >
>  >
>  >
>  >
>  __
>  > Be a better friend, newshound, and
>  > know-it-all with Yahoo! Mobile. Try it now.
>
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>  >
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Large application strategy - Flex or Flash?

2008-04-27 Thread Ralf Bokelberg
I think, both of them are equally valid. Flex ist a bit faster in
development, wheres Flash gives you total flexibility.
Cheers
Ralf.

-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


On Mon, Apr 28, 2008 at 2:22 AM, bick <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I wanted to get some opinions on whether to use Flex or Flash on a
>  large scale site.
>
>  Some details about the site:
>
>  Very modular
>  Some timeline based swfs provided by designers that need to be loaded
>  Uses webservices
>  Multiple remote developers
>  Intending to use automated builds (thinking Maven)
>  ASDocs
>  No current requirement for Flex components
>
>  Thoughts?
>
>  


Re: [flexcoders] Why does iterating over an array of functions fail?

2008-04-22 Thread Ralf Bokelberg
The code below (from your example) looks strange.

var validatorFn:Function = Filters.getFilter(options[i]);
validators[validatorFn] = validatorFn;

If validatorFn is a Function, you need a Dictionary to make it work.
Otherwise the toString() value of validatorFn is used on the left hand
side, which is something like [Function] for every function.

Cheers
Ralf.


On Mon, Apr 21, 2008 at 11:10 PM, ivo <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hello all,
>
>  I'd like to understand why if I create a filterFunction for a collection
> out of an array of Functions the filtering fails, but if I use an Object to
> hold them then everything is ok.
>
>  ex:
>
>  /*
>  below would fail with "TypeError: Error#1006: value is not a function" as
> soon as the for loop in the filter function is hit
>  */
>  var validators:Array = [];
>  var options:IList = //...contains property => values
>  for(var i:int=0; i  var validatorFn:Function = Filters.getFilter(options[i]);
>  validators.push(validatorFn);
>  }
>
>  var filter:Function = function(item:Object):Boolean{
>  var total:int = validators.length();
>  for(var j:int=0; j  var fn:Function = validators[j];
>  if(! fn(item)){
>  return false;
>  }
>  }
>  return true;
>  }
>
>  var set:ArrayCollection = new ArrayCollection(/* bunch of items*/);
>  set.filterFunction = filter;
>
>  /*
>  below works
>  */
>  var validators:Object = {};
>  var options:IList = //...contains property => values
>  for(var i:int=0; i  var validatorFn:Function = Filters.getFilter(options[i]);
>  validators[validatorFn] = validatorFn;
>  }
>
>  var filter:Function = function(item:Object):Boolean{
>  for(var key:String in validators){
>  var fn:Function = validators[key] as Function;
>  if(! fn(item)){
>  return false;
>  }
>  }
>  return true;
>  }
>
>  var set:ArrayCollection = new ArrayCollection([/* bunch of items*/]);
>  set.filterFunction = filter;
>
>  (hope theres no typos, I am writing it as I remember)
>  - Ivo
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Is this a performance gain?

2008-04-03 Thread Ralf Bokelberg
I would expect it to be (slightly) faster.

On Thu, Apr 3, 2008 at 1:16 PM, polestar11 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi there
>
>  Is the follwing actually slightly faster or is it pretty much the same
>  when referencing object functions in a loop?
>
>  var f:Function = obj.getValue; // bring function to this level
>  var val:Number;
>  for(var i:int=0; i<1; i++) {
>  val = f(i);
>  }
>
>  VERSUS
>
>  var val:Number;
>  for(var i:int=0; i<1; i++) {
>  val = obj.getValue(i);
>  }
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: How to manually delete references to objects?

2008-03-31 Thread Ralf Bokelberg
Ok i see. I guess it is an example taken from Flash. Flash is a little
bit less strict if you use code on a timeline.

Cheers
Ralf.

On Mon, Mar 31, 2008 at 5:36 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I grabbed that example from the article at adobe website
>  -http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html
>
>  --- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
>
>  <[EMAIL PROTECTED]> wrote:
>  >
>  > You cannot delete declared variables, set them to null instead.
>  > a = null;
>  >
>  > Cheers
>  > Ralf.
>  >
>  > On Mon, Mar 31, 2008 at 5:03 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
>  > >
>  > >
>  > >
>  > >
>  > >
>  > >
>  > > I saw some examples like that:
>  > >
>  > > // create a new object, and put a reference to it in a:
>  > > var a:Object = {foo:"bar"}
>  > > // copy the reference to the object into b:
>  > > var b:Object = a;
>  > > // delete the reference to the object in a:
>  > > delete(a);
>  > >
>  > > But it definitely wont even compile.
>  > >
>  > > Is there any techniques to do so?
>  > >
>  > >
>  >
>  >
>  >
>  > --
>  > Ralf Bokelberg <[EMAIL PROTECTED]>
>
>  > Flex & Flash Consultant based in Cologne/Germany
>  >
>
>  


Re: [flexcoders] How to manually delete references to objects?

2008-03-31 Thread Ralf Bokelberg
You cannot delete declared variables, set them to null instead.
a = null;

Cheers
Ralf.

On Mon, Mar 31, 2008 at 5:03 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I saw some examples like that:
>
>  // create a new object, and put a reference to it in a:
>  var a:Object = {foo:"bar"}
>  // copy the reference to the object into b:
>  var b:Object = a;
>  // delete the reference to the object in a:
>  delete(a);
>
>  But it definitely wont even compile.
>
>  Is there any techniques to do so?
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Checking the type of an object

2008-03-24 Thread Ralf Bokelberg
Have you tried getQualifiedClassName( instance)?
r.

On Mon, Mar 24, 2008 at 4:31 PM, supermalern <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I want to check if an object has a certain type. I know I can use
>
>  (object is Class)
>
>  But that will return true even if the object is a subclass of "Class",
>  whereas I need to know if it's actually that specific class. Is there
>  a way to do this?
>
>  


Re: [flexcoders] filter with e4x

2008-03-24 Thread Ralf Bokelberg
i don't think it is possible using e4x alone. You have to use some
ActionScript.
r.

On Mon, Mar 24, 2008 at 2:35 PM, hannes.stockner
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi
>
>  I have following xml:
>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>
>  how is it possible to get a XMLList object where I get all child nodes
>  from node "one" where its id is not included in node "two"?
>
>  thank you
>
>  


Re: [flexcoders] Crazy Bindables

2008-03-13 Thread Ralf Bokelberg
I think it is more of a logical problem. Do you really want to change
all the buttons to the same String given by the variables en and
language? This is what happens, if ou compare to level.

Cheers
Ralf.



On Thu, Mar 13, 2008 at 12:51 AM, Heiko Niemann <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi,
>
>  following code works ok. There are two button menus: One sets the
>  level, the other the language. The eabled-properties of these buttons
>  are bound to two vars. Those vars are set whenever a button is clicked.
>
>  The labels of the level-buttons are also set depending on which
>  language is chosen.
>
>  Then there are three text areas which are visible when a certain level
>  is chosen. Also their text is set depending on the level and the
>  language chosen, e.g.:
>
>  htmlText="{words.loc.(@v==lang).item.(@m=='1')}"
>
>  Now. Of course I thought: why not just using one text area and say:
>
>  htmlText="{words.loc.(@v==lang).item.(@m==level)}"
>
>  But this for some reason does not work, when 'level' is set. The text
>  just changes whenever 'lang' is set.
>
>  Any ideas?
>
>  -- CODE 
>
>  
>  http://www.adobe.com/2006/mxml";
>  layout="absolute">
>
>  
>  
>  
>
>  
>  
>  
>  NEW
>  INTERMEDIATE
>  PROFESSIONAL
>  
>  
>  NEU
>  FORTGESCHRITTEN
>  PROFI
>  
>  
>  
>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>
>  
>width="100"
>  label="English"
>  enabled="{lang!='en'}"
>  click="{lang='en'}" />
>
>width="100"
>  label="German"
>  enabled="{lang!='de'}"
>  click="{lang='de'}" />
>
>  
>
>  
>
>width="150"
>  enabled="{level!='1'}"
>  label="{buttons.loc.(@v==lang).item.(@m=='1')}"
>  click="{level='1'}" />
>
>width="150"
>  enabled="{level!='2'}"
>  label="{buttons.loc.(@v==lang).item.(@m=='2')}"
>  click="{level='2'}" />
>
>width="150"
>  enabled="{level!='3'}"
>  label="{buttons.loc.(@v==lang).item.(@m=='3')}"
>  click="{level='3'}" />
>
>  
>
>x="220"
>  y="100"
>  width="300"
>  height="200"
>  fontSize="20"
>  htmlText="{words.loc.(@v==lang).item.(@m=='1')}"
>  visible="{level=='1'}" />
>
>x="220"
>  y="100"
>  width="300"
>  height="200"
>  fontSize="20"
>  htmlText="{words.loc.(@v==lang).item.(@m=='2')}"
>  visible="{level=='2'}" />
>
>x="220"
>  y="100"
>  width="300"
>  height="200"
>  fontSize="20"
>  htmlText="{words.loc.(@v==lang).item.(@m=='3')}"
>  visible="{level=='3'}" />
>
>  
>
>  -- CODE -
>
>  Thanks,
>
>  Heiko
>
>  


Re: [flexcoders] how to call a function in a popup parent?

2008-03-11 Thread Ralf Bokelberg
One possibility is to let the popup dispatch an event.
The parent can register itself as a listener, when it opens the popup.

Cheers
Ralf.

-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant

On Tue, Mar 11, 2008 at 5:48 PM, Derrick Anderson
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> hi,
>
> i create a popup like this from file A:
>
> textPopUp =
> MiniTextEditor(
> PopUpManager.createPopUp(this, MiniTextEditor));
>
> in this case 'this' is file B:
>
> from my popup I am trying to call a function in file A, and since the parent
> i pass to the popup is not actually the 'parent' - i can't figure out how to
> reference a function in the actual parent.  any ideas?
>
> d.
>  


Re: [flexcoders] Possible as3.0 bug?

2008-03-04 Thread Ralf Bokelberg
Are you trying to read a boolean from a xml document?
If so, try it like that:

_miniMapPack=new MiniMapPack(_miniMap.child("active").toString() == "true" );

Cheers
Ralf.


On Tue, Mar 4, 2008 at 6:02 PM, Joe <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hey all,
>
>   So I am making an awesome class, that does awesome things. Really Awesome.
> :P
>
> Anyways, So i get to the point were I am about to init a custom Class,
> called MiniMapPack.
>
> _miniMapPack=new MiniMapPack(_miniMap.child("active"));
>
> passes a true value, even though the data is set to false. So I assume, that
> It is just reading if it is there or not.
>
> However, When i make a getValue method...
>
> private function getValue(item:*):*{
>  //no code is in this method
> }
> without anything inside of it, I can now pass the accurate value. Such as:
>
>
> _miniMap:XML;
>  _miniMapPack:MiniMapPack;
>
> Before:
> _miniMap.child("active"); //false
> _miniMapPack=new MiniMapPack(_miniMap.child("active");  //true;
>
> After:
> _miniMap.child("active"); //false
>  _miniMapPack=new MiniMapPack(getValue(_miniMap.child("active"));  //false;
>
> Interesting, eh?
> Anyone have an explanation?
>
>
> --
> -Joe 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] A Hole in ActionScript 3.0, and a Way Around It

2008-02-29 Thread Ralf Bokelberg
This is exactly as it should be. Try googling for Closures.
Cheers
Ralf.

On Fri, Feb 29, 2008 at 4:30 PM, Kevin Aebig <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
>
> This has been the case with Actionscript since the beginning. A variable is
> always passed as a reference and not a copy. So each time you're looping
> over and creating the function, you're only passing a reference to the
> variable, and not the value itself.
>
>
>
> !k
>
>
>
>  
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Ed Smith
>  Sent: Thursday, February 28, 2008 7:20 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] A Hole in ActionScript 3.0, and a Way Around It
>
>
>
>
>
>
>
> I've just written an article about what I consider to be a rather ugly
>  behavior in ActionScript 3.0:
>
>  http://effectgenerator.com/blog/?p=8
>
>  I appreciate that other coders may not see this as a bug per se, but
>  if there is sufficient agreement then maybe a change to the compiler
>  could be made (or at least a warning added?). It's certainly bitten me
>  several times during coding.
>
>  I'd appreciate your comments. Many Thanks,
>
>  Ed
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Flex 3 and AIR 1 are now live!

2008-02-25 Thread Ralf Bokelberg
Where can we find the windows plugin version?


On Mon, Feb 25, 2008 at 12:18 PM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Monday 25 Feb 2008, João Fernandes wrote:
>  > thanks for the links, I can now start sneaking around all those links ;)
>
>  MXNA has already been flooded :-)
>
>  --
>  Tom Chiverton
>  Helping to centrally reintermediate fourth-generation content
>  on: http://thefalken.livejournal.com
>
>  
>
>  This email is sent for and on behalf of Halliwells LLP.
>
>  Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
> of members is available for inspection at the registered office. Any 
> reference to a partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.  Regulated by The Solicitors Regulation Authority.
>
>  CONFIDENTIALITY
>
>  This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
>
>  For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
>  --
>  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
>
> http://groups.yahoo.com/group/flexcoders/
>
>
>
>



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Any ArrayCollection tricks?

2008-02-19 Thread Ralf Bokelberg
Have you tried ListCollectionView?
Cheers
Ralf.


On Tue, Feb 19, 2008 at 9:12 PM, Paul Andrews <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Unsurprisingly, my Flex applications tend to have a common theme - many
>  components driven from the same data, but with different filter functions.
>
>  With ArrayCollections having one filter function and needing to trigger
>  Binding events, the obvious solution seems to be to duplicate the
>  ArrayCollections (well duplicate the underlying array and use that as the
>  source of a new ArrayCollection) to drive different components with
>  different filter functions.
>
>  This seems a bit of a waste - duplicating the underlying array for each
>  filter, so I wondered if anyone out there has a neat trick to avoid this
>  duplication.
>
>  Paul
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: Problem with focus in secondary popups

2008-02-16 Thread Ralf Bokelberg
You could dispatch a close event to the view, which opened the popup
Cheers
Ralf.

On Sat, Feb 16, 2008 at 1:38 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Thank you, Alex and reflexactions!
>
>  Your advices helped to move forward I can create popups and set focus
>  without a problem. But there is another thing - I have to return focus
>  correctly to the first popup window after second & third popups closed
>  in one click.
>
>  Cheers,
>  Dmitri.
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: Example of Object.isPrototypeOf ()

2008-02-15 Thread Ralf Bokelberg
This method doesn't work, or?
The note in the help seems to imply, that we want to override this
method. Maybe it is just a stub?

Note: Methods of the Object class are dynamically created on Object's
prototype. To redefine this method in a subclass of Object, do not use
the override keyword. For example, A subclass of Object implements
function isPrototypeOf():Boolean instead of using an override of the
base class.

Cheers
Ralf.


On Fri, Feb 15, 2008 at 7:15 PM, Johannes Nel <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> prototype chain is in for ecma complience. the white paper is a good source
> of info
>
>
>
> On Fri, Feb 15, 2008 at 1:03 PM, Roscoe P Coltrane <[EMAIL PROTECTED]>
> wrote:
>
> >
> >
> >
> >
> >
> >
> > What exactly does it mean when the Flex doco says:
> > "This method returns true if the object is in the prototype chain of
> > the object specified by the the Class parameter." What
> > does "prototype chain" mean here? Sorry for my ignorance if this is
> > a dumb question. And are you saying this is an obsolete method?
> >
> > --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]>
> > wrote:
> >
> >
> >
> > >
> > > Flex makes almost no use of AS3's old-style prototype-based
> > inheritance;
> > > it uses the new class-based inheritance. If by "descendant" you
> > mean
> > > "instance of", use the 'is' operator:
> > >
> > > var b:Button = new Button();
> > > trace(b is UIComponent); // --> true
> > >
> > > Gordon Smith
> > > Adobe Flex SDK Team
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Roscoe P Coltrane
> > > Sent: Thursday, February 14, 2008 6:15 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Example of Object.isPrototypeOf ()
> > >
> > >
> > >
> > > Could someone give me a working or semi-working example of
> > how/when to
> > > use isPrototypeOf()? I was thinking that I could query an object
> > and
> > > if it was a descendent of another object, [the argument to
> > > isPrototypeOf()], the method would return true. Not so :)
> > Obviously I
> > > don't understand the usage of this method.
> > >
> > > Thanks,
> > > Roscoe
> > >
> >
> >
>
>
>
> --
> j:pn
> \\no comment 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID

2008-02-12 Thread Ralf Bokelberg
It's hard to say what the problem really is, without seeing the code.
Are you able to isolate the problematic code into a mini project and
provide it as a download?

Cheers
Ralf.

On Tue, Feb 12, 2008 at 8:45 AM, andrii_olefirenko <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> You could try this
>
>  dataGrid.dataProvider.refresh(); //where dataGrid is object of
>  DataGrid class
>
>  Regards,
>  Andrii
>
>
>  --- In flexcoders@yahoogroups.com, "mr_j_harris" <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  > I need to force a redraw of a datagrid.
>  >
>  > Adobe's or whoever's Cleverness is not working for me.
>  >
>  > I just want to have my computer redraw the DataGrid from 0,0 to the
>  > bottom right corner. My computer has nothing better to do than that
>  > for me or my users. Because elsewise it is show stale data.. See, I
>  > recomputer some values in thoe objects in the ArrayCollection
>  > dataProvider of the dataGrid.
>  >
>  >
>  > Please tell me the one, two or three lines of ActionScript that will
>  > do this.
>  >
>  > Oh yeah, without causing that TypeError #1009 thing ever.
>  >
>  >
>  > Alternatively, how can I force a redraw of a particular cell? I know
>  > the cell coordinates
>  >
>  >
>  > -- John Harris
>  >
>
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] date substraction problem

2008-02-11 Thread Ralf Bokelberg
or date.setMonth( date.getMonth() - 1 ) if you want to change the date
object itself

Cheers
Ralf.

On Mon, Feb 11, 2008 at 6:22 PM, Ralf Bokelberg
<[EMAIL PROTECTED]> wrote:
> newDate = new Date( oldDate.getYear(), oldDate.getMonth() - 1,
>  oldDate.getDate());
>
>  Cheers
>  Ralf.
>
>
>
>
>  On Mon, Feb 11, 2008 at 5:08 PM, M.Javed <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > Hi,
>  > I have to substract 1 Month from the Date object, iam currently using the
>  > SetTime() method of date object as follows, but its giving some abnormal
>  > result by adding few days instead of substracting.
>  > ---
>  >  var date:Date = new Date();
>  >  var monthSpan:int = 1000 * 60 * 60 * 24 * 30;
>  >
>  >  this.esView.toDateE.text = date.toDateString();
>  >  date.setTime(date.getTime() - monthSpan);
>  >  this.esView.fromDateE.text = date.toDateString();
>  > 
>  >
>  > the result in the fromDate TextBox should be one month previous date as
>  > compared to the current date. but it doesnt, any idea?
>  >  ____
>  > Never miss a thing. Make Yahoo your homepage. 
>
>
>
>  --
>  Ralf Bokelberg <[EMAIL PROTECTED]>
>  Flex & Flash Consultant based in Cologne/Germany
>



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] date substraction problem

2008-02-11 Thread Ralf Bokelberg
newDate = new Date( oldDate.getYear(), oldDate.getMonth() - 1,
oldDate.getDate());

Cheers
Ralf.


On Mon, Feb 11, 2008 at 5:08 PM, M.Javed <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> Hi,
> I have to substract 1 Month from the Date object, iam currently using the
> SetTime() method of date object as follows, but its giving some abnormal
> result by adding few days instead of substracting.
> ---
>  var date:Date = new Date();
>  var monthSpan:int = 1000 * 60 * 60 * 24 * 30;
>
>  this.esView.toDateE.text = date.toDateString();
>  date.setTime(date.getTime() - monthSpan);
>  this.esView.fromDateE.text = date.toDateString();
> 
>
> the result in the fromDate TextBox should be one month previous date as
> compared to the current date. but it doesnt, any idea?
>  ____
> Never miss a thing. Make Yahoo your homepage. 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Datagrid: how to inline edit entire row

2008-02-06 Thread Ralf Bokelberg
I'd say, try to find the position of the clicked row and place a popup
above it.
Cheers
Ralf.

On Feb 6, 2008 8:44 PM, wwaishan <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi. I'm new to Flex.  This is what I would like to have but haven't figured
> out how to implement yet:
>
> In my data grid, when the user clicks on a row, the entire row becomes
> visually editable, not just the cell that was clicked.  Within this "edit
> form", there will be other controls like another text input field and Save
> and Cancel buttons.
>
> So I'm asking for a few things.
> 1. How do I make the entire row visually editable, not just the clicked
> cell?
> 2. How do I add other controls to this edit form (like Save/Cancel buttons)?
> These additional controls would be contained within the same row.
>
> I found this screenshot that looks very much to what I'm asking for:
> http://www.vitalist.com/neteffect/wp-content/images/cobra-preview-3.gif
>
> I searched online but was unable to find a solution.  Any suggestions would
> be appreciated.
> Thanks. 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: Autocomplete from the browser in a login username field

2008-01-02 Thread Ralf Bokelberg
Would be nice though.
Maybe you can add a enhancement request to the bugbase.

Cheers
Ralf.

On Jan 2, 2008 7:00 PM, iilsley <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I dont believe its possible to use the 'browsers' autofill ..
>
> However you could potentially implement your own 'application' specific
> 'autofill' like behavior
> with 'Shared Objects' ..
>
> http://learn.adobe.com/wiki/display/Flex/Shared+Objects
>
>
>
>
> --- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]> wrote:
> >
> > I have a form I use for login into which my users type their username
> > and password. Does anyone know of a way of using the browser autofill
> > to populate form text fields?
> >
>  



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: Unwanted arguement?

2008-01-02 Thread Ralf Bokelberg
Sometimes i use the following code to make clear
that i'm not using the arguments

private function staffGridFocus( ... ignore ):void

Cheers
Ralf.


  1   2   3   4   >