RE: [flexcoders] More print woes ;-)

2005-09-21 Thread Markus Ansamaa
1) Set your application background color to white in MXML. Then you can set
it to another color (e.g. 0x99) when application is initializing. This
way the background on the screen will be the value set later but the
background value for printing is white. I don't why this works but it just
does.

Markus

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman
> Sent: 21. syyskuuta 2005 14:10
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] More print woes ;-)
> 
> 
> Hi,
> 
> I found in the archives of this group some code to print a datagrid. 
> It doesn't work so well and this was reported in the Flex Macromedia 
> forum:
> 
> http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?
> catid=346&threadid=966370&highlight_key=y&keyword1=print
> 
> There is some new code listed there, from Mike Collins, which does a 
> much better job - but there are still problems that I can't seem to 
> resolve with it... I wonder if anyone here has any ideas...
> 
> (1) When you use that code to print, the area outside the grid is 
> printed in dark grey... how can this be stopped - ie have it white ?!
> 
> (2) Is there any way to have the print job default to landscape ?
> 
> Thanks - any help much appreciated.
> 
> Jamie.
> 
> 
> 
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> 
> Fair play? Video games influencing politics. Click and talk back!
> http://us.click.yahoo.com/T8sf5C/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 ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/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] Metamorphosing RadioButtonGroup

2005-09-01 Thread Markus Ansamaa
>> Umm.. well... maybe I could use mxml. RadioButtonGroup and the
RadioButtons constitue a boolean component in our software. And if there are
several RadioButtonGroups with the same id in a form, focus transition with
tab key won't work correctly. So the need was to set unique id dynamically
and I thought it cannot be done with mxml. But why not, maybe I should try
that. However, it still would be nice to know the reason for the
"metamorphosis" since unsolved mysteries are irritating.

> I would love to dig deeper to find out why this is happening, but
> currently I'm more interested in the future than the past. ;)
> 
> Would it help if you used an undocumented property called 'group'
> instead of 'groupName'?  No guarantees it'll make life easier for you
> or even work at all (without quietly breaking something else), but
> give it a try.  See RadioButton.as in your flexforflash.zip.

Just to let you know, I solved the problem by not creating the
RadioButtonGroup at all. Instead, the getter function for a group property
in RadioButton creates it for me. I don't know why it works and my initial
solution didn't, but anyway, now it's time to move on.

Markus



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/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] Metamorphosing RadioButtonGroup

2005-08-31 Thread Markus Ansamaa
> > I have been trying  to dynamically create RadioButtonGroup 
> (due to the problem I posted earlier). I  managed to create 
> the group but getting access to the RadioButtonGroup object  
> seems to be quite hard. I create the group during initialize 
> event,  but when I try to access the group, it seems to be 
> totally different object. For  example, if I set id property 
> for the group during initialization it has  disappeared when 
> accessed later.  
> 
> It the same object, but for some reason the id is changing.   No idea.
>  But why not make it an MXML component?  That way you don't have to
> struggle with createChild even.

Umm.. well... maybe I could use mxml. RadioButtonGroup and the RadioButtons
constitue a boolean component in our software. And if there are several
RadioButtonGroups with the same id in a form, focus transition with tab key
won't work correctly. So the need was to set unique id dynamically and I
thought it cannot be done with mxml. But why not, maybe I should try that.
However, it still would be nice to know the reason for the "metamorphosis"
since unsolved mysteries are irritating.



 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/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] Metamorphosing RadioButtonGroup

2005-08-31 Thread Markus Ansamaa
Title: Message





I have been trying 
to dynamically create RadioButtonGroup (due to the problem I posted earlier). I 
managed to create the group but getting access to the RadioButtonGroup object 
seems to be quite hard. I create the group during initialize event, 
but when I try to access the group, it seems to be totally different object. For 
example, if I set id property for the group during initialization it has 
disappeared when accessed later. 
 
 Here's some 
sample code demonstrating the problem:
 
RadioProblem.mxml:
http://www.macromedia.com/2003/mxml" xmlns:my="*"> 
 
RadioGroup.as:
import 
mx.controls.*;import mx.containers.*;
 
class RadioGroup 
extends Panel{ public var radioTrue; public var 
radioFalse; public var radioUnknown; public var 
radioGroup; public var label1; public var 
label2;  public function 
RadioGroup() {  super();  addEventListener( 
"initialize", mx.utils.Delegate.create( this, onInitialization ) 
);  addEventListener( "creationComplete", 
mx.utils.Delegate.create( this, onCreationComplete ) 
); }  private function 
onInitialization() {  var id:String = 
getId();radioGroup = createChild( 
RadioButtonGroup, undefined, { id:id } );  radioTrue = 
createChild( RadioButton, undefined, { groupName:id, id:"radioTrue", 
marginRight:20 } );  radioFalse = createChild( RadioButton, 
undefined, { groupName:id, id:"radioFalse", marginRight:20 } 
);  radioUnknown = createChild( RadioButton, undefined, { 
groupName:id, id:"radioUnknown", marginRight:20 } );   label1 
= createChild( Label, undefined, {} );  label2 = createChild( 
Label, undefined, {} );
  label1.text = "label1: " + radioGroup.id; 
// "myId" }  private function 
onCreationComplete() {  label2.text = "label2: " + 
radioGroup.id; // undefined }  private function 
getId():String {  return 
"myId"; }}





--
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
  
  
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] Tab key and consecutive radio button groups

2005-08-30 Thread Markus Ansamaa
Title: Message





In our system 
there's a component for presenting yes/no/unknown (boolean) selections. 
Basically, the structure of the component is following:
 

    
    
    
    

 
The component is 
dynamically added to a form like the other components. The problem is with the 
tab key focus transition when there are many boolean components one after 
another, for example:
 
Text 

Boolean1  _Yes _No XUnknown
Boolean2  _Yes XNo _Unknown
Integer 
 
If the focus is in 
the Text component and I press tab key, the focus moves to No option of the 
Boolean2. Apparently FocusManager.walkTree works as planned when searching the 
component to set to focus in. I just need to somehow tell the FocusManager that 
the focus should be set to Boolean1.
 
 
Markus
 





--
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] Closing TitleWindow crashes program

2005-08-09 Thread Markus Ansamaa
Title: Message





I have a search 
dialog (TitleWindow), which also shows the results of the search. User is able 
to select a value from the result list to be used in the main window. To improve 
the usability I have been adding a possibility to use double-click to both 
select the value and close the popup (the previous version of the dialog 
required a separate OK-button clicking). The problem I am facing is that if I 
delete the dialog when cellPress event is called it causes program to crash. 

 
I have included 
sample code to demonstrate the problem. Popup dialog can be closed and reopened 
if closing is done with Close-button. But if closing is done by pressing a cell 
in DataGrid the dialog cannot be reopened.
 
What may cause this 
to happen? Is there any workaround for the problem?
 
Markus





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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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.



  









DeletePopUpProblem.mxml
Description: Binary data


DeletePopUpDialog.mxml
Description: Binary data


RE: [flexcoders] Disappearing server call parameter

2005-07-11 Thread Markus Ansamaa
Title: Message





The 
code property is "public var code:String;". And yes, Java class has that 
property.
 
The 
server call is used when an object is added or edited. It has worked fine and 
actually the feature which uses the call has already been deployed to a customer 
as a part of our software. Yesterday we got an error report from the customer 
and the cause of the error turned out to be disappearing code property. It only 
happens if another property is changed. I know there are plenty of places in the 
UI that could mess up with the value, but the debugger revealed that the value 
should be OK when it is send to the server.
 
I 
tried to use implicit getter/setter but the setter was never called with null 
value. I noticed that if I change the value of code property, it does not 
disappear. I also tried adding an additional property as you suggested 
and there was no problem passing it to server side.
 
I hope 
that you (or someone else) have some kind of suggestion since I'm stucked with 
this.
 
Markus
 

-Original Message-From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matt ChotinSent: 11. heinäkuuta 2005 23:36To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Disappearing 
server call parameter

  
  Is the code property 
  a getter/setter?  What if you add an additional property named something 
  else?  Does your Java class have that property 
  declared?
   
  
  
  
  
  From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Markus AnsamaaSent: Monday, July 11, 2005 4:11 
  AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Disappearing server 
  call parameter
   
  I'm totally confused with one of my server calls. It seems 
  to be that incertain 
  circumstances one of the parameter object's properties disappear. 
  Ihave debugged the application to 
  the point where the server call is made anddebugger says the property exists. But when the server side 
  code is calledthere is no value 
  for the property. I know the problem sounds weird, but 
  Isimply can't find the cause of 
  the problem. Has anyone any suggestions?In below, there are some details from the Network 
  Monitor.Markus13:43:12.691    
  RemoteObject    
  RPC13.43:12.942    
  HTTPHeader  
  POST13.43.12.942    
  AMF  
      AMF/Post 
  MessageHere are details 
  for the RPC:Method: 
  observationFacade.saveObservationDefinitionParameter 1:   name : 
  param1  type : 
  object  value[object] : 
    
    _flag[String] : 
  Envelope  
    data[array] :   
      length[Number] : 
  1  
      [0][object] : 
    
      
    definition[null] : 
  null  
      
    id[object] :   
      
      
  extension[undefined] : undefined  
      
      root[undefined] 
  : undefined  
      
    oid[Number] : 
  1.19582E+006  
      
    repeatHigh[Number] : 1  
      
    repeatLow[Number] : 0  
      
    statusCode[String] : 
  normal  
      
    statusOid[null] : null  
      
    title[String] : Ohjainkatetri(t), 
  2.suoni  
      
    valueDefinition[object] : 
  code OK 
  ->    
      code[String] : 
  as   
      
      
  ...And for the AMF Post 
  Message:Message Target : 
  observationFacade.saveObservationDefinitiondata[array] :   length[Number] : 
  1  
  [0][object] :   
    _flag[String] : 
  Envelope  
    data[array] :   
      length[Number] : 
  1  
  [0][com.intensium.iwiser.business.observation.ObservationVO] 
  :   
      
    definition[undefined] : 
  undefined  
      
    id[com.intensium.iwiser.business.IdVO] : 
    
      
      
  extension[undefined] : undefined  
      
      root[undefined] 
  : undefined  
      
    oid[Number] : 
  1.19582E+006  
      
    repeatHigh[Number] : 1  
      
    repeatLow[Number] : 0  
      
    statusCode[String] : 
  normal  
      
    statusOid[null] : null  
      
    title[String] : Ohjainkatetri(t), 
  2.suoni  valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO]: code missing 
  ->    
    code[undefined] : 
  undefined  
      
      
  ...--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  --Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  


--
Flexcoders Mailing List
FAQ: http://groups.y

[flexcoders] Disappearing server call parameter

2005-07-11 Thread Markus Ansamaa

I'm totally confused with one of my server calls. It seems to be that in
certain circumstances one of the parameter object's properties disappear. I
have debugged the application to the point where the server call is made and
debugger says the property exists. But when the server side code is called
there is no value for the property. I know the problem sounds weird, but I
simply can't find the cause of the problem. Has anyone any suggestions?

In below, there are some details from the Network Monitor.


Markus


13:43:12.691RemoteObjectRPC
13.43:12.942HTTPHeader  POST
13.43.12.942AMF AMF/Post Message


Here are details for the RPC:

Method: observationFacade.saveObservationDefinition

Parameter 1: 
name : param1
type : object
value[object] : 
_flag[String] : Envelope
data[array] : 
length[Number] : 1
[0][object] : 
definition[null] : null
id[object] : 
extension[undefined] : undefined
root[undefined] : undefined
oid[Number] : 1.19582E+006
repeatHigh[Number] : 1
repeatLow[Number] : 0
statusCode[String] : normal
statusOid[null] : null
title[String] : Ohjainkatetri(t), 2.suoni
valueDefinition[object] : 
code OK ->  code[String] : as 
...


And for the AMF Post Message:

Message Target : observationFacade.saveObservationDefinition

data[array] : 
length[Number] : 1
[0][object] : 
_flag[String] : Envelope
data[array] : 
length[Number] : 1

[0][com.intensium.iwiser.business.observation.ObservationVO] : 
definition[undefined] : undefined
id[com.intensium.iwiser.business.IdVO] : 
extension[undefined] : undefined
root[undefined] : undefined
oid[Number] : 1.19582E+006
repeatHigh[Number] : 1
repeatLow[Number] : 0
statusCode[String] : normal
statusOid[null] : null
title[String] : Ohjainkatetri(t), 2.suoni

valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO]
: 
code missing -> code[undefined] : undefined
...



--
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] Width of a label when setting font size

2005-07-03 Thread Markus Ansamaa
Title: Message





Thanks. Simple answer for a simple question.
 
Markus

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Philippe MaegermanSent: 30. kesäkuuta 2005 10:33To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Width of a 
  label when setting font size
  I managed to get it working this 
  way:
  
   
  If 
  I'm not wrong, text formatting won't apply on htmlText fields, but specifying 
  a font size might help flash to anticipate the necessary 
  space.
   
   
  Philippe Maegerman
   
    
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Markus 
  AnsamaaSent: jeudi 30 juin 2005 9:03To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Width of a label 
  when setting font size
  I have a label, which value is set via htmlText property. 
  If I don't specifyany font size, label field is scaled to show the entire 
  text. However, if Iset font size, the text will be clipped. How do I tell 
  the label to takeinto account the font size when it's calculating its 
  preferred width?Here's a short demonstration of the 
  problem:http://www.macromedia.com/2003/mxml">  
    Markus 
  Ansamaa--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  --Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  --**STATEMENT 
  OF CONFIDENTIALITY** 
  This e-mail and any attached files are confidential 
  and intended solely for the use of the individual to whom it is addressed. If 
  you have received this email in error please send it back to the person that 
  sent it to you. Any views or opinions presented are solely those of author and 
  do not necessarily represent those the Emakina Company. Unauthorized 
  publication, use, dissemination, forwarding, printing or copying of this email 
  and its associated attachments is strictly prohibited.
  We also inform you that we have checked that this 
  message does not contain any virus but we decline any responsability in case 
  of any damage caused by an a non detected 
  virus.--


--
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] Width of a label when setting font size

2005-06-30 Thread Markus Ansamaa

I have a label, which value is set via htmlText property. If I don't specify
any font size, label field is scaled to show the entire text. However, if I
set font size, the text will be clipped. How do I tell the label to take
into account the font size when it's calculating its preferred width?

Here's a short demonstration of the problem:


http://www.macromedia.com/2003/mxml";>

    





Markus Ansamaa



--
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] TreeDataProvider implementation

2005-06-13 Thread Markus Ansamaa

Hi Sean,

I have implemented TreeDataProvider interface and I must say that it was an
unpleasant task to do. I was left with a feeling that TreeDataProvider is
meant to be used only in theory, not in practice.

First of all, if you want to mix TreeNodes and your custom TreeDataProviders
in a tree, your customer TreeDataProvider must extend TreeNode. The
implementation of Tree (or was it TreeNode) expects that the nodes of the
Tree are instances of TreeNode (as it should expect instances of
TreeDataProvider).

I also had problems updating tree dynamically. I was able to update my data
provider but the changes were not reflected to user interface unless I
called Tree.modelChanged( { eventName:"updateTree" } ). I think the correct
way to handle this would be fire events from my data provider, but the API
documentation doesn't mention what kind of events I should fire and when.

The actual implementation of TreeDataProvider is quite straightforward.
Methods are mostly getters and setters and implementing them won't take
long. 

Good luck!

Markus


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sean McKibben
> Sent: 13. kesäkuuta 2005 18:45
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TreeDataProvider implementation
> 
> 
> I believe that I need to write my own class which implements  
> TreeDataProvider, but am finding the task a bit daunting.
> Has anyone written their own TreeDataProvider that would be willing  
> to share it with me or the list?
> Is anyone aware of any articles about implementing TreeDataProvider?
> 
> I don't find much comfort in the liveDocs explanation at:
> http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/ 
> treeclasses/TreeDataProvider.html
> and Developing Flex Applications and "the book" don't really give  
> many pointers either.
> 
> If there was some sort of reference implementation I could peek at,  
> I'd feel much better about heading down this path. It probably isn't  
> all that difficult, but it is a big chunk of time to waste if 
> I can't  
> make it work...
> 
> Thanks,
> Sean McKibben
> graphex at graphex com
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



 
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] java.lang.NullPointerException

2005-03-22 Thread Markus Ansamaa

Maybe your Trial Edition has expired and you need to restart your server to get 
into the Developer mode. Or if you have developer edition, then the license 
limit may have been reached. In that case it should be mentioned below the 
stack trace.

-Markus

-Original Message-
From: Tarik Ahmed [mailto:[EMAIL PROTECTED] 
Sent: 23. maaliskuuta 2005 4:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] java.lang.NullPointerException


Hmm...Well my development Flex server decided it hates me. It was working fine 
up until today. Not sure what happened. I'm running Flex + CF over Jrun and 
IIS. All my Coldfusion stuff works fine, and Flex runs with the Coldfusion 
server instance. WE've been relocating machines from one data center to another 
and had a problem with the net apps filer we were using. But everything is fine 
again; I tested with running files off the local drive and get the same 
result...

But it barfs out this when hitting mxml files, otherwise .cfm works fine:

Anyone got an ideas? If CF wasn't working either then it'd seem to make 
sense... Thx!


HTTP Status Code: 500
Exception Type: class java.lang.NullPointerException

Exception java.lang.NullPointerException 
(View stack trace) 
 
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:248) at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at 
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457) 
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)  



Yahoo! Groups Sponsor 
ADVERTISEMENT
 
 
 



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 the Yahoo! Terms of Service. 




 
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] "hidden" interfaces (was: Re: List.getLength)

2005-02-21 Thread Markus Ansamaa

Yes, that's the API documentation. And if you check the List it is said that
it does NOT extend DataSelector. And there is no getLength method. And still
you can use List.getLength which is internally implemented by DataSelector.

Simon:
I think so too, but my whole point was that you cannot be sure, since it is
not said anywhere. And technically speaking list based components cannot
implement DataSelector since DataSelector is not an interface but a class.
And I know they doesn't extend it either.

If there's someone from Flex documentation team listening, could you tell,
if this issue is explained somewhere?

Markus



> -Original Message-
> From: San Clemente Technical Company, Inc. 
> [mailto:[EMAIL PROTECTED] 
> Sent: 18. helmikuuta 2005 18:55
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: List.getLength
> 
> You can use the following link 
> http://livedocs.macromedia.com/flex/15/asdocs_en/ it has all the Flex 
> Classes in javadoc format. It shows the hierarchy as well as the 
> inherited properties, events, methods, etc.
> 
> Ken
> 
> --- In flexcoders@yahoogroups.com, "Simon Fifield" <[EMAIL PROTECTED]> wrote:
> > MessageHi Markus,
> > 
> > I'm not 100% sure about this, but I think that all list based 
> components
> > implement the new DataSelector class.
> > 
> > Regards,
> > 
> > Simon
> > -Original Message-
> > From: Markus Ansamaa [mailto:[EMAIL PROTECTED]
> > Sent: 18 February 2005 13:38
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] List.getLength
> > 
> > 
> > I have wondered why there isn't a getLength method for a List. I 
> have used
> > List.dataProvider.length which feels clumsy to use. Today I just 
> happened to
> > try if such a method exists and there it was! I think most of you 
> already
> > knew that, but to me it was a totally new discovery. List seems to 
> use
> > DataSelector internally, which is the reason why getLength is not 
> mentioned
> > in the API.
> > 
> > I am just wondering, how should I know that List uses 
> DataSelector and
> > getLength method exists?! List's API says nothing about getLength or
> > DataSelector.
> > And how many other "hidden" interfaces there are?
> > 
> > Markus Ansamaa
> > 
> > 
> > 
> 
> > --
> > Yahoo! Groups Links
> > 
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> > 
> > b.. To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> > 
> > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service.
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 





List.getLength

2005-02-18 Thread Markus Ansamaa
Title: Message



I have wondered why 
there isn't a getLength method for a List. I have used List.dataProvider.length 
which feels clumsy to use. Today I just happened to try if such a method exists 
and there it was! I think most of you already knew that, but to me it was a 
totally new discovery. List seems to use DataSelector internally, which is the 
reason why getLength is not mentioned in the API.
 
I amjust 
wondering, how should I know that List uses DataSelector and getLength 
method exists?! List's API says nothing about getLength or DataSelector. 

And how many other 
"hidden" interfaces there are?
 
Markus 
Ansamaa


Bug in NumberBase.parseNumberString

2005-02-10 Thread Markus Ansamaa
Title: Message



Hi
 
There's a bug in NumberBase.parseNumberString. If 
decimalSeparator is other than default and parameter string begins with decimal 
symbol (e.g. ",123") the function returns the original value (e.g. ",123" 
instead of ".123"). The bug in NumberBase also causes a failure in 
NumberFormatter when a same kind of value is used.
I thoughtit would 
be better if you are aware of this bug, so you can avoid the situation to 
happen. And yes, I am going to report this through Bug Report 
Form.
 
Markus