[flexcoders] Module unloads but FlexModuleFactory instance does not unload

2008-03-01 Thread Kevin Broce
I have a simple Module (TestModule) that I can load and unload using 
ModuleManager in a Flex Application (FlexApp). 

Profiler shows the following two new Live Objects when TestModule 
loads:

TestModule

_TestModule_mx_core_FlexModuleFactory

Each object has a total of 1 instance.

When I unload TestModule and force a GC, the TestModule instance and 
memory drop to 0 which is good. However, 
_TestModule_mx_core_FlexModuleFactory continues to have 1 instance 
and is using memory.

When I grab "before and after" Memory Snapshots in Profiler, the 
Factory instance appears in the Loitering Objects list.  The Object 
References for the Factory show 2 instances:

--
Instance  Property
--

_TestModule_mx_core_FlexModuleFactory (2)

Function (2)[savedThis]

_TestModule_mx_core_FlexMod...  moduleCompleteHandler

flash.display:LoaderInfo[listner0]

Function (1)[savedThis]

_TestModule_mx_core_FlexMod...  docFrameHandler


Instance #2 is coming from the Module loading process and appears to 
be unloading properly.

Instance #1 appears to be coming from mx.core:FlexModuleFactory.  
However, this code is part of the "generated" ActionScript that I 
cannot debug.

I tried loading TestModule into the "current" App Domain and I also 
tried loading it into a separate "child" App Domain, however the 
results were the same.

I'm using Flex Builder 3.0 (release). FlexApp is loading the 
framework.swc as an RSL.

TestModule.mxml
---


http://www.adobe.com/2006/mxml"; 
layout="absolute" width="200" height="100">




Questions:

How do I unload this Factory instance?


Why are there 2 instances under Loitering Objects when the Cumulative 
Instance count is only 1?


Thanks for your help.  I am really stuck on this.






Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Sherif Abdou
http://www.flexregistration.com/
they take like 1 or 2 days to send hyou a key


- Original Message 
From: devang solanki <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 11:35:08 PM
Subject: Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

Thank you so much for your comments
 
i all ready have flex builder 2.0 serial no, but its not working with flex 
builder 3.0, regarding that if any one guide me. 
 
how to go for education version ?
 
Regards
Devang


On Sun, Mar 2, 2008 at 10:37 AM, Doug McCune <[EMAIL PROTECTED] com> wrote:

Oooh, that's right, the dude is the owner of "Magic Legs Martial Arts Academy". 
You think that academy qualifies for the education discount? 
http://www.linkedin .com/in/dangeoru skicker 




On 3/1/08, Sherif Abdou <[EMAIL PROTECTED] com> wrote: 
and then there is always the education version too 



- Original Message 
From: ben.clinkinbeard 
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, March 1, 2008 10:56:45 PM
Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need


U. There is a 60 day trial available from the Adobe site. Install
it and start saving your money so you can buy it in 2 months.

--- In [EMAIL PROTECTED] ups.com, "devang solanki" 
wrote:
>
> Dear Friends
> 
> if any one have flex builder 3.0 serial no or crack, then please
forward to
> me, i need it
> 
> Regards
> Devang
>







Looking for last minute shopping deals? Find them fast with Yahoo! Search. 




 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread devang solanki
Thank you so much for your comments

i all ready have flex builder 2.0 serial no, but its not working with flex
builder 3.0, regarding that if any one guide me.

how to go for education version ?

Regards
Devang

On Sun, Mar 2, 2008 at 10:37 AM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   Oooh, that's right, the dude is the owner of "Magic Legs Martial Arts
> Academy". You think that academy qualifies for the education discount?
> http://www.linkedin.com/in/dangeoruskicker
>
>
> On 3/1/08, Sherif Abdou <[EMAIL PROTECTED]> wrote:
> >
> >and then there is always the education version too
> >
> > - Original Message 
> > From: ben.clinkinbeard <[EMAIL PROTECTED]>
> > To: flexcoders@yahoogroups.com
> > Sent: Saturday, March 1, 2008 10:56:45 PM
> > Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need
> >
> >  U. There is a 60 day trial available from the Adobe site. Install
> > it and start saving your money so you can buy it in 2 months.
> >
> > --- In [EMAIL PROTECTED] ups.com ,
> > "devang solanki" 
> > wrote:
> > >
> > > Dear Friends
> > >
> > > if any one have flex builder 3.0 serial no or crack, then please
> > forward to
> > > me, i need it
> > >
> > > Regards
> > > Devang
> > >
> >
> >
> >
> > --
> > Looking for last minute shopping deals? Find them fast with Yahoo!
> > Search.
> >
> >
> 
>


Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Doug McCune
Oooh, that's right, the dude is the owner of "Magic Legs Martial Arts
Academy". You think that academy qualifies for the education discount?
http://www.linkedin.com/in/dangeoruskicker


On 3/1/08, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
>   and then there is always the education version too
>
> - Original Message 
> From: ben.clinkinbeard <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, March 1, 2008 10:56:45 PM
> Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need
>
>  U. There is a 60 day trial available from the Adobe site. Install
> it and start saving your money so you can buy it in 2 months.
>
> --- In [EMAIL PROTECTED] ups.com , "devang
> solanki" 
> wrote:
> >
> > Dear Friends
> >
> > if any one have flex builder 3.0 serial no or crack, then please
> forward to
> > me, i need it
> >
> > Regards
> > Devang
> >
>
>
>
> --
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search.
>
>  
>


[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread andrii_olefirenko
BTW, i remember FB 3 Betas were quite easy to "fix" given decompilable
nature of java code; they had these buggy day counters... 
i don't know if it's true for release version.

--- In flexcoders@yahoogroups.com, "andrii_olefirenko" <[EMAIL PROTECTED]>
wrote:
>
> it's so cute :)
> i bet you need it URGENT?
> --- In flexcoders@yahoogroups.com, "devang solanki" 
> wrote:
> >
> > Dear Friends
> > 
> > if any one have flex builder 3.0 serial no or crack, then please
> forward to
> > me, i need it
> > 
> > Regards
> > Devang
> >
>




Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Sherif Abdou
and then there is always the education version too



- Original Message 
From: ben.clinkinbeard <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 10:56:45 PM
Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

U. There is a 60 day trial available from the Adobe site. Install
it and start saving your money so you can buy it in 2 months.

--- In [EMAIL PROTECTED] ups.com, "devang solanki" 
wrote:
>
> Dear Friends
> 
> if any one have flex builder 3.0 serial no or crack, then please
forward to
> me, i need it
> 
> Regards
> Devang
>


 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Need Help on Date Globalization in Flex 3

2008-03-01 Thread Paul Hastings
[EMAIL PROTECTED] wrote:
> Could any one please help me out in implementing globalization of date 
> format in Flex 3, when I choose the language as US_English or Spanish or 
> French for example

here's one approach (based on CLDR data, which is a darned good idea):

http://as3localedata.riaforge.org/



[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread ben.clinkinbeard
U. There is a 60 day trial available from the Adobe site. Install
it and start saving your money so you can buy it in 2 months.




--- In flexcoders@yahoogroups.com, "devang solanki" <[EMAIL PROTECTED]>
wrote:
>
> Dear Friends
> 
> if any one have flex builder 3.0 serial no or crack, then please
forward to
> me, i need it
> 
> Regards
> Devang
>




Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
Sherif,

Thanks i ended up with var randSeed:Number = new Number(Math.floor(
Math.random() * this.techniColors.length));

On Sat, Mar 1, 2008 at 9:48 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>   something like this should work
>
> var randomNumber:int = Math.Random * myArray.length;
>
> then do something like myArray[randomNumber] whatever
>
>
> - Original Message 
> From: Sean Scott <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, March 1, 2008 9:39:39 PM
> Subject: [flexcoders] Newbie Question - Random position in an array
>
>  Hi folks, wondering if someone has a function that returns a random
> position from an array.
>
> Thanks from a newbie,
>
>
> --
> Never miss a thing. Make Yahoo your 
> homepage.
> 
>


[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread andrii_olefirenko
it's so cute :)
i bet you need it URGENT?
--- In flexcoders@yahoogroups.com, "devang solanki" <[EMAIL PROTECTED]>
wrote:
>
> Dear Friends
> 
> if any one have flex builder 3.0 serial no or crack, then please
forward to
> me, i need it
> 
> Regards
> Devang
>




Re: [flexcoders] Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Doug McCune
Heh, I was about to comment about what a funny request this is to this group
considering the number of Adobe employees who read this list. But then I
realized that this dude is an "expert in Special Kicks, Foot-Works, Flips,
Combining various Martial Arts like Karate-Do, Tae Kwon-Do, Wu-Shu, capoeira
with gymnastics and acrobatics."

http://www.dangerouskicker.com/

You better give him his serial number or the guy may just kick you in the
face :)


On 3/1/08, devang solanki <[EMAIL PROTECTED]> wrote:
>
>   Dear Friends
>
> if any one have flex builder 3.0 serial no or crack, then please forward
> to me, i need it
>
> Regards
> Devang
>
>  
>


[flexcoders] Re: books, tutorials, articles on security issue

2008-03-01 Thread andrii_olefirenko
i think there so no anything special in flex/php regarding security
issues. maybe only that you should keep in mind that flex client code
is executed by untrusted machine while php code is trusted as it's
executed on the server. so flex app is less secure by default if apply
the same principles as you did for server side framework/language. the
best methodology is to advertise your site as the most secure one and
wait till hackers bomb it, then fix and repeat again :)

MD5/SHA are hash functions not cipher function (encrypt/decrypt)

Andrii Olefirenko

--- In flexcoders@yahoogroups.com, "Heiko Niemann" <[EMAIL PROTECTED]> wrote:
>
> Hi, I am looking for books, tutorials, articles that cover aspects,
> best practices, and/or concepts of security issues - some kind of
> overview.
> 
> Right now I am struggling to put together all the pieces you get when
> you google for keywords like authentication management, encryption,
> as3corelib, sql injection, ...
> 
> My setup will be: flex app with user login and data requests, php
> scripts, mySQL database.
> 
> Questions:
> 1) What is the 'best' way to design a secure login process in flex?
> 2) After login, how will I authenticate when doing data requests?
> 3) Working with GUID/UUID tokens, will I have to encrypt those to make
> their use secure? ... or is that a stupip question? :)
> 4) Is there any sample how to use the MD5/SHA1 encryption and decrypt
> it with php?
> 5) I have found the term 'challenge-response methodology'. Anybody
> know a (flex/php) sample for that?
> 
> These security issues are so overwhelming once you have to move from
> the intranet or localhost to the real world. :)
> 
> Thanks for your help,
> 
> Heiko
>




[flexcoders] Flex Builder 3.0 Serial No. Need

2008-03-01 Thread devang solanki
Dear Friends

if any one have flex builder 3.0 serial no or crack, then please forward to
me, i need it

Regards
Devang


[flexcoders] Re: Is setting custom headers on HTTPService for a GET possible?

2008-03-01 Thread andrii_olefirenko
If i'm not wrong, this is security restriction in Flash player. Some
headers like Referer and the like shouldn't be added or modified by
untrusted program (e.g. flash movie)
I would consider using binary sockets to implement your own http
stack, if you need these headers badly.

Andrii Olefirenko


--- In flexcoders@yahoogroups.com, ivo <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> Thought I'd repost again since I am curious as to the answer. I am
thinking I am missing something blindingly obvious since no one
bothers to reply. Must be a valid question because I have gotten three
private "me too" replies.
> 
> I need to communicate with a web service where I need to set custom
headers. Seems to work as expected for both GET and POST under AIR.
Using web browsers the custom headers are only included for POST when
using HTTPService and never for URLLoader. Couldnt find in the docs if
this is by design or a bug since they lead me to believe this should
be possible (except for the blacklisted headers).
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, February 29, 2008 11:51:32 AM
> Subject: Re: [flexcoders] Is setting custom headers on HTTPService
for a GET possible?
> 
>   
> Debugging  a bit further shows that the same behavior happens when
using a URLLoader. Then the custom headers are not sent.
> 
> Under Air tho the custom headers are always sent, GET or POST.
> 
> These headers are all truly custom so they are not in the
URLRequestHeader blacklist.
> 
> Is there a way to set custom headers on a GET? Short of opening a
Socket connection and writing out the HTTP requests?
> 
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo 
> To: [EMAIL PROTECTED] ups.com
> Sent: Friday, February 29, 2008 10:06:45 AM
> Subject: [flexcoders] Is setting custom headers on HTTPService for a
GET possible?
> 
> Hey all,
> 
> Don't see it indicated in the docs but debugging revealed that
custom headers set on an HTTPService GET are not sent. Is this correct
or am I missing something?
> 
> var httpService: HTTPService = new HTTPService( );
> httpService. method = 'GET';
> httpService. headers = {customHeader: 'foobar'};
> httpService. send({});
> 
> /*
> server-side all I see is:
> 
> [Fri Feb 29 10:05:34 2008] [error] Accept: */*
> [Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
> [Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
> [Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
> [Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
> [Fri Feb 29 10:05:34 2008] [error] Content-Type: application/
x-www-form- urlencoded
> 
> If I switch method = 'POST' then I see:
> 
> [Fri Feb 29 10:06:12 2008] [error] customHeader: foobar
> 
> */
> 
> Thanks,
> 
> - Ivo
> 
> 
> 
>   
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>




Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sherif Abdou
something like this should work
var randomNumber:int = Math.Random * myArray.length;
then do something like myArray[randomNumber] whatever



- Original Message 
From: Sean Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 9:39:39 PM
Subject: [flexcoders] Newbie Question - Random position in an array

Hi folks, wondering if someone has a function that returns a random position 
from an array.

Thanks from a newbie,

 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Need Help on Date Globalization in Flex 3

2008-03-01 Thread Jason Sheedy
Hi Madhu,
the best thing to do in my opinion is to put your date mask in your resource
bundle and change it to whatever you'd like to use for each locale.

I blog a bit about I18N in flex3 a little while back ..

http://www.jmpj.net/jason/index.cfm/2007/12/19/I18n-in-Flex-3--pros-and-cons

Hope this helps.

-- 
Jason Sheedy
www.bytespring.com
www.jmpj.net
-
-

On 02/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>Hi There,
>
> Could any one please help me out in implementing globalization of date
> format in Flex 3, when I choose the language as US_English or Spanish or
> French for example
>
> I have to change the date format on the display to* dd/mm/* or*mm/dd/
> *, etc based on the locale chosen.
>
> Which approach is better to implement this logic.
>
> Expecting to get your help soon.
>
> Cheers,
> Madhu K
>
> *Please do not print this email unless it is absolutely necessary. Spread
> environmental awareness.*
>
>  
>


[flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
Hi folks, wondering if someone has a function that returns a random position
from an array.

Thanks from a newbie,


Re: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent

2008-03-01 Thread Sherif Abdou
try adding it to a FlexSprite then to a UIComponenet or any of those 
FlexDisplayObject classes



- Original Message 
From: Brian <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 5:32:13 PM
Subject: [flexcoders] Re: How can I add Sprite / MovieClip to stage without 
error of not UIComponent

I'm echoing the request for an example here because I'm having the
exact same problem. How would you 'add everything meaningfull stuff as
child of that UIComponent' , when UIComponent. addChild( ) has the same
restrictions as the original component I tried adding the MovieClip to?

I also tried adding a MovieClip to a TitleWindow for a popUp instead
of the stage and had the same error.

--- In [EMAIL PROTECTED] ups.com, "helihobby" <[EMAIL PROTECTED] ..> wrote:
>
> Can you post an example please ?
> 
> --- In [EMAIL PROTECTED] ups.com, Jonathan Lee 
> wrote:
> >
> > What I did is just add a UIComponent under the container as a child.
> The add everything meaningful stuff as child of that UIComponent.
> > 
> > 
> > 
> > helihobby  wrote: This
> is the exact error I get:
> > 
> > Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed:
> > cannot convert flash.display: :MovieClip@ 479b1f1 to
> mx.core.IUIComponen t.) 
> > 
>
mx.core::Container/http://www.adobe. com/2006/ flex/mx/internal ::addingChild
> > 
> > mx.core::Container/ addChildAt 
> > mx.core::Container/ addChild 
> > TestAS12344/ setFire 
> > TestAS12344/ onClick 
> > TestAS12344/ __bb_click 
> > 
> > --- In [EMAIL PROTECTED] ups.com, "helihobby"  wrote:
> > >
> > > 
> > > How can I add Sprite / MovieClip to stage without error of not
> > > UIComponent ?
> > > 
> > > Everytine I add a Sprite or MC I get the error ... even if I try to
> > > cast to a DisplayObject ...
> > > 
> > > Any help is greatly appreciated ...
> > > 
> > > Sean.
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> >  - - ---
> > Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> >
>


 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] object and keys

2008-03-01 Thread Sherif Abdou
can you do something like this
var myInt:int =5;
var myObject:Object = {};
myObject[someRandomKey].myInt = somethinghere
myInt--;
//then we loop again so 5 becomes 4 etc... 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Re: Is setting custom headers on HTTPService for a GET possible?

2008-03-01 Thread dave_defusion
Yeah this is the case with Flex, I think it has something to do with
the flash player (but don't quote me on that) -- I'm sure this
question will have been asked on here many times before so maybe you
can find a more detailed answer.

HTTPService definitely has some idiosyncrasies such as if you don't
include a request object then all requests are sent as GET, and
sometimes when you do set a request object requests are sent as either
GET or POST (based on the contentType set on the service). The fact
that all these idiosyncrasies aren't documented makes it very
frustrating to work with HTTPService sometimes -- and like I said it's
probably more down to the flash player than Flex's HTTPService.

I myself am trying to figure out how I can add to or override the
"Accept" header but haven't had much luck.

-D

--- In flexcoders@yahoogroups.com, ivo <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> Thought I'd repost again since I am curious as to the answer. I am
thinking I am missing something blindingly obvious since no one
bothers to reply. Must be a valid question because I have gotten three
private "me too" replies.
> 
> I need to communicate with a web service where I need to set custom
headers. Seems to work as expected for both GET and POST under AIR.
Using web browsers the custom headers are only included for POST when
using HTTPService and never for URLLoader. Couldnt find in the docs if
this is by design or a bug since they lead me to believe this should
be possible (except for the blacklisted headers).
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, February 29, 2008 11:51:32 AM
> Subject: Re: [flexcoders] Is setting custom headers on HTTPService
for a GET possible?
> 
>   
> Debugging  a bit further shows that the same behavior happens when
using a URLLoader. Then the custom headers are not sent.
> 
> Under Air tho the custom headers are always sent, GET or POST.
> 
> These headers are all truly custom so they are not in the
URLRequestHeader blacklist.
> 
> Is there a way to set custom headers on a GET? Short of opening a
Socket connection and writing out the HTTP requests?
> 
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo 
> To: [EMAIL PROTECTED] ups.com
> Sent: Friday, February 29, 2008 10:06:45 AM
> Subject: [flexcoders] Is setting custom headers on HTTPService for a
GET possible?
> 
> Hey all,
> 
> Don't see it indicated in the docs but debugging revealed that
custom headers set on an HTTPService GET are not sent. Is this correct
or am I missing something?
> 
> var httpService: HTTPService = new HTTPService( );
> httpService. method = 'GET';
> httpService. headers = {customHeader: 'foobar'};
> httpService. send({});
> 
> /*
> server-side all I see is:
> 
> [Fri Feb 29 10:05:34 2008] [error] Accept: */*
> [Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
> [Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
> [Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
> [Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
> [Fri Feb 29 10:05:34 2008] [error] Content-Type: application/
x-www-form- urlencoded
> 
> If I switch method = 'POST' then I see:
> 
> [Fri Feb 29 10:06:12 2008] [error] customHeader: foobar
> 
> */
> 
> Thanks,
> 
> - Ivo
> 
> 
> 
>   
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>




[flexcoders] Re: Flex 3 Compiler Bug? 1119 Error creating BarChart

2008-03-01 Thread Sherpa_Ed
Well well well. Turns out the problem is that my app is called 
BarChart, and therein lies the conflict. Since I need to keep the app 
name as is, I just instantiated the chart using the full namespace 
name: 
   barchart:mx.charts.BarChart = new mx.charts.BarChart();

Case closed.



--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]> 
wrote:
>
> I had encountered a 1119 error when creating a BarChart using Beta 
3 
> and assumed it would be fixed in the release. Unfortunately, I'm 
still 
> getting the same bug and am curious if anyone might be able to shed 
> light on what could be the problem - either on my end, or perhaps 
if 
> this is a known deferred bug (can't imagine!). 
> I entered a bug a few weeks back that seemed to just sit in the 
system 
> without comment. Here's the URL with a description and images:
> 
> http://bugs.adobe.com/jira/browse/FB-12025
> 
> Strange little bug. If I change the BarChart to either a 
CartesianChart 
> or ColumnChart, it compiles fine. It fails only as a BarChart. 
> 
> Any thoughts?
>




[flexcoders] Re: Tilelist Error

2008-03-01 Thread Damien Legros
--- In flexcoders@yahoogroups.com, "Damien Legros" <[EMAIL PROTECTED]>
wrote:
>
> --- In flexcoders@yahoogroups.com, John DuPaix  wrote:
> >
> > 
> > I have an odd this happening in my tilelist.  I am using a custom
> renderer that is an image.  For the image source, i am using bindable
> bitmap data instead of a url.  Everything works fine at first, but as
> the tilelist gets longer, the previous images start disappearing. 
> Then when i scroll up and down, they all disappear and are not
> redrawn. Any ideas? Thanks, John
> >
> 
> 
> The list renderers get recycled once they disapear from the screen,
> make sure you set the "load" proterty of the image to true, and maybe
> you will need to override the renderer "data" property too :)
> 
> Damien
>

oops, i mean the "autoLoad" property



[flexcoders] Re: Tilelist Error

2008-03-01 Thread Damien Legros
--- In flexcoders@yahoogroups.com, John DuPaix <[EMAIL PROTECTED]> wrote:
>
> 
> I have an odd this happening in my tilelist.  I am using a custom
renderer that is an image.  For the image source, i am using bindable
bitmap data instead of a url.  Everything works fine at first, but as
the tilelist gets longer, the previous images start disappearing. 
Then when i scroll up and down, they all disappear and are not
redrawn. Any ideas? Thanks, John
>


The list renderers get recycled once they disapear from the screen,
make sure you set the "load" proterty of the image to true, and maybe
you will need to override the renderer "data" property too :)

Damien



RE: [flexcoders] Flex Soap Object Arrays

2008-03-01 Thread Randy Martin
Try using the WSDL wizard in FB3. It works a treat!
 
~randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Telmo Dias
Sent: Saturday, March 01, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Soap Object Arrays



Hi all,

First of all , I'm new to flex. Already bought a few books but none 
describes this issue in detail.

I'm having huge trouble accessing object arrays from SOAP. I'm using 
Flex Builder 3, Version: 3.0.190133, the last beta version.
I used the Import Web Services wizard to import 
HYPERLINK
"http://ws.marcocova.com/SOAP/af4.php?wsdl"http://ws.marcocova-.com/SOAP/-af
4.php?wsdl . My partner who writes the 
SOAP code, has tried several approaches. In the approaches before the 
current one, I couldn't even get a simple var, it would always come in 
as null. Now I can get simple vars like strings or numbers, but I'm 
unable to get Arrays.

Below is the code I'm using. At this moment when I debug I'm getting the 
error:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at WSDL8_AF4/processRe-sults()[F:-\Para_Novo_-CD\BACKUPS\-My 
Documents\Flex Builder 3\WSDL8_AF4\-src\WSDL8_-AF4.mxml:-32]
at flash.events:-:EventDispatcher-/dispatchEventFu-nction()
at flash.events:-:EventDispatcher-/dispatchEvent(-)
at 
com.marcocova:-:ExampleService/-_getPeopleByFirs-tLastName_-populate_-result
s()-[F:\Para_-Novo_CD\BACKUPS\-My 
Documents\Flex Builder
3\WSDL8_AF4\-src\com\marcocov-a\ExampleService-.as:147]
at flash.events:-:EventDispatcher-/dispatchEventFu-nction()
at flash.events:-:EventDispatcher-/dispatchEvent(-)
at 
com.marcocova:-:BaseExampleServ-ice/processResul-t()[F:\Para_-Novo_CD\BACKUP
S\-My 
Documents\Flex Builder 
3\WSDL8_AF4\-src\com\marcocov-a\BaseExampleSer-vice.as:207]
at 
mx.rpc::AsyncRespon-der/result(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-proj
ects\-rpc\src\mx\-rpc\AsyncRespond-er.as:73]
at 
mx.rpc::AsyncReques-t/acknowledge(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-p
rojects\-rpc\src\mx\-rpc\AsyncRequest-.as:81]
at 
DirectHTTPMessageRe-sponder/complete-Handler()-[E:\dev\flex_-3_beta3\sdk\-fr
ameworks\-projects\-rpc\src\mx\-messaging\-channels\-DirectHTTPChanne-l.as:3
87]
at flash.events:-:EventDispatcher-/dispatchEventFu-nction()
at flash.events:-:EventDispatcher-/dispatchEvent(-)
at flash.net::URLLoade-r/onComplete(-)

Can someone who understands this, please help me? I've been around this 
issue for one week without results... Already checked the posts on the 
list, since 14/11/2007.

Thanks in advance.

Telmo Dias


http://www.adobe.com/2006/mxml"http://www.adobe.-com/2006/-mxml"; 
layout="absolute" initialize="-getResults(-)">





-- 
Telmo Dias mailto:telmo%40xyle.pt"[EMAIL PROTECTED]>
XYLE [Xyledot Unipessoal Lda.]
R. Dr. Jose Martinho Simoes, 81
3260-421 Figueiro dos Vinhos - Leiria - Portugal
Website > www.xyle.pt
Tel/Phone > +351236551671
Tlm/Cell > +351918047464
-_-_-_-_-_

Nota de confidencialidade: Esta mensagem poderá conter informação
priveligiada e confidencial destinando-se exclusivamente ao destinatário da
mesma. Se não é o destinatário da presente comunicação, agradecemos que nos
informe e elimine a mensagem sem que a mesma seja divulgada, distribuida ou
copiada. Obrigado.



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.516 / Virus Database: 269.21.2/1305 - Release Date: 2/29/2008
6:32 PM
 


[flexcoders] Flex 3 Compiler Bug? 1119 Error creating BarChart

2008-03-01 Thread Sherpa_Ed
I had encountered a 1119 error when creating a BarChart using Beta 3 
and assumed it would be fixed in the release. Unfortunately, I'm still 
getting the same bug and am curious if anyone might be able to shed 
light on what could be the problem - either on my end, or perhaps if 
this is a known deferred bug (can't imagine!). 
I entered a bug a few weeks back that seemed to just sit in the system 
without comment. Here's the URL with a description and images:

http://bugs.adobe.com/jira/browse/FB-12025

Strange little bug. If I change the BarChart to either a CartesianChart 
or ColumnChart, it compiles fine. It fails only as a BarChart. 

Any thoughts?




[flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent

2008-03-01 Thread Brian
I'm echoing the request for an example here because I'm having the
exact same problem. How would you 'add everything meaningfull stuff as
child of that UIComponent', when UIComponent.addChild() has the same
restrictions as the original component I tried adding the MovieClip to?

I also tried adding a MovieClip to a TitleWindow for a popUp instead
of the stage and had the same error.

--- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Can you post an example please ?
> 
> --- In flexcoders@yahoogroups.com, Jonathan Lee 
> wrote:
> >
> > What I did is just add a UIComponent under the container as a child.
> The add everything meaningful stuff as child of that UIComponent.
> > 
> > 
> > 
> > helihobby  wrote:   This
> is the exact error I get:
> >  
> >  Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed:
> >  cannot convert flash.display::[EMAIL PROTECTED] to
> mx.core.IUIComponent.) 
> >  
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild
> >  
> >   mx.core::Container/addChildAt 
> >   mx.core::Container/addChild 
> >   TestAS12344/setFire 
> >   TestAS12344/onClick 
> >   TestAS12344/__bb_click 
> >  
> >  --- In flexcoders@yahoogroups.com, "helihobby"  wrote:
> >  >
> >  > 
> >  > How can I add Sprite / MovieClip to stage without error of not
> >  > UIComponent ?
> >  > 
> >  > Everytine I add a Sprite or MC I get the error ... even if I try to
> >  > cast to a DisplayObject ...
> >  > 
> >  > Any help is greatly appreciated ...
> >  > 
> >  > Sean.
> >  >
> >  
> >  
> >  
> >
> > 
> >
> > -
> > Looking for last minute shopping deals?  Find them fast with Yahoo!
> Search.
> >
>




[flexcoders] possible bug in viewstacks with states or am i not doing something right?

2008-03-01 Thread Derrick Anderson
hi, i'm seeing odd behavior in my application, whenever i use a custom
component that has states defined- my outermost viewstack stops functioning
(stops showing it's children when i change the visible child).  when i take
the states out it works just fine

here's how it's laid out

main.mxml -->viewStack in this class
-- stack container 1
-> custom component (2 states defined)
-> custom component (2 states defined)
-- stack container 2
-- stack container 3

the states code is identical in each of the two custom components












and it get's called like this

private function init():void{
this.currentState = 'graph';
}

is it a bug?  i don't see why those states should affect the behavior of the
main viewstack, but i'm sure it does- anybody know what gives or know a
workaround ?

thanks,
d.


[flexcoders] RTF vs RTE

2008-03-01 Thread aceoohay
I want to create a Rich Text Format (RTF) editor in flex, is it doable?

I was initially excited about the RTE component until I realized that 
the output is html. Has anyone created either an RTF component, or a 
reliable translation class from html to RTF?

My end goal is to create a mail merge component where the users will be 
able to create a document with tags that can be replaced with fields 
from a DB. Once merged I want to send it to a word processor such as 
word for rendering to the printer.

Paul



[flexcoders] Re: DataGrid-itemRenderer-NumericStepper-sending data question

2008-03-01 Thread mousikos2001
Its outside the datagrid.




[flexcoders] Tilelist itemRenderers

2008-03-01 Thread guero235
I have an odd thing happening in my tilelist.  I am using a custom 
renderer that basical is an image inside of an hbox.  For the image 
source, i am using bindable bitmap data instead of a url.  Everything 
works fine at first, but as the tilelist gets longer, the previous 
images start disappearing.  Then when i scroll up and down, they all 
disappear and are not redrawn. Any ideas?
 
Thanks,
 
John




[flexcoders] Tilelist Error

2008-03-01 Thread John DuPaix

I have an odd this happening in my tilelist.  I am using a custom renderer that 
is an image.  For the image source, i am using bindable bitmap data instead of 
a url.  Everything works fine at first, but as the tilelist gets longer, the 
previous images start disappearing.  Then when i scroll up and down, they all 
disappear and are not redrawn. Any ideas? Thanks, John

[flexcoders] How to get the week selected from the calendar component

2008-03-01 Thread flexshep
Hello, I'm new to the group--primarily a Flash developer -->
attempting to learn Flex mxml/AS3.

Does anyone have any examples of how to get the selected week from the
Calendar Component?

For example, there are 52 weeks in a year, so if someone clicks on Dec
30 it would dispatch week 52 etc...I guess that I would have to take
the first Monday of the week, then for every 7 days add 1 until all 52
weeks have been accounted for.  I'm not sure how best to calculate this.

Also, if a user selects any day of the week on the Calendar Component,
how would you highlight or select the whole week as opposed to just
the day selected?

I'm glad Flexcoders is here to help. I hope I can contribute as well
someday.

Thanks.



[flexcoders] Flex Soap Object Arrays

2008-03-01 Thread Telmo Dias
Hi all,

First of all , I'm new to flex. Already bought a few books but none
describes this issue in detail.

I'm having huge trouble accessing object arrays from SOAP.  I'm using
Flex Builder 3, Version: 3.0.190133, the last beta version.
I used the Import Web Services wizard to import
http://ws.marcocova.com/SOAP/af4.php?wsdl . My partner who writes the
SOAP code, has tried several approaches. In the approaches before the
current one, I couldn't even get a simple var, it would always come in
as null. Now I can get simple vars like strings or numbers, but I'm
unable to get Arrays.

Below is the code I'm using. At this moment when I debug I'm getting
the error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
   at WSDL8_AF4/processResults()[F:\Para_Novo_CD\BACKUPS\My
Documents\Flex Builder 3\WSDL8_AF4\src\WSDL8_AF4.mxml:32]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at
com.marcocova::ExampleService/_getPeopleByFirstLastName_populate_results()[F:\Para_Novo_CD\BACKUPS\My
Documents\Flex Builder
3\WSDL8_AF4\src\com\marcocova\ExampleService.as:147]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at
com.marcocova::BaseExampleService/processResult()[F:\Para_Novo_CD\BACKUPS\My
Documents\Flex Builder
3\WSDL8_AF4\src\com\marcocova\BaseExampleService.as:207]
   at
mx.rpc::AsyncResponder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncResponder.as:73]
   at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:81]
   at
DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/onComplete()


Can someone who understands this, please help me? I've been around
this issue for one week without results... Already checked the posts
on the list, since 14/11/2007.

Thanks in advance.

Telmo Dias




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



[flexcoders] Re: DataGrid-itemRenderer-NumericStepper-sending data question

2008-03-01 Thread mousikos2001
Its outside the DataGrid.



[flexcoders] Re: Pros and cons of bindable versus dispatching one's own events?

2008-03-01 Thread JustusLogan
I read the links provided by Doug (thanks!) and came up with this. Keep
in mind that the "age" property doesn't have an instance field, so
there's no possibility of a corresponding setter. Therefore, the change
event needed to be broadcast from the set dob (i.e., changing one's DOB
also change's one's age). Note that there's a [Bindable] on the whole
class, to allow bindings to other properties.


public function set dob(dob:Date):void {
   var oldAge:int = age;
   this._dob = dob;
   this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "age",
oldAge, age));
  }

[Bindable(event="propertyChange")]
public function get age():int{
   // Yes, this is a poor algorythm. It's just to illustrate a point!
   return (new Date().getTime() - dob.getTime()) / 1000 / 60 / 60 / 24 /
365;
}


--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> You can make read-only properties bindable. In your case your age
property
> is a read-only property since it only has a getter. The normal
bindable
> stuff doesn't work on that because bindable properties require both a
getter
> and a setter to work. But if you define only a getter you can still
use the
> [Bindable] metadata tag, but you have to dispatch a custom event that
tells
> everything that the value has updated.
>
> Check out these links:
> http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex
>
http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-f\
lex-2/
>



[flexcoders] Flex Soap Object Arrays

2008-03-01 Thread Telmo Dias
Hi all,

First of all , I'm new to flex. Already bought a few books but none 
describes this issue in detail.

I'm having huge trouble accessing object arrays from SOAP.  I'm using 
Flex Builder 3, Version: 3.0.190133, the last beta version.
I used the Import Web Services wizard to import 
http://ws.marcocova.com/SOAP/af4.php?wsdl . My partner who writes the 
SOAP code, has tried several approaches. In the approaches before the 
current one, I couldn't even get a simple var, it would always come in 
as null. Now I can get simple vars like strings or numbers, but I'm 
unable to get Arrays.

Below is the code I'm using. At this moment when I debug I'm getting the 
error:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at WSDL8_AF4/processResults()[F:\Para_Novo_CD\BACKUPS\My 
Documents\Flex Builder 3\WSDL8_AF4\src\WSDL8_AF4.mxml:32]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
com.marcocova::ExampleService/_getPeopleByFirstLastName_populate_results()[F:\Para_Novo_CD\BACKUPS\My
 
Documents\Flex Builder 3\WSDL8_AF4\src\com\marcocova\ExampleService.as:147]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
com.marcocova::BaseExampleService/processResult()[F:\Para_Novo_CD\BACKUPS\My 
Documents\Flex Builder 
3\WSDL8_AF4\src\com\marcocova\BaseExampleService.as:207]
at 
mx.rpc::AsyncResponder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncResponder.as:73]
at 
mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:81]
at 
DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()


Can someone who understands this, please help me? I've been around this 
issue for one week without results... Already checked the posts on the 
list, since 14/11/2007.

Thanks in advance.

Telmo Dias




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





-- 
Telmo Dias <[EMAIL PROTECTED]>
XYLE   [Xyledot Unipessoal Lda.]
R. Dr. Jose Martinho Simoes, 81
3260-421 Figueiro dos Vinhos - Leiria - Portugal
Website   > www.xyle.pt
Tel/Phone > +351236551671
Tlm/Cell  > +351918047464
_

Nota de confidencialidade:  Esta mensagem poderá conter informação priveligiada 
e confidencial destinando-se exclusivamente ao destinatário da mesma. Se não é 
o destinatário da presente comunicação, agradecemos que nos informe e elimine a 
mensagem sem que a mesma seja divulgada, distribuida ou copiada. Obrigado.

begin:vcard
fn:Telmo Dias
n:Dias;Telmo
org:XYLE   [ Xyledot Unipessoal Lda. ]
adr:;;R. Dr. Jose Martinho Simoes, 81;Figueiro dos Vinhos;Leiria;3260-421;Portugal
email;internet:[EMAIL PROTECTED]
tel;work:+351236551671
tel;cell:+351918047464
x-mozilla-html:TRUE
url:http://www.xyle.pt
version:2.1
end:vcard



[flexcoders] Need Help on Date Globalization in Flex 3

2008-03-01 Thread Madhu.Kma
Hi There,

Could any one please help me out in implementing globalization of date format 
in Flex 3, when I choose the language as US_English or Spanish or French for 
example
I have to change the date format on the display to dd/mm/ or mm/dd/, 
etc based on the locale chosen.

Which approach is better to implement this logic.

Expecting to get your help soon. 
 
Cheers,
Madhu K 
 
Please do not print this email unless it is absolutely necessary. Spread 
environmental awareness. 



[flexcoders] Styling Questions, plz help me

2008-03-01 Thread Syed Mazhar Hasan
1) I want to apply Zoom In effect on a popup panel/title window when it
appreas, but dont know much about styling and effect, can some one guide me
in this or direct me to some online example.

2) I have to rander multiple events in a day box ( for a calendar
application), if there are multiple events in same slot, how can i keep them
from overlapping each other, i tried one method by using hit test technique,
that worked fine if all events are in same slot, but say event 1 starts at
2:30 and ends 3:30, event 2 starts  at 2:00 and ends at 4:00 and event 3
starts at 3:45 and ends at 4:30 so a hit test of event 2 on events 1 and 2
will give a true but actually event 1 and 3 are at different slot but hit
test based rendering will modify width of all three entries and their x
positions as well. any solutions?

-- 
Regards!
Syed Mazhar Hasan


[flexcoders] Strategy For Organizing Complex Application

2008-03-01 Thread kg
Hello,

Unfortunately, my first Flex application is probably going to be
pretty gnarly. After reading up on the basics, I did some rapid
hands-on prototyping and quickly found the main "Application" mxml
will quickly become a beast. I've decided that my next step is to
really map out my architecture and figure out how I can keep
everything orderly.

Seems like the tools I really need to leverage for this are
Application, ViewStack, State and Component in no particular order. I
also think "code behind" will come in handy. Here's a tree structure
of how I think I'm going to approach my organization...

/Application
/ViewStack
/Section (MXML Component)
/ViewStack
/Page (MXML Component)
/State1
/State2
/Page
/...
/Section
/...
/Section
/...

This is using two observations. One, I've read that ViewStack is
better for emulating a "fresh start", kind of like a traditional
transition between web pages. However, a state seems to be for
modifying an existing view.

Wanting to work with modules small in size, I'm going to have
"Section" components which are really just MXML Components containing
a ViewStack and based upon some container. I think "Page" is really
just an MXML Component based upon a Box (unless someone can suggest a
lighter-weight container to use).

I'd really appreciate some opinions on whether or not this is a
reasonable approach. To me it seems logical, but I'd hate to find out
later that there are native tools for all of this.

Many Thanks!



[flexcoders] VerifyError: Error #1019: when upgraded to flex 3

2008-03-01 Thread box110a
Hello, I'm trying to upgrade our codebase to Flex 3. We have couple
modules and a couple RSLs. We're using lcds 2.5. I've not upgraded the
jars on the server and have kept our flex-config.xml,
data-managment-config.xml all the same. I'm able to compile just by
pointing my ANT script to the new flex 3 sdk. I getting a warning about:
 [mxmlc] Warning: 'compiler.fonts.flash-type' has been deprecated
since 3.0. Please use 'compiler.fonts.advanced-anti-aliasing'.
but That is not my problem.

when I try to load a module I get:

VerifyError: Error #1019: Getscopeobject 2 is out of bounds.

 at com.ea.dashboard.control::DashboardModelStartup()
 at
dashboard/_dashboard_DashboardModelStartup1_i()[C:\jbishop\development\p\
rojects\eloquence\app\branches\flex3_migration\flex\modules\dashboard\da\
shboard.mxml:69]
 at
dashboard()[C:\jbishop\development\projects\eloquence\app\branches\flex3\
_migration\flex\modules\dashboard\dashboard.mxml:69]
 at _dashboard_mx_core_FlexModuleFactory/create()
 at
com.ea.core.control::CoreViewController/loadInitializedModule()[C:\jbish\
op\development\projects\eloquence\app\branches\flex3_migration\flex\core\
RSL\com\ea\core\control\CoreViewController.as:227]
 at
com.ea.core.control::CoreViewController/moduleEventHandler()[C:\jbishop\\
development\projects\eloquence\app\branches\flex3_migration\flex\coreRSL\
\com\ea\core\control\CoreViewController.as:205]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
ModuleInfoProxy/moduleEventHandler()[E:\dev\3.0.x\frameworks\projects\fr\
amework\src\mx\modules\ModuleManager.as:1027]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
ModuleInfo/readyHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\
\mx\modules\ModuleManager.as:706]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
mx.core::FlexModuleFactory/update()[E:\dev\3.0.x\frameworks\projects\fra\
mework\src\mx\core\FlexModuleFactory.as:325]
 at
mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\pro\
jects\framework\src\mx\core\FlexModuleFactory.as:413]




In my error log I see:

verify com.ea.dashboard.control::DashboardModelStartup()
 stack:
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
  locals:
com.ea.dashboard.control::DashboardModelStartup
   0:debugfile
"C:\jbishop\development\projects\eloquence\app\branches\flex3_migration\\
flex\modules\dashboard;com\ea\dashboard\control;DashboardModelStartup.as\
"
 stack:
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
  locals:
com.ea.dashboard.control::DashboardModelStartup
   3:debugline 16
 stack:
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
  locals:
com.ea.dashboard.control::DashboardModelStartup
   5:getlocal0
 stack:
com.ea.dashboard.control::DashboardModelStartup
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
  locals:
com.ea.dashboard.control::DashboardModelStartup
   6:pushscope
 stack:
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
com.ea.dashboard.control::DashboardModelStartup
  locals:
com.ea.dashboard.control::DashboardModelStartup
   7:debugline 37
 stack:
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
com.ea.dashboard.control::DashboardModelStartup
  locals:
com.ea.dashboard.control::DashboardModelStartup
   9:findproperty
com.ea.dashboard.control:DashboardModelStartup::supportAppVOResponder
 stack:
com.ea.dashboard.control::DashboardModelStartup
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
com.ea.dashboard.control::DashboardModelStartup
  locals:
com.ea.dashboard.control::DashboardModelStartup
   12:findpropstrict mx.rpc::Responder
 stack:
com.ea.dashboard.control::DashboardModelStartup global
 scope: [global Object$
com.ea.dashboard.control::DashboardModelStartup$]
com.ea.dashboard.control::DashboardModelStartup
  locals:
com.ea.dashboard.control::DashboardModelStartup
   15:debugfile
"C:\jbishop\development\projects\eloquence\app\branches\flex3_migration\\
flex\modules\dashboard;com\ea\dashboard\control;DashboardModelStartup.as\
"
 stack:
com.ea.dashboard.control::DashboardMode

Re: [flexcoders] Application Help.

2008-03-01 Thread Mark Doberenz
Date has a year property
just loop through something like this

var dArray:Array = new Array();
var d:Date = new Date(birthDay.time); // This will create a new instance of
a Date with the same time as the birthday
var now:Date = new Date();
While (d.year < now.year)
{
dArray.push(d);
d = new Date(d.time);
d.year++;
}
Then the dArray will have a list of dates.  Your datagrid can have some
datacolumns with functions that define the value in the grid.

Hope that helps,
Mark

On Sat, Mar 1, 2008 at 2:48 PM, sk8bmx099 <[EMAIL PROTECTED]> wrote:

>   I need help. I tried using external XML files. But It's too much work.
> I know there is a quick way to use the var date or something. I'm
> building this with Flex. If you have any ideas. Please please please,
> post.
>
> The Application is that, the user enter's their Birth Date. The
> Application should notice the Birthday and from that day until 2009 or
> 2008. It should show which day it's on. For Example: 1/10/1994, So
> This person is born on January 1, 1994. And lets say on January 10
> 1194, it was a Tuesday. Now this application should get this date, and
> show every day that it will be on or it was on. So Let's say January
> 10, 1995 it was on a Wednesday. It should say this. I am thinking of a
> Data Grid like this.
>
> Date |Day
> 
> 1/10/1994 || Tuesday
> 1/10/1995 || Wednesday
> 1/10/1996 || Sunday(Just an example)
> ___
>
> If you guys can help, it will be great!
>
> Thanks once again.
>
>  
>


[flexcoders] Application Help.

2008-03-01 Thread sk8bmx099
I need help. I tried using external XML files. But It's too much work.
I know there is a quick way to use the var date or something. I'm
building this with Flex. If you have any ideas. Please please please,
post.


The Application is that, the user enter's their Birth Date. The
Application should notice the Birthday and from that day until 2009 or
2008. It should show which day it's on. For Example: 1/10/1994, So
This person is born on January 1, 1994. And lets say on January 10
1194, it was a Tuesday. Now this application should get this date, and
show every day that it will be on or it was on. So Let's say January
10, 1995 it was on a Wednesday. It should say this. I am thinking of a
Data Grid like this.

Date |Day

1/10/1994 || Tuesday
1/10/1995 || Wednesday
1/10/1996 || Sunday(Just an example)
___

If you guys can help, it will be great!

Thanks once again.



Re: [flexcoders] compiling flex app on Tomcat 5.5 urgent

2008-03-01 Thread Douglas Knudsen
Use the Ant Luke!  Should be a build script in there.

DK



On 3/1/08, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I had the .class files locally from dropping the files into Tomcat to
> test (outside of Eclipse). I moved those out and everything seems to
> be working okay.
>
>
> On Sat, Mar 1, 2008 at 12:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > This is my first time modifying our production code since taking over
> >  a flex project and on the prod server the .java files are .class'
> >  files.
> >  Please someone tell me how to compile my project so I can deploy it on
> >  the production server
> >
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] AdvancedDataGrid horizontal scroll position

2008-03-01 Thread superabe superabe
Is there a way to convert the horizontalScrollPosition property of the ADG
into pixel coordinates? It currently seems to be returning the columnIndex ?

TIA

-superabe


Re: [flexcoders] Is setting custom headers on HTTPService for a GET possible?

2008-03-01 Thread ivo
Hello all,

Thought I'd repost again since I am curious as to the answer. I am thinking I 
am missing something blindingly obvious since no one bothers to reply. Must be 
a valid question because I have gotten three private "me too" replies.

I need to communicate with a web service where I need to set custom headers. 
Seems to work as expected for both GET and POST under AIR. Using web browsers 
the custom headers are only included for POST when using HTTPService and never 
for URLLoader. Couldnt find in the docs if this is by design or a bug since 
they lead me to believe this should be possible (except for the blacklisted 
headers).

Thanks,

- Ivo

- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 11:51:32 AM
Subject: Re: [flexcoders] Is setting custom headers on HTTPService for a GET 
possible?

  
Debugging  a bit further shows that the same behavior happens when using a 
URLLoader. Then the custom headers are not sent.

Under Air tho the custom headers are always sent, GET or POST.

These headers are all truly custom so they are not in the URLRequestHeader 
blacklist.

Is there a way to set custom headers on a GET? Short of opening a Socket 
connection and writing out the HTTP requests?


Thanks,

- Ivo

- Original Message 
From: ivo 
To: [EMAIL PROTECTED] ups.com
Sent: Friday, February 29, 2008 10:06:45 AM
Subject: [flexcoders] Is setting custom headers on HTTPService for a GET 
possible?

Hey all,

Don't see it indicated in the docs but debugging revealed that custom headers 
set on an HTTPService GET are not sent. Is this correct or am I missing 
something?

var httpService: HTTPService = new HTTPService( );
httpService. method = 'GET';
httpService. headers = {customHeader: 'foobar'};
httpService. send({});

/*
server-side all I see is:

[Fri Feb 29 10:05:34 2008] [error] Accept: */*
[Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
[Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
[Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
[Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
[Fri Feb 29 10:05:34 2008] [error] Content-Type: application/ x-www-form- 
urlencoded

If I switch method = 'POST' then I see:

[Fri Feb 29 10:06:12 2008] [error] customHeader: foobar

*/

Thanks,

- Ivo



  




  










[flexcoders] Re: user friendly No/Lost Connection alert

2008-03-01 Thread Dmitri Girski
Don,

What is your server configuration?

I had a lot of problems connecting Flex to Apache2/SSL. Something was
just wrong there - session disconnections and retries, high latency etc.
Then I switched to Apache1/SSL - this thing hasn't missed a beat so far.


Cheers
Dmitri.



--- In flexcoders@yahoogroups.com, "Don Kerr" <[EMAIL PROTECTED]> wrote:
>
> Thank you Dmitri. I just looked into XMLSocket. Looks like that would
> work great to test connection to host.
> 
> In my scenario, the site, spacecityaug.com, would load just fine
> (host/web server ok), but if the remoteObject connection fails and/or
> http://www.spacecityaug.com/Flex2gateway connection fails, that's a
> different ball game.  You get the spinning clock until the
> remoteObject fault event fires. (could be a long time if ColdFusion or
> SQL Server is bogged down for any reason).
> 
> I may not have asked the right question. It might be more specific to
> remoteObject failure at the instance the 
> http://www.spacecityaug.com/Flex2gateway connection is attempted, but
> before ColdFusion has a chance to return the data. 
> 
> maybe setting the RO.requestTimeout to a low number is what I need.
> 
> I'll try this timeout.
> 
> But, it was very cool to learn about XMLSocket.
> 
> Thanks,
> Don
> 
> 
> 
> 
>



[flexcoders] books, tutorials, articles on security issue

2008-03-01 Thread Heiko Niemann
Hi, I am looking for books, tutorials, articles that cover aspects,
best practices, and/or concepts of security issues - some kind of
overview.

Right now I am struggling to put together all the pieces you get when
you google for keywords like authentication management, encryption,
as3corelib, sql injection, ...

My setup will be: flex app with user login and data requests, php
scripts, mySQL database.

Questions:
1) What is the 'best' way to design a secure login process in flex?
2) After login, how will I authenticate when doing data requests?
3) Working with GUID/UUID tokens, will I have to encrypt those to make
their use secure? ... or is that a stupip question? :)
4) Is there any sample how to use the MD5/SHA1 encryption and decrypt
it with php?
5) I have found the term 'challenge-response methodology'. Anybody
know a (flex/php) sample for that?

These security issues are so overwhelming once you have to move from
the intranet or localhost to the real world. :)

Thanks for your help,

Heiko





[flexcoders] Datagrid enter key on the last row

2008-03-01 Thread shrike6_7
Hi,
with an editable datagrid, if you edit a cell value in the last row
and you press Enter Key, flex don't commit change and the cell don't
exit from editable state.

Any suggestion? Thanks