Re: [flexcoders] Flex app URL

2006-04-20 Thread Andriy Panas



Hello Dmitry,

Thursday, April 20, 2006, 12:14:23 AM, you wrote:

 Does anyone know how to retrieve url of the Flex app from within the
 application?


Are you on Flex 1.5 or Flex 2 b2?

In Flex 1.5 world we use Flash derived API command: _level0._url.

How cool is that?!

-- 
Best regards,
 Andriy mailto:[EMAIL PROTECTED]







--
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: How to override type cast operator @ runtime?

2006-04-20 Thread Vadim Melnik



Thanks for information, sorry it was incorrect question, it was not 
related to ObjectProxy.

I wanted to create special object wrapper, overriding 
flash.util.Proxy methods and forwarding all calls to inner object, 
something like ObjectProxy does. But instead ObjectProxy it will 
only trace methods/properties/fields calls. It would be useful for 
object tracing at runtime and for object profiling - without 
modifing object code, just replace original object with object 
instance wrapped with ObjectTracer, e.g.:


var a:A = A(new ObjectTracer(new A()));
var b:B = B(new ObjectTracer(new B()));

a.doSomething(); // ObjectTracer catch callProperty and trace it
b.prop1 = 123; // ObjectTracer traces b property set to 123, etc 


Imagine some runtime or framework class you want to investigate or 
profile, but there is no source code for this class. By replacing 
original instance with proxied one it would be possible to see all 
method calls and property accesses at runtime with a little efforts.

It's going to provide the same functionality as COM's TraceHook 
(http://www.sellsbrothers.com/tools/#tracehook). But sounds like 
it's impossible with AS3.


--
Thanks,
Vadim Melnik.

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

 ObjectProxy is a Flex specific subclass of Proxy for wrapping 
anonymous
 Objects that are dynamic and can't be predictably made bindable to
 report property change events. It shouldn't be used to wrap typed
 objects like instances of B (see later). You can never cast 
ObjectProxy
 to B... the as operator never throws class cast exceptions, it just
 returns null if the type isn't correct. If you _did_ happen to end 
up in
 the situation that B was wrapped in an ObjectProxy then you'd have 
to
 unwrap the instance:
 
 var b:B = B(ObjectProxy(o).object_proxy::object);
 
 
 ...but this would be unusual since for serialization purposes in 
FDS we
 do not support typed objects being wrapped in ObjectProxy 
instances and
 sent to the server.
 
 Instead you should add [Bindable] metadta to public class B 
definition.
 
 If you somehow ended up with an ObjectProxy in the result from an 
FDS
 RPC service (like RemoteObject), then it's likely that the
 makeObjectsBindable attribute was true on your service but the type
 wasn't registered correctly with a remote class alias. In this case
 you'd add [RemoteClass(alias=com.mycompany.B)] to your public 
class B
 definition.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Vadim Melnik
 Sent: Wednesday, April 19, 2006 6:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to override type cast operator @ runtime?
 
 Hi All,
 
 flash.util.Proxy/mx.utils.ObjectProxy classes allow us to override
 properties access, methods call etc. Is it possible to override 
type
 cast operations at runtime, like IUnknown:QueryInterface in COM? 
For
 example:
 
 
 public class B {}
 
 ...
 
 var o:* = new ObjectProxy(new B());
 var b:B = o as B;
 trace(b); // - writes null
 // but I am looking for solution to
 // hook type cast operation as well
 // in other words need in ActionScript 3
 // universal delegate
 
 --
 Thanks,
 Vadim Melnik.
 
 
 
 
 
 
 --
 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] Re: How to override type cast operator @ runtime?

2006-04-20 Thread Peter Farland



Well, you can't have ObjectTracer cast to A or B so it's not going to be
exactly what you want. 

But if the API were made to accept Object in the relevant places, then
you could do something like this:


package com.mycompany
{

import flash.util.Proxy;
import flash.util.flash_proxy;

use namespace flash_proxy;

public dynamic class ObjectTracer extends Proxy
{
 private var _instance:Object;

 public function ObjectTracer(o:Object)
 {
 super();
 _instance = o;
 }

 override flash_proxy function getProperty(name:*):*
 {
 trace(getProperty:  + name);
 return _instance[name];
 }

 override flash_proxy function setProperty(name:*, value:*):void
 {
 trace(setProperty:  + name + , value= + value);
 _instance[name] = value;
 }

 override flash_proxy function callProperty(name:*, ...rest:Array):*
 {
 trace(callProperty:  + name);
 return _instance[name].apply(_item, rest);
 }

 // etc... See ASDoc for rest of methods from Proxy that can be
overridden...

}

}


 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vadim Melnik
Sent: Thursday, April 20, 2006 4:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to override type cast operator @ runtime?

Thanks for information, sorry it was incorrect question, it was not
related to ObjectProxy.

I wanted to create special object wrapper, overriding flash.util.Proxy
methods and forwarding all calls to inner object, something like
ObjectProxy does. But instead ObjectProxy it will only trace
methods/properties/fields calls. It would be useful for object tracing
at runtime and for object profiling - without modifing object code, just
replace original object with object instance wrapped with ObjectTracer,
e.g.:


var a:A = A(new ObjectTracer(new A()));
var b:B = B(new ObjectTracer(new B()));

a.doSomething(); // ObjectTracer catch callProperty and trace it
b.prop1 = 123; // ObjectTracer traces b property set to 123, etc 


Imagine some runtime or framework class you want to investigate or
profile, but there is no source code for this class. By replacing
original instance with proxied one it would be possible to see all
method calls and property accesses at runtime with a little efforts.

It's going to provide the same functionality as COM's TraceHook
(http://www.sellsbrothers.com/tools/#tracehook). But sounds like it's
impossible with AS3.


--
Thanks,
Vadim Melnik.

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

 ObjectProxy is a Flex specific subclass of Proxy for wrapping
anonymous
 Objects that are dynamic and can't be predictably made bindable to 
 report property change events. It shouldn't be used to wrap typed 
 objects like instances of B (see later). You can never cast
ObjectProxy
 to B... the as operator never throws class cast exceptions, it just 
 returns null if the type isn't correct. If you _did_ happen to end
up in
 the situation that B was wrapped in an ObjectProxy then you'd have
to
 unwrap the instance:
 
 var b:B = B(ObjectProxy(o).object_proxy::object);
 
 
 ...but this would be unusual since for serialization purposes in
FDS we
 do not support typed objects being wrapped in ObjectProxy
instances and
 sent to the server.
 
 Instead you should add [Bindable] metadta to public class B
definition.
 
 If you somehow ended up with an ObjectProxy in the result from an
FDS
 RPC service (like RemoteObject), then it's likely that the 
 makeObjectsBindable attribute was true on your service but the type 
 wasn't registered correctly with a remote class alias. In this case 
 you'd add [RemoteClass(alias=com.mycompany.B)] to your public
class B
 definition.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Vadim Melnik
 Sent: Wednesday, April 19, 2006 6:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to override type cast operator @ runtime?
 
 Hi All,
 
 flash.util.Proxy/mx.utils.ObjectProxy classes allow us to override 
 properties access, methods call etc. Is it possible to override
type
 cast operations at runtime, like IUnknown:QueryInterface in COM? 
For
 example:
 
 
 public class B {}
 
 ...
 
 var o:* = new ObjectProxy(new B());
 var b:B = o as B;
 trace(b); // - writes null
 // but I am looking for solution to
 // hook type cast operation as well
 // in other words need in ActionScript 3
 // universal delegate
 
 --
 Thanks,
 Vadim Melnik.
 
 
 
 
 
 
 --
 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



 








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

[flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey



I've been busy with creating an ItemRenderer for DataGrid cells.
After reading the help i noticed that the data that is given to the
ItemRenderer is the row data. I'm wondering how I could get the data for
just the cell so i can have a generic ItemRenderer.


with regards,

Bas J. Brey
Multimedia Developer








--
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] FDS - Problem configurating message destinations

2006-04-20 Thread Thomas Rühl -akitogo-




Thanks for the input, but that really wasn't the problem. In the 
meantime I figured out myself...

When I finally found the logfiles and detected that there was one called 
flex-errors.log, I looked into it and saw what? Right, what I didn't 
expect to see and was noted down nowhere on the way:
The Flex Data Services couldn't instanciate its MessageBroker servlet 
due to an unappropriate (»old«) version of the JRE. The version required 
for the Data Services is 1.4.2_06, the version installed with JRun4 is 
1.4.2_05 even after JRun4 Updater 6, which is the current one.

The reason for that was, with the failt after all at my side, that I 
used the JRun4 installation that ships with Coldfusion installer 
package, deployed Flex on an extra server instance on that and trusted 
in the all-in-one package.

To fix the roblem, I downloaded the latest JRE 1.4.2_11 (1.5 doesn't 
work with JRun4) extracted all the stuff and overwrote the jre folder of 
the JRun installation with the newer version. Since then it works 
without any bugs, as far as I tested it.

The final solution now, is to download everything seperately, the JRE 
1.4.2_06+ from Sun, then JRun4 from Adobe and finally to deploy the Flex 
application on that installation. I'm just re-doing it that way, while I 
write this...

Greetings, Thomas



Nirav Mehta wrote:
 Hi,
 
 This may not be relevant, but it's something we struggled with FDS so I
 will share.
 
 We had CF running on the machine, setup FDS and the built in JRun
 server. Made all the changes to the .xml files.
 
 The java-dao examples worked well, but when we moved to CF, it started
 giving weird problems.
 
 Specifically:
 
 'Error invoking fill method flex.data.adapters.javaadapter$fillmethod
 exception is : java.socket exception: software cause connection abort:
 socket write error'
 
 And this was because of some unmarshaling exception.
 
 We went beating around the bush for four days.
 
 Then figured that the problem was because we installed FDS in
 C:\Program Files\Adobe\Flex Data Service folder, instead of the
 default c:\fds2. Looks like it could not handle the spaces in the path.
 
 When we moved the installation to the default folder, it started working.
 
 :)
 
 :Nirav
 
 
 --
 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] Arranging checkboxes in Tile-Like Format

2006-04-20 Thread dave7273



I have a list of checkboxes that are dynamically created using a 
repeater and am having a difficult time trying to arrange them in 
something similar to a tileList. Currently, I will have about a dozen 
checkboxes and would more or less like them arrange vertically, in 
groups of 4 (or something like that). This number can change over time.

Anyone have any ideas on the best way of doing this?









--
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] Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan



How to set background color of a DG row. By setting backgroundColor 
property I get nothing displayed, but the mxml compiled ok.

Is there any way to set background color of a DG row?










--
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] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion



Does this clear things out for you ?I guess just use {data.property}.Check out this article
snip:mx:itemRenderer mx:Component mx:Canvas
 mx:CheckBox id=complete width=20 x=10 y=4 selected=
{data.selected}/ mx:Text id=taskname text={data.label}/
 /mx:Canvas /mx:Component/mx:itemRenderer






--
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] Arranging checkboxes in Tile-Like Format

2006-04-20 Thread Michael Schmalle



Hi,

Can't you just put the repeater in a Tile ? Then control your checkbox
layout through the Tile's layout and properties IE titleWidth, width
etc... I just did this yesterday Ironically.

Peace, MikeOn 4/20/06, dave7273 [EMAIL PROTECTED] wrote:



I have a list of checkboxes that are dynamically created using a 
repeater and am having a difficult time trying to arrange them in 
something similar to a tileList. Currently, I will have about a dozen 
checkboxes and would more or less like them arrange vertically, in 
groups of 4 (or something like that). This number can change over time.

Anyone have any ideas on the best way of doing this?









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




  










-- What goes up, does come down.






--
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] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey





That 
is just the thing, the DataGrid differs from a List.
The 
"data" object your receive in an itemrenderer for a DataGrid contains data of 
the whole row.
I just 
want the cell data.



  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  WebdevotionSent: donderdag 20 april 2006 14:34To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom 
  itemrenderer in datagrid
  Does this clear things out for you ?I guess just use 
  {data.property}.Check 
  out this articlesnip:mx:itemRenderer 
  mx:Component 
  mx:Canvas mx:CheckBox id="complete" width="20" x="10" y="4" selected= "{data.selected}"/ mx:Text id="taskname" text="{data.label}"/ /mx:Canvas /mx:Component/mx:itemRenderer





--
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: Arranging checkboxes in Tile-Like Format

2006-04-20 Thread dave7273



It's amazing how complicated I try to make things
Thanks!

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

 Hi,
 
 Can't you just put the repeater in a Tile ? Then control your 
checkbox
 layout through the Tile's layout and properties IE titleWidth, 
width etc...
 I just did this yesterday Ironically.
 
 Peace, Mike
 
 On 4/20/06, dave7273 [EMAIL PROTECTED] wrote:
 
  I have a list of checkboxes that are dynamically created using a
  repeater and am having a difficult time trying to arrange them in
  something similar to a tileList. Currently, I will have about a 
dozen
  checkboxes and would more or less like them arrange vertically, 
in
  groups of 4 (or something like that). This number can change 
over time.
 
  Anyone have any ideas on the best way of doing this?
 
 
 
 
 
  --
  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 developmenthttp://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=
Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ Computer
  software developmenthttp://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw
2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw Software
  design and developmenthttp://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia
  flexhttp://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof
tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl
exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ
I36cYzBjw Software
  development best practicehttp://groups.yahoo.com/gads?
t=msk=Software+development+best+practicew1=Web+site+design+developm
entw2=Computer+software+developmentw3=Software+design+and+developme
ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166
.sig=f89quyyulIDsnABLD6IXIw
  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
  on the web.
 
  - To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --
 
 
 
 
 --
 What goes up, does come down.











--
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] importing button designed in flash

2006-04-20 Thread Chaitu Vadlapatla










Hi,

 I am trying to import a button designed in flash into my
flex project and use it. I imported it and I can see it in my navigator view. But
when I try to drag it into my Panel I cant do it. Looks like something is wrong
with the way I am doing it or flash designed buttons or components cannot be
imported into Flex. Could somebody please help.

Thanks

Chaitu.






 
  
  
  
  
  CHAITU VADLAPATLA
  SOFTWARE ENGINEER
  
 
 
  
  T8DESIGN.COM
  | P 319.266.7574 - x145 | 877.T8IDEAS | F 888.290.4675
  
 



This e-mail, including attachments, is
covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
confidential, and may be legally privileged. If you are not the intended
recipient, you are hereby notified that any retention, dissemination,
distribution, or copying of this communication is strictly prohibited. Please
reply to the sender that you have received the message in error, and then
please delete it. Thank you.











--
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] DataGridItemRenderer with AS3

2006-04-20 Thread Webdevotion



Hello,I'm trying to create a datagriditemrenderer using Actionscript.I know I'm importing to much right now, it's for testing purposes ; )Does anyone have some insight into this techniques ?All I am seeing now is 
false in the cells of my datagrid.Another question: I can't use addChildAt, but I want to place some png files into the renderer. How do I do this ?Thanks!My code: 

package{import flash.display.*;import flash.events.*;import flash.util.*;import mx.core.*;import mx.controls.dataGridClasses.DataGridItemRenderer;import 
mx.controls.dataGridClasses.DataGridListData;import mx.controls.Label;  public class Rating extends DataGridItemRenderer{ // embed the solid start [Embed (source='assets/star.png')]
private var Star:Class;
 // embed the solid start [Embed (source='assets/star_empty.png')]private var StarEmpty:Class;  private var myListData:DataGridListData; private var ratingLabel:Label;
  public function Rating() { super(); var pic:Bitmap; var i:int; myListData = DataGridListData(listData);  for(i=0;idata;i++)
 { if((i+1)=data) { pic = new Star(); }else{ pic = new StarEmpty(); } pic.x = i*25; //this.addChildAt( pic,i ); }
 ratingLabel = new Label(); ratingLabel.text = data.rating; }}}






--
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] Background color of DataGrid row and column

2006-04-20 Thread Karl Johnson



Are you trying to set the background color for a specific row or for
ever row at once? Are you seeing alternating row colors instead of the
color you want? If that is the case, they you probably want to set the
the alternatingRowColors style (takes two RRGGBB colors).

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.html#s
tyles

If you want to set a row's bg color based on certain criteria, the way I
would do it is call dg.setPropertiesAt(rowId,
{backgroundColor:0xC2D4DF})

|

Karl Johnson
Cynergy Systems, Inc.
http://www.cynergysystems.com

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mustaq Pradhan
Sent: Thursday, April 20, 2006 6:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Background color of DataGrid row and column

How to set background color of a DG row. By setting backgroundColor
property I get nothing displayed, but the mxml compiled ok.

Is there any way to set background color of a DG row?






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



  











[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-20 Thread sof4real03



Interesting, has anyone gotten Flex 2 Beta 2 to work over HTTPS with
AMF? Also adding the complexity of proxying through Apache SSL?

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

 Here are the console messages from the non-secure amf:
 
 [Flex] Channel endpoint my-amf received request.
 [Flex] Deserializing AMF/HTTP request
 Version: 3
 (Message #0 targetURI=null, responseURI=/1)
 (Array #0)
 [0] = (Typed Object 
 #0 'flex.messaging.messages.CommandMessage')
 messageRefType = null
 operation = 6
 correlationId = 
 headers = (Object #1)
 messageId = 7872E161-B9A4-4841-5F6D232B
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Object #2)
 destination = 
 
 [Flex] Executed command: (default service)
 commandMessage: Flex Message 
 (flex.messaging.messages.CommandMessage)
 operation = client_ping
 messageRefType = null
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 correlationId =
 destination =
 messageId = 7872E161-B9A4-4841-5F6D232B
 timestamp = 1145493517421
 timeToLive = 0
 body = {}
 replyMessage: Flex Message 
 (flex.messaging.messages.AcknowledgeMessage)
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 correlationId = 7872E161-B9A4-4841-5F6D232B
 destination = null
 messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
 timestamp = 1145493517421
 timeToLive = 0
 body = null
 
 [Flex] Serializing AMF/HTTP response
 Version: 3
 (Message #0 targetURI=/1/onResult, responseURI=)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = 7872E161-B9A4-4841-5F6D232B
 messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
 timeToLive = 0.0
 timestamp = 1.145493517421E12
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 body = null
 
 [Flex] Channel endpoint my-amf received request.
 [Flex] Deserializing AMF/HTTP request
 Version: 3
 (Message #0 targetURI=null, responseURI=/2)
 (Array #0)
 [0] = (Typed Object 
 #0 'flex.messaging.messages.RemotingMessage')
 source = null
 operation = authenticateUser
 headers = (Object #1)
 endpoint = my-amf
 messageId = 09226E93-C2DA-A5E4-CCE6D97E
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Array #2)
 [0] = (Typed Object 
 #3 'com.logicseries.services.security.authenticati
 on.AuthenticatedUserValue')
 currentLogonDateTime = null
 username = XX
 lastLogonDateTime = null
 password = XX
 invalidLogonAttempts = NaN
 name = null
 profile = "">
 authorizedRoles = null
 personId = NaN
 destination = lsSecurity
 
 
 
 
 Here are the console messages from the secure amf:
 
 [Flex] Channel endpoint my-secure-amf received request.
 [Flex] Deserializing AMF/HTTP request
 Version: 3
 (Message #0 targetURI=null, responseURI=/1)
 (Array #0)
 [0] = (Typed Object 
 #0 'flex.messaging.messages.CommandMessage')
 operation = 6
 messageRefType = null
 correlationId = 
 messageId = E41A269A-9553-977E-525A3BB0
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Object #1)
 destination = 
 headers = (Object #2)
 
 [Flex] Serializing AMF/HTTP response
 Version: 3
 (Header #0 name=AppendToGatewayUrl, mustUnderstand=false)
 ;jsessionid=c030f64fa6665e267f2d
 
 (Message #0 targetURI=/1/onResult, responseURI=)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = E41A269A-9553-977E-525A3BB0
 messageId = 2345E298-890B-5740-1E8D-72D6ED468800
 timeToLive = 0.0
 timestamp = 1.145493705625E12
 clientId = 2345E271-790C-307C-1DE9-1CB848FC58D2
 body = null
 
 
 
 On the non-secure amf channel I get RemotingMessage traces after the 
 AcknowledgeMessage. I never get anything on the secure amf channel 
 after the AcknowledgeMessage. Any thought???
 
 
 
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
 wrote:
 
  Thanks for the notes. I wasn't aware of the fact that you need to 
  specify the context root on the compiler. I assumed (I know it's 
 not 
  good to assume) that whatever was in the config files in WEB-
 INF/flex 
  directory of the web app would be loaded and used at runtime. I 
  guess it's based on experiences with other 
 languages/applications. 
  
  You're summary of the configuration is correct. I misspoke of JMS 
  messages, these are the Command and Remoting Messages, my 
 apologies. 
  
  I already had the log level turned up, and I do see the Command 
 and 
  Remoting Messages over HTTP, but only one of them over HTTPS (I'm 
 not 
  see the message with the data for the objects being passed back 
 and 
  forth). I will re-run a test and capture the sets of messages 
 over 
  HTTP and HTTPS and post them here later tonight. 
  
  Sorry if I'm not articulating things exactly right, I'm new to 
 Flex 
  and learning as I go. Thanks again for all your help. 
  
  
  --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ 
  wrote:
  
   Note that for mxmlc you can provide the context root on the 
 command 
  line
   with --context.root. 

Re: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion



Have you tried a for loop through the data object ?What about data[column].label notation ?I'm at work now, can't test myself ...
On 4/20/06, B.Brey [EMAIL PROTECTED] wrote:


That is just the thing, the DataGrid differs from a List.
The data object your receive in an itemrenderer for a DataGrid contains data of the whole row.

I just want the cell data.




-Original Message-From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com]On Behalf Of WebdevotionSent: donderdag 20 april 2006 14:34
To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom itemrenderer in datagrid

Does this clear things out for you ?I guess just use {data.property}.
Check out this articlesnip:mx:itemRenderer mx:Component mx:Canvas
 mx:CheckBox id=complete width=20 x=10 y=4
 selected= {data.selected}/ mx:Text id=taskname text={data.label}
/ /mx:Canvas /mx:Component/mx:itemRenderer

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


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 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] Flex2/OpenAMF/Easybeans(EJB3) integration with JOnAS/WTP

2006-04-20 Thread Carlos Rovira




Hi list,I want to share a POC that I made some days ago, is
about integration of Flex2/OpenAMF/EasyBeans in JOnAS app server and
using WTP (Web Tools Project for eclipse).


http://www.carlosrovira.com/blog/?p=388http://www.carlosrovira.com/projects/
flope/flope.zip
The key here is the use of the open source EasyBeans
implementation of EJB3 specification by ObjectWeb consortium (the
creators of the Open Source JOnAS J2EE app server).
JOnAS 4.6.6 was used as the app server. I use the methods posted by others (like Jesse Warden) to
connect Flex 2 to OpenAMF vía AMF0 and then communicate with EJB3
examples in Easybean installation (Stateful, Stateless and Entity
beans). Web Tools Project was used to test it, and to create WARs and
others things to ease the structure and the build of the application. A JOnAS WTP Adapter plugin has been released as well:

http://forge.objectweb.org/project/download.php?group_id=65file_id=5820Development
of EJBs is do it with EoD(ease of development) in mind so you can
expect to code your persistence layer or other kind of beans in a very easy way. Easybeans should ship for production release in
one or two months and will be ready for use in JOnAS app server or in servlet containers like Tomcat. You need JDK 1.5 because EJB3 use the new annotations featureHope this could be of interest for someone in this list ;)

Cheers,C.-- ::| Carlos Rovira::| http://www.carlosrovira.com






--
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] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey





Well a 
little code example:

my 
data grid:

mx:DataGrid dataProvider="{my_data}"
 mx:columns
 
mx:Array
 
mx:DataGridColumn 
dataField="data_field1" itemRenderer="myItemRenderer"/
 
/mx:Array
 /mx:columns
/mx:DataGrid

MyItemRenderer.mxml:

mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" 
xmlns="*"
 mx:Label text="{data.name}"
/mx:HBox


This 
does not work, the data.name does not exist and has to be: 
"data.data_field1.name".
As you 
can see that is not very "generic" if you have to set it for 30 columns 
;)

  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  WebdevotionSent: donderdag 20 april 2006 15:43To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom 
  itemrenderer in datagrid
  Have you tried a for loop through the data object ?What about 
  data["column"].label notation ?I'm at work now, can't test myself 
  ...
  On 4/20/06, B.Brey 
  [EMAIL PROTECTED] 
  wrote: 
  

That is just the thing, the 
DataGrid differs from a 
List.
The "data" object your 
receive in an itemrenderer for a DataGrid contains data of the whole 
row.
I just want the cell 
data.




-Original 
Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of 
WebdevotionSent: donderdag 20 april 2006 14:34 To: 
flexcoders@yahoogroups.comSubject: Re: 
[flexcoders] Custom itemrenderer in datagrid 
Does this clear things out for you ?I guess just use 
{data.property}.Check out this articlesnip:mx:itemRenderer 
mx:Component 
mx:Canvas  mx:CheckBox id="complete" width="20" x="10" y="4" selected= "{data.selected}"/ mx:Text id="taskname" text="{data.label}" 
/ /mx:Canvas /mx:Component/mx:itemRenderer
--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.

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 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] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion



Foundsomething for you at Livedocs :)It confirms my thought about using data.label, data.id, data.productImage, ...as the correct syntax to access these properties.Basically your data object contains the data for the whole row, 
which is a good thing, since you might want to combine data frommultiple columns into one cell using a renderer.
http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1109.html






--
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] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey





Well i 
need the data for the current cell. Is there any way to find out which column is 
the current column rendered?


  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  WebdevotionSent: donderdag 20 april 2006 16:03To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom 
  itemrenderer in datagrid
  Foundsomething for you at Livedocs :)It confirms my thought 
  about using data.label, data.id, 
  data.productImage, ...as the correct syntax to access these 
  properties.Basically your data object contains the data for the whole 
  row, which is a good thing, since you might want to combine data 
  frommultiple columns into one cell using a renderer.http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1109.html





--
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] Custom itemrenderer in datagrid

2006-04-20 Thread Kyle Quevillon










Try this:



?xml version=1.0?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml initialize=initApp()





mx:Script 


public function initApp():void {


var arr: Array = new Array();


arr.push({one:abc, two: ABC});


arr.push({one:def, two: DEF});


arr.push({one:ghi, two: GHI});


dg.dataProvider = arr;


}





public function onFocusIn(event:Event):void{


event.target.setStyle(borderStyle,none);


}





public function onFocusOut(event:Event):void{


event.target.setStyle(borderStyle,outset);


}





/mx:Script





mx:Component id=inlineEditor


mx:TextInput text=
focusIn=outerDocument.onFocusIn(event)
focusOut=outerDocument.onFocusOut(event)
borderStyle=none preinitialize=initTI();




 mx:Script


 ![CDATA[


 import
mx.controls.dataGridClasses.DataGridListData;


 import
flash.events.Event;


 


 public
function initTI():void { 



addEventListener(dataChange, handleDataChanged);


 }






 public
function handleDataChanged(event:Event):void
{ 



// Cast listData to DataGridListData. 



var myListData:DataGridListData = DataGridListData(listData);


text=data[myListData.dataField];



} 


 ]]


 /mx:Script




/mx:TextInput

 /mx:Component 




mx:DataGrid 


id=dg 


width=100% 


height=100%


editable=true 


tabEnabled=true 





mx:columns


mx:Array


mx:DataGridColumn dataField=one rendererIsEditor=true
itemRenderer={inlineEditor}/


mx:DataGridColumn dataField=two
rendererIsEditor=true itemRenderer={inlineEditor}/



/mx:Array


/mx:columns


/mx:DataGrid





mx:ControlBar horizontalAlign=right


mx:Button label=reset click=initApp()/


/mx:ControlBar




/mx:Application






 
  
  
   


 
  
  
   



   
  
  
  
 



   
  
  
  
 














From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of B.Brey
Sent: Thursday, April 20, 2006
10:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Custom
itemrenderer in datagrid







Well i need the data for the current cell.
Is there any way to find out which column is the current column rendered?











-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]On Behalf
Of Webdevotion
Sent: donderdag 20 april 2006
16:03
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom
itemrenderer in datagrid



Foundsomething for you at Livedocs :)
It confirms my thought about using data.label, data.id,
data.productImage, ...
as the correct syntax to access these properties.

Basically your data object contains the data for the whole row, 
which is a good thing, since you might want to combine data from
multiple columns into one cell using a renderer.

http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1109.html










--
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] Custom itemrenderer in datagrid

2006-04-20 Thread Dirk Eismann



Yes. If your item renderer implements the
mx.controls.listClasses.IDropInListItemRenderer interface you can get to
the column like this:

public function set listData(value:BaseListData):void
{
 // for a DataGrid the passed in data is of type 
 // mx.controls.dataGridClasses.DataGridListData
 var column:DataGridColumn =
DataGridColumn(DataGrid(value.owner).columns[DataGridListData(value).col
umnIndex]);
}

Dirk.




 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of B.Brey
 Sent: Thursday, April 20, 2006 4:45 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Custom itemrenderer in datagrid
 
 
 Well i need the data for the current cell. Is there any way to
find out which column is the current column rendered?
  






--
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] Flex code review with Adobe Consulting

2006-04-20 Thread tr.coffey



Recent posts have circulated in this forum regarding a Flex code review with Adobe 
Consulting. I was present at that review and feel that the Adobe attendees were unfairly 
represented. Forging new relationships can be difficult, even under the best 
circumstances, but particularly via a remote teleconference. John and Brian were very 
accommodating to review our project and were succinct and addressed each of our 
concerns. It was clear comments that may have been intended to be concise and direct 
were interpreted as disinterested and curt which was clearly not the case. 

That said, we want to continue to work with Adobe and Adobe Consulting and look 
forward to the value we can bring each other. 









--
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] update Datagrid but stay in edit mode (Flex 1.5)

2006-04-20 Thread Thomas Ott










Hi everyone



I have a Datagrid with editable cells. Pressing tab or enter key while
editing a Cell, calls the function updateTotal which calculates other
non-editable fields in the grid and updates the dataProvider. The problem is
now, that the non-editable values dont show up in the grid, although there
present in the dataProvider



dg.invalidate() never worked.

reassigning the dataprovider or using editField made the values show
up, but the cell lost focus



How can I update the cells with the celleditor staying active?





Thomas













--
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] items are stretched width listItemRenderer in TileList flex2

2006-04-20 Thread moyosaned



I'm using a listItemRenderer in a TileList. 
But for some reason the horizontal lines are stretch so the
lineThickness(! canvas and hrule) is bigger..


mx:itemRenderer
 mx:Component
 mx:Canvas width=100 height=90
 
 mx:Canvas id=image_canvas 
  backgroundColor=#FF 
  x=10 y=7.5 
  width=100 height=90 
  borderStyle=solid 
  mouseDown=selectImage(event) 
  buttonMode=true 
  horizontalScrollPolicy=off
  verticalScrollPolicy=off
  
 mx:Image x=1 y=1 
   source={'not important' } 
   maxHeight=72 maxWidth=96 completeEffect=Fade/
 mx:HRule y=74 width=100%/
 mx:Text id=taskname text={data.Title} x=2 width=100%
y=72 fontSize=11 textAlign=left selectable=false / 
/mx:Canvas
  
  /mx:Canvas
  /mx:Component
  /mx:itemRenderer









--
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] Flex 2: Inline ItemRenderer -- Getting current row of DataGrid

2006-04-20 Thread Mike Collins



I have the following for a DataGridColumn, which works just fine:

 mx:DataGridColumn dataField=label id=dg_products_label 
width=65 headerText=Product 
 
mx:itemRenderer
  mx:Component
 
  mx:Text text={data.label} 
color={outerDocument.checkProductUsage(this,data.selected)} /
   
 /mx:Component

 /mx:itemRenderer
   
 /mx:DataGridColumn 

The function it calls looks like this:
public function checkProductUsage(c:mx.controls.Text, 
sel:String):Number {
if (sel == 'true') {
//ta_debug.text = mx.utils.ObjectUtil.toString(d);
//example of what I want - dg_products.selectedIndices.push
(currentrow of datagrid);
 return 0xFF;
}else {
 return 0x00;
 }
}

This all works, the text color changes based on the data.selected 
value, but I really want to add the row index to the selectedindices 
of the DataGrid.

How do I get the currentrow of the DataGrid from in an itemrenderer 
like this? Am I missing another approach?

Thanks,
Mike









--
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] Flex2 beta2 binding issue.

2006-04-20 Thread sufibaba



Hi All,
Background info: Coldfusion and Flex.
I have a a TileList that is being populate by an Array of CategoryVO's. 
mx:TileList  xmlns:mx="http://www.adobe.com/2006/mxml"  dataProvider="{model.templateList}" width="100%" itemRenderer="Thumbnail" columnWidth="200" height="100%"  dragEnabled = "false" backgroundColor="#C0CCD2" creationComplete="InitEvent()" 
The Thumbnail ItemRenderer has problems with data binding .
-ThumbNail.mxml --
 mx:Label text="{ data.data.ID}. {data.name}" textAlign="left" fontWeight="bold"/ mx:Image  id="image" x="{image.width/2}" y="{image.height/2}" horizontalAlign="center"  source="http://company.test.net{data.data.URL as String}" click="thumbClicked()" scaleX=".7" scaleY=".7" rollOverEffect="zoomIn" rollOutEffect="zoomOut"/
 Error message from the Debugger -
warning: unconverted Bindable metadata in class 'com.mycompany.templateEditor.vo::CategoryVO'
 CategoryVO ---
package com.smartetailing.templateEditor.vo {import org.nevis.cairngorm.vo.ValueObject;[Bindable][RemoteClass(alias="com.smartetailing.templateEditor.model.CategoryVO")][Bindable]public dynamic class CategoryVO{public var name:String;public var data:Number;
public function CategoryVO() {name = "";data = "">
}}
}

Note: According to the Flex2 documentation, once the CategoryVO is made bindable, all of its properties are also bindable. However, this doesn't seem to be the case when the itemrenderer tries to use CategoryVO.
Is this a bug in the flex or am I missing something.
Any help on this is greatly appreciated.
Cheers,
Tim






--
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] Loading image in Tilelist using itemrenderer

2006-04-20 Thread imran_b_l




i m trying to load image in TileList using "itemrenderer" and "dataprovider" but there's some error which i m not able to sort.
i m pasting the code below.

//
?xml version="1.0" encoding="utf-8"?
mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" height="100%" width="100%" creationComplete="initCellEditor(event);"
mx:Script
![CDATA[
import flash.events.Event;
import mx.core.ClassFactory; 
import mx.controls.listClasses.*;
import mx.controls.Image;
[Bindable]
public var myArr:Array = [
{image:"assets/images/inetoo_bg.jpg"},
{image:"assets/images/inetoo_bg.jpg"}
];
public function initCellEditor(event:Event):void { 
thumbnail.itemRenderer= new ClassFactory(RendererState);
} 



]]
/mx:Script
mx:HBox label="Navigation"
mx:Button label="btn1"/
mx:Button label="btn2"/
mx:Button label="btn3"/
/mx:HBox
mx:HBox width="100%" id="mainHB"
mx:TileList id="thumbnail" dataProvider="{myArr}" columnCount="1" width="100%" itemRenderer="renderer/imagecomp"/
/mx:HBox

/mx:VBox
/
"imagecomp" is as below;
///
?xml version="1.0" encoding="utf-8"?
mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="top"
mx:Image id="image" width="60" height="60" source="{data.image}"/
/mx:VBox


The error i m getting is: initializer for 'itemRenderer': cannot parse value of type mx.core.IFactory from text 'renderer/imagecomp' 






--
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] Flex Remoting

2006-04-20 Thread murtuza_ab



Hi,

Need help in the Remoting Implementation I have tried example of 
below, with the method which does not take any param it works but 
what is the syntax for passing the argument to the remote method.

We are using this example as we are not using flex data service 
server side component. if any has related example with different way 
to achieve also help
 
var gatewayUrl : String = http://localhost:8080/demoApp/gateway;
   gateway_conn = new NetConnection();
   gateway_conn.objectEncoding = 
flash.net.ObjectEncoding.AMF0;
   gateway_conn.connect( gatewayUrl );
var userList:Array = new Array(12,13,15);
/*
what is the syntax for passing the 
userList Array to the remote method
com.tis.dao.SampleDAO.getPersons
   */


   gateway_conn.call
(com.tis.dao.SampleDAO.getPersons, new flash.net.Responder( 
onQueryResult, onQueryStatus ) );

 









--
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] Custom itemrenderer in datagrid

2006-04-20 Thread Thomas Ott










hi



I did it like this:



setValue (str:String, obj:Object):Void

{

 var col:DataGridColumn =
listOwner.getColumnAt(columnIndex);

 var itemProperty = obj[col.columnName];

 .

}



you got to define listOwner and columnIndex in the cellRenderer Class





Thomas









--
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] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga



Hi!

I have to mention first that I'm new in Flex.
I have started to develop a small application using Cairngorm, just to 
get more into it.
But I have faced a problem, my Command is never executed. It seams the 
Event I'm sending is lost somewhere.
So I made a small test (to see if I'm getting the whole dispatchEvent 
thing):
Below is my code. The onTestEvent() is never called.
What am I doing wrong?
Thanks

Andi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* 
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[
 
 [Bindable]
 public var status:String = ;
 
 public function onComplete():void {
 status += Add Event Listener...\n;
 Application.application.addEventListener(test, 
onTestEvent);
 }
 
 public function onTestEvent():void {
 Application.application.status += Test Event occured...\n;
 }
 
 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=dispatch event 
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/
 
/mx:Application






--
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] Flex2B2 :: Changing State :: Problem with parent child

2006-04-20 Thread Michael Schmalle



Hi,

Real quick is there a problem with changing a parent component state
and in the next call calling one if it's children's state changes?

I cannot get this to work, but in the mxml component the child component changes state fine.

IE

if (event.label == Match) {
 trace(Match);
 currentState = matchState;

modifierCheckGroup.currentState matchState;
 }

Peace, Mike-- What goes up, does come down.






--
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] flex newbie - dispatchEvent question

2006-04-20 Thread JesterXL



Out of curiosity, try changing:

Application.application.addEventListener(test, onTestEvent);

to:

this.addEventListener(test, onTestEvent);

- Original Message - 
From: Andrea Varga [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 20, 2006 10:52 AM
Subject: [flexcoders] flex newbie - dispatchEvent question


Hi!

I have to mention first that I'm new in Flex.
I have started to develop a small application using Cairngorm, just to
get more into it.
But I have faced a problem, my Command is never executed. It seams the
Event I'm sending is lost somewhere.
So I made a small test (to see if I'm getting the whole dispatchEvent
thing):
Below is my code. The onTestEvent() is never called.
What am I doing wrong?
Thanks

Andi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 Application.application.addEventListener(test,
onTestEvent);
 }

 public function onTestEvent():void {
 Application.application.status += Test Event occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=dispatch event
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/

/mx:Application


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



  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: Inline ItemRenderer -- Getting current row of DataGrid

2006-04-20 Thread Doug Lowder



I haven't tested this, but I suspect you could programmatically 
select the row through the selectedItems property. Add the row data 
(not the index) to the selectedItems array, and the selectedIndices 
property should be updated to reflect the addition.

Doug

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

 I have the following for a DataGridColumn, which works just fine:
 
 mx:DataGridColumn dataField=label id=dg_products_label 
 width=65 headerText=Product 
  
 mx:itemRenderer
   mx:Component
  
   mx:Text text={data.label} 
 color={outerDocument.checkProductUsage(this,data.selected)} /

  /mx:Component
 
  /mx:itemRenderer

  /mx:DataGridColumn 
 
 The function it calls looks like this:
 public function checkProductUsage(c:mx.controls.Text, 
 sel:String):Number {
 if (sel == 'true') {
 //ta_debug.text = mx.utils.ObjectUtil.toString(d);
 //example of what I want - dg_products.selectedIndices.push
 (currentrow of datagrid);
  return 0xFF;
 }else {
  return 0x00;
  }
 }
 
 This all works, the text color changes based on the data.selected 
 value, but I really want to add the row index to the 
selectedindices 
 of the DataGrid.
 
 How do I get the currentrow of the DataGrid from in an 
itemrenderer 
 like this? Am I missing another approach?
 
 Thanks,
 Mike












--
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] flex newbie - dispatchEvent question

2006-04-20 Thread Oscar . Cortes



Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.





|-+-
| | |
| | Andrea Varga |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006 10:52 AM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] flex newbie - dispatchEvent question |
 -|




Hi!

I have to mention first that I'm new in Flex.
I have started to develop a small application using Cairngorm, just to
get more into it.
But I have faced a problem, my Command is never executed. It seams the
Event I'm sending is lost somewhere.
So I made a small test (to see if I'm getting the whole dispatchEvent
thing):
Below is my code. The onTestEvent() is never called.
What am I doing wrong?
Thanks

Andi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 Application.application.addEventListener(test,
onTestEvent);
 }

 public function onTestEvent():void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=dispatch event
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/

/mx:Application


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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








--
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] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga



It didn't work with this.addEventListener either.

Andi

JesterXL wrote:

Out of curiosity, try changing:

Application.application.addEventListener(test, onTestEvent);

to:

this.addEventListener(test, onTestEvent);

- Original Message - 
From: Andrea Varga [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 20, 2006 10:52 AM
Subject: [flexcoders] flex newbie - dispatchEvent question


Hi!

I have to mention first that I'm new in Flex.
I have started to develop a small application using Cairngorm, just to
get more into it.
But I have faced a problem, my Command is never executed. It seams the
Event I'm sending is lost somewhere.
So I made a small test (to see if I'm getting the whole dispatchEvent
thing):
Below is my code. The onTestEvent() is never called.
What am I doing wrong?
Thanks

Andi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 Application.application.addEventListener(test,
onTestEvent);
 }

 public function onTestEvent():void {
 Application.application.status += Test Event occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=dispatch event
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/

/mx:Application

 







--
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] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga



Yes, this has solved it
Thanks

[EMAIL PROTECTED] wrote:

Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.


 








--
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] Flex Remoting

2006-04-20 Thread Peter Farland



It depends on what the method signature for SampleDAO.getPersons looks
like. Where did you find this sample?

Note that the AS signature for NetConnection.call() is:

 public function call(command:String, responder:Responder, ...
arguments):void

So the ... syntax in AS means the rest of the arguments which is an
Array.

So, if the getPersons signature was something like this:

 public Person[] getPersons(List ids);

then the call would look like this:

 gateway_conn.call(com.tis.dao.SampleDAO.getPersons, responder,
userList);


Or, if the getPersons signature was like this:

 public Person[] getPersons(id1, id2, id3);

then the call would look like this:

 gateway_conn.call(com.tis.dao.SampleDAO.getPersons, responder,
12, 13, 15);


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of murtuza_ab
Sent: Thursday, April 20, 2006 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Remoting

Hi,

Need help in the Remoting Implementation I have tried example of below,
with the method which does not take any param it works but what is the
syntax for passing the argument to the remote method.

We are using this example as we are not using flex data service server
side component. if any has related example with different way to achieve
also help
 
var gatewayUrl : String = http://localhost:8080/demoApp/gateway;
   gateway_conn = new NetConnection();
   gateway_conn.objectEncoding =
flash.net.ObjectEncoding.AMF0;
   gateway_conn.connect( gatewayUrl );
var userList:Array = new Array(12,13,15);
/*
what is the syntax for passing the
userList Array to the remote method
com.tis.dao.SampleDAO.getPersons
   */


   gateway_conn.call
(com.tis.dao.SampleDAO.getPersons, new flash.net.Responder(
onQueryResult, onQueryStatus ) );

 





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



  











[flexcoders] Flex2B2 Problem with XML insertChildBefore

2006-04-20 Thread greenfishinwater



I am experimenting with using XML as the data provider for a tree. I
want to be able to inset new nodes at run time. I have successfully
used appendChild and insertChildAfter, but cannot get
insertChildBefore to work. In my example app I think I maybe setting
up the position where to insert incorrectly. Does anybody else have
experience of using these insert methods.

Also I would like to know how to insert a new node underneath an
existing node, rather than at the same level.

This is my app which is coded for Flex 2 beta 2

Thank you

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute
 mx:Script
 ![CDATA[
 import mx.collections.XMLListCollection;
 import flash.events.*;
 import mx.events.*;
 import mx.controls.*;

 [Bindable]
 public var productData:XML = food
 category name=Fish
 product name=Salmon/
 /category
 category name=Vegetable
 product name=Carrot/
 /category
 /food;

 public var extraData:XML = category name=Fruit
 product name=Orange/
 /category;

 public var newFish:XML = product name=Chilean Sea Bass/;

 public function appendToEnd() : void
 {
 productData = productData.appendChild(extraData);
 myTree.dataProvider = productData;
 }
 public function insertAfterFish() : void
 {
 var x:Object = productData.category[0];
 var y:Object = extraData;

 productData = productData.insertChildAfter(x, y);
 myTree.dataProvider = productData;
 }

 public function insertBeforeSalmon() : void
 {
 var x:Object = productData.category[0].product[0];
 var y:Object = newFish;

 productData = productData.insertChildBefore(x, y);
 myTree.dataProvider = productData;
 }
 ]]
 /mx:Script

 mx:Tree id=myTree width=300 height=200 labelField=@name
 showRoot=false dataProvider={productData} /
 mx:Button label=Append to End click=appendToEnd() y=210/
 mx:Button label=Insert after Fish click=insertAfterFish()
y=235/
 mx:Button label=Insert before Salmon
click=insertBeforeSalmon() y=260/

/mx:Application









--
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] Flex2 ButtonBar; Can its buttons be individually enabled or disabled?

2006-04-20 Thread wlbagent



I know this can be done using individual buttons but can the
individual buttons in a ButtonBar component (not the whole ButtonBar)
be enabled or disabled?

For example. You have a ButtonBar with 4 buttons labeled
A,B,C,and D. You want button A to always be enabled but the
remaining buttons would be enabled or disabled based on some other
condition. You might have a DataGrid and want B,C,and D enabled
if a row is selected, otherwise they are disabled.

This should be a fairly easy thing to do if its actually possible. I
can reference the individual buttons but there doesn't seem to be an
enabled property for them. What have I missed??

Any ideas???









--
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] Background color of DataGrid row and column

2006-04-20 Thread Brendan Meutzner



Which brings up something I noticed the other day... when setting the backgroundColor for a DatagridColumn for compile time within the MXML tag, it was causing a runtime error when the application loaded... like the style was being set before the DatagridColumn existed... a bug? Style is set fine if you do it at runtime by programmatically setting the style.
BrendanOn 4/20/06, Karl Johnson [EMAIL PROTECTED] wrote:
Are you trying to set the background color for a specific row or forever row at once? Are you seeing alternating row colors instead of the
color you want? If that is the case, they you probably want to set thethe alternatingRowColors style (takes two RRGGBB colors).
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.html#stylesIf you want to set a row's bg color based on certain criteria, the way Iwould do it is call dg.setPropertiesAt(rowId,{backgroundColor:0xC2D4DF})
|Karl JohnsonCynergy Systems, Inc.http://www.cynergysystems.com-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Mustaq PradhanSent: Thursday, April 20, 2006 6:31 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Background color of DataGrid row and columnHow to set background color of a DG row. By setting backgroundColorproperty I get nothing displayed, but the mxml compiled ok.
Is there any way to set background color of a DG row?--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 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.comYahoo! 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 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] Flex2 ButtonBar; Can its buttons be individually enabled or disabled?

2006-04-20 Thread Michael Schmalle



Hi,

Did you cast the returned button instance to Button?

var child:Button = getChildAt(buttonIndex) as Button;

Peace, MikeOn 4/20/06, wlbagent [EMAIL PROTECTED] wrote:



I know this can be done using individual buttons but can the
individual buttons in a ButtonBar component (not the whole ButtonBar)
be enabled or disabled?

For example. You have a ButtonBar with 4 buttons labeled
A,B,C,and D. You want button A to always be enabled but the
remaining buttons would be enabled or disabled based on some other
condition. You might have a DataGrid and want B,C,and D enabled
if a row is selected, otherwise they are disabled.

This should be a fairly easy thing to do if its actually possible. I
can reference the individual buttons but there doesn't seem to be an
enabled property for them. What have I missed??

Any ideas???









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




  









-- What goes up, does come down.






--
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] Flex framework: ARP, Cairngorm... Which to use?

2006-04-20 Thread Dominick Accattato



I've used as2patters and then moved to cairngorm for Flex. I think you will just find it very clean and simple to use. If your looking for advice on which side to choose, just try out the cairngorm flex2 sample login and I think that you will see how simple the framework makes Flex. In other words, I would use cairngorm forward on.


On 4/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote:

http://www.google.com/search?hl=enhs=L7Fsafe=offclient=firefox-arls=org.mozilla:en-US:officialsa=Xoi=spellresnum=0ct=resultcd=1q=cairngormspell=1Maybe, you need to know how to play the pipes before you can correctly
say it, eh?HeeheeDKOn 4/20/06, judah [EMAIL PROTECTED] wrote:What I want to know is how do you say it? Is there history behind the name?
JudahSteven Webster wrote:Oh man, I write a 6 page article series and still people go on and on and on about ViewLocators :) We innovated the ModelLocator pattern in
 Cairngorm, and have done our best to communicate the practices around using the ModelLocator, over ViewLocator (a relic from our Flash RIA days). Cairngorm and ARP are both implementations of the same design patterns;
 so the approach in terms of breaking down your application's technical architecture over a microarchitecture will be very similar. You'll start thinking in terms of all the same concepts, you'll approach your
 application development the same way. The frameworks are more similar than different, imho. We took a very strategic decision with Cairngorm, only to support the Flex framework; the framework started life in the Flash world, but we
 believed that Flex would become the defacto technology for building RIAs of any complexity that merits a microarchitecture, and so have made conscious decision not to support back to Flash or any other Flash
 platform technologies. In that way, we can focus on leveraging the Flex framework without concering ourselves deeply with how this translates to the non-Flex world. We do have developers using Cairngorm on Flash
 projects - but that's not the expected use-case. There's a 6-page article series on Cairngorm on Macromedia Devnet, starting here: 
http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1.html We'll continue to make these articles available to you through devnet, and through blogs, to enable you to be successful in building more
 complex RIAs upon this architecture, and to guide you in how we think the architecture fits with new features of the Flex framework, be that States, Internationalisation, Flex Data Services, etc.
 If you follow that article series, you'll be ready in a few hours to start building RIAs today, with Flex 2 and ActionScript 3.0, on Cairngorm. As we start to move through the final betas, and into
 release of Flex 2.0, a number of us within Adobe Consulting are absolutely committed and ready to ship the community updated versions of Cairngorm as required - we're using it on a significant number of our
 own Flex 2.0 projects here, and are a step ahead of the public beta programs that you have access to. There's a huge number of people on the flexcoders list successfully using Cairngorm; so once you have more specific questions, I'm sure
 we'll be able to help you in your application development. Good luck ! Best, Steven -- Steven Webster Practice Director (Rich Internet Applications)
 Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6108 m: +44 (0) 7917 428 947 [EMAIL PROTECTED]
On 4/19/06, JesterXL [EMAIL PROTECTED] wrote:If you are coming with Flash, stick with ARP. If you want to learn
 something new, try Cairngorm as it has a VeiwLocator. Most Flex developers utilize Cairngorn, but both know what a Command,Delegate,ServiceLocator, and ModelLocator is so the lingo is very similiar
 since they have a lot in common. - Original Message - From: arieltools [EMAIL PROTECTED] To: 
flexcoders@yahoogroups.com Sent: Wednesday, April 19, 2006 9:11 AM Subject: [flexcoders] Flex framework: ARP, Cairngorm...Which to use?Arp? Cairngorm? ...?
 A little of you light on this matter would be appreciated. I've been using ARP for a while with Flash projects. I've read that migrating would be as easy as change the ArpForms to MXML
forms. So itsound very promising. By the other hand, I've heard Cairngorm is more wide-spread between programmers. The thing is I think I have to decide now wich to use, as I will be
 programming a new RIA on Flex and would like to ensure it's quality from the begginning :) Thanks! -- Flexcoders Mailing List FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 

[flexcoders] Flex 2 and OS X

2006-04-20 Thread Michael Klishin



Hi guys,

I just wonder is there a way to run Flex 2 under OS X at the moment? I 
was asked and have no idea 'cause I'm still an unhappy Windows user by 
some reason :)

Thanks!

-- 
Michael Antares Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi






--
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] flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Andrea Varga



Well, this worked, but in the Cairngorm framework this was correct and 
the problem is somewhere else.
Below is my new little test.
This time the button that does the dispatchEvent is not in the 
application, but inside another component

The Main.mxml code is almost the same as before, just the Login 
component is new.
The button with Login1 has the same code as the Login2 button inside the 
Login component (both dispatch a test event).
But the Application catches just the Login1 event.
What am I mmissing this time?

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 
Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1 click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/
 Login x=333 y=56 /
/mx:Application

The Login.mxml code:
?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 mx:Script
 ![CDATA[ 
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );
 Application.application.status += Dispatch login 
event...\n;
 }
 
 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
/mx:Canvas


[EMAIL PROTECTED] wrote:

Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.


 








--
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 newbie - dispatchEvent question - Part 2

2006-04-20 Thread Doug Lowder



Hmm, the code you posted for Login.mxml dispatches a login event, 
not test, so that's one thing to be aware of. You'll need to add 
the listener to the Login object, which you can do by giving the 
Login component an id (Login id=loginComponentId ...) and then 
calling something similar to:

loginComponentId.addEventListener(login, onLoginEvent).

Doug

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

 Well, this worked, but in the Cairngorm framework this was correct 
and 
 the problem is somewhere else.
 Below is my new little test.
 This time the button that does the dispatchEvent is not in the 
 application, but inside another component
 
 The Main.mxml code is almost the same as before, just the Login 
 component is new.
 The button with Login1 has the same code as the Login2 button 
inside the 
 Login component (both dispatch a test event).
 But the Application catches just the Login1 event.
 What am I mmissing this time?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[
 
 [Bindable]
 public var status:String = ;
 
 public function onComplete():void {
 status += Add Event Listener...\n;
 
 Application.application.addEventListener(test,onTestEvent);
 }
 
 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event 
occured...\n;
 }
 
 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script
 
 mx:Button x=66 y=56 label=Login1 
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 
text={status}/
 Login x=333 y=56 /
 /mx:Application
 
 The Login.mxml code:
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 mx:Script
 ![CDATA[ 
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );
 Application.application.status += Dispatch login 
 event...\n;
 }
 
 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
 /mx:Canvas
 
 
 [EMAIL PROTECTED] wrote:
 
 Try changing
 
 
 public function onTestEvent()
 to
 public function onTestEvent(event:Event)
 
 
  You should add event:Event in your listener.
 
 
  
 











--
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] Re: flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Oscar . Cortes



Another alternative would be something like this.,...
1. Add Metadata tag in your component with the name of your event.
 mx:Metadata
 [Event(name=login, type=flash.events.Event)]
 /mx:Metadata
2. Catch that event in your component
 Login x=333 y=56 login=handleTestEvent(event)/
3. Add AS to handle the event.

 public function handleTestEvent(eventObj:Event):void {

 mx.controls.Alert.show(eventObj.currentTarget,'Test');

 }


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;

Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }

 public function handleTestEvent(eventObj:Event):void {

 mx.controls.Alert.show(eventObj.currentTarget,'Test');

 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1 click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/
 Login x=333 y=56 login=handleTestEvent(event)/
/mx:Application





?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
mx:Metadata
 [Event(name=login, type=flash.events.Event)]
/mx:Metadata
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );

 Application.application.status += Dispatch login
event...\n;
 }

 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
/mx:Canvas


|-+-
| | |
| | Doug Lowder |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006 05:22 PM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] Re: flex newbie - dispatchEvent question - Part 2 |
 -|




Hmm, the code you posted for Login.mxml dispatches a login event,
not test, so that's one thing to be aware of. You'll need to add
the listener to the Login object, which you can do by giving the
Login component an id (Login id=loginComponentId ...) and then
calling something similar to:

loginComponentId.addEventListener(login, onLoginEvent).

Doug

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

 Well, this worked, but in the Cairngorm framework this was correct
and
 the problem is somewhere else.
 Below is my new little test.
 This time the button that does the dispatchEvent is not in the
 application, but inside another component

 The Main.mxml code is almost the same as before, just the Login
 component is new.
 The button with Login1 has the same code as the Login2 button
inside the
 Login component (both dispatch a test event).
 But the Application catches just the Login1 event.
 What am I mmissing this time?

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;

 Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243
text={status}/
 Login x=333 y=56 /
 /mx:Application

 The Login.mxml code:
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 mx:Script
 ![CDATA[
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );
 Application.application.status += Dispatch login
 event...\n;
 }

 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
 /mx:Canvas


 [EMAIL PROTECTED] wrote:

 Try changing
 
 
 public function onTestEvent()
 to
 public function onTestEvent(event:Event)
 
 
  You should add event:Event in your listener.
 
 
 
 







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

RE: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Gordon Smith



If you are using a debugging version of the player, this would have
caused an runtime exception alert when onTestEvent() was passed an
argument that it wasn't expecting.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrea Varga
Sent: Thursday, April 20, 2006 11:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex newbie - dispatchEvent question

Yes, this has solved it
Thanks

[EMAIL PROTECTED] wrote:

Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.


 




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



  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] Problem with AMFGateway and Sessions - please help

2006-04-20 Thread Peter Farland



Did the request come through the gateway servlet? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitry Miller
Sent: Wednesday, April 19, 2006 8:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with AMFGateway and Sessions - please help

trying to retrieve session in my request handler class via

flashgateway.Gateway.getHttpRequest().getSession(true);

The problem is that flashgateway.Gateway.getHttpRequest() returns null

I am using Flex 1.5
Any suggestions?

Thanks






--
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] Background color of DataGrid row and column

2006-04-20 Thread Ashish Goyal



backgroundColor style is not supported for DataGrid. DataGrid has a
style called alternatingRowColors which accepts two colors in an array.
You can just specify same colors to get set the uniform background
color.

For eg, to make green background color, you can set
alternatingRowColors=[0x00FF00, 0x00FF00]

-Ashish


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mustaq Pradhan
Sent: Thursday, April 20, 2006 3:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Background color of DataGrid row and column

How to set background color of a DG row. By setting backgroundColor 
property I get nothing displayed, but the mxml compiled ok.

Is there any way to set background color of a DG row?






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



  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] Best way to set component height based on size of parent container?

2006-04-20 Thread flexabledev



I have two simple scenarios that I need help with.

1. I have a Canvas that scales with the Browser window. On that
Canvas, I have a panel with a top and bottom layout constraint,
but I need the width to be dynamically calculated based on the width
of the Canvas - X. 

2. I have a VBox on the same Canvas. The VBox has a fixed width but
scales scales vertically with the Canvas. Inside the VBox I have an
embeded Image. Ideally, I'd like the Image to be vertically cropped
(assuming it's taller than the current height of the VBox) to the
height of the VBox. Alternately (if it's easier) it could scale to
fill the VBox. Right now the VBox's height seems to be determined by
the Image, so if I shrink the Browser window to less than the height
of the Image I get Scroll Bars, which I don't want. 

ANY help would be greatly appreciated!









--
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: Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan



Hi Brendan,
Thanks for your reply. I have tried setting the style at runtime 
using: setStyle(backgroundColor, 0xFF);.

This is giving me a compiler error: CSS Value for '{cssValue}' not 
supported. 

Any idea, please.

Mustaq

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

 Which brings up something I noticed the other day... when setting 
the
 backgroundColor for a DatagridColumn for compile time within the 
MXML tag,
 it was causing a runtime error when the application loaded... like 
the style
 was being set before the DatagridColumn existed... a bug? Style 
is set fine
 if you do it at runtime by programmatically setting the style.
 
 Brendan
 
 
 
 On 4/20/06, Karl Johnson [EMAIL PROTECTED] wrote:
 
  Are you trying to set the background color for a specific row or 
for
  ever row at once? Are you seeing alternating row colors instead 
of the
  color you want? If that is the case, they you probably want to 
set the
  the alternatingRowColors style (takes two RRGGBB colors).
 
  
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.htm
l#s
  tyles
 
  If you want to set a row's bg color based on certain criteria, 
the way I
  would do it is call dg.setPropertiesAt(rowId,
  {backgroundColor:0xC2D4DF})
 
  |
 
  Karl Johnson
  Cynergy Systems, Inc.
  http://www.cynergysystems.com
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of Mustaq Pradhan
  Sent: Thursday, April 20, 2006 6:31 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Background color of DataGrid row and column
 
  How to set background color of a DG row. By setting 
backgroundColor
  property I get nothing displayed, but the mxml compiled ok.
 
  Is there any way to set background color of a DG row?
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 











--
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: Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan



Hi Karl,
Thanks for your reply. I couldn't find setPropertiesAt() defined for 
DataGrid or any of its parent object. I am using Flex 2 Beta 2 and 
new to Flex.

How I get rowId? If possible, please send me an example. Thank you 
very much for the help.

Mustaq Pradhan

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

 Are you trying to set the background color for a specific row or 
for
 ever row at once? Are you seeing alternating row colors instead of 
the
 color you want? If that is the case, they you probably want to set 
the
 the alternatingRowColors style (takes two RRGGBB colors).
 
 
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.htm
l#s
 tyles
 
 If you want to set a row's bg color based on certain criteria, the 
way I
 would do it is call dg.setPropertiesAt(rowId,
 {backgroundColor:0xC2D4DF})
 
 |
 
 Karl Johnson
 Cynergy Systems, Inc.
 http://www.cynergysystems.com
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Mustaq Pradhan
 Sent: Thursday, April 20, 2006 6:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Background color of DataGrid row and column
 
 How to set background color of a DG row. By setting backgroundColor
 property I get nothing displayed, but the mxml compiled ok.
 
 Is there any way to set background color of a DG row?
 
 
 
 
 
 
 --
 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.



  












[flexcoders] Using Hibernate, Gateway pushing out two Error: null

2006-04-20 Thread crrb



We're using Mysql 4.1 with Hibernate 3.1, Cairngorm, Flex 1.5, and 
Hibernate Synchronizer to auto generate Java classes and AS classes.

I'm new to Flex and Hibernate both. I've search as many sites as I 
could for both products in relation to this issue, no joy. 

We have an object called Deal which references many-to-one for 3 
other non-required Objects. During a fetch from the database 
initiated by the UI, passed through a named service to the auto-
generated Hibernate back end: if one specific Object exists, we have 
no issue. If either of the other two exist the fetch dies and the 
Flex page hangs. Doing as much black box debugging as I've been 
able to get based on setting flags for logging in both Hibernate and 
Flex, it appears to matter that the 2nd two Objects are lazy 
loaded by Hibernate. If I force one of them, and it's the only one 
that exists, the system doesn't hang. I can't force both of them (I 
think) to be loaded automatically. [not to mention optimizing later 
for real run-time environments]

In a non-debug environment, this is what I see:

INFO: cleaning up connection pool: jdbc:mysql://localhost/bb
Error: null
Error: null

I suspect that there is something that Hibernate is passing the 
gateway that is giving it heartburn. I did find a reference out on 
the Hibernate forum (waiting to get access to post) from 2004 that 
Hibernate (perhaps) replaces IdentityMap with something that exposes 
their LazyLoader class. (which then might be serialized by the 
gateway?)

We've pretty well figured out that the Java classes on the Service 
side and the AS classes on the Flex side have to match property for 
property. (hence the auto generate)

Can anybody confirm having seen something like this?

Can anybody point me towards a way to work around this?

The tracedump for the Error: null 's is as follows:

java.lang.UnsupportedOperationException
 at org.hibernate.util.IdentityMap.keySet
(IdentityMap.java:163)
 at flashgateway.io.DataOutput.writeMapAsECMAArray
(DataOutput.java:516)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:161)
 at flashgateway.io.DataOutput.writeASObject
(DataOutput.java:387)
 at flashgateway.io.JavaBeanSerializer.writeObject
(JavaBeanSerializer.jav
a:96)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:174)
 at flashgateway.io.DataOutput.writeASObject
(DataOutput.java:387)
 at flashgateway.io.JavaBeanSerializer.writeObject
(JavaBeanSerializer.jav
a:96)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:174)
 at flashgateway.io.DataOutput.writeASObject
(DataOutput.java:387)
 at flashgateway.io.JavaBeanSerializer.writeObject
(JavaBeanSerializer.jav
a:96)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:174)
 at flashgateway.io.DataOutput.writeObjectArray
(DataOutput.java:659)
 at flashgateway.io.DataOutput.writeObjectArray
(DataOutput.java:681)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:107)
 at flashgateway.io.DataOutput.writeASObject
(DataOutput.java:387)
 at flashgateway.io.JavaBeanSerializer.writeObject
(JavaBeanSerializer.jav
a:96)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:174)
 at flashgateway.io.DataOutput.writeASObject
(DataOutput.java:387)
 at flashgateway.io.JavaBeanSerializer.writeObject
(JavaBeanSerializer.jav
a:96)
 at flashgateway.io.DataOutput.writeObject
(DataOutput.java:174)
 at flashgateway.io.MessageSerializer.writeBody
(MessageSerializer.java:15
7)
 at flashgateway.io.MessageSerializer.writeMessage
(MessageSerializer.java
:113)
 at flashgateway.filter.SerializationFilter.invoke
(SerializationFilter.ja
va:119)
 at flashgateway.Gateway.invoke(Gateway.java:217)
 at flashgateway.controller.GatewayServlet.service
(GatewayServlet.java:69
)
 at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext
(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke
(JRunRequestDispatcher.java:
259)
 at jrun.servlet.ServletEngineService.dispatch
(ServletEngineService.java:
541)
 at jrun.servlet.http.WebService.invokeRunnable
(WebService.java:172)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
(ThreadPool.j
ava:428)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Error: null
java.lang.NullPointerException
 at flashgateway.controller.GatewayServlet.service
(GatewayServlet.java:75
)
 at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext
(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke
(JRunRequestDispatcher.java:
259)
 at jrun.servlet.ServletEngineService.dispatch
(ServletEngineService.java:
541)
 at jrun.servlet.http.WebService.invokeRunnable
(WebService.java:172)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
(ThreadPool.j
ava:428)
 at 

Re: [flexcoders] Best way to set component height based on size of parent container?

2006-04-20 Thread Johannes Nel



just set the vScrollPolicy = off whilst setting the height to what you want.On 4/20/06, flexabledev [EMAIL PROTECTED]
 wrote:I have two simple scenarios that I need help with.1.I have a Canvas that scales with the Browser window.On that
Canvas, I have a panel with a top and bottom layout constraint,but I need the width to be dynamically calculated based on the widthof the Canvas - X.2. I have a VBox on the same Canvas. The VBox has a fixed width but
scales scales vertically with the Canvas.Inside the VBox I have anembeded Image.Ideally, I'd like the Image to be vertically cropped(assuming it's taller than the current height of the VBox) to theheight of the VBox.Alternately (if it's easier) it could scale to
fill the VBox.Right now the VBox's height seems to be determined bythe Image, so if I shrink the Browser window to less than the heightof the Image I get Scroll Bars, which I don't want.ANY help would be greatly appreciated!
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/-- j:pn 
http://www.lennel.org






--
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] Best way to set component height based on size of parent container?

2006-04-20 Thread Tobias Patton



To have the width of the panel be calculated in relation to the parent
container, you could do something like:


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Thursday, April 20, 2006 2:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to set component height based on size of
parent container?

I have two simple scenarios that I need help with.

1. I have a Canvas that scales with the Browser window. On that
Canvas, I have a panel with a top and bottom layout constraint,
but I need the width to be dynamically calculated based on the width
of the Canvas - X. 

2. I have a VBox on the same Canvas. The VBox has a fixed width but
scales scales vertically with the Canvas. Inside the VBox I have an
embeded Image. Ideally, I'd like the Image to be vertically cropped
(assuming it's taller than the current height of the VBox) to the
height of the VBox. Alternately (if it's easier) it could scale to
fill the VBox. Right now the VBox's height seems to be determined by
the Image, so if I shrink the Browser window to less than the height
of the Image I get Scroll Bars, which I don't want. 

ANY help would be greatly appreciated!





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



  











[flexcoders] Flex2b2: Top-level exception handler

2006-04-20 Thread Tobias Patton










Hello flexcoders;



Does anyone know of a way to intercept all uncaught errors
in a Flex application? The default behavior is for the Flash Player to display
a simple dialog with the error text (the debug player also shows a stack
trace.) Id like to change this behavior to display a dialog of my own.



Thanks.

Tobias

Kodak Graphic Communications Canada Company

Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.com 











--
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: Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-20 Thread sufibaba




Hi simeon,

I finally figured out a work around solution after quite a few
permutations on the databinding situation.

- thumbnail.mxml ( the itemrenderer) 

 [Bindable]
 public var category:CategoryVO;

 mx:Model id=catDat
 catData{data as CategoryVO}/catData
 /mx:Model

\
--

Basically, I have to setup a dataModel and cast the incoming data object
into the correct VO. I really think that this is a binding bug because
the Tilelist that is driving this thumbnail itemrenderer is an
ArrayCollection of CategoryVO's. Somehow, the bug is dropping the type.

--


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

 Good question,

 Where do you make them bindable... In the thumbnail.mxml or in the
 mxml where the TileList is?


 Tim



 --- In flexcoders@yahoogroups.com, Simeon Bateman simbateman@
 wrote:
 
  Glad that worked for you :)
 
  Well I will go with the full on silly question. Are you marking
those
  properties as bindable?
 
  simeon
 
 
  
    Error message from the Debugger -
  
   warning: unable to bind to property 'data' on class '
   com.mycompany.templateEditor.vo::CategoryVO'
   warning: unable to bind to property 'name' on class '
   com.mycompany.templateEditor.vo::CategoryVO'
   warning: unable to bind to property 'data' on class '
   com.mycompany.templateEditor.vo::CategoryVO'
  
  
   --
  
 












--
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: Problem with AMFGateway and Sessions - please help

2006-04-20 Thread Dmitry Miller



I assume so. The event handler class's methods are all static. This is
also unnamed service.

Thanks, 

--- Dmitry

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

 Did the request come through the gateway servlet? 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dmitry Miller
 Sent: Wednesday, April 19, 2006 8:18 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problem with AMFGateway and Sessions - please help
 
 trying to retrieve session in my request handler class via
 
 flashgateway.Gateway.getHttpRequest().getSession(true);
 
 The problem is that flashgateway.Gateway.getHttpRequest() returns null
 
 I am using Flex 1.5
 Any suggestions?
 
 Thanks
 
 
 
 
 
 
 --
 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



  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: Flex2b2: Top-level exception handler

2006-04-20 Thread Tim Hoff



I'm not sure how you would create a global listener for all 
dispatched events, since each event has a currentTarget property. 
But, in your onFault functions, you could use something like this:

public function onFault( event : FaultEvent ) : void
{
 Alert.show(Fault Error: \n +event.fault.description);
}

Best,
Tim HOff


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

 Hello flexcoders;
 
 
 
 Does anyone know of a way to intercept all uncaught errors in a 
Flex
 application? The default behavior is for the Flash Player to 
display a
 simple dialog with the error text (the debug player also shows a 
stack
 trace.) I'd like to change this behavior to display a dialog of my 
own.
 
 
 
 Thanks.
 
 Tobias
 
 Kodak Graphic Communications Canada Company
 
 Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 
5148 |
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] |
 http://www.creo.com http://www.creo.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.



  











[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child

2006-04-20 Thread Tim Hoff




Looks like you need an equal sign.

 modifierCheckGroup.currentState matchState;

should be:

 modifierCheckGroup.currentState = matchState;

- Tim


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

 Hi,

 Real quick is there a problem with changing a parent component state
and in
 the next call calling one if it's children's state changes?

 I cannot get this to work, but in the mxml component the child
component
 changes state fine.

 IE

 if (event.label == Match) {
 trace(Match);
 currentState = matchState;
 modifierCheckGroup.currentState matchState;
 }

 Peace, Mike

 --
 What goes up, does come down.













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