[flexcoders] Session Management using Flex

2005-12-06 Thread Kam-Wing Pang
Hi all,

I'm new to Flex so bear with me. 

We have an existing application that we are adding user management to (login
process, authentication etc). We want the capability of disallowing multiple
users from logging on with the same username/password. 

Ideal situation is that when one user has logged in, no other user is allow
to log in with the same username/password. Of course this would mean that
the system would need to know when the first user has logged out (otherwise
the user would never be able to log in again).

A second option is when the second user logs in, the first user will be
disallowed to continue as the system has checked that the first user has an
invalid session. In this case, on every backend request, the system has to
authenticate the user and make sure the user is logged in only once. 

So the questions:

1. Can the system ever know when a user has logged out in a browser
environment where the user can easily close the browser without going
through some sort of logging out process?

2. If we implement the second option, instead of doing a major overhaul of
every method call and adding an extra parameter for the user details (e.g.
username, password, session id etc), is there an existing flex functionality
that provide some sort of session id that we can check which will allow us
to see if the request is made from the 1st user or the 2nd user?

3. Does the AMF gateway allow some sort of session management that we can
leverage for disallowing multiple users logging in with same
username/password without refactoring all the backend request methods?

Any help would be much appreciated.

Kam.








 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] User login and logout

2005-12-06 Thread Dan
hi all,

I am trying to build an application that will kick out the first usr 
when another user using the same id login. Does anyone has any idea 
which area i should look into??? 

Dan







 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] (Flex 2.0) Slider.labels bug?

2005-12-06 Thread Sreenivas R



Hi Darin,

This is a bug. It will be fixed in the next release.

-Sreenivas.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Disabling toolbar of IE

2005-12-06 Thread sandip_patil01
Hi All,

I tried various ways to handle back  refresh button but its not 
working.
So anybody know how to disable toolbar of IE in Flex.So that user will 
not able to hit Back/refresh button of IE.

S P








 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] errorString in TextInput

2005-12-06 Thread Dan
Hi,

Can anyone help? Does anyone know how to show the errorString in the 
Flex Actionscript directly, and not relying on the user mouseOver? Or 
there is a way to simulate the mouseOver event and show the errorString?
I have tried dispatchEvent, and even gotoAndStop(mouseOver), 
setFocus, etc. but seemed no good. 


Best Regards,
Dan







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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: PreferencesWindow design pattern

2005-12-06 Thread Leon Tanner
As already suggested: Is it not possible to have a setup() method called
from the creationComplete event that sets the values held in the Model
Locator into the text inputs?  On selecting cancel the window closes and
no data changes.  On saving, the data is wrapped in a VO, courtesy of a
view helper and written to the Model Locator (and anywhere else you wish
to store these preferences).  Would this not work - or is there
something I have missed here?

HTHs
Leon



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of charged2885
Sent: 02 December 2005 15:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PreferencesWindow design pattern

Jester, 

this question is a little off-topic, but on my mind none the less...
Where do you put this 
code:

 prefsWindow = PopUpManager.createPopUp(this, PrefsWindow, true);
 prefsWindow.setFormData(ModelLocator.prefsObject);

I naturally want to put this in my PrefsWindowViewHelper, but it doesn't
seem to work 
when there. What I find is happening is every view that's a titlewindow
ends up adding 
code to my applicationViewHelper. this smells i think.

todd


--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 That's what I've been deadling with for the past 2 days!
 
 I won't suggest best practices, I'll just suggest what works as of
1:00pm 
 this afternoon.
 
 My model is much like yours, on ModelLocator, but it's not actually
written 
 to unless the user hits save or apply.  As such, I create a copy of
the 
 preferences object by passing the true one into a fucntion, which
makes a 
 copy, and uses that as something to bind to.  That way, all my
bindings 
 work, but they only affect the real data if the user hits save.
 
 Psuedo code:
 
 prefsWindow = PopUpManager.createPopUp(this, PrefsWindow, true);
 prefsWindow.setFormData(ModelLocator.prefsObject);
 
 
 // psudeo code in PrefsWindow
 public var formData:Object;
 
 public function setFormData(o:Object):Void
 {
 // could be a specific ValueObject type as well
 // just DON'T set it to null, or delete it; this'll screw up the 
 bindings
 formData = new Object();
 for(var p in o)
 {
 formData[p] = o[p];
 }
 }
 
 public function getFormData():Object
 {
 return formData;
 }
 
 Then, in your main class, just replace your VO on the ModelLocator
with the 
 formData.  For avoiding references, see the earlier threads today
about 
 Object.copy.
 
 
 - Original Message - 
 From: charged2885 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, December 01, 2005 4:45 PM
 Subject: [flexcoders] PreferencesWindow design pattern
 
 
 Note, this example is mitigated. there are dozens of preferences i
want my 
 users to be
 able to set. Anyways
 
 I have a simple preference i want my users to be able to set: 
 showConsoleWindow. I have
 created a simple PreferencesWindow with a CheckBox on it. This
checkbox's 
 selected
 property is bound to
ModelLocator.currentUser.preferences.showConsoleWindow.
 currentUser is a UserVO object as described below:
 
 class UserVO {
   preferences:PreferencesVO;
   username:String;
 }
 
 class PreferencesVO {
   showConsoleWindow:Boolean;
 }
 
 I'd like to offer a cancel button to my PreferencesWindow. however,
since
 showConsoleWindow is bound, this approach won't work. It seems I
should 
 first, create a
 temporary preferences object to bind to. This is where my question
comes in. 
 How do I
 create a copy of my ModelLocator.currentUser.preferences object?
 
 Or would you implement this functionality differently? Please, I'm new
to 
 flex and I want to
 do this the right way. Thanks for your time.
 
 
 
 
 
 
 
 
 
 
 --
 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








--
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



 









 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] Disabling toolbar of IE

2005-12-06 Thread Nick Weekes





Sandip,

Firstly, let me agree with Sree in his useful comments 
to you yesterday, there is a possibility that you are going about this in too 
much of an html way rather than flex way. Disabling anything like 
buttons/toolbars is going to really annoy your users, as its their choice 
whether or not they are there, not yours.

I gather you are trying to avoid the user reloading the 
app from the beginning, well why not store a session variables/cookies etc that 
maintains state/navigation or whatever, then if the user does hit refresh you 
can query your session vars and navigate accordingly from within your flex 
app.

Cheers,

Nick



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sandip_patil01Sent: 06 December 2005 08:41To: 
flexcoders@yahoogroups.comSubject: [flexcoders] Disabling toolbar of 
IE
Hi All,I tried various ways to handle back  refresh 
button but its not working.So anybody know how to disable toolbar of IE 
in Flex.So that user will not able to hit Back/refresh button of 
IE.S P





--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Session Management using Flex

2005-12-06 Thread Dave Wolf
First off, I strongly reccomend not trying to roll your own security
solutions.  J2EE includes a very robust and well tested security
model.  Every J2EE server supports pretty much the same level of
security services.  There is no need to go out and develop your own. 
Flex integrates into the normal J2EE session security extremely well.

You requirements are a bit different from the out of the box J2EE
security but can be easily implemented via a JAAS plug-in extension to
the container.


 So the questions:
 
 1. Can the system ever know when a user has logged out in a browser
 environment where the user can easily close the browser without going
 through some sort of logging out process?
 

Yes and no. You cannot tell (easily) when someone closes their browser
but you can tell when their credentials are no longer valid. There are
events which fire when a J2EE session expires.  You could detect that
and remove them from a list of logged in users.


 2. If we implement the second option, instead of doing a major
overhaul of
 every method call and adding an extra parameter for the user details
(e.g.
 username, password, session id etc), is there an existing flex
functionality
 that provide some sort of session id that we can check which will
allow us
 to see if the request is made from the 1st user or the 2nd user?
 

I cannot find a way to express strongly enough that the idea of adding
parameters to each method call to pass security credentials is a
security whole as big as a fire truck.  This allows a man in the
middle to very easily hijack another users session and simulate their
login, thereby doing things like executing transactions by pretending
to be someone else.

If you use standard J2EE session based security flex will
transparantly inherit the normal J2EE session.

Here is how I would build this.  

Create a custom JAAS plugin that tracks active logins via some map. 
When a user logs in you add their id to the map.  When they log out,
you remove it.  When their session expires automatically you remove
it.  (yes there will be lag there).  If a user tries to login twice,
tell the JAAS plugin to deny them.

 3. Does the AMF gateway allow some sort of session management that
we can
 leverage for disallowing multiple users logging in with same
 username/password without refactoring all the backend request methods?
 

Let the container do this.  This solution works identially over all
data access layers as well.

Flex just integrates so beautifully with J2EE security the last thing
you want to do is try to roll your own security, especially by passing
credentials all over.

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY 


 Any help would be much appreciated.
 
 Kam.







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] Re: Closing via Menu VS via Shortcut Key

2005-12-06 Thread fowleryj
Touche... ;)

Yes, as it turns out, CTRL + W is enough. It would have been nice to
keep with the CTRL + X that the customer is used to, but if that's
going to prove too tricky, I don't think they'll mind learning the new
shortcut.

Thanks for pointing out what should have been obvious! =)






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] Adobe's Acquisition of Macromedia Expected to Close on December 3, 2005

2005-12-06 Thread Rick Englert





It 
fits in a lot better on Adobe's homepage. 
http://www.adobe.com

  -Original Message-From: Douglas Knudsen 
  [mailto:[EMAIL PROTECTED]Sent: Monday, December 05, 2005 
  9:48 AMTo: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Adobe's Acquisition of Macromedia Expected to Close on December 
  3, 2005well, they could have come up with a better 
  Flash ad on the home page!Horrible!http://www.macromedia.com/DKOn 
  12/2/05, Zach Stepek [EMAIL PROTECTED] wrote: No more 
  motorcycles? Doesn't that detract directly from the pink hair, 
  pierced body parts culture that Macromedia was so well known for 
  during the early years of Flash? Maybe this merger will affect 
  more than I thought... ;-) - Zach 
  Stepek 
  -- 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--Douglas 
  Knudsenhttp://www.cubicleman.comthis is my 
  signature, like 
  it?





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Disabling toolbar of IE

2005-12-06 Thread Sandip Patil



Hi Neek,I agree with you that I will use session etc.  In fact I did navigation well upto end of my application i.e.depending upon username  password.  But let me clear my doubt again.  Sorry,it might be wrong thinking by meagain.  How I will understand that IE's refresh button is clicked.Once I come to know this then its easy for me to navigate.SandipNick Weekes [EMAIL PROTECTED] wrote:  Sandip,Firstly, let me agree with Sree in his useful comments to you yesterday, there is a possibility that you are going about this in too much of an html way rather than flex way. Disabling anything like buttons/toolbars is going to really annoy your users, as its their choice whether or not they are there, not yours.I gather you are trying to avoid the user reloading the app from the beginning, well why not store a session variables/cookies etc that maintains state/navigation or whatever, then if the user does hit refresh you can query your session vars and navigate accordingly from
 within your flex app.Cheers,NickFrom: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sandip_patil01Sent: 06 December 2005 08:41To: flexcoders@yahoogroups.comSubject: [flexcoders] Disabling
 toolbar of IE  Hi All,I tried various ways to handle back  refresh button but its not working.So anybody know how to disable toolbar of IE in Flex.So that user will not able to hit Back/refresh button of IE.S P
		 Yahoo! DSL Something to write home about. Just $16.99/mo. or less
		 Yahoo! DSL Something to write home about. Just $16.99/mo. or less





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: embeded link text in a label tag

2005-12-06 Thread rgwilson26
Actually, the link is currently in a viewstack, and I want the link 
to navigate to a different page in my viewstack. That seems like a 
lot of code for a simple link. Thanks for your help though. I will 
continue my search.

--- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:

 Are you looking to pop up a new window for the Environment and
 Equipment section? If so, you could use the mouseDown attribute:
 
 mx:Label id=trainingQuestion8 text=If equipment was involved, 
see
 the Environment and Equipment questions.
 mouseDown=mx.managers.PopUpManager.createPopUp(_root,
 com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true,
 {deferred: true}) mouseOver=trainingQuestion8.setStyle('color',
 '#FF') mouseOut=trainingQuestion8.setStyle
('color', '#00')/
 
 Or embed a method in the mouseDown attribute that would do something
 similar.
 
 --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED] 
wrote:
 
  I would like to know how to set text in a label to linked text.
  
  
  I want the words Environment and Equipment linked to a section 
in my 
  application.
  
  ***
  
  mx:Label id=trainingQuestion8 text=If equipment was involved, 
see 
  the Environment and Equipment questions./
  
  ***
  
  thanks







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] Disabling toolbar of IE

2005-12-06 Thread Nick Weekes





Sandip,

Forget about browser specifics like the refresh button, 
listen for events broadcast by your flex app instead, to give you an indication 
of whats going on. 

For example, the initialize event could be 
used to determine if your application/component has started, or if the refresh 
button has been pressed and forced the app to begin re-loading 
itself.

Im really new to Flex myself, and Im sure some of the 
veterans of the list have better approaches to this...

Cheers,

Nick


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Sandip 
PatilSent: 06 December 2005 12:06To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Disabling toolbar 
of IE

Hi Neek,

I agree with you that I will use session etc.
In fact I did navigation well upto end of my application i.e.depending upon 
username  password.
But let me clear my doubt again.
Sorry,it might be wrong thinking by meagain.
How I will understand that IE's refresh button is clicked.Once I come to 
know this then its easy for me to navigate.

SandipNick Weekes [EMAIL PROTECTED] 
wrote:

  
  Sandip,
  
  Firstly, let me agree with Sree in his useful 
  comments to you yesterday, there is a possibility that you are going about 
  this in too much of an html way rather than flex way. Disabling anything 
  like buttons/toolbars is going to really annoy your users, as its their choice 
  whether or not they are there, not yours.
  
  I gather you are trying to avoid the user reloading 
  the app from the beginning, well why not store a session variables/cookies etc 
  that maintains state/navigation or whatever, then if the user does hit refresh 
  you can query your session vars and navigate accordingly from within your flex 
  app.
  
  Cheers,
  
  Nick
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  sandip_patil01Sent: 06 December 2005 08:41To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Disabling toolbar 
  of IE
  Hi All,I tried various ways to handle back  
  refresh button but its not working.So anybody know how to disable 
  toolbar of IE in Flex.So that user will not able to hit Back/refresh 
  button of IE.S P


Yahoo! 
DSL Something to write home about. Just $16.99/mo. or less


Yahoo! 
DSL Something to write home about. Just $16.99/mo. or less 





--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] (Article) ArrayList Vs LinkedHashSet - Performance issue

2005-12-06 Thread Girish Ahankari
Hi All

I have added some more Java internals Questions to the
existing link @ http://agirish.50webs.com 
   
  
   Have a look and clear your interviews...

   All the best
   Girish



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 





[flexcoders] Re: Closing via Menu VS via Shortcut Key

2005-12-06 Thread fowleryj
It appears that I'm losing scope when I enter the anonymous function:

  keyListener.onKeyDown = function() {
[...]
  }

Because of this, I can't make function calls to this .mxml file's
ViewHelper, because it is undefined upon entering the anonymous
function. Does anyone have any advice on how to maintain scope (and
thus visibility of a ViewHelper) inside of an anonymous function?

Thanks.

--- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:

 I've also noticed that replacing the getURL line with a function
 call results in the function not being called:
 
 Instead of
  if(currentKeyPressed == 99  lastKeyPressedControl) {
  mx.controls.Alert.show('CTRL + c');
  getURL(javascript:self.close(););
  }
 
 I now have
  if(currentKeyPressed == 99  lastKeyPressedControl) {
  mx.controls.Alert.show('CTRL + c');
  closeWin();
  }
 
 And closeWin() looks like this:
 public function closeWin() {
   mx.controls.Alert.show(closeWin);
   getURL(javascript:self.close(););
 }
 
 The closeWin popup is never fired. Any ideas? Is anyone else
 successfully closing a window via a shortcut key combination?
 
 --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:
 
  Hello all,
  
  I'm able to close a popup window in my application via the
 menuChangeHandler, like so:
  
  private function menuChangeHandler(event) {
  if(event.menuItem.attributes.data == Close) {
  getURL(javascript:self.close(););
  }
  }
  
  However, when I try to close the window via a shortcut key, I get
 the message box I'm invoking, but the window itself doesn't close
 (note that even before I put the message box code in, the window
 didn't close, so that's not preventing the window from closing):
  
  var lastKeyPressedControl:Boolean = false;
  var currentKeyPressed;
  public function initKeyListener() {
  var keyListener = new Object();
  keyListener.onKeyDown = function() { 
  currentKeyPressed = Key.getAscii();
  if(currentKeyPressed == 99  lastKeyPressedControl) {
  mx.controls.Alert.show('CTRL + c');
  getURL(javascript:self.close(););
  }
  lastKeyPressedControl = Key.isDown(Key.CONTROL);
  }
  Key.addListener(keyListener);
  }
  
  Other shortcut keys I've checked for are recognized and their
 actions carried out... why does this one not work properly?
  
  Thanks in advance.







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

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

* 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] embeded link text in a label tag

2005-12-06 Thread Rob Davis
You should have said it was in a viewstack in the first place.  I'm not
sure about in Flex 1.5, but in 2 you simply need
[viewstackID].selectedIndex = X where X is the index # of the layer
you want to show.

Also, AFAIK you can't just make part of a label a link, you'd have to
either do all or nothing, or else make those 3 words a separate label.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rgwilson26
Sent: Tuesday, December 06, 2005 7:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: embeded link text in a label tag

Actually, the link is currently in a viewstack, and I want the link to
navigate to a different page in my viewstack. That seems like a lot of
code for a simple link. Thanks for your help though. I will continue my
search.

--- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:

 Are you looking to pop up a new window for the Environment and 
 Equipment section? If so, you could use the mouseDown attribute:
 
 mx:Label id=trainingQuestion8 text=If equipment was involved,
see
 the Environment and Equipment questions.
 mouseDown=mx.managers.PopUpManager.createPopUp(_root,
 com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true,
 {deferred: true}) mouseOver=trainingQuestion8.setStyle('color',
 '#FF') mouseOut=trainingQuestion8.setStyle
('color', '#00')/
 
 Or embed a method in the mouseDown attribute that would do something 
 similar.
 
 --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED]
wrote:
 
  I would like to know how to set text in a label to linked text.
  
  
  I want the words Environment and Equipment linked to a section
in my 
  application.
  
  ***
  
  mx:Label id=trainingQuestion8 text=If equipment was involved,
see 
  the Environment and Equipment questions./
  
  ***
  
  thanks







 Yahoo! Groups Sponsor ~--
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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



 






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] Re: embeded link text in a label tag

2005-12-06 Thread rgwilson26
Thanks Rob for the comment...I probably haven't been clear enough. I 
know how to navigate a viewstack, but my problem is that I only want 
certain text in a label to be linked. For example;

mx:Label id=myLabel text=In this section, click here to see all 
questions. /

I only want here to be linked to a designated viewstack.
I can use an onclick event but it will highlight the entire label 
text. I am looking for a way to differentiate text to be linked 
inside a label tag.


--- In flexcoders@yahoogroups.com, Rob Davis [EMAIL PROTECTED] wrote:

 You should have said it was in a viewstack in the first place.  I'm 
not
 sure about in Flex 1.5, but in 2 you simply need
 [viewstackID].selectedIndex = X where X is the index # of the 
layer
 you want to show.
 
 Also, AFAIK you can't just make part of a label a link, you'd have 
to
 either do all or nothing, or else make those 3 words a separate 
label.
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of rgwilson26
 Sent: Tuesday, December 06, 2005 7:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: embeded link text in a label tag
 
 Actually, the link is currently in a viewstack, and I want the link 
to
 navigate to a different page in my viewstack. That seems like a lot 
of
 code for a simple link. Thanks for your help though. I will 
continue my
 search.
 
 --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:
 
  Are you looking to pop up a new window for the Environment and 
  Equipment section? If so, you could use the mouseDown attribute:
  
  mx:Label id=trainingQuestion8 text=If equipment was involved,
 see
  the Environment and Equipment questions.
  mouseDown=mx.managers.PopUpManager.createPopUp(_root,
  com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true,
  {deferred: true}) mouseOver=trainingQuestion8.setStyle('color',
  '#FF') mouseOut=trainingQuestion8.setStyle
 ('color', '#00')/
  
  Or embed a method in the mouseDown attribute that would do 
something 
  similar.
  
  --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED]
 wrote:
  
   I would like to know how to set text in a label to linked text.
   
   
   I want the words Environment and Equipment linked to a section
 in my 
   application.
   
   ***
   
   mx:Label id=trainingQuestion8 text=If equipment was 
involved,
 see 
   the Environment and Equipment questions./
   
   ***
   
   thanks
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
~--
 Fair play? Video games influencing politics. Click and talk back!
 http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
 
~- 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] Re: Session Management using Flex

2005-12-06 Thread Kam-Wing Pang
Dave,

Thanks!

Any other option other than using a J2EE application server for 
implementing JAAS for security? 

Are there existing features in Flex that we can utilise? 

Our application up to now has been quite simple in its deployment 
using a tomcat server. We're up against time in getting it into 
production, and deployment into a J2EE server at this stage may not 
be right for us at the moment. 

I agree with you that utilising J2EE would be simpler. Would there be 
a significant overhead migrating a previosly tomcat deployment to a 
J2EE application server such as JBoss? Issues with performance etc? 
We're not utilising EJB in our biz logic. The application is mainly 
alot of reads from the database and some calculations.

Thanks,

Kam.



--- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote:

 First off, I strongly reccomend not trying to roll your own security
 solutions.  J2EE includes a very robust and well tested security
 model.  Every J2EE server supports pretty much the same level of
 security services.  There is no need to go out and develop your 
own. 
 Flex integrates into the normal J2EE session security extremely 
well.
 
 You requirements are a bit different from the out of the box J2EE
 security but can be easily implemented via a JAAS plug-in extension 
to
 the container.
 
 
  So the questions:
  
  1. Can the system ever know when a user has logged out in a 
browser
  environment where the user can easily close the browser without 
going
  through some sort of logging out process?
  
 
 Yes and no. You cannot tell (easily) when someone closes their 
browser
 but you can tell when their credentials are no longer valid. There 
are
 events which fire when a J2EE session expires.  You could detect 
that
 and remove them from a list of logged in users.
 
 
  2. If we implement the second option, instead of doing a major
 overhaul of
  every method call and adding an extra parameter for the user 
details
 (e.g.
  username, password, session id etc), is there an existing flex
 functionality
  that provide some sort of session id that we can check which will
 allow us
  to see if the request is made from the 1st user or the 2nd user?
  
 
 I cannot find a way to express strongly enough that the idea of 
adding
 parameters to each method call to pass security credentials is a
 security whole as big as a fire truck.  This allows a man in the
 middle to very easily hijack another users session and simulate 
their
 login, thereby doing things like executing transactions by 
pretending
 to be someone else.
 
 If you use standard J2EE session based security flex will
 transparantly inherit the normal J2EE session.
 
 Here is how I would build this.  
 
 Create a custom JAAS plugin that tracks active logins via some map. 
 When a user logs in you add their id to the map.  When they log out,
 you remove it.  When their session expires automatically you remove
 it.  (yes there will be lag there).  If a user tries to login twice,
 tell the JAAS plugin to deny them.
 
  3. Does the AMF gateway allow some sort of session management that
 we can
  leverage for disallowing multiple users logging in with same
  username/password without refactoring all the backend request 
methods?
  
 
 Let the container do this.  This solution works identially over all
 data access layers as well.
 
 Flex just integrates so beautifully with J2EE security the last 
thing
 you want to do is try to roll your own security, especially by 
passing
 credentials all over.
 
 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com
 
 Email: [EMAIL PROTECTED]
 Office: 866-CYNERGY 
 
 
  Any help would be much appreciated.
  
  Kam.
 







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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: Session Management using Flex

2005-12-06 Thread Douglas Knudsen
ugh, correct me if I'm way off here, I'm not, but isn't Tomcat a J2EE
container?  Where is Dave Wolf on this, eh?  :)  You can implement
JAAS stuffs on Tomcat and utilise this with Flex.  I think this
involves something called valves in Tomcat. There is an article by
Brian Diette on this that is helpful
http://www.macromedia.com/devnet/flex/articles/security_framework_print.html


DK

On 12/6/05, Kam-Wing Pang [EMAIL PROTECTED] wrote:
 Dave,

 Thanks!

 Any other option other than using a J2EE application server for
 implementing JAAS for security?

 Are there existing features in Flex that we can utilise?

 Our application up to now has been quite simple in its deployment
 using a tomcat server. We're up against time in getting it into
 production, and deployment into a J2EE server at this stage may not
 be right for us at the moment.

 I agree with you that utilising J2EE would be simpler. Would there be
 a significant overhead migrating a previosly tomcat deployment to a
 J2EE application server such as JBoss? Issues with performance etc?
 We're not utilising EJB in our biz logic. The application is mainly
 alot of reads from the database and some calculations.

 Thanks,

 Kam.



 --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote:
 
  First off, I strongly reccomend not trying to roll your own security
  solutions.  J2EE includes a very robust and well tested security
  model.  Every J2EE server supports pretty much the same level of
  security services.  There is no need to go out and develop your
 own.
  Flex integrates into the normal J2EE session security extremely
 well.
 
  You requirements are a bit different from the out of the box J2EE
  security but can be easily implemented via a JAAS plug-in extension
 to
  the container.
 
 
   So the questions:
  
   1. Can the system ever know when a user has logged out in a
 browser
   environment where the user can easily close the browser without
 going
   through some sort of logging out process?
  
 
  Yes and no. You cannot tell (easily) when someone closes their
 browser
  but you can tell when their credentials are no longer valid. There
 are
  events which fire when a J2EE session expires.  You could detect
 that
  and remove them from a list of logged in users.
 
 
   2. If we implement the second option, instead of doing a major
  overhaul of
   every method call and adding an extra parameter for the user
 details
  (e.g.
   username, password, session id etc), is there an existing flex
  functionality
   that provide some sort of session id that we can check which will
  allow us
   to see if the request is made from the 1st user or the 2nd user?
  
 
  I cannot find a way to express strongly enough that the idea of
 adding
  parameters to each method call to pass security credentials is a
  security whole as big as a fire truck.  This allows a man in the
  middle to very easily hijack another users session and simulate
 their
  login, thereby doing things like executing transactions by
 pretending
  to be someone else.
 
  If you use standard J2EE session based security flex will
  transparantly inherit the normal J2EE session.
 
  Here is how I would build this.
 
  Create a custom JAAS plugin that tracks active logins via some map.
  When a user logs in you add their id to the map.  When they log out,
  you remove it.  When their session expires automatically you remove
  it.  (yes there will be lag there).  If a user tries to login twice,
  tell the JAAS plugin to deny them.
 
   3. Does the AMF gateway allow some sort of session management that
  we can
   leverage for disallowing multiple users logging in with same
   username/password without refactoring all the backend request
 methods?
  
 
  Let the container do this.  This solution works identially over all
  data access layers as well.
 
  Flex just integrates so beautifully with J2EE security the last
 thing
  you want to do is try to roll your own security, especially by
 passing
  credentials all over.
 
  --
  Dave Wolf
  Cynergy Systems, Inc.
  Macromedia Flex Alliance Partner
  http://www.cynergysystems.com
 
  Email: [EMAIL PROTECTED]
  Office: 866-CYNERGY
 
 
   Any help would be much appreciated.
  
   Kam.
  
 







 --
 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









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


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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 

Re: [flexcoders] Disabling toolbar of IE/ RIAs and the Refresh button- a potential usability problem

2005-12-06 Thread Sreejith Unnikrishnan






Sandip,
here is link to how u can detect the refresh button.
http://www.codeproject.com/internet/detecting_the_ie_refresh.asp
You are on your own from here :-). I am sure nobody on this forum is
really interested in this. This has nothing to do with Flex.

Having said that, there is something that I was thinking on this topic.

In the wide web world, an internet application that is aimed at the
normal user (unordained in the RIA world), it is possible that the user
clicks on the refresh button to reload some data, the same way he/she
is used to in the HTML world.
Then there IS a problem. And I know this is not a Flex problem. This is
a problem with ANY RIA.

It might be raked up somebody like Jacob Nielsen who once famously said
and I quote
"About 99% of the time, the presence of Flash on a website
constitutes a
usability disease. Although there are rare occurrences of good Flash
design (it even adds value on occasion), the use of Flash typically
lowers usability. In most cases, we would be better off if these
multimedia objects were removed.
Flash tends to degrade websites for three reasons: it
encourages design abuse, it breaks with the Web's fundamental
interaction principles, and it distracts attention from the site's core
value."
http://www.useit.com/alertbox/20001029.html
(that I discarded it to the same folder that contains the article that
said Frames are
kludges that break important parts of the Web and Why Frames Suck is
the truth for I cannot imagine the LiveDocs without frames!)

... that then resulted in Flash Usability Article from Macromedia that
said Flash 99% good ...
http://www.macromedia.com/devnet/flash/articles/flash99good.html

At the end of all the agreement is that technologies such as Flash are
moving the user OUT of the restrictions and constraints of a browser -
whatever browser that is. I would even like to see a RIA browser that
does not have the REFRESH, BACK,FORWARD buttons in them!

For the current problem, I think the best solution is to provide a
eye-catching icon next to a datagrid or any container that invites the
user to click if needs to refresh the data and I think Flex handles it
wuite beautifully. Infact that is the strength and foundation of an RIA
technology!

Sree


Nick Weekes wrote:

  
  
  Sandip,
  
  Forget about browser
specifics like the refresh button, listen for events broadcast by your
flex app instead, to give you an indication of whats going on. 
  
  For example, the initialize event could be used to determine if your
application/component has started, or if the refresh button has been
pressed and forced the app to begin re-loading itself.
  
  Im really new to Flex
myself, and Im sure some of the veterans of the list have better
approaches to this...
  
  Cheers,
  
  Nick
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Sandip Patil
  Sent: 06 December 2005 12:06
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Disabling toolbar of IE
  
  
  Hi Neek,
  
  I agree with you that I will use session etc.
  In fact I did navigation well upto end of my application
i.e.depending upon username  password.
  But let me clear my doubt again.
  Sorry,it might be wrong thinking by meagain.
  How I will understand that IE's refresh button is clicked.Once I
come to know this then its easy for me to navigate.
  
  Sandip
  
  Nick Weekes [EMAIL PROTECTED] wrote:
  

Sandip,

Firstly,
let me agree with Sree in his useful comments to you yesterday, there
is a possibility that you are going about this in too much of an html
way rather than flex way. Disabling anything like buttons/toolbars is
going to really annoy your users, as its their choice whether or not
they are there, not yours.

I gather
you are trying to avoid the user reloading the app from the beginning,
well why not store a session variables/cookies etc that maintains
state/navigation or whatever, then if the user does hit refresh you can
query your session vars and navigate accordingly from within your flex
app.

Cheers,

Nick



 From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of sandip_patil01
Sent: 06 December 2005 08:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Disabling toolbar of IE


Hi All,

I tried various ways to handle back  refresh button but its not 
working.
So anybody know how to disable toolbar of IE in Flex.So that user will 
not able to hit Back/refresh button of IE.

S P







  
  
  
  Yahoo!
DSL Something to write home about. Just $16.99/mo. or less
  
  Yahoo!
DSL Something to write home about. Just $16.99/mo. or less








--
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



  Visit your group 

RE: [flexcoders] Re: Session Management using Flex

2005-12-06 Thread Matt Chotin










Tomcat is a servlet container, it does not
have the full J2EE implementation. But you can often enable J2EE features in
Tomcat without a full-blown container as youve pointed out.



Matt











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Knudsen
Sent: Tuesday, December 06, 2005
9:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Session Management using Flex





ugh, correct me if I'm way off here, I'm not, but isn't Tomcat a J2EE
container? Where is Dave Wolf on this,
eh? :) You can implement
JAAS stuffs on Tomcat and utilise this with
Flex. I think this
involves something called valves in Tomcat. There
is an article by
Brian Diette on this that is helpful
http://www.macromedia.com/devnet/flex/articles/security_framework_print.html


DK

On 12/6/05, Kam-Wing Pang
[EMAIL PROTECTED] wrote:
 Dave,

 Thanks!

 Any other option other than using a J2EE
application server for
 implementing JAAS for security?

 Are there existing features in Flex that we
can utilise?

 Our application up to now has been quite
simple in its deployment
 using a tomcat server. We're up against time
in getting it into
 production, and deployment into a J2EE server
at this stage may not
 be right for us at the moment.

 I agree with you that utilising J2EE would be
simpler. Would there be
 a significant overhead migrating a previosly
tomcat deployment to a
 J2EE application server such as JBoss? Issues
with performance etc?
 We're not utilising EJB in our biz logic. The
application is mainly
 alot of reads from the database
and some calculations.

 Thanks,

 Kam.



 --- In flexcoders@yahoogroups.com, Dave
Wolf [EMAIL PROTECTED] wrote:
 
  First off, I strongly reccomend not
trying to roll your own security
  solutions. J2EE includes a very
robust and well tested security
  model. Every J2EE server supports
pretty much the same level of
  security services. There is no
need to go out and develop your
 own.
  Flex integrates into the normal J2EE
session security extremely
 well.
 
  You requirements are a bit different
from the out of the box J2EE
  security but can be easily implemented
via a JAAS plug-in extension
 to
  the container.
 
 
   So the questions:
  
   1. Can the system ever know when a
user has logged out in a
 browser
   environment where the user can
easily close the browser without
 going
   through some sort of logging out
process?
  
 
  Yes and no. You cannot tell (easily)
when someone closes their
 browser
  but you can tell when their credentials
are no longer valid. There
 are
  events which fire when a J2EE session
expires. You could detect
 that
  and remove them from a list of logged in
users.
 
 
   2. If we implement the second
option, instead of doing a major
  overhaul of
   every method call and adding an
extra parameter for the user
 details
  (e.g.
   username, password, session id
etc), is there an existing flex
  functionality
   that provide some sort of session
id that we can check which will
  allow us
   to see if the request is made from
the 1st user or the 2nd user?
  
 
  I cannot find a way to express strongly
enough that the idea of
 adding
  parameters to each method call to pass
security credentials is a
  security whole as big as a fire
truck. This allows a man in the
  middle to very easily hijack another
users session and simulate
 their
  login, thereby doing things like
executing transactions by
 pretending
  to be someone else.
 
  If you use standard J2EE session based
security flex will
  transparantly inherit the normal J2EE
session.
 
  Here is how I would build this.
 
  Create a custom JAAS plugin that tracks
active logins via some map.
  When a user logs in you add their id to
the map. When they log out,
  you remove it. When their session
expires automatically you remove
  it. (yes there will be lag
there). If a user tries to login twice,
  tell the JAAS plugin to deny them.
 
   3. Does the AMF gateway allow some
sort of session management that
  we can
   leverage for disallowing multiple
users logging in with same
   username/password without refactoring
all the backend request
 methods?
  
 
  Let the container do this. This
solution works identially over all
  data access layers as well.
 
  Flex just integrates so beautifully with
J2EE security the last
 thing
  you want to do is try to roll your own
security, especially by
 passing
  credentials all over.
 
  --
  Dave Wolf
  Cynergy Systems, Inc.
  Macromedia Flex Alliance Partner
  http://www.cynergysystems.com
 
  Email: [EMAIL PROTECTED]
  Office: 866-CYNERGY
 
 
   Any help would be much appreciated.
  
   Kam.
  
 







 --
 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









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








--
Flexcoders Mailing List
FAQ: 

Re: [flexcoders] (Article) ArrayList Vs LinkedHashSet - Performance issue

2005-12-06 Thread Sreejith Unnikrishnan






Hello???

Girish Ahankari wrote:

Hi All
 
I have added some more Java internals Questions to the
existing link @ http://agirish.50webs.com
  
 
 
 Have a look and clear your interviews...
 
 All the best
 Girish
  
  
  
__ 
Yahoo! DSL  Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  













Re: [flexcoders] Re: embeded link text in a label tag

2005-12-06 Thread Sreejith Unnikrishnan






 mx:HBox
  mx:Label id="trainingQuestion8" text="If equipment was
involved ,
   see the" /
  mx:Link label="Environment and Equipment"
   click="viewstackID.selectedIndex = X" /
  mx:Label text="questions." /
  mx:Spacer width="100%" /
 /mx:HBox

Just tinker
around to prevent the text from wrapping!

Sree


rgwilson26 wrote:

Thanks Rob for the comment...I probably haven't been clear enough. I 
know how to navigate a viewstack, but my problem is that I only want 
certain text in a label to be linked. For example;
  
mx:Label id="myLabel" text="In this section, click here to see all 
questions. "/
  
I only want "here" to be linked to a designated viewstack.
I can use an onclick event but it will highlight the entire label 
text. I am looking for a way to differentiate text to be linked 
inside a label tag.
  
  
--- In flexcoders@yahoogroups.com, "Rob Davis" [EMAIL PROTECTED]
wrote:

 You should have said it was in a viewstack in the first place.
I'm 
not
 sure about in Flex 1.5, but in 2 you simply need
 "[viewstackID].selectedIndex = X" where X is the index # of the 
layer
 you want to show.
 
 Also, AFAIK you can't just make part of a label a link, you'd have
  
to
 either do all or nothing, or else make those 3 words a separate 
label.
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On
 Behalf Of rgwilson26
 Sent: Tuesday, December 06, 2005 7:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: embeded link text in a label tag
 
 Actually, the link is currently in a viewstack, and I want the
link 
to
 navigate to a different page in my viewstack. That seems like a
lot 
of
 code for a simple link. Thanks for your help though. I will 
continue my
 search.
 
 --- In flexcoders@yahoogroups.com, "fowleryj"
[EMAIL PROTECTED] wrote:
 
  Are you looking to pop up a new window for the Environment
and 
  Equipment section? If so, you could use the mouseDown
attribute:
  
  mx:Label id="trainingQuestion8" text="If equipment was
involved,
 see
  the Environment and Equipment questions."
  mouseDown="mx.managers.PopUpManager.createPopUp(_root,
  com.tjctechnology.registry.desktop.view.ExternalPartyFinder,
true,
  {deferred: true})"
mouseOver="trainingQuestion8.setStyle('color',
  '#FF')" mouseOut="trainingQuestion8.setStyle
 ('color', '#00')"/
  
  Or embed a method in the mouseDown attribute that would do 
something 
  similar.
  
  --- In flexcoders@yahoogroups.com, "rgwilson26"
[EMAIL PROTECTED]
 wrote:
  
   I would like to know how to set text in a label to
linked text.
   
   
   I want the words "Environment and Equipment" linked to a
section
 in my 
   application.
   
   ***
   
   mx:Label id="trainingQuestion8" text="If equipment
was 
involved,
 see 
   the Environment and Equipment questions."/
   
   ***
   
   thanks
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
~--
 Fair play? Video games influencing politics. Click and talk back!
 http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM


~- 
 
 --
 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

  
  
  
  
  









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  













Re: [flexcoders] Adobe's Acquisition of Macromedia Expected to Close on December 3, 2005

2005-12-06 Thread Aldo Bucchi
Also clear your brain cache.
repeat after me:

ADOBE flash platform... ADOBE flash platform...

feels so weird...



brain.replace( /macromedia/ig , adobe );?


On 12/6/05, Matt Chotin [EMAIL PROTECTED] wrote:



 Also clear your cache if using Firefox, I noticed that the MM page was
 messed up if I didn't.



 Matt



  


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rick Englert
  Sent: Tuesday, December 06, 2005 4:03 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Adobe's Acquisition of Macromedia Expected to
 Close on December 3, 2005





 It fits in a lot better on Adobe's homepage.  http://www.adobe.com


 -Original Message-
  From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 05, 2005 9:48 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Adobe's Acquisition of Macromedia Expected to
 Close on December 3, 2005

 well, they could have come up with a better Flash ad on the home page!
  Horrible!
  http://www.macromedia.com/

  DK

  On 12/2/05, Zach Stepek [EMAIL PROTECTED] wrote:
   No more motorcycles?  Doesn't that detract directly from the pink hair,
   pierced body parts culture that Macromedia was so well known for during
   the early years of Flash?  Maybe this merger will affect more than I
   thought...  ;-)
  
   - Zach Stepek
  
  
  
  
  
  
  
   --
   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
  
  
  
  
  
  
  


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



  --
  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


  Visit your group flexcoders on the web.

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

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

  





--
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] OT: Xpath and HTML problem

2005-12-06 Thread Merrill, Jason










Hope nobody minds the OT, the chattyfig
servers are down AGAIN, and I dont know where else to turn  been searching
Google for some time now. I am using xfactorstudios Xpath classes to
bring in XML node data which contains text and HTML tags to display in a Flash
text area component in the Flash 7 player. Here is a snippet of the XML:



 welcome

 introduction
title=Welcometext![CDATA[Welcome to the a
href=''Center for Devices of Radiological
Health/a. More text...]]/text/introduction

 /welcome



The text area component is set to HTML=true,
but when it renders, it shows the text plus the HTML:



 Welcome to the a
href=''Center for Devices of Radiological
Health/a. More text...



The string from XPath interestingly enough
looks like this:



 Welcome to the lt;a
href="" for Devices of
Radiological Healthlt;/agt;. More text...



Not sure why Xpath is changing the nodes
from a to lt, but Flash doesnt like it. Anyone come
across this before and have a solution?







Jason
Merrill | E-Learning Solutions |
icfconsulting.com 











NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] https calls to RemoteObjects

2005-12-06 Thread Mehdi, Agha
Title: https calls to RemoteObjects







Hi all,

What extra steps do I need to take to call RemoteObjects on Secure Server? My calls fail when accessing objects on https.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766









--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] OT: Xpath and HTML problem

2005-12-06 Thread Johannes Nel



how r loading this html?On 12/6/05, Merrill, Jason [EMAIL PROTECTED] wrote:















Hope nobody minds the OT, the chattyfig
servers are down AGAIN, and I don't know where else to turn – been searching
Google for some time now. I am using xfactorstudios' Xpath classes to
bring in XML node data which contains text and HTML tags to display in a Flash
text area component in the Flash 7 player. Here is a snippet of the XML:



 welcome

 introduction
title=Welcometext![CDATA[Welcome to the a
href=''Center for Devices of Radiological
Health/a. More text...]]/text/introduction

 /welcome



The text area component is set to HTML=true,
but when it renders, it shows the text plus the HTML:



 Welcome to the a
href=''Center for Devices of Radiological
Health/a. More text...



The string from XPath interestingly enough
looks like this:



 Welcome to the lt;a
href="" for Devices of
Radiological Healthlt;/agt;. More text...



Not sure why Xpath is changing the nodes
from a to lt, but Flash doesn't like it. Anyone come
across this before and have a solution?







Jason
Merrill | E-Learning Solutions |
icfconsulting.com 











NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- j:pn 






--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: User login and logout

2005-12-06 Thread charged2885
I'm interested in this as well. 

--- In flexcoders@yahoogroups.com, Dan [EMAIL PROTECTED] wrote:

 hi all,
 
 I am trying to build an application that will kick out the first usr 
 when another user using the same id login. Does anyone has any idea 
 which area i should look into??? 
 
 Dan









 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] OT: Xpath and HTML problem

2005-12-06 Thread Merrill, Jason










The HTML is inside the XML, as in my
example, and loading into Flash using Xpath.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





how r loading this html?













NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] OT: Xpath and HTML problem

2005-12-06 Thread Johannes Nel



we had this problem when loading xml from a webservice and trying to
tap into the raw response. are u using the XPATHdocument class, i would
advise against that and say use the normal xml class and use the static
methods on the xpath class to do your queries, but that said i think
the conversation is happening due to the fact that u placed the
information into cdata tags, thus it had to be encoded, iotherwise the
dom would be not parse it properly. do u need to use cdata for this?
On 12/6/05, Merrill, Jason [EMAIL PROTECTED] wrote:

















The HTML is inside the XML, as in my
example, and loading into Flash using Xpath.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 















From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





how r loading this html?













NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- j:pn 






--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] https calls to RemoteObjects

2005-12-06 Thread Johannes Nel



this sounds like a crossdomain issue.On 12/6/05, Mehdi, Agha [EMAIL PROTECTED] wrote:











Hi all,

What extra steps do I need to take to call RemoteObjects on Secure Server?
 My calls fail when accessing objects on https.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766









--
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



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  








-- j:pn 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] OT: Xpath and HTML problem

2005-12-06 Thread Merrill, Jason










Thanks. Yes, I believe I will need to use
CDATA in so Flash views the data correctly  when you say normal
 I assume you mean the Flash native XML class? I would really like to
use Xpath if at all possible.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 






















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





we had this problem when
loading xml from a webservice and trying to tap into the raw response. are u
using the XPATHdocument class, i would advise against that and say use the
normal xml class and use the static methods on the xpath class to do your
queries, but that said i think the conversation is happening due to the fact
that u placed the information into cdata tags, thus it had to be encoded,
iotherwise the dom would be not parse it properly. do u need to use cdata for
this?





On 12/6/05, Merrill,
Jason [EMAIL PROTECTED]
wrote:



The HTML is inside the XML, as in my example, and loading into
Flash using Xpath.





Jason
Merrill | E-Learning Solutions | icfconsulting.com
















From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





how r loading this html?

















NOTICE:

This
message is for the designated recipient only and may contain privileged or
confidential information. If you have received it in error, please notify the
sender immediately and delete the original.Any other use of this e-mail
by you is prohibited.



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






SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.

















-- 
j:pn 








--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Variable Initialization Bug? Data Binding Issues in Flex 1.5

2005-12-06 Thread Ben Lucyk



OK, help me outhere, 'cause I've been scratchin' my head a little too hard on this one...

What I'm trying to do is setup a simple static class to use as a pointer to my main, global model, from within my MXML components. I've been running into some interesting behavior that I can't explain, and I'm wondering if anyone can help shed some light. (Couldn't find much help in the docs or forums)


I'm seeing that when I'm at the mx:Application level and I try to bind to a global variable that is initialized from the static class I mentioned above, no binding takes place unless I initialize the var after creationComplete(). This is NOT required however, when I'm trying to use the same type of binding in a component. (The var seems to initialize fine)


I should mention that I've also tested this using a normal class (var resource:String = new com.StaticResource().test;), and also a singleton class (var resource = com.StaticResource.getInstance().test;). No difference.


Any thoughts?


 Sample Code 


! StaticResource.as ---
class com.StaticResource { public static var test:String = Bliggidy!;}

!



! testStaticBinding.mxml ---

?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml creationComplete=doCreated()
mx:Script![CDATA[
// Does not work here, only at component level!//var resource:String = com.StaticResource.test;var resource:String;function doCreated() {// Var must be set AFTER creationComplete in
// order to bind successfully!resource = com.StaticResource.test;}
]]/mx:Scriptmx:HBoxmx:Label text=Parent Level: /mx:Label text={resource} //mx:HBox
components:testStaticBindingComponent xmlns:components=components.* //mx:Application

!



!-- testStaticBindingComponent.mxml---

?xml version=1.0 encoding=utf-8?mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script
 ![CDATA[ // Does NOT need to wait for creationComplete() in order to // bind successfully! var componentResource:String = com.StaticResource.test; //OK... ]] /mx:Script
 mx:Label text=Component Level: / mx:Label text={componentResource} //mx:HBox

!


Also, how are ModelLocators typically implemented using the Cairngorm framework?Thanks in advance,-Ben Lucyk






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  







attachment: screenshot.JPG


[flexcoders] Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread colinblackmore
I have a flex application that works perfectly when deployed under
http.  However, when I attempt to connect via https none of the
HTTPService calls return successfully.

The odd thing is that this only occurs when using https on Internet
Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine under
both http and https.

Some additional information:

- The fault code from the HTTPService is:
 fault: (Object)
  faultcode: Client.Disconnected (String)
  faultstring: Could not retrieve data. (String)
- I am *not* using the flex proxy.
- Calling the HTTPService URL directly from the browser works fine. 
It's only when flex attempts to call it from the client.
- Tomcat 5.5 is the web-server.
- I added the following crossdomain.xml to both the server root and
the context root (to no avail).

cross-domain-policy
allow-access-from domain=* secure=false /
/cross-domain-policy

Again, this is only an issue with IE.  Anyone out there successfully
serving a flex app to IE over https?

Thanks in advance

...Col





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] OT: Xpath and HTML problem

2005-12-06 Thread Johannes Nel



load ther xml as such

var c:XML = new XML();
c.load


etc handle the onLoad and the like 

then XPATH.selectNodes(c,./myNode)On 12/6/05, Merrill, Jason [EMAIL PROTECTED]
 wrote:
















Thanks. Yes, I believe I will need to use
CDATA in so Flash views the data correctly – when you say "normal"
– I assume you mean the Flash native XML class? I would really like to
use Xpath if at all possible.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 






















From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





we had this problem when
loading xml from a webservice and trying to tap into the raw response. are u
using the XPATHdocument class, i would advise against that and say use the
normal xml class and use the static methods on the xpath class to do your
queries, but that said i think the conversation is happening due to the fact
that u placed the information into cdata tags, thus it had to be encoded,
iotherwise the dom would be not parse it properly. do u need to use cdata for
this?





On 12/6/05, Merrill,
Jason [EMAIL PROTECTED]
wrote:



The HTML is inside the XML, as in my example, and loading into
Flash using Xpath.





Jason
Merrill | E-Learning Solutions | icfconsulting.com
















From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OT:
Xpath and HTML problem





how r loading this html?

















NOTICE:

This
message is for the designated recipient only and may contain privileged or
confidential information. If you have received it in error, please notify the
sender immediately and delete the original.Any other use of this e-mail
by you is prohibited.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 






SPONSORED
LINKS 





 
  
  
Web site design development 
  
  
  
Computer software development 
  
  
  
Software design and development 
  
 
 
  
  
Macromedia flex 
  
  
  
Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.

















-- 
j:pn 








--
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



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- j:pn 






--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] https calls to RemoteObjects

2005-12-06 Thread Mehdi, Agha










I do have crossdomain.xml file at the
root of CF server where my remote objects are.





Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005
12:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] https
calls to RemoteObjects





this sounds like a
crossdomain issue.



On 12/6/05, Mehdi,
Agha [EMAIL PROTECTED]
wrote:

Hi all,

What extra steps do I need to take to call
RemoteObjects on Secure Server? My calls fail when accessing objects on https.

Thanks

Agha
Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766



--
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





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.















-- 
j:pn 








--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] https calls to RemoteObjects

2005-12-06 Thread Carson Hager
Title: Re: [flexcoders] https calls to RemoteObjects








Have you adjusted the whitelist for https?


Carson




Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY ext. 89
Mobile: 1.703.489.6466



-Original Message-
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue Dec 06 17:04:39 2005
Subject: RE: [flexcoders] https calls to RemoteObjects

I do have crossdomain.xml file at the root of CF server where my remote objects are.



Agha Mehdi
IDT - eBusiness Program Manager



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005 12:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] https calls to RemoteObjects



this sounds like a crossdomain issue.

On 12/6/05, Mehdi, Agha [EMAIL PROTECTED] wrote:

Hi all,

What extra steps do I need to take to call RemoteObjects on Secure Server? My calls fail when accessing objects on https.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766



--
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



* Visit your group flexcoders http://groups.yahoo.com/group/flexcoders  on the web.

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

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .








--
j:pn



--
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


 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders  on the web.
 
* To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] https calls to RemoteObjects

2005-12-06 Thread Mehdi, Agha
Title: Re: [flexcoders] https calls to RemoteObjects










Oh, so do you need to enter https
services in the whitelist? I didnt know that.





Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager
Sent: Tuesday, December 06, 2005
2:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] https
calls to RemoteObjects





Have you adjusted the whitelist for https?


Carson




Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY ext. 89
Mobile:
1.703.489.6466



-Original Message-
From: flexcoders@yahoogroups.com
flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue Dec 06 17:04:39 2005
Subject: RE: [flexcoders] https calls to RemoteObjects

I do have crossdomain.xml file at the root of CF server where my remote objects
are.



Agha Mehdi
IDT - eBusiness Program Manager



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Johannes Nel
Sent: Tuesday, December 06, 2005 12:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] https calls to RemoteObjects



this sounds like a crossdomain issue.

On 12/6/05, Mehdi, Agha [EMAIL PROTECTED] wrote:

Hi all,

What extra steps do I need to take to call RemoteObjects on Secure Server? My
calls fail when accessing objects on https.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766



--
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



* Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders
 on the web.

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

* Your use of Yahoo! Groups is
subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/
.








--
j:pn



--
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



* Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders
 on the web.
 
* To unsubscribe from this group,
send an email to:

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
* Your use of Yahoo! Groups is
subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/
.












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] PDFs of Flex 2.0 Alpha documentation

2005-12-06 Thread Ralf Rottmann










Sorry for reposting this but I was wondering whether there
are (printable) versions of the Flex 2.0 Alpha documentation (livedocs)
available. Someone on the list said there are but I desperately could not find them.
Can anybody point me into the right direction?



Regards

Ralf Rottmann











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread John Larson
--- In flexcoders@yahoogroups.com, colinblackmore 
[EMAIL PROTECTED] wrote:

 I have a flex application that works perfectly when deployed under
 http.  However, when I attempt to connect via https none of the
 HTTPService calls return successfully.
 
 The odd thing is that this only occurs when using https on Internet
 Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine 
under
 both http and https.
 
 Some additional information:
 
 - The fault code from the HTTPService is:
  fault: (Object)
   faultcode: Client.Disconnected (String)
   faultstring: Could not retrieve data. (String)
 - I am *not* using the flex proxy.
 - Calling the HTTPService URL directly from the browser works 
fine. 
 It's only when flex attempts to call it from the client.
 - Tomcat 5.5 is the web-server.
 - I added the following crossdomain.xml to both the server root and
 the context root (to no avail).
 
 cross-domain-policy
   allow-access-from domain=* secure=false /
 /cross-domain-policy
 
 Again, this is only an issue with IE.  Anyone out there 
successfully
 serving a flex app to IE over https?
 
 Thanks in advance
 
 ...Col



In our flex-config.xml file we've had to change this line in the 
HTTP-service-Proxy area:

https-url{context.root}/flashproxy/https-url

to:
https-urlHTTPS://(fully qualified domain)/(context root 
directory)/flashproxy/https-url


For some reason, our system doesn't like {context-root} for https 
calls. 



John






 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] Re: Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread John Larson
--- In flexcoders@yahoogroups.com, colinblackmore 
[EMAIL PROTECTED] wrote:

 I have a flex application that works perfectly when deployed under
 http.  However, when I attempt to connect via https none of the
 HTTPService calls return successfully.
 
 The odd thing is that this only occurs when using https on Internet
 Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine 
under
 both http and https.
 
 Some additional information:
 
 - The fault code from the HTTPService is:
  fault: (Object)
   faultcode: Client.Disconnected (String)
   faultstring: Could not retrieve data. (String)
 - I am *not* using the flex proxy.
 - Calling the HTTPService URL directly from the browser works 
fine. 
 It's only when flex attempts to call it from the client.
 - Tomcat 5.5 is the web-server.
 - I added the following crossdomain.xml to both the server root and
 the context root (to no avail).
 
 cross-domain-policy
   allow-access-from domain=* secure=false /
 /cross-domain-policy
 
 Again, this is only an issue with IE.  Anyone out there 
successfully
 serving a flex app to IE over https?
 
 Thanks in advance
 
 ...Col



In our flex-config.xml file we've had to change this line in the 
HTTP-service-Proxy area:

https-url{context.root}/flashproxy/https-url

to:
https-urlHTTPS://(fully qualified domain)/(context root 
directory)/flashproxy/https-url


For some reason, our system doesn't like {context-root} for https 
calls. 



John







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] PDFs of Flex 2.0 Alpha documentation

2005-12-06 Thread Matt Chotin










http://labs.macromedia.com/wiki/index.php/Flex_Framework#Documentation



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Rottmann
Sent: Tuesday, December 06, 2005
3:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PDFs of Flex
2.0 Alpha documentation





Sorry for reposting this but I was wondering whether there
are (printable) versions of the Flex 2.0 Alpha documentation (livedocs)
available. Someone on the list said there are but I desperately could not find
them. Can anybody point me into the right direction?



Regards

Ralf Rottmann











--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Datagrid Issue

2005-12-06 Thread shahnavaz Alware










Thanks Matt,



I was under the impression that when datagrid
sort, will clean itself off. Using the same example how I can make the
cellRenderer change the color of entire row where Price  100? I did tried
using listOwner[getCellIndex().itemIndex].setStyle(backgroundColor,
0x00) with no luck.



Thanks,



Shahn











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
6:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Well you still need an else so that you
call setBackgroundColor even when price is less than 100. The cell is
re-used, you need to cover all cases in your setValue function. So your
else statement here can be to setCellBackgroundColor(0xff, 0)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
5:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Hi Matt,



The code is not the problem here. I am not
sure if I have to reassign the dataprovider after I click on Price header. I
replaced the script so now I am just checking for Price  100 and when you
sort by price after it renders the result is still the same.







 mx:Script


![CDATA[ 


function setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


}





function setCellBackgroundColor(newColor, newAlpha)


{





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 


} 


]]

 /mx:Script











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
5:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Dont you need a check for  1000
in your if (price  100) test?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Issue





Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns




mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/


/mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput
xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn
















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread Carson Hager
Are you possibly operating within an authenticated session?


Carson



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of colinblackmore
Sent: Tuesday, December 06, 2005 1:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unable to retrieve data via HTTPService over https
in *IE*.

I have a flex application that works perfectly when deployed under http.
However, when I attempt to connect via https none of the HTTPService
calls return successfully.

The odd thing is that this only occurs when using https on Internet
Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine under
both http and https.

Some additional information:

- The fault code from the HTTPService is:
 fault: (Object)
  faultcode: Client.Disconnected (String)
  faultstring: Could not retrieve data. (String)
- I am *not* using the flex proxy.
- Calling the HTTPService URL directly from the browser works fine. 
It's only when flex attempts to call it from the client.
- Tomcat 5.5 is the web-server.
- I added the following crossdomain.xml to both the server root and the
context root (to no avail).

cross-domain-policy
allow-access-from domain=* secure=false /
/cross-domain-policy

Again, this is only an issue with IE.  Anyone out there successfully
serving a flex app to IE over https?

Thanks in advance

...Col





 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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/
 




[flexcoders] Re: Session Management using Flex

2005-12-06 Thread Dave Wolf
Doug is correct.  When I referred to using a J2EE application server I
referred to something like Tomcat.  We are *huge* Tomcat fans (and if
you track my prior rants I think my position on EJB is well known LOL).  

Tomcat totally supports JAAS (yes there is a JAASRealm valve which
enables your JAAS plugin).  We use this in several of our
applications.  JAAS lets us do things like have a custom user data
store (RDBMS) and to implement login rules like

1) Dictionary attack protection.  We use heuristics to detect if a
hacker is trying to guess passwords and lock the account out
2) Third party federated assertions.  For instance, yeah they're
username and password checks out with us, but lets check with a third
party and make sure they're still allowed to access the system

You can use JAAS inside Tomcat to do exactly what you want here.  It
does take a Java developer who knows how to write JAAS.  

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY



--- In flexcoders@yahoogroups.com, Douglas Knudsen
[EMAIL PROTECTED] wrote:

 ugh, correct me if I'm way off here, I'm not, but isn't Tomcat a J2EE
 container?  Where is Dave Wolf on this, eh?  :)  You can implement
 JAAS stuffs on Tomcat and utilise this with Flex.  I think this
 involves something called valves in Tomcat. There is an article by
 Brian Diette on this that is helpful

http://www.macromedia.com/devnet/flex/articles/security_framework_print.html
 
 
 DK
 
 On 12/6/05, Kam-Wing Pang [EMAIL PROTECTED] wrote:
  Dave,
 
  Thanks!
 
  Any other option other than using a J2EE application server for
  implementing JAAS for security?
 
  Are there existing features in Flex that we can utilise?
 
  Our application up to now has been quite simple in its deployment
  using a tomcat server. We're up against time in getting it into
  production, and deployment into a J2EE server at this stage may not
  be right for us at the moment.
 
  I agree with you that utilising J2EE would be simpler. Would there be
  a significant overhead migrating a previosly tomcat deployment to a
  J2EE application server such as JBoss? Issues with performance etc?
  We're not utilising EJB in our biz logic. The application is mainly
  alot of reads from the database and some calculations.
 
  Thanks,
 
  Kam.
 
 
 
  --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote:
  
   First off, I strongly reccomend not trying to roll your own security
   solutions.  J2EE includes a very robust and well tested security
   model.  Every J2EE server supports pretty much the same level of
   security services.  There is no need to go out and develop your
  own.
   Flex integrates into the normal J2EE session security extremely
  well.
  
   You requirements are a bit different from the out of the box J2EE
   security but can be easily implemented via a JAAS plug-in extension
  to
   the container.
  
  
So the questions:
   
1. Can the system ever know when a user has logged out in a
  browser
environment where the user can easily close the browser without
  going
through some sort of logging out process?
   
  
   Yes and no. You cannot tell (easily) when someone closes their
  browser
   but you can tell when their credentials are no longer valid. There
  are
   events which fire when a J2EE session expires.  You could detect
  that
   and remove them from a list of logged in users.
  
  
2. If we implement the second option, instead of doing a major
   overhaul of
every method call and adding an extra parameter for the user
  details
   (e.g.
username, password, session id etc), is there an existing flex
   functionality
that provide some sort of session id that we can check which will
   allow us
to see if the request is made from the 1st user or the 2nd user?
   
  
   I cannot find a way to express strongly enough that the idea of
  adding
   parameters to each method call to pass security credentials is a
   security whole as big as a fire truck.  This allows a man in the
   middle to very easily hijack another users session and simulate
  their
   login, thereby doing things like executing transactions by
  pretending
   to be someone else.
  
   If you use standard J2EE session based security flex will
   transparantly inherit the normal J2EE session.
  
   Here is how I would build this.
  
   Create a custom JAAS plugin that tracks active logins via some map.
   When a user logs in you add their id to the map.  When they log out,
   you remove it.  When their session expires automatically you remove
   it.  (yes there will be lag there).  If a user tries to login twice,
   tell the JAAS plugin to deny them.
  
3. Does the AMF gateway allow some sort of session management that
   we can
leverage for disallowing multiple users logging in with same
username/password without refactoring all the backend request
  methods?
   
  

[flexcoders] Re: Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread Dave Wolf

As well, what container.  Any chance this is Tomcat?  (see a leading
trend in our quesitons? wink)

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED]
wrote:

 Are you possibly operating within an authenticated session?
 
 
 Carson
 
 
 
  
 Carson Hager
 Cynergy Systems, Inc.
 http://www.cynergysystems.com
  
 Email:  [EMAIL PROTECTED]
 Office:  866-CYNERGY
 Mobile: 1.703.489.6466
  
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of colinblackmore
 Sent: Tuesday, December 06, 2005 1:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Unable to retrieve data via HTTPService over https
 in *IE*.
 
 I have a flex application that works perfectly when deployed under http.
 However, when I attempt to connect via https none of the HTTPService
 calls return successfully.
 
 The odd thing is that this only occurs when using https on Internet
 Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine under
 both http and https.
 
 Some additional information:
 
 - The fault code from the HTTPService is:
  fault: (Object)
   faultcode: Client.Disconnected (String)
   faultstring: Could not retrieve data. (String)
 - I am *not* using the flex proxy.
 - Calling the HTTPService URL directly from the browser works fine. 
 It's only when flex attempts to call it from the client.
 - Tomcat 5.5 is the web-server.
 - I added the following crossdomain.xml to both the server root and the
 context root (to no avail).
 
 cross-domain-policy
   allow-access-from domain=* secure=false /
 /cross-domain-policy
 
 Again, this is only an issue with IE.  Anyone out there successfully
 serving a flex app to IE over https?
 
 Thanks in advance
 
 ...Col
 
 
 
 
 
  Yahoo! Groups Sponsor ~--
 Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
 Life.
 http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
 ~- 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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: Unable to retrieve data via HTTPService over https in *IE*.

2005-12-06 Thread Carson Hager
He says it's Tomcat below.


Carson 



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Tuesday, December 06, 2005 5:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Unable to retrieve data via HTTPService over
https in *IE*.


As well, what container.  Any chance this is Tomcat?  (see a leading
trend in our quesitons? wink)

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED]
wrote:

 Are you possibly operating within an authenticated session?
 
 
 Carson
 
 
 
  
 Carson Hager
 Cynergy Systems, Inc.
 http://www.cynergysystems.com
  
 Email:  [EMAIL PROTECTED]
 Office:  866-CYNERGY
 Mobile: 1.703.489.6466
  
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of colinblackmore
 Sent: Tuesday, December 06, 2005 1:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Unable to retrieve data via HTTPService over 
 https in *IE*.
 
 I have a flex application that works perfectly when deployed under
http.
 However, when I attempt to connect via https none of the HTTPService 
 calls return successfully.
 
 The odd thing is that this only occurs when using https on Internet 
 Explorer (6.0).  Both Firefox (1.5) and Opera (8.51) work fine under 
 both http and https.
 
 Some additional information:
 
 - The fault code from the HTTPService is:
  fault: (Object)
   faultcode: Client.Disconnected (String)
   faultstring: Could not retrieve data. (String)
 - I am *not* using the flex proxy.
 - Calling the HTTPService URL directly from the browser works fine. 
 It's only when flex attempts to call it from the client.
 - Tomcat 5.5 is the web-server.
 - I added the following crossdomain.xml to both the server root and 
 the context root (to no avail).
 
 cross-domain-policy
   allow-access-from domain=* secure=false / 
 /cross-domain-policy
 
 Again, this is only an issue with IE.  Anyone out there successfully 
 serving a flex app to IE over https?
 
 Thanks in advance
 
 ...Col
 
 
 
 
 
  Yahoo! Groups Sponsor 
 ~-- Get Bzzzy! (real tools to help you find a 
 job). Welcome to the Sweet Life.
 http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
 ~-
 
 
 --
 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







 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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



 





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* 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] Flex Date Formatter issue ??

2005-12-06 Thread Matt Chotin










I think you should be using JJ instead of
HH in yoru format string since normally we go 0-23 for hours and not 1-24. The
ASDoc for the DateFormatter describes the characters in more details. I admit
it does seem like HH should be the 0-23 version since its more common



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of flexasher
Sent: Tuesday, December 06, 2005
12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Date
Formatter issue ??





Sample code used to recreate
problem (used within an actionScript class):

private static var dateFormatter:DateFormatter =
new DateFormatter();
dateFormatter.formatString =   DD,
 - HH:NN;
var tmp:Date = new Date( someDateInMilli );
logger.debug(  + tmp,
dateFormatter.format( tmp ) );

I am attempting to use the DateFormatter in Flex
to format a time in
milliseconds that comes from a mapped Java
class. I first convert the
time to a Date in ActionScript, and then use the
DateFormatter to
format the date string. Now for the strange
part: when I log the
newly created Date and the formatted date string
as specified in the
code above, I get the following results:

tmp = Tue Dec 6 14:40:00 GMT-0500 2005
format(tmp) = Tuesday December, 6 2005 - 15:40

The formatted version of the date is the correct
format, however it
seems to add an extra hour after the format
(possibly due to timezone
settings?)

Help if you can.














--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Datagrid Issue

2005-12-06 Thread Matt Chotin










listOwner.dataProvider.editField(getCellIndex().itemIndex,
backgroundColor, 0x00)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of shahnavaz Alware
Sent: Tuesday, December 06, 2005
4:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Thanks Matt,



I was under the impression that when
datagrid sort, will clean itself off. Using the same example how I can make the
cellRenderer change the color of entire row where Price  100? I did tried
using listOwner[getCellIndex().itemIndex].setStyle(backgroundColor,
0x00) with no luck.



Thanks,



Shahn











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
6:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Well you still need an else so that you
call setBackgroundColor even when price is less than 100. The cell is
re-used, you need to cover all cases in your setValue function. So your
else statement here can be to setCellBackgroundColor(0xff, 0)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
5:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Hi Matt,



The code is not the problem here. I am not
sure if I have to reassign the dataprovider after I click on Price header. I
replaced the script so now I am just checking for Price  100 and when you
sort by price after it renders the result is still the same.







 mx:Script


![CDATA[ 


function setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


}





function setCellBackgroundColor(newColor, newAlpha)


{





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 


} 


]]

 /mx:Script











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
5:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Dont you need a check for  1000
in your if (price  100) test?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Issue





Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns




mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/


/mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput
xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none
backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn

















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Variable Initialization Bug? Data Binding Issues in Flex 1.5

2005-12-06 Thread Matt Chotin










Instance variable assignment in the declaration
is always dangerous because dependencies are generally not tracked for
initialization purposes. Assigning the variable in a function thats
called later (like creationComplete or even initialize) is considered the
best-practice.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ben Lucyk
Sent: Tuesday, December 06, 2005
1:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Variable
Initialization Bug? Data Binding Issues in Flex 1.5







OK, help me outhere, 'cause I've been scratchin' my head a little
too hard on this one...











What I'm trying to do is setup a simple static class to use as a
pointer to my main, global model, from within my MXML components. I've
been running into some interesting behavior that I can't explain,
and I'm wondering if anyone can help shed some light. (Couldn't
find much help in the docs or forums) 











I'm seeing that when I'm at the mx:Application level and I try
to bind to a global variable that is initialized from the static
class I mentioned above, no binding takes place unless I initialize the var
after creationComplete(). This is NOT required however, when I'm trying
to use the same type of binding in a component. (The var seems to
initialize fine) 











I should mention that I've also tested this using a normal
class (var resource:String = new com.StaticResource().test;), and also a
singleton class (var resource =
com.StaticResource.getInstance().test;). No difference. 











Any thoughts?

















 Sample Code 













! StaticResource.as ---






class com.StaticResource {
 public static var test:String = Bliggidy!;
}











!

























! testStaticBinding.mxml
---











?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 creationComplete=doCreated() 
mx:Script
![CDATA[






// Does not work here, only at
component level!
//var resource:String =
com.StaticResource.test;
var resource:String;

function doCreated() {
// Var must
be set AFTER creationComplete in 
// order to
bind successfully!
resource =
com.StaticResource.test;
}






]]
/mx:Script
mx:HBox
mx:Label
text=Parent Level: /
mx:Label
text={resource} /
/mx:HBox
components:testStaticBindingComponent
xmlns:components=components.* /
/mx:Application











!



















!-- testStaticBindingComponent.mxml---











?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml
 mx:Script 
 ![CDATA[
 // Does NOT need to wait for creationComplete() in
order to
 // bind successfully!
 var componentResource:String =
com.StaticResource.test; //OK...

 ]]
 /mx:Script 
 mx:Label text=Component Level: /
 mx:Label text={componentResource} /
/mx:HBox











!



















Also, how are ModelLocators typically implemented using the Cairngorm
framework?

Thanks in advance,
-Ben Lucyk












--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Coldfusion + Flex position in San Ramon, CA

2005-12-06 Thread Larry Jacobson
Tariq .. Your position may be perm but what's the
going rate for a Flex programmer .. 6 months
experience (plus java  database exp.)? Unfortunately
I have no Cold Fusion exp. 

Thanks! 
Larry

--- Tariq Ahmed [EMAIL PROTECTED] wrote:

 Greetings all. We're building up a new team and are
 looking to hire a 
 few people throughout 2006. If you're interested
 send me your resume and 
 I'll give you specifics on the project. The job is
 70% Coldfusion, but 
 I've been selling the idea of a Flex2 interface and
 the customer is 
 grinning ear to ear. So Phase 1 will be
 re-architecting the application 
 to be multi-tiered and preparing for a Flex 2
 presentation tier once the 
 product is released.
 
 Thanks.
 
 

---
 Senior Web Application Developer
 
 Amcom Data Processing, Inc. is looking for an
 experienced developer to 
 join our product development team. As part of a team
 based environment 
 the position involves working on mission critical
 web based solutions 
 that enable the efficiency and growth of our clients
 utilizing rapid 
 application prototyping methodologies and rich
 internet application 
 development.
 
 Developer is expected to be a self-starter that
 works well with the 
 existing team. Developer will need to write detailed
 specifications, 
 develop code, testing/debugging of code and provide
 support. In 
 addition, the developer will be required to document
 designs, 
 procedures, manuals and other documentation needed
 for the applications.
 
 Basic requirements for this position include:
 • Work with team members to help translate customer
 needs into 
 design/application specifications
 • Architect, develop and design detailed prototypes
 and web interfaces 
 for all applications
 • Design, build and optimize SQL Server databases
 • Work directly with clients to finalize application
 requirements
 • Create and maintain database-driven web
 applications
 • Integrate online applications with back-end
 systems (Web Services, 
 Soap, etc)
 
 Required technical proficiencies:
 • ColdFusion (CFML) – Expert Level
 • HTML - Expert Level
 • SQL – Expert Level
 • Microsoft SQL Server – Advanced Level
 • JavaScript – Moderate Level
 • CSS – Moderate Level
 • Web Services - Moderate Level
 
 Desired Technical skills:
 • Developing multi-tiered web applications in
 Coldfusion
 • FLEX
 • FLASH
 • ActionScript
 • Understanding of rapid development methodologies
 (Extreme Programming, 
 Scrum, etc…).
 
 General Business and Customer skills required:
 • Close attention to detail
 • Ability to effectively test and document your own
 work
 • Great organizational and time-management skills,
 including an ability 
 to estimate project completion times
 • Ability to juggle multiple projects, tasks, and
 deadlines
 • Self-motivated and self-directed: We need someone
 who will proactively 
 tackle challenges propose innovative solutions
 • Great communication skills: both written and
 verbal (Developers 
 respond directly to client requests, so the ability
 to correspond 
 professionally is critical)
 • Properly assess and meet customer needs in a
 professional and 
 courteous manner
 • Anticipate customers' needs and communicate/pitch
 new ideas
 
 Salary: Dependen
 
 About Amcom:
 Amcom Data Processing, Inc. specializes in the
 premiere software 
 solutions for the Service Station industry, as well
 as outsourcing, 
 facilities management, programming, training, and
 supporting computer 
 systems of small and medium sized businesses. Our
 two divisions (ADP and 
 ACS) have grown and prospered because of our
 commitment to providing 
 software expertise and user support services.
 
 Amcom was founded on April 1, 1973, and has been
 involved with the oil 
 industry since 1978 with Jobbers and Retail
 operations. The company 
 currently has relationships with six major oil
 companies. Our corporate 
 office is located in the San Francisco Bay Area (San
 Ramon Valley).
 
 
 
 
 
  Yahoo! Groups Sponsor
 ~-- 
 Get Bzzzy! (real tools to help you find a job).
 Welcome to the Sweet Life.

http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM

~-
 
 
 --
 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
 
 
 [EMAIL PROTECTED]
 
  
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: 

RE: [flexcoders] offset in ColumnChart.

2005-12-06 Thread Daniel Leung


Hi Ely,
Thanks for your reply, it works!!! Thanks so much!!
Daniel


From: "Ely Greenfield" [EMAIL PROTECTED]Reply-To: flexcoders@yahoogroups.comTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] offset in ColumnChart.Date: Tue, 6 Dec 2005 10:03:59 -0800Hi Dan. The maxColumnRatio, maxColumnWidth, and offset properties aremanaged automatically by the ColumnChart to give you clustering orstacking behavior. If you want to manage them yourself, you should use aCartesianChart instead, and set the values explicitly on the individualColumnSeries.Ely.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of DanSent: Monday, December 05, 2005 5:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] offset in ColumnChart.Importance: HighHi,Does 
anyone has try the offset of Column chart? I try to make somecolumn chart with column overlapping one another. However, the exampleusing Gradient in the Macromedia example will have Shadowrender andToopTips appear in incorrect position. So I try to draw the column in aposition not in the center, but seems the offset attribute is notworking. my code is like this.Any One can help?DanielAttach Codemx:ColumnChart id="chart" dataProvider="{zingerManufacturingData}"width="900" height="100%" showDataTips="true" type="overlaid"columnWidthRatio=".2" 
??mx:horizontalAxisRenderer?mx:AxisRenderertickLength="2"tickAlignment="between"canDropLabels="false"canStagger="false"/??/mx:horizontalAxisRenderer???mx:horizontalAxis?mx:CategoryAxisdataProvider="{zingerManufacturingData}"categoryField="Month" name="Month" /??/mx:horizontalAxis??mx:verticalAxis?mx:LinearAxis name="Units Sold"?/??/mx:verticalAxis??mx:series?mx:Array?mx:ColumnSeries yField="Apple3"name="Apple3" renderer="{new ShadowBoxRenderer()}"?offset="-50"? mx:fill??? ?mx:SolidColor color="0x00"alpha="80" 
/?? /mx:fill ??/mx:ColumnSeriesmx:ColumnSeries yField="Blinkies"name="Blinkies" renderer="{new ShadowBoxRenderer()}" offset="-50"? mx:fill??? ?mx:SolidColor color="0x00"alpha="80" /?? /mx:fill ??/mx:ColumnSeriesmx:ColumnSeries yField="Widgets"name="luxury Widgets"renderer="{new ShadowBoxRenderer()}" offset="-50"? mx:fill??? ?mx:SolidColor color="0x00FF00"alpha="80" /?? /mx:fill ??/mx:ColumnSeriesmx:ColumnSeries yField="Apple"name="Apple"?renderer="{new ShadowBoxRenderer()}" offset="0"? mx:fill??? ?mx:SolidColor 
color="0xFF"alpha="80" /?? /mx:fill ??/mx:ColumnSeriesmx:ColumnSeries yField="Apple2"name="Apple2"?renderer="{new ShadowBoxRenderer()}" offset="50"? mx:fill??? ?mx:SolidColor color="0xFF"alpha="80" /?? /mx:fill ??/mx:ColumnSeries?/mx:Array??/mx:series???/mx:ColumnChart Yahoo! Groups Sponsor ~--Most low income households are not online. Help bridge the digitaldivide today!http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM~- 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 



Web site design development 
Computer software development 
Software design and development 

Macromedia flex 
Software development best practice 


YAHOO! GROUPS LINKS 

 Visit your group "flexcoders" on the web.?lt;/tt 
 To unsubscribe from this group, send an email to:?lt;a href=""[EMAIL PROTECTED]?lt;/tt 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: (Flex 2.0) Slider.labels bug?

2005-12-06 Thread Darin Kohles
Thanks for the responses Matt and Sreenivas.

For those interested my, work-around for this was to simply remove the
exiting slider, and add a replacement at the same place in the child
stack (within an VBox). myBox.removeChildAt() and myBox.addChildAt().

One other thing tho - I tried setting this up with a
myBox.getChildIndex(myBox.getChildByName()) with no success (also a
bug in getChildByName? - assuming name implies id value) instead I
simply wrapped the sliders in an VBox to restrict their child order
placement to known values.

I also noticed a similar issue using state change overrides for things
like simple Link items (changing click functionality). Until the next
release I've been doing 'state' changes purely programmatically, and
when in doubt doing a remove/add child to update my components.

Keep on codin'

--- In flexcoders@yahoogroups.com, Sreenivas R
[EMAIL PROTECTED] wrote:

 Hi Darin,
 
 This is a bug. It will be fixed in the next release.
 
 -Sreenivas.







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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/