[flexcoders] Is Microphone.getMicrophone() broken in AS3 / FP9?

2007-06-15 Thread Dirk Eismann
Anyone here with experience when using Microphone.getMicrophone() in
Flex / AS3 when multiple Microphones are attached to the system?

In contrast to Camera.getCamera() (which always gives a reference to the
currently selected Camera as specified by th euser in the FP Settings
Panel) Microphone.getMicrophone() does *not* return the active
Microphone but always the first one. So although the user selected e.g.
Microphone #3 in the Settings Panel you never get notified and always
end up with the reference to the first Microphone.

A whacky workaround is to loop over all Microphones and query their
activityLevel and then select the Microphone which has a level > -1 but
this does not always work.

Is this a know issue?

Dirk.


RE: [flexcoders] > FLV file reader

2007-06-15 Thread Dirk Eismann
Something like this?

http://www.richapps.de/?p=48

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer
> Sent: Friday, June 15, 2007 6:33 AM
> To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
> Subject: [flexcoders] > FLV file reader
> 
> Hi
> 
> Anyone know some AS3 classes for reading FLV files?
> I would like to grab x frames of a FLV file without the need 
> of using video displays and such? I would expect its possible 
> via Apollo.
> 
> Before I start hacking around I am curious if anyone already 
> has such thing or not. No need to reinvent the wheel then.
> 
> Yours,
> Weyert de Boer
> 


RE: [flexcoders] > FLV file reader

2007-06-15 Thread Dirk Eismann
 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer
> Sent: Friday, June 15, 2007 6:33 AM
> To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
> Subject: [flexcoders] > FLV file reader
> 
> Hi
> 
> Anyone know some AS3 classes for reading FLV files?
> I would like to grab x frames of a FLV file without the need 
> of using video displays and such? I would expect its possible 
> via Apollo.
> 
> Before I start hacking around I am curious if anyone already 
> has such thing or not. No need to reinvent the wheel then.
> 
> Yours,
> Weyert de Boer
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] How to assign chart series itemRenderer in AS3?

2007-05-11 Thread Dirk Eismann
Btw, why there is this inconsistency that in the Charts API itemRenderer
is a Style whereas in the rest of the Flex 2 framework it is a property?
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield
Sent: Thursday, May 10, 2007 8:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to assign chart series
itemRenderer in AS3?



 

 

This should work fine:

 

Import mx.charts.renderers.LineRenderer;

 

lineSeries.setStyle("itemRenderer",new
ClassFactory(LineRenderer));

 

Ely.





RE: [flexcoders] bindSetter on an ArrayCollection

2007-05-10 Thread Dirk Eismann
if you have a reference to the ArrayCollection you can do

  collection.addEventListener(CollectionEvent.COLLECTION_CHANGE,
collectionChange);

collectionChange will then get notified for different kinds of updates
happening on the collection instance (see mx.events.CollectionEventKind
for the available kinds)

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Feher
> Sent: Thursday, May 10, 2007 6:46 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] bindSetter on an ArrayCollection
> 
> Hi,
> 
> I ran into a situation where I need to be notified about 
> items being removed or added from/to a node that has 
> children:ArrayCollection in a hierarchical structure. I know 
> the deep binding works as I can see my model changes picked 
> by the Tree control.
> 
> [Bindable]
> private var myData :ArrayCollection = new ArrayCollection();
> 
> ...
> 
> // trace(ChangeWatcher.canWatch(myData.getItemAt(0).children.getItemAt
> (0), "children")) -> true
> 
> BindingUtils.bindSetter(dataUpdated, myData.getItemAt 
> (0).children.getItemAt(0), "children"); /* -> public var 
> children :ArrayCollection = new ArrayCollection();*/
> 
> ...
> 
> public function dataUpdated(value:ArrayCollection):void
> {
>   trace("--- updated ---");
> }
> 
> is being called only on assignments to children.
> 
> How do I bind on an ArrayCollection? I would like to catch 
> the items added & removed to the collection.
> 
> Regards,
> Sebastian
> 
> 
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] How to display Chart datatip at a specific data point ?

2007-05-04 Thread Dirk Eismann
Take a look at my reply to your original message - maybe this works for
you.
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet
Sent: Tuesday, May 01, 2007 10:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to display Chart datatip at a
specific data point ?


Thank your Ely for pinpointing your excellent site.
 
I expected to be able to extend the chartbase class so I can
reuse the functionnalities provided by the Datatip,DataTipFunction, 
 
Thx-Claude
 
 


Ely Greenfield <[EMAIL PROTECTED]> wrote:



Hi Claude. We've heard the request for programmatic
datatips before, and have it on the list for consideration.

In the meantime, it wouldn't be too hard to roll your
own using the data graphics API:


http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
 

Ely.


From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet
Sent: Tuesday, May 01, 2007 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to display Chart datatip at a
specific data point ?
Problem:
I would like to display chart datatip from a set of
datapoint
without doing a mouse over.

It seems that I have to overwrite the findDataPoints
method
from ChartBase and returns an array of HitData points.

I can not figure out how to create a HitData object
from a specific datapoint regardless of the position of
the mouse.

Maybe a new method such as showDataTip on chartBase
taking as parameter
an array of indexes defining the datapoint from the
dataprovider 
object could be helpfull.

Thx for any hints.

Claude Hussenet





Regards
Claude Hussenet 




Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
   



RE: [flexcoders] How to display Chart datatip at a specific data point ?

2007-05-03 Thread Dirk Eismann
Not quite straightforward, but it still works:

  // chart is the chart you want to display the datatip on
  // xValue and yValue are the item's values on the x and y axis

  var p:Point = chart.dataToLocal(xValue, yValue);
  var m:MouseEvent = new MouseEvent(MouseEvent.MOUSE_OVER, true, false,
p.x, p.y);
  chart.dispatchEvent(m); 

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet
> Sent: Tuesday, May 01, 2007 6:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to display Chart datatip at a 
> specific data point ?
> 
> Problem:
> I would like to display chart datatip from a set of datapoint 
> without doing a mouse over.
> 
> It seems that I have to overwrite the findDataPoints method 
> from ChartBase and returns an array of HitData points.
> 
> I can not figure out how to create a HitData object from a 
> specific datapoint regardless of the position of the mouse.
> 
> Maybe a new method such as showDataTip on chartBase taking as 
> parameter an array of indexes defining the datapoint from the 
> dataprovider object could be helpfull.
> 
> Thx for any hints.
> 
> Claude Hussenet
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] FF and Java sessions

2007-04-27 Thread Dirk Eismann
Hmm... we use the same technique here and it works (it worked in IE anyway, 
this was needed for Firefox only).
 
Not sure if this is relevant but we use Tomcat 5.5.20
 
Dirk.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Thursday, April 26, 2007 11:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FF and Java sessions


As some of you may already know, when performing a file upload with 
Flex to a Java servlet, a new session is created not matching the existing 
session the user has with the server when their Flex app actually loads. 
 
I've read some posts and see that ppl are appending the JSESSIONID to 
the url to get the same session to be used by the server when an upload request 
is sent by a Flex app. By doing:
 
var req:URLRequest = new 
URLRequest("/billing/servlet/FileSvlt;JSESSIONID=" + jSessionId);
 
But this doesnt work for me any reason why? something I am doing 
wrong?
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 
AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

 



RE: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-23 Thread Dirk Eismann
If you're using mx.controls.SWFLoader or mx.controls.Image to grab the remote 
files you can try to set the trustContent property to true.
 
See: 
http://livedocs.adobe.com/flex/201/langref/mx/controls/SWFLoader.html#trustContent
 
Dirk.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Hilary Bridel
Sent: Monday, April 23, 2007 7:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sandbox errors in Flex when using 
BitmapData.draw();


In my case I dont have control of the remote domain, so I cant do 
nuffink about it!
Would just have been nice to do effects on a live streaming video ;-)
 
Hilary
 
--

 
On 4/23/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote: 

Hey Hilary, 

 
The guys at cynergy claimed they had a solution

http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors
 

 
But this is 101, i mean the only difference i can see with my 
implementation is that they're using mxml and binding for the loaderContext 
reference.

 
I'm also loading flv + images and swfs, so i guess the best 
solution is to deploy a 'previewer' component swf on the remote domain the the 
main application loads that contains the allowDomain() call.

 

 
B


On 23/04/2007, at 2:42 PM, Hilary Bridel wrote:



Hi Bjorn,
I don't think it will allow you to do this for a remote 
domain. 
See Docs for BitMapData:

"The source object and (in the case of a Sprite or 
MovieClip object) all of its child objects must come from the same domain as 
the caller, or must be in a SWF file that is accessible to the caller by having 
called the Security.allowDomain()method. If these conditions are not met, the 
draw() method does not draw anything" 

I tried to do the same with a remote .flv file but the 
player wouldn't let me :-( 

Hilary



On 4/23/07, Bjorn Schultheiss < [EMAIL PROTECTED] 
 > wrote: 


 
Hey,

I'm getting an annoying error when i try to do 
a bitmap draw of an image loaded via a remote domain.
**Error: A policy file is required, but the 
checkPolicyFile flag was not set when this media was loaded**

To confirm i have a breakpoint where i set the 
source of the image tag, and i can confirm checkPolicyFile is set to true ( i 
do so when i instantiate it ). 

This is a major pain for me.
Any help?



regards,

Bjorn



((This transmission is confidential 
and intended solely for the person or organization to whom it is addressed. It 
may contain privileged and confidential information. If you are not the 
intended recipient, you should not copy, distribute or take any action in 
reliance on it. If you believe you received this transmission in error, please 
notify the sender.- --)) 


 





-- 
Hilary

-- 

 







Regards, 

Bjorn Schultheiss 
Senior Developer 
QDC
Personalised Communication Power 

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T: �+61 3 9674 7400
F: �+61 3 9645 9160
W: � http://www.qdc.net.au   

((This transmission is confidential and intended 
solely for the person or organization to whom it is addressed. It may contain 
privileged and confidential information. If you are not the intended recipient, 
you should not copy, distribute or take any action in reliance on it. If you 
believe you received this transmission in error, please notify the 
sender.---)) 

 
 

RE: [flexcoders] Inline MXML event handlers - weak reference?

2007-04-16 Thread Dirk Eismann
Alex,
 
I think your explanation should find it's way into the product's
documentation. I often wondered if inline event handlers are good or bad
in terms of reference management when it comes to dynamically removing /
adding MXML based components.
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Sunday, April 15, 2007 11:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Inline MXML event handlers - weak
reference?


They are not weak, because they don't have to be.  When you say:
 

 
The MXML compiler wraps doSomething in a function like this in
the application:
 
public function __Button__click(event:Event):void
{
doSomething();
}
 
and the Flex framework code calls
 
button.addEventListener("click", __Button__click);
 
This puts a reference to the application's __Button__click
method in the button's event handler table.  There are no additional
pointers to the button from the application so it does not prevent
collection should you remove the button. 
 
I have a presentation on garbage collection and memory on my
blog
http://blogs.adobe.com/aharui/2007/03/garbage_collection_and_memory.html
You can use -keep-generated to view the generated code from
MXMLC.
 
-Alex



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of geoffreymina
Sent: Saturday, April 14, 2007 8:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Inline MXML event handlers - weak
reference?



Does anyone know if the event handlers you inject into MXML
components 
are weak references? There is no way to remove the event
handler, so I 
don't see how they couldn't be... but I am struggling with lots
of 
memory leak issues right now and this could be the source.

Thanks,
Geoff



 



RE: [flexcoders] FDS

2007-04-15 Thread Dirk Eismann
Yes - if that could be an optional mode that would be very useful IMHO.
 
Dirk. 

 It sounds like this is the kind of approach you are looking
for?   Does anyone else think that would be useful?

 

Jeff

 



RE: [flexcoders] FDS Messaging error

2007-04-10 Thread Dirk Eismann
Make sure to restart FDS after you modify any of the config files. Also,
if you're using Flex Builder 2 then it's always a good idea to do a
Project --> Clean after modifying the FDS config files.

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Robs
> Sent: Tuesday, April 10, 2007 3:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FDS Messaging error
> 
> Hi all,
>   I'm trying out a sample chat app using fds messaging. As 
> per the instructions, I made a new destination in the 
> messaging-config.xml as
> follows:
> 
> 
> 
> 
> false
> 
> 
> 
> 
> 
> 
> 
> Unfortunately, my application does not seem to get this 
> destination & is throwing the following error:
> 
> [Error: (mx.messaging.messages::ErrorMessage)#0
>   body = (null)
>   clientId = (null)
>   correlationId = "AC6C8425-5819-7952-C465-DBB44D54B08E"
>   destination = "MyTransientTopic"
>   extendedData = (null)
>   faultCode = "Server.Processing"
>   faultDetail = (null)
>   faultString = "No destination 'MyTransientTopic' exists in 
> service flex.messaging.services.MessageService"
>   headers = (Object)#1
>   messageId = "996330F1-2418-1987-0B1E-A4C224645BD9"
>   rootCause = (null)
>   timestamp = 1176212098404
>   timeToLive = 0]
> 
> 
>   Where am I going wrong? Please help !
> 
> Regards,
> Robi.
> 
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] Dynamically retrieving the input data of a UIComponent.

2007-04-10 Thread Dirk Eismann
Most (if not all) of the UI controls you mention implement the
mx.core.IDataRenderer interface, so you could just do
 
  var currentData:Object = IDataRenderer(uiControl).data;
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Tuesday, April 10, 2007 8:51 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Dynamically retrieving the input data
of a UIComponent.



If that's the total set, I'd just write the if statement.  If
you want extensibility, then I'd subclass each one and add a property
that tells you which property to pull and what its type is.  You could
even do that as an interface so other components can be added later.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of gotgoose09
Sent: Monday, April 09, 2007 5:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically retrieving the input data of a
UIComponent.

 

In one of my components I save a DateField, TextInput,
NumericStepper,
etc. as a UIComponent which is displayed on the screen. I need a
way
of retrieving the data that the user inputs into this
UIComponent, but
my component doesn't know whether it should retrieve the "text"
property (TextInput, TextArea), the "value" property
(NumericStepper),
or the "selectedDate" property (DateField). I could write a long
conditional statement to check for the existence of each input
and
then use the correct property, but I am looking for a more
efficient
solution.

Thanks in advance! :-)



 



RE: [flexcoders] Client IP Address

2007-03-22 Thread Dirk Eismann
sorry "you can get the ip address" I mean :)
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
Sent: Thursday, March 22, 2007 10:54 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Client IP Address


Are you using Flex Data Services? If so you can get the
ServletContext from with your RemoteObject like this:
 
  String ipAddress =
FlexContext.getHttpRequest().getRemoteAddr();
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bhuvan Gupta
Sent: Thursday, March 22, 2007 10:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Client IP Address


ya, this is not relevant as I am using RemoteObject
functionality. 
I guess I will have to switch to HTTPPost instead of
RemoteObject 
and create a servlet at the backend to process the
request. 
 
Thanks for the help. 

On Mar 22, 2007, at 2:51 PM, Adam Royle wrote:





If you want the machine's IP on their internal
network, such as 192.168.1.5, etc, I don't think you are able to get at
this.
 
Otherwise, these links might help you (some
examples show how to get REMOTE_ADDR in Java). Not sure if it's
relevant.
 

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-CGI-
Variables.html
<http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-CGI
-Variables.html> 

http://jguru.com/faq/printablefaq.jsp?topic=Servlets&page=1
<http://jguru.com/faq/printablefaq.jsp?topic=Servlets&page=1> 
 
Adam
 

- Original Message -
From: Bhuvan Gupta
<mailto:[EMAIL PROTECTED]> 
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
Sent: Thursday, March 22, 2007 6:56 PM
Subject: Re: [flexcoders] Client IP
Address


I didn't frame my query properly. It was
incomplete. My bad. 


Here's the scenario. 
- I am using Java backend (tomcat)
- I am using Remote Object
functionality. 

Now from flex I wish to send the client
IP when I invoke a method on the Remote Java Object. 
What is the best way (if at all there is
one) to send the client IP address ?

Thanks


On Mar 22, 2007, at 2:20 PM, Adam Royle
wrote:




The server can tell you what their IP
address is.
 
In PHP it would be something like this:

$_SERVER['REMOTE_ADDR'];
 
But remember that IP addresses can be
faked. And in the example above you might get their proxy's IP address,
and not the actual IP address of their computer/router.
 
Cheers,
Adam
 

- Original Message -
From: Bhuvan Gupta
<mailto:[EMAIL PROTECTED]> 
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
Sent: Thursday, March 22, 2007 6:31 PM
Subject: [flexcoders] Client IP Address


Hi All,

I want to send client's (browser's) IP
address to the backend.
As I understand, Flex doesn't provide
support to fetch the client IP 
Address.
What is the best and browser independent
way to send client IP to the 
backend ?

Thanks













 



RE: [flexcoders] Client IP Address

2007-03-22 Thread Dirk Eismann
Are you using Flex Data Services? If so you can get the ServletContext
from with your RemoteObject like this:
 
  String ipAddress = FlexContext.getHttpRequest().getRemoteAddr();
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bhuvan Gupta
Sent: Thursday, March 22, 2007 10:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Client IP Address


ya, this is not relevant as I am using RemoteObject
functionality. 
I guess I will have to switch to HTTPPost instead of
RemoteObject 
and create a servlet at the backend to process the request. 
 
Thanks for the help. 

On Mar 22, 2007, at 2:51 PM, Adam Royle wrote:





If you want the machine's IP on their internal network,
such as 192.168.1.5, etc, I don't think you are able to get at this.
 
Otherwise, these links might help you (some examples
show how to get REMOTE_ADDR in Java). Not sure if it's relevant.
 

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-CGI-
Variables.html
 

http://jguru.com/faq/printablefaq.jsp?topic=Servlets&page=1
 
 
Adam
 

- Original Message -
From: Bhuvan Gupta  
To: flexcoders@yahoogroups.com
 
Sent: Thursday, March 22, 2007 6:56 PM
Subject: Re: [flexcoders] Client IP Address


I didn't frame my query properly. It was
incomplete. My bad. 


Here's the scenario. 
- I am using Java backend (tomcat)
- I am using Remote Object functionality. 

Now from flex I wish to send the client IP when
I invoke a method on the Remote Java Object. 
What is the best way (if at all there is one) to
send the client IP address ?

Thanks


On Mar 22, 2007, at 2:20 PM, Adam Royle wrote:




The server can tell you what their IP
address is.
 
In PHP it would be something like this:

$_SERVER['REMOTE_ADDR'];
 
But remember that IP addresses can be
faked. And in the example above you might get their proxy's IP address,
and not the actual IP address of their computer/router.
 
Cheers,
Adam
 

- Original Message -
From: Bhuvan Gupta
 
To: flexcoders@yahoogroups.com
 
Sent: Thursday, March 22, 2007 6:31 PM
Subject: [flexcoders] Client IP Address


Hi All,

I want to send client's (browser's) IP
address to the backend.
As I understand, Flex doesn't provide
support to fetch the client IP 
Address.
What is the best and browser independent
way to send client IP to the 
backend ?

Thanks











 



RE: [flexcoders] Re: Coldfusion Version for FDS Data Push feature

2007-02-14 Thread Dirk Eismann
Hi Jim,

> I want to do data synchronization, not 
> messaging, and I can do that with CF7.0.2 Standard Edition 
> and Flex Data Services Express via Data Management Services.

ok - then you should be fine. Aside from some advanced features like
using the DataServiceTransaction class to manually refresh fills
everything should work nicely using FDS and CF.

Dirk.


RE: [flexcoders] Continuations support? or smart sleep()?

2007-02-14 Thread Dirk Eismann
  callMethod(callArgs)

should be
 
  callMethod.apply(null, callArgs)
 
instead I believe. Otherwise it would just pass the rest Array to the
function and not the single parameters contained within the rest Array.
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle
Sent: Wednesday, February 14, 2007 4:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Continuations support? or smart
sleep()?


Hi,

yeah he timer class does it but;

function example {
trace("before");
sleep(2000);
trace("after 2 seconds");
}

Will not work. The Flash player exectues in order of the stack.
So, you can't have a sleep method inside a method block and halt the
method block.

Although something like this might be what you looking for. 

function example {
trace("before");
sleep(2000, exectueAfter, "something", 1);
}

function sleep(milli:Number, func:Function, ...rest):void
{
callMethod = func
callArgs = rest
... set up timer and handlers, run timer
}

function timer_timerEndHandler(event:TimerEvent):void
{
   callMethod(callArgs)
}

function exectueAfter(arg1, arg2)
{
trace("after 2 seconds");
}

This is about as close as you will get to a 'sleep' method.

Peace, Mike


On 2/14/07, Igor Costa <[EMAIL PROTECTED]> wrote: 

Conley

You could check out the Timer Class that can do this for
you exactly in the way you need it.




On 2/14/07, j.conley < [EMAIL PROTECTED]
 > wrote: 


I was wondering if there are any plans to
consider continuation
support in flash/flex? ...predominantly to
support the concept of a
smarter "Thread.sleep(n)" without blocking or
disrupting the
single-threaded execution model.

for context, here is a "sleep" pseudo-example
using the continuations
concept:

function example {
trace("before");
sleep(2000);
trace("after 2 seconds");
}

function sleep(sleep_millis:int) {
var savepoint:Continuation =
Continuations.new(); // creates a
holder that will capture the execution stack
state at the next suspend()
setTimeout(function(event:Event):void {
Continuations.resume(savepoint); // resumes the
saved execution stack
},sleep_millis);
Continuations.suspend(savepoint);
}

For my purposes, I am writing a general-purpose
tool for developers
that would locate one or more components in the
UI hierarchy (by some
criteria), then return those components so they
could interact with them.
In searching for said components, I have come
across embedded
SWFLoaders which are not yet finished
loading/reloading, and sleep()
(via continuations) would allow checking it's
state periodically and
not disrupt the execution stack, callers code or
block the overall
application.

There are several other cases where this would
be useful, but I just
wanted to start a dialog on it.








-- 

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta 








-- 
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com 

You can find more by solving the problem then by 'asking the
question'.  



RE: [flexcoders] Coldfusion Version for FDS Data Push feature

2007-02-14 Thread Dirk Eismann
This depends on what you mean by "data push": do you want to use the
automatic data synchronization feature that comes with the FDS Data
Managemnt services or do you want to send generic messages throug the
FDS Messaging services?

If you want to use Data Management you don't need CF Enterprise (it
works over RMI), if you want to do Messaging you'll need Event Gateways
on the CF side and therefore CF Enterprise.

Dirk.



> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jim Pickering
> Sent: Monday, February 12, 2007 6:19 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Coldfusion Version for FDS Data Push feature
> 
> Can someone verify for me if I can push data with FDS Express 
> and Coldfusion MX 7.0.2 Standard edition or do I need CFMX 
> 7.0.2 Enterprise edition to make that happen?
> 
> Thanks,
> 
> Jim
> 
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] FDS: Using DSDstClientId to send AsyncMessages to specific client

2007-02-08 Thread Dirk Eismann
Nevermind, the MessageService pushMessageToClients(Set subscriberIds,
Message message, boolean evalSelector) method does the job.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
> Sent: Thursday, February 08, 2007 9:17 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FDS: Using DSDstClientId to send 
> AsyncMessages to specific client
> 
> I try to send an AsyncMessage from a server side class to a 
> specific client. What I came up with so far is to use the 
> routeMessageToService() method of the MessageBroker class and 
> set the DESTINATION_CLIENT_ID_HEADER header of the 
> AsyncMessage to the clientId of the connected Consumer. 
> 
> This seems to work nicely: when two clients are connected and 
> the AsyncMessage gets send to only one client the client side 
> MessageEvent is firing on the correct client. However, 
> looking at the debug log files of FDS it seems as if FDS is 
> still broadcasting to all clients and not to this one single client.
> 
> Client A uses clientId BA4BF98AFABE9C4F371BD848028E5272 
> Client B uses clientId 74393AD2A49264914F8E67267BE0F38F
> 
> Although I set the DSDstClientId in the AsyncMessage's header to
> BA4BF98AFABE9C4F371BD848028E5272 the log file looks like this:
> 
> [Flex] 02/08/2007 09:07:06.237 [DEBUG] [Message.General] 
> Sending message to client: BA4BF98AFABE9C4F371BD848028E5272
>   message: Flex Message (flex.messaging.messages.AsyncMessage) 
> clientId = 9794A55D-AD09-8B04-508C-53D590C86FB4
> correlationId = null
> destination = j2flex.messaging
> messageId = 9794A55D-AD1B-3259-24AB-F846177AF243
> timestamp = 1170922026237
> timeToLive = 0
> body = [EMAIL PROTECTED]
> hdr(DSDstClientId) = BA4BF98AFABE9C4F371BD848028E5272
> 
> [Flex] 02/08/2007 09:07:06.237 [DEBUG] [Message.General] 
> Sending message to client: 74393AD2A49264914F8E67267BE0F38F
>   message: Flex Message (flex.messaging.messages.AsyncMessage) 
> clientId = 9794A55D-AD09-8B04-508C-53D590C86FB4
> correlationId = null
> destination = j2flex.messaging
> messageId = 9794A55D-AD1B-3259-24AB-F846177AF243
> timestamp = 1170922026237
> timeToLive = 0
> body = [EMAIL PROTECTED]
> hdr(DSDstClientId) = BA4BF98AFABE9C4F371BD848028E5272
> 
> 
> Seems as if the DSDstClientId is only evaluated on the client 
> side so this still is just a broadcast, right?
> 
> Dirk.
> 
> 
> --
> 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] FDS: Using DSDstClientId to send AsyncMessages to specific client

2007-02-08 Thread Dirk Eismann
I try to send an AsyncMessage from a server side class to a specific
client. What I came up with so far is to use the routeMessageToService()
method of the MessageBroker class and set the
DESTINATION_CLIENT_ID_HEADER header of the AsyncMessage to the clientId
of the connected Consumer. 

This seems to work nicely: when two clients are connected and the
AsyncMessage gets send to only one client the client side MessageEvent
is firing on the correct client. However, looking at the debug log files
of FDS it seems as if FDS is still broadcasting to all clients and not
to this one single client.

Client A uses clientId BA4BF98AFABE9C4F371BD848028E5272
Client B uses clientId 74393AD2A49264914F8E67267BE0F38F

Although I set the DSDstClientId in the AsyncMessage's header to
BA4BF98AFABE9C4F371BD848028E5272 the log file looks like this:

[Flex] 02/08/2007 09:07:06.237 [DEBUG] [Message.General] Sending message
to client: BA4BF98AFABE9C4F371BD848028E5272
  message: Flex Message (flex.messaging.messages.AsyncMessage) 
clientId = 9794A55D-AD09-8B04-508C-53D590C86FB4
correlationId = null
destination = j2flex.messaging
messageId = 9794A55D-AD1B-3259-24AB-F846177AF243
timestamp = 1170922026237
timeToLive = 0
body = [EMAIL PROTECTED]
hdr(DSDstClientId) = BA4BF98AFABE9C4F371BD848028E5272

[Flex] 02/08/2007 09:07:06.237 [DEBUG] [Message.General] Sending message
to client: 74393AD2A49264914F8E67267BE0F38F
  message: Flex Message (flex.messaging.messages.AsyncMessage) 
clientId = 9794A55D-AD09-8B04-508C-53D590C86FB4
correlationId = null
destination = j2flex.messaging
messageId = 9794A55D-AD1B-3259-24AB-F846177AF243
timestamp = 1170922026237
timeToLive = 0
body = [EMAIL PROTECTED]
hdr(DSDstClientId) = BA4BF98AFABE9C4F371BD848028E5272


Seems as if the DSDstClientId is only evaluated on the client side so
this still is just a broadcast, right?

Dirk.


[flexcoders] Test - pls ignore

2007-01-31 Thread Dirk Eismann
test


RE: [flexcoders] Re: Setting UIComponent.errorString creates a black border around the component

2007-01-24 Thread Dirk Eismann
FYI, I just succeeded in fixing this bug by modifying UIComponent code. 

To get it compiled into the SWF I added the Flex SDK 2/frameworks/source
folder to the build path. 

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
> Sent: Wednesday, January 24, 2007 11:06 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Setting UIComponent.errorString 
> creates a black border around the component
> 
> It still does not work as expected. I just debugged 
> UIComponent and it turns out that the bug is in the 
> setBorderColorForErrorString() method.
> The black border appeasr when the origBorderColor is NaN. So 
> the fix would be something like
> 
>   if (isNaN(origBorderColor))
> origBorderColor = getStyle("borderColor");
> 
> I just wanted to fix the code on my machine and then 
> recompile the framework.swc but noticed that there's no 
> build_framework.xml Ant script any more in Flex 2.0.1
> 
> Dirk.
> 
> 


RE: [flexcoders] Re: Setting UIComponent.errorString creates a black border around the component

2007-01-24 Thread Dirk Eismann
It still does not work as expected. I just debugged UIComponent and it
turns out that the bug is in the setBorderColorForErrorString() method.
The black border appeasr when the origBorderColor is NaN. So the fix
would be something like

  if (isNaN(origBorderColor))
origBorderColor = getStyle("borderColor");

I just wanted to fix the code on my machine and then recompile the
framework.swc but noticed that there's no build_framework.xml Ant script
any more in Flex 2.0.1

Dirk.


RE: [flexcoders] Re: Setting UIComponent.errorString creates a black border around the component

2007-01-23 Thread Dirk Eismann
Good catch! I experienced exactly the same problem - thanks for the
workaround!
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Harald Dehn
Sent: Tuesday, January 23, 2007 9:10 PM
To: flexcoders@yahoogroups.com
Subject: AW: [flexcoders] Re: Setting UIComponent.errorString
creates a black border around the component



Hi,

 

There is a caching problem of the borderColor in the UIComponent
class. I found the following workaround:

 

myClass.validateProperties();

myClass.errorString = "";

 

If you call validateProperties before clearing the errorString
property, everything works fine in my application.

 

Harald

 





Von: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] Im Auftrag von harbaugj
Gesendet: Montag, 22. Januar 2007 21:15
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Setting UIComponent.errorString
creates a black border around the component

 

I am having this same problem as well. Does anyone have the
resolution 
to this?

--- In flexcoders@yahoogroups.com
 , "brian_m_riley"
<[EMAIL PROTECTED]> 
wrote:
>
> I've been using the errorString property of UIComponent to
remove
> errors associated with TextInput fields, but it seems to put a
black
> border around the field instead of just removing the red error
border
> and error string. 
> 
> Thoughts?
> -riley
>



 



RE: [flexcoders] Globally Define Custom validation Messages

2007-01-19 Thread Dirk Eismann
All messages are externalized to .properties files and can be easily
localized. Check the Flex SDK install directory for the locale/en_US
folder. You'll have to create your localized / customized .properties
files and compile your application against the locale.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Juan Carlos M.
> Sent: Friday, January 19, 2007 9:17 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Globally Define Custom validation Messages
> 
> Hi. Is there a way to globally define custom validation 
> messages and properties instead of "per instance" definition?
> 
> (for example,  define globally "my custom message" as default value
> for   wrongYearError in All DateValidators of the 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
> 
> 
> 
> 


RE: [flexcoders] Re: Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Dirk Eismann
I think the two actions Derrick mentions - to use BindingUtils to remove {} 
bindings and to use weak reference listeners where possible - are the two key 
techniques to limit memory / GC issues. 

This is not only something to watch out for when loading/unloading Modules but 
also when components get dynamically added/removed inside a Flex application. 

Dirk.


-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com im Auftrag von Derrick Grigg
Gesendet: Di 16.01.2007 15:17
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Cairngorm support for Flex 2.0.1 modules?
 
My team is currently in the process of developing a large modular Flex
application that is based on Cairngorm and uses the mx:Modules.

We put the Cairngorm framework and all 'core' classes (ie Controller,
ModelLocator, ValueObject, centralized Commands) into a Flex Library.
Each module was setup as a separate Flex project along with a shell
project that was responsible for loading the modules and creating the
basic shell application. Each of the modules accessed the 'core'
classes as an RSL during development and then the option was set to
'external' for deployment to reduce file size and duplication. The
shell used the 'include' compiler option to compile the entire 'core'
library into the shell so that all classes where available for the
modules. Each module ran a method upon loading that would register any
module specific Commands with the FrontController and register for any
events, etc.

The one thing that was quite tricky was uncoupling binding from the
ModelLocator during module unloads. Using the {} method in the
property attribute of a control (ie ) does not allow you to uncouple
the binding at a later time, which prevents garbage collection.
Instead we had to use the BindingUtils and then call a method just
before unloading a module to remove the bindings, then the module
could be properly unloaded and garbage collected. Also we had to make
sure we used weak reference event listeners in order to ensure garbage
collection would properly occur on the unloaded modules.

Hope that information helps you out.

Derrick
-
Derrick Grigg
[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




<>

RE: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Dirk Eismann
Another use case would be to replace certain parts of the Cairngorm 
infrastructure (ServiceLocator instance, specific Delegate) depending on e.g. a 
dynamically loaded configuration file. This way e.g. Delegates could easily be 
replaced by just pointing to another Module.

Dirk.


-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com im Auftrag von Alistair McLeod
Gesendet: Di 16.01.2007 11:11
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] Cairngorm support for Flex 2.0.1 modules?
 
Hi Tom,

Before any additions are made to the Cairngorm framework, we always
ensure that they have been used in "real-life" projects first. I'm doing
some investigation into Cairngorm/Modules and will post results when I
get them, but don't expect any immediate changes to Cairngorm around
this. What will likely happen first is blog posts/DevNet articles
suggesting how we see things working, and then additions to the
framework once those ideas have been proven.

I'd be interested in hearing the thoughts and experiences on others on
this too.

Best,

Alistair

--
Alistair McLeod
Technical Practice Leader (Rich Internet Applications and LiveCycle)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
[EMAIL PROTECTED], http://weblogs.macromedia.com/amcleod
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Baggett
Sent: 15 January 2007 18:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

Hello all,

I'm evaluating the new module interface in the Flex 2.0.1 update and
have some questions in regards to Cairngorm-architected apps.

Does anyone have recommendations on how you would "slice up" a
Cairngorm-based Flex app into modules?

For example, the ModelLocator- and FrontController-derived classes would
need to allow values and commands to be dynamically added and removed as
modules are loaded and unloaded.  How should this be implemented so that
data binding to the model works as expected?

Is there any work being done on the framework to facilitate these types
of things?

Thanks for any thoughts,

Tom



--
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] FDS 2.0.1 API Java Docs?

2007-01-12 Thread Dirk Eismann
Have the JavaDocs for the server side FDS API been updated for 2.0.1? If
so, where can we download it from?

Dirk.


RE: [flexcoders] FlexBuilder 2.0.1 - Ctrl-Tab broken?

2007-01-09 Thread Dirk Eismann
Yes - I also noticed it. You'll have to add this shortcut by yourself.

In Eclipse / FB2, go to Window --> Preferences --> General --> Keys --> Modify

Scheme: Default
Category: Window
Name: Next View
Assignments:
  When: In Windows
  Key Sequence: Ctrl + Tab

Hope this helps,
Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers
> Sent: Tuesday, January 09, 2007 5:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FlexBuilder 2.0.1 - Ctrl-Tab broken?
> 
> Hi,
> 
> Is it just me, or is Ctrl-Tab broken in FlexBuilder 2.0.1? In 
> FlexBuilder 2, with the AS3 Editor in focus and multiple 
> source files loaded, i was able to switch tabs with Ctrl-Tab. 
> This stopped working after i upgraded to 2.0.1, and that's 
> kinda driving me nuts.
> 
> Cheers,
> Claus.
> 
> --
> claus wahlers
> côdeazur brasil
> http://codeazur.com.br/
> http://wahlers.com.br/claus/blog/
> 
> 


RE: [flexcoders] flex2ant

2007-01-09 Thread Dirk Eismann
You might want to use the eclipse.incrementalBuild Task that comes with
Eclipse. This allows to invoke the incremental Flex Builder compiler
from within Ant. This gives you the same compilation performance as
using "Build Automatically" plus adds all the nice stuff you can achieve
with Ant :-)
 
Check my blog post here:
http://www.richinternet.de/blog/index.cfm?entry=2B7613A8-C687-AF8E-B9855
2AF89BBE463
 
 
You'll only need to make sure that Ant runs in the same JRE as the
workspace.
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Sascha
Sent: Monday, January 08, 2007 6:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flex2ant



Actually I would like to use Ant in Eclipse running with Flex2
PlugIn to build my projects! For AS2 is always used AS2Ant with FDT and
MTASC and it was the best!

Unfortunately things look different for Flex Builder. Building
the project with an Ant task is slower than using Flex Builder and
'Build Automatically' is necessary for compile time error checking
(while MTASC did this automatically on-the-fly) but it would then also
always build when using the Ant task.

 

Does anyone know how to get this working:

Having an Ant build.xml that does some project preparing tasks
(i.e. increasing build number and store in an auto generated AppInfo
class) and then call the Flex builder build process from Ant. I'm not
Ant magican but is this possible?

 

Sascha

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Lance Linder
Sent: Monday, 08 January, 2007 03:37
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flex2ant

 

Very nice work!

 

I thought about doing something like this before and ended up
taking a bit of a different approach. What I did was create a task that
can read the flex project files and from these use mxmlc and compc to
build the projects. What I figured is that if Flex Builder is creating
the project files for me and can compile off of these that I would mimic
the same thing! If people are interested in using this approach I will
look at hosting it somewhere. This is however an NAnt task so I suspect
there will be less people interested in this.

 

Lance

 

From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of flex2ant
Sent: Friday, October 27, 2006 7:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex2ant

 

Hi list,

Now Flash player 9 (beta) for Linux has been released we can
finally
develop Flex 2 and AS3 apps on Linux. I've been putting in a lof
of
effort in the past week to create flex2ant.

With flex2ant you can develop Flex2/AS3 apps from within
Eclipse. All
you need is the Flex 2 SDK, Eclipse and flex2ant and off you go.

If you are interessed in this type of development then please go
over
to http://www.flex2ant.org   and
download the latest release.

regards,
Luke



 



RE: [flexcoders] strategy for Composite component as itemRenderer in DataGrid or List

2006-12-21 Thread Dirk Eismann
I've used 1) and 2) before and both works fine for me.

1) is a bit tricky some times as you have to take care when to access
listData because it is not necessarily there during the whole lifecycle
of your item renderer.

2) is neat, especially when you use parameterized ItemRenderers on those
columns because then your itemRenderer does not need to be hardwired to
a formatter function in the parent document scope (or whereever you
place it)

i.e.



YourItemRenderer then just needs a public var formatFunction:Function
and you're all set. CustomClassFactory itself is a subclass of
mx.core.ClassFactory - for more info on this technique see Antatole's
blog entry http://flexblog.faratasystems.com/?p=91

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Steve Hagenlock
> Sent: Thursday, December 21, 2006 2:22 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] strategy for Composite component as 
> itemRenderer in DataGrid or List
> 
> Hello,
> 
> I'm trying to create a strategy for creating a summary/detail 
> editing interface using either mx.List or mx.DataGrid (with 
> one column).
> 
> I've created a composite component, which uses two States, a 
> summary (with a text label and a checkbox) and a detail 
> (based on summary with some other controls).
> 
> That dataProvider I plan on using is an ArrayCollection which 
> is a collection of Object instances of various classes, where 
> each class implements a toString() function which returns an 
> XML formatted String (of the String class).  I point that 
> last bit out because the toString() function is getting 
> called and the results are being returned, rather than the 
> instance reference itself in some of the test cases I've done.
>  
> Incidentally, I can use this dataProvider model with a basic 
> DataGrid without issues.
> 
> I've chosen to attempt to do this with a DataGrid or List, as 
> opposed to a VBox with a repeater because of the efficiences 
> of the pattern the DataGrid/List are based on as well as 
> gaining the drag/drop features. 
> 
> I'm fine with doing the binding between the properties in the 
> objects in the ArrayCollection to the controls in the 
> composite component, I'm having difficulty gaining a 
> reference to the ArrayCollection objects as objects.
> 
> Briefly, I've explored:
> 1)
> implements="mx.controls.listClasses.IDropInListItemRenderer" 
> on the composite component coupled with 'get listData()' and 
> 'set listData()' 
> functions.
> 
> 2) Using a custom formatter function which returns a 
> reference to the object (applied in the datagrid column) or list.
> 
> And various tweaks on the above concepts...
> 
> If anyone has done this sort of thing, could you point me in 
> the right direction? It would be much appreciated.
> 
> -Steve
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] Cairngorm 2.1 - calling a webservive more than once

2006-12-20 Thread Dirk Eismann
Any change you're calling loadWSDL() more than once on your WebService
instance? This could be the reason.
 
Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer
Sent: Thursday, December 21, 2006 6:54 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cairngorm 2.1 - calling a webservive
more than once



I switched back to v 2.0 and all works fine now. I don't really
have the time to debug this. I'm quite happy with version 2.0 and don't
really see a reason to "upgrade" 

Thanks for your reply anyway!

 

Robin

 

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien
Sent: Thursday, 21 December 2006 4:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm 2.1 - calling a webservive
more than once

 

Add this to your Application mxml file.







2






If you can paste the soap going back and forth to the list it
would help to diagnose your problem.



You could also grab a program called ServiceCapture to grab the
soap messages.  


http://kevinlangdon.com/serviceCapture/
 

 

On 12/20/06, Robin Burrer < [EMAIL PROTECTED]
 > wrote:

Hi there,

 

This is driving me mad When I try to call a webservice more
than once the  webservice object returns an empty object. 

The "result" method still gets triggered but the returned data
object has no properties... Everything works fine for the first time
though.

The same service works fine in a Cairngorm 2.0 app. Any ideas? 

 

 

Regards

 

 

Robin

 

 

 

 

 

 



 



[flexcoders] Unused tags in found?

2006-12-15 Thread Dirk Eismann
I've created a simple Java class which implements
flex.messaging.FlexConfigurable. This works nicely and the initialize
methid gets invoked as expected.

However, if I place additional properties inside the remoting-config.xml
for this RemoteObject the instantiation fails and I end up with Flex
errors about "Unused tags in  found?". Is this not
supported?

eg. my destination looks like this


  

TestService
application


Hello!


  


and inside the initialize() method I want to query the ConfigMap passed
in for the /custom/test property.

Dirk.


RE: [flexcoders] Create package-level functions in AS3?

2006-12-12 Thread Dirk Eismann
Answering myself here:

yes - it does work, but there may be only one public visible function
definition inside the .as file and the .as file has to be the same as
the function name.

So given my example:

package foo
{
  public function bar():void
  {
  }
}

this file needs to be stored as bar.as in the /foo directory. It can
then be imported like this:

 import foo.bar;

My compiler was just a bit mixed up but now it works as expected.

Dirk.


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
> Sent: Tuesday, December 12, 2006 11:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Create package-level functions in AS3?
> 
> Is it possible to create custom package-level functions the 
> same way e.g. flash.utils.getDefinitionByName is implemented? 
> 
> The flash.utils package defines several functions that can be 
> imported directly - I'd like to implement some utility 
> functions by using the same approach but I end up getting 
> compiler errors when I try to create a package that contains 
> only functions but no class body, i.e. this does not work
> 
> package foo
> {
>   public function bar():void
>   {
>   }   
> }
> 
> I haven't checked the language specs on those constructs but 
> at least the built-in functions work the same way.
> 
> Dirk.
> 
> 
> --
> 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] Create package-level functions in AS3?

2006-12-12 Thread Dirk Eismann
Is it possible to create custom package-level functions the same way
e.g. flash.utils.getDefinitionByName is implemented? 

The flash.utils package defines several functions that can be imported
directly - I'd like to implement some utility functions by using the
same approach but I end up getting compiler errors when I try to create
a package that contains only functions but no class body, i.e. this does
not work

package foo
{
  public function bar():void
  {
  } 
}

I haven't checked the language specs on those constructs but at least
the built-in functions work the same way.

Dirk.


RE: [flexcoders] backgroundGradientColors on something other than Application

2006-12-08 Thread Dirk Eismann
Try this one:

http://www.richinternet.de/blog/index.cfm?entry=ADD4FDD1-9B48-BFBC-2A70F3C57EBC6892

Dirk.


-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com im Auftrag von Matt Maher
Gesendet: Fr 08.12.2006 17:07
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] backgroundGradientColors on something other than 
Application
 
I was wondering if there were other elements (canvas, hbox, panel, etc)
that can suport the backgroundGradientColors gradient properties?

I see that there seems to be no support by default, is this simple to
change?






--
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] Remote Objects: No support for inner class serialization?

2006-12-08 Thread Dirk Eismann
Seems as if public inner classes are not recognized by the Java-to-AMF
serializer in FDS, is this correct?

i.e. if a class RecordSet uses an inner class RecordSetVO which is used
as a data type for the value objects that are transported via AMF then
this type info is not set correctly.

Dirk.


RE: [flexcoders] Re: Best practice: string tables

2006-12-08 Thread Dirk Eismann
Not out of the box but you can quite easily build your own properties
file loader by e.g. builing it on top of URLLoader or URLStream.

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of zenwarden
> Sent: Friday, December 08, 2006 4:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Best practice: string tables
> 
> Is there a way to have these properties not load at compile 
> time, but rather be read at run time? One of the nicest 
> things about properties in java and other langauges is that 
> they allow you to change or modify behavior and values 
> without recompiling code.
> 
> Flash seems to ignore this concept both with properties and with css.
> 
> 
> Chris
> 
> 
> --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
> >
> > Flex already has the concept of resource bundles. You put your 
> > localizable strings in .properties files, which get compiled into 
> > ResourceBundle classes. You can then fetch strings out of the 
> > ResourceBundles, most easily in MXML with the @Resource() 
> directive. 
> > The docs have info about this..
> > 
> >  
> > 
> > - Gordon
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Giles Roadnight
> > Sent: Thursday, December 07, 2006 9:30 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Best practice: string tables
> > 
> >  
> > 
> > Hi All.
> > 
> >  
> > 
> > In my previous flash projects we've had a string table of 
> sorts set up 
> > so that all the strings in the application can be edited easily. We 
> > can also easily modify the strings for foreign users.
> > 
> >  
> > 
> > I have taken this idea and implemented it in Flex as follows.
> > 
> > In the main application I have this code:
> > 
> >  
> > 
> > [Bindable]
> > 
> > public var dialogueText:Object = {
> > 
> > loginBoxHeader:"Member Login",
> > 
> >  
> > 
> > to set up the string table (obviously other strings in 
> there as well).
> > 
> >  
> > 
> > In my login component I have the following:
> > 
> >  
> > 
> > [Bindable]
> > 
> > private var mainApplication:Object = 
> mx.core.Application.application;
> > 
> >  
> > 
> > and
> > 
> >  
> > 
> >  > text="{mainApplication.dialogueText.loginUsername}"/>
> > 
> >  
> > 
> > Is this the best way of doing this or will having all of 
> these bound 
> > variables around the place slow things down?
> > 
> > Is there a better way of doing this?
> > 
> >  
> > 
> > Many Thanks
> > 
> >  
> > 
> > Giles Roadnight
> >
> 
> 
> 
> 
> --
> 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
> 
> 
> 
> 


RE: [flexcoders] ColdFusion and Flex Integration - up to 10x gain, avoid cf object creation

2006-11-23 Thread Dirk Eismann
Yes, I also noticed this.
 
I made a test where a cfloop is done on 2000 records and had three
setups:
 
1) cfloop / createObject on a CFC "Bean" / add this CFC instance to an
Array
2) cfloop / createObject on a JavaBean (same as Erik mentions) / add
this bean to an Array
3) cloop / delegate object creation to a Java class (instatiated
upfront)  / Java class returns JavaBean / add bean to Array
 
1) is slooow (like 5000ms)
2) is fast! (like 50ms)
3) is fastest (like 30ms)
 
the difference between 2) and 3) is not significant. But the difference
between 1) and 2) is!
 
I think the main problem is that CFC instances are not really comparable
to JavaBeans / Valueobjects at runtime because every single method
(getter/setter) of a CFC gets compiled into a single class. So a
Person.cfc with 20 properties implemented as getters/setters gets
compiled into at least 40 classes (one for every getter and one for
every setter) plus some more stub code.
 
I think this is the main reason why creating CFC ValueObjects / Beans is
so expensive inside loops.
 
IMHO it should not be regarded best practice to use CFCs as VOs - this
may work for simple tasks but is definitely not good for more compley
setups (e.g. using CFCs to get typed objects in the Flex frontend)
 
Dirk.





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of EECOLOR
Sent: Wednesday, November 22, 2006 2:35 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ColdFusion and Flex Integration - up
to 10x gain, avoid cf object creation


Some time ago i experienced with java versions of the value
objects. This also gives a significant improvement.
 
 
Greetz Erik




RE: [flexcoders] .swf Caching on CFMX 7/Flex 1.5 Hybrid

2006-11-16 Thread Dirk Eismann
Seems as if the internal Flex 1.5 server that comes with CF to render
CFFORMS is the reason why this happens. Maybe this does help you:

http://www.richinternet.de/blog/index.cfm?entry=1FFECC8A-C384-9156-8F61C
35319911A23

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
> Sent: Wednesday, November 15, 2006 9:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] .swf Caching on CFMX 7/Flex 1.5 Hybrid
> 
> .swf files, regardless of Flash versio or how they were 
> created (Flex 1.5, Flex Builder 2, Flash 8) cache incessantly 
> requiring a CF re-start to show modifications.
> 
> We're running CFMX 7.01 with Flex 1.5 in production mode in a cluster.
> It would be nice to be able to hot-deploy modified .swfs and 
> have the changes show up without invasive procedures.  Anyone 
> have experience with this and have a relatively painless solution?
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> [EMAIL PROTECTED]
> (609) 520-5637 (p)
> (484) 477-9900 (c)
> 


RE: [flexcoders] Re: LinearGradient outside charts

2006-11-03 Thread Dirk Eismann
Hi,

I just uploaded a litte sample (source code included)

http://www.richinternet.de/blog/index.cfm?entry=ADD4FDD1-9B48-BFBC-2A70F
3C57EBC6892

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Cristian Pop
> Sent: Friday, November 03, 2006 12:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: LinearGradient outside charts
> 
> Brian,
> 
> I did not post the code for measure override, so that's not 
> the problem.
> I will try what Ely suggested and get back.
> 
> Cristian
> --- In flexcoders@yahoogroups.com, "Brian Deitte" <[EMAIL PROTECTED]> wrote:
> >
> > Hi Cristian, I had to override measuredWidth and 
> measuredHeight to get 
> > my gradient fill to display correctly.  It's interested to 
> me though 
> > that your first example works correctly, which seems to 
> indicate that 
> > there's something else going on here.  -Brian
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Cristian Pop
> > Sent: Thursday, November 02, 2006 1:40 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: LinearGradient outside charts
> > 
> > 
> > 
> > Thanks Ely,
> > 
> > I'm happy to learn from the masters :-) I'm absolutely in love with 
> > what you do at quietlyscheming.com.
> > 
> > I'm a beginner with extending components in AS and I admit that I 
> > don't yet fully understand the display hierarchy and the component 
> > live cycle.
> > I wanted to extend the canvas to allow gradient, using the 
> fillCollor 
> > and fillAlpha styles.
> > 
> > So I did something like this, based on an example from the docs. (I 
> > skip the style management code and give you onli the update method
> > )
> > 
> > package
> > {
> > [...]
> > // Define the variable to hold the current gradient fill colors.
> > private var fillColorsData:Array;
> > // Define the flag that indicates a change to fillColors.
> > private var bFillColorsChanged:Boolean = true;
> > 
> > // Define variables for additional controls on the fill.
> > // You can create style properties for these as well.
> > private var alphas:Array = [0.8, 0.2]; private var ratios:Array = 
> > [0x00, 0xFF];
> > 
> > 
> > // Constructor
> > public function MyCanvas() {
> > super();
> > }
> > [...]
> > override public function styleChanged(styleProp:String):void {
> > 
> > super.styleChanged(styleProp);
> > // Check to see if style changed. 
> > if (styleProp=="fillColors" || styleProp=="fillAlphas") { 
> > //bFillColorsChanged=true; invalidateDisplayList(); return; } } // 
> > Override updateDisplayList() to update the component // 
> based on the 
> > style setting.
> > override protected function
> > updateDisplayList(unscaledWidth:Number, 
> unscaledHeight:Number):void {
> > 
> > super.updateDisplayList(unscaledWidth, unscaledHeight);
> > 
> > // Check to see if style changed. 
> > 
> > if (bFillColorsChanged==true)
> > {
> > // Redraw gradient fill only if style changed.
> > fillColorsData = getStyle("fillColors"); alphas = 
> > getStyle("fillAlphas"); var m:Matrix = new Matrix(); 
> > m.createGradientBox( unscaledWidth, unscaledHeight, -1.57, 0, 0 ); 
> > graphics.clear(); graphics.beginGradientFill( GradientType.LINEAR, 
> > fillColorsData, alphas, ratios, m ); graphics.drawRoundRect( 0, 0, 
> > unscaledWidth, unscaledHeight,
> > Number(getStyle("cornerRadius"))
> > );
> > }
> > 
> > }
> > }
> > }
> > 
> > It works great, but I wanted to be able to specifi the 
> colors,alphas 
> > and ratios easier. Then I've found LinearGradient and 
> IFill, that were 
> > used in charts to easily pass those values.
> > 
> > I went a bit though the docs and the code and I tried this:
> > 
> > package
> > {
> > public class MyCanvas2 extends Canvas
> > {
> > [Bindable]
> > public var fill:IFill;
> > 
> > // Constructor
> > public function MyCanvas2() {
> > super();
> > }
> > 
> > 
> > // Override updateDisplayList() to update the component 
> > // based on the style setting.
> > override protected function
> > updateDisplayList(unscaledWidth:Number, 
> unscaledHeight:Number):void {
> > 
> > super.updateDisplayList(unscaledWidth, unscaledHeight); 
> > var rect: RoundedRectangle = 
> > new RoundedRectangle(
> > 0,
> > 0,
> > unscaledWidth, 
> > unscaledHeight,
> > Number(getStyle("cornerRadius"))
> > );
> > 
> > if (fill) {
> > graphics.clear(); 
> > fill.begin(graphics, rect);
> > fill.end(graphics);
> > graphics.drawRoundRect(
> > rect.left, 
> > rect.top, 
> > rect.width,
> > rect.height,
> > rect.cornerRadius);
> > 
> > }
> > }
> > }
> > }
> > 
> > But it's not working. Nothing is drawn. I guess I'm missing some
> > method that needs override.
> > 
> > Thanks,
> > 
> > Cristian Pop
> > 
> > --- In flexcoders@yahoogroups.com 
> 
> > , "Ely Greenfield"  wrote:
> > >
> > > 
> > > 
> > > Post away, Cristian. I wrote the gradient classes in the 
> charts, and
> > > can probably h

RE: [flexcoders] Re: LinearGradient outside charts

2006-11-03 Thread Dirk Eismann





Hi,
 
try extending mx.skins.halo.HaloBorder and do the 
gradient drawing the updateDisplayList method. Then, assign this class as the 
border-skin for your component. This way you can use this gradient on any 
component that supports border styles.
 
border-skin: 
ClassReference("foo.bar.YourGradientClass");
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Cristian 
  PopSent: Thursday, November 02, 2006 10:40 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: LinearGradient 
  outside charts
  
  
  Thanks Ely,I'm happy to learn from the masters :-) I'm absolutely 
  in love withwhat you do at quietlyscheming.com.I'm a beginner 
  with extending components in AS and I admit that Idon't yet fully 
  understand the display hierarchy and the componentlive cycle.I wanted 
  to extend the canvas to allow gradient, using the fillCollorand fillAlpha 
  styles.So I did something like this, based on an example from the 
  docs. (Iskip the style management code and give you onli the update 
  method)package{[...]// Define the variable to hold the 
  current gradient fill colors.private var fillColorsData:Array;// 
  Define the flag that indicates a change to fillColors.private var 
  bFillColorsChanged:Boolean = true;// Define variables for 
  additional controls on the fill.// You can create style properties for 
  these as well.private var alphas:Array = [0.8, 0.2];private var 
  ratios:Array = [0x00, 0xFF];// Constructor public function 
  MyCanvas() {super(); } [...]override public function 
  styleChanged(styleProp:String):void 
  {super.styleChanged(styleProp);// Check to see if style 
  changed. if (styleProp=="fillColors" || 
  styleProp=="fillAlphas") {//bFillColorsChanged=true; 
  invalidateDisplayList();return;}}// Override 
  updateDisplayList() to update the component // based on the style 
  setting.override protected 
  functionupdateDisplayList(unscaledWidth:Number, 
  unscaledHeight:Number):void 
  {super.updateDisplayList(unscaledWidth, 
  unscaledHeight); // Check to see if style changed. if 
  (bFillColorsChanged==true) {// Redraw gradient fill only if style 
  changed.fillColorsData = getStyle("fillColors");alphas = 
  getStyle("fillAlphas");var m:Matrix = new 
  Matrix();m.createGradientBox(unscaledWidth,unscaledHeight,-1.57,0,0);graphics.clear();graphics.beginGradientFill(GradientType.LINEAR,fillColorsData, 
  alphas,ratios,m); graphics.drawRoundRect(0, 
  0,unscaledWidth,unscaledHeight,Number(getStyle("cornerRadius"))); 
  It works great, but I wanted to be able to 
  specifi the colors,alphasand ratios easier. Then I've found LinearGradient 
  and IFill, that wereused in charts to easily pass those values.I 
  went a bit though the docs and the code and I tried this:package 
  {public class MyCanvas2 extends Canvas{[Bindable]public 
  var fill:IFill;// Constructor public function MyCanvas2() 
  {super(); } // Override updateDisplayList() to update 
  the component // based on the style setting.override protected 
  functionupdateDisplayList(unscaledWidth:Number, 
  unscaledHeight:Number):void 
  {super.updateDisplayList(unscaledWidth, 
  unscaledHeight); var rect: RoundedRectangle = new 
  RoundedRectangle(0,0,unscaledWidth, 
  unscaledHeight,Number(getStyle("cornerRadius")));if 
  (fill) {graphics.clear(); fill.begin(graphics, 
  rect);fill.end(graphics);graphics.drawRoundRect(rect.left, 
  rect.top, 
  rect.width,rect.height,rect.cornerRadius);But 
  it's not working. Nothing is drawn. I guess I'm missing somemethod that 
  needs override.Thanks,Cristian Pop--- In [EMAIL PROTECTED]ups.com, 
  "Ely Greenfield" <[EMAIL PROTECTED].> wrote:>> > 
  > Post away, Cristian. I wrote the gradient classes in the charts, 
  and> can probably help.> > Ely.> > > 
  > > From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On> Behalf Of Cristian Pop> Sent: Thursday, November 02, 2006 
  1:57 AM> To: [EMAIL PROTECTED]ups.com> 
  Subject: [flexcoders] LinearGradient outside charts> > > 
  > Hi,> > some time ago I've played a bit with creating 
  components in AS and> I've extended the canvas to allow gradient using 
  fillColors. > Back then I did not implement more than 2 colors.> 
  In the meantime I've noticed the LinearGradient class and I thought> 
  that I could use it to pass easier the parameters required by a> 
  gradient. angle, fill colors, alphas and ratios.> > So I've 
  triend to extend the Canvas adding a fill property (IFill) and> then in 
  updateDisplayList to use the begin method of the Linear> Gradient to 
  fill the graphics of the Canvas.> > I'm not sure what I'm doing 
  wrong but it's not working. If anyone> knows how LinearGradient works 
  and it can be used outside the scope> shown in the documentation please 
  let me know.> > I will try to post the code later.> 
  > Thanks,> > Cristian Pop> 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/

RE: [flexcoders] Accordion initialization problem

2006-10-31 Thread Dirk Eismann
> You probably need to look at creationPolicy specifically "all."

oh oh... infinite loop :)

Dirk. 


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] Amazon S3 and http SOAP faults / REST problems.

2006-10-31 Thread Dirk Eismann
IMHO, this is an issue with how the hosting browser passes the HTTP
header payload to the Flash Player - you'll either need a proxy or some
other server side stuff (a servlet or ISAPI filter would also work I
think)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jgi_xyzzy
> Sent: Monday, October 30, 2006 7:57 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Amazon S3 and http SOAP faults / REST problems.
> 
> I read the archives of this list, but I can't find a good 
> answer for this - sorry if it's a FAQ.
> 
> I'm trying to access the Amazon S3 webservice via SOAP from 
> Flex, but I believe the S3 WSDL complex types are too much 
> for Flex's built in soap support (I get the BadElement 
> problem).. so instead I'm rolling my own SOAP requests over 
> URLRequest (similar to the example at
> http://www.zeuslabs.us/archives/84/search-google-in-flex-2/)
> 
> All is good, except that I can't look at SOAP faults since 
> they come back as http status 500 and 
> URLRequest/loader/HTTPService don't provide the body of the 
> SOAP response.
> 
> I read some conflicting answers on this list that said it was 
> possible with 'modern browsers' but I can't see anything.
> 
> Can anyone suggest a way to do this *without* FDS as a proxy, 
> or changing the webservice.
> 
> Thanks,
> 
> JG
> 
> PS: I would have preferred to use the REST apis, but again 
> Flex RPC weaknesses stop this - HTTPService and URLRequest 
> only support GET and POST (unless you use FDS, which I am not 
> using because of the cost and throttling problems). If anyone 
> knows a way around that problem that would be even better.
> 
> 
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [Junk E-Mail - MED] Re: [flexcoders] Re: A DataGrid with selectable *cells*

2006-10-30 Thread Dirk Eismann
Him Tom,

as long as your item renderer implements the IDropInListItemRenderer
interface you can get the columnIndex and rowIndex from the listData
property. If an item renderer lives inside a DataGrid, listData is of
type mx.controls.dataGridClasses.DataGridListData - so everything should
be there already.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton
> Sent: Monday, October 30, 2006 11:39 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [Junk E-Mail - MED] Re: [flexcoders] Re: A 
> DataGrid with selectable *cells*
> 
> On Thursday 26 October 2006 19:49, Shannon Hicks wrote:
> > Yeah, this is a top candidate for a common custom component 
> we'll all 
> > need
> 
> Here is the low down so far: It has to subclass DataGrid 
> rather than be a cell renderer or be based on DataGridColumn 
> because neither of these know which row and col. they are in.
> 
> So far I've overriden drawSelectionIndicator() and 
> drawHightlightIndicator(), along with a private method to 
> figure out which one of listItems the mouse is over, and set a color.
> This gives 'cell under mouse highlight', but it doesn't stay 
> right when clicked (I think the the underlying row is being 
> messed with), so I'm digging into more of DataGrid's 
> selection mechanism as we speak which I hope doesn't mean 
> ending up overriding drawItem() from ListBase.
> 
> Ho hum :-)
> 
> --
> Tom Chiverton
> Helping to dynamically supply transparent convergence
> 


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] MXML ItemRenderer and dataTip

2006-10-26 Thread Dirk Eismann
Hi,
 
dataTips don't work when you use a custom item renderer. Your best bet would be 
to set the toolTip property on your item renderer class.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Sönke Rohde
Gesendet: Do 26.10.2006 20:41
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] MXML ItemRenderer and dataTip



Hi,

How do I enable the dataTip in a custom MXML ItemRenderer like e.g. this
one?


http://www.adobe.com/2006/mxml";
width="100%" height="100%"
backgroundColor="0xEE"
creationComplete="init();"
>
   



   



Thanks,
Sönke



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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

[flexcoders] Question concerning flex.messaging.FlexFactory

2006-10-26 Thread Dirk Eismann
Short question: 

when implementing the FlexFactory interface in a custom factory class,
how does the lookup() work at runtime? Most importantly: how often does
it gets called by FDS? Only once (depending on the scope setting) or for
every method invocation on e.g. the RemoteObject instance? I guess only
once but I'm not sure.

Thanks,
Dirk.


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] HTTPService url problem

2006-10-25 Thread Dirk Eismann
use & instead of & in the URL (you have to escape this character in
MXML)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jbbec_fr
> Sent: Wednesday, October 25, 2006 3:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] HTTPService url problem
> 
> Hi all,
> I am a newbie in flex and i apologize if my posts seem tobe 
> dummies one...
> I want to populate a datagrid and i use HTTPService to do it.
> The url parameter is like this :
> url="http://testdrive.local.net/cgi-bin/get_warnings_data.cgi?
> code=MA&pcode=TO"
> when i save the file i get an error :
> The reference to entity "pcode" must end with the ';' delimiter.
> 
> can anyone help me ?
> 
> thy
> 
> JB
> 
> 
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] ATTN: Adobe Re: Does FDS project have to compile on the server?

2006-10-24 Thread Dirk Eismann





I also 
encountered this in a project that uses RemoteObject. I always ended up getting 
error that /messagebroker/amf wasnot found. After looking at the runtime channel 
information I realized that the context root was not included in the endpoint 
URL (e.g. instead of http://foo.bar.com/flex/messagebroker/amf Flex 
tried to connect to http://foo.bar.com/messagebroker/amf)
 
I 
solved this by adding this by hand as a compiler flag, i.e.
 
  
-context-root=/flex
 
and 
then it worked fine.
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Peter 
  FarlandSent: Tuesday, October 24, 2006 5:17 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] ATTN: Adobe Re: 
  Does FDS project have to compile on the server?
  
  The error below indicates that RTMPChannel failed during 
  connect. Can you list the command line to mxmlc that you're 
  running, and more importantly the channel-definition for the RTMPChannel that 
  is referenced by the data management service destination? Also, what URL are 
  you using to load the SWF "locally"? Have you tried replacing tokens in the 
  channel-definition endpoint URL, such as {server.name}, with hard coded 
  values?
   
  Do you know how to monitor endpoint traffic by turning on 
  debug level logging on for the Endpoint.* categories and monitoring the 
  server logs?
   
  Pete
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Steven 
  TothSent: Monday, October 23, 2006 9:10 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] ATTN: Adobe Re: 
  Does FDS project have to compile on the server?
  
  
  Has anyone from Adobe weighed in on this? I'm able to duplicate the 
  problem. I have a two projects that use the Data Management Service 
  over RTMP. One is compiled locally and does not work (same error as 
  below). The other is compiled on the server with the same 
  paramters/configuration and works. Thanks.-Steven--- 
  In [EMAIL PROTECTED]ups.com, 
  "Allen Riddle" <[EMAIL PROTECTED]> wrote:>> Thanks for 
  your help. I do have the entry pointed to my services-config.xml file, and 
  application is even able to find my Data Service destination (in this 
  case, it's a Hibernate entity). But when I try to call the fill method, I 
  get:> > > > [RPC Fault faultString="Send 
  failed" faultCode="Client.Error.MessageSend" 
  faultDetail="Channel.Connect.Failed error null"]> 
  > at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()> 
  > at ::DataListRequestResponder/fault()> > at 
  mx.rpc::AsyncRequest/fault()> > at 
  mx.messaging::ChannelSet/::faultPendingSends()> > 
  at mx.messaging::ChannelSet/channelFaultHandler()> 
  > at 
  flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()> 
  > at 
  flash.events::EventDispatcher/dispatchEvent()> > 
  at 
  mx.messaging::Channel/mx.messaging:Channel::connectFailed()> 
  > at 
  mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed()> 
  > at 
  mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel::statusHandler()> 
  > > > I do not get this when I have it compiled on the 
  server at run time.> > > > 
  > > From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Dimitrios Gianninas> Sent: Thursday, October 19, 2006 8:38 
  PM> To: [EMAIL PROTECTED]ups.com> 
  Subject: RE: [flexcoders] Does FDS project have to compile on the 
  server?> > > > Below is the command we use to 
  pre-compile our Flex app that uses FDS. Just like Peter said you just need 
  to specify the services option and thats it. Hope my example 
  helps.> > > > > dir="${BUILD}" > 
  vmlauncher="false"> failonerror="true">> > />> > > 
  />> 
  > > > 
  > > Dimitrios Gianninas> > RIA Developer> 
  > Optimal Payments Inc.> > > > > 
  > > > 
  From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Allen Riddle> Sent: Thursday, October 19, 2006 6:09 
  PM> To: [EMAIL PROTECTED]ups.com> 
  Subject: RE: [flexcoders] Does FDS project have to compile on the 
  server?> > I do have that entry in there. Can't figure it 
  out.> > > 
  > From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Peter Farland> Sent: Thursday, October 19, 2006 4:53 
  PM> To: [EMAIL PROTECTED]ups.com> 
  Subject: RE: [flexcoders] Does FDS project have to compile on the 
  server?> > You can precompile any Flex 2 app, including FDS 
  apps. You need to point Flex Builder 2 (or the command line compiler if 
  using mxmlc directly) to the /WEB-INF/flex/services-config.xml 
  file at compile time. You can either do this using the  
  option under the  section of flex-config.xml or using 
  a command line argument 
  --services=c:/path/to/web/application/WEB-INF/flex/services-config.xml> 
  > 

RE: [flexcoders] Questions about RTMP ports and channel definitions

2006-10-24 Thread Dirk Eismann
Hi,

> And while we're at it, is there a range of port numbers that 
> I should be using for the RTMP assignments? The "flex" 
> template app is at 2038. The "samples" app is at 2037. How 
> high and low can I go? BTW, my TCP/IP Network Administration 
> book (which I obviously haven't fully absorbed
> :-) says that IANA keeps a list of assigned & registered 
> ports. When I go to the page 
> (http://www.iana.org/assignments/port-numbers) these two 
> ports are associated with other programs. Might it be a good 
> idea for Adobe to find a short range of numbers that isn't 
> already claimed, and claim them? Not that I really know 
> anything about this...  :-)

before Flex 2/FDS was released RTMP was typically bound to port 1935
tcp/udp (check this port number in the URL you posted, it's called
macromedia-fcs there but actually it is RTMP). So - if you want to
conform to the IANA list then you should use 1935 IMHO.

Dirk.


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] FlexBuilder Flintstone

2006-10-12 Thread Dirk Eismann





Hi 
Ralf,
 
last 
time I checked the only publicly available information/documentation was the 
Code Model / Design Model API for Flex Builder 2. It in the Help System of FB2 
(Help > Help Contents > Adobe Flex Builder 2 
Extensibility)
 
I 
agree that we need more documentation if Adobe wants the community to add 
features to FB2. If there's no public API and we're building extensions just by 
try/guess, those extensions may not work with future versions of FB2. When I 
created the TODO/FIXME plugin for FB2 I had absolutely no clue where to 
hook into the product and in the end (and by the help of some very smart people) 
it's all done by setting up rather weird construct listens for 
MXML/AS getting opened and then it parses the contents. All without using 
the Code Model - simply because I did not know there's any information abozut it 
at all!
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Ralf 
  BokelbergSent: Thursday, October 12, 2006 8:40 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] FlexBuilder 
  Flintstone
  To implement a plugin like Bjorn asked for, we would need 
  documentation and maybe source of the flexbuilder plugin. Is it available 
  somewhere? For example to mark occurences, we would need to be able to 
  walk the syntax tree of the current class. CheersRalf. 

  On 10/12/06, Matt 
  Chotin <[EMAIL PROTECTED]> 
  wrote:
  


Those are features 
we'd hope to add in the future.  Also folks are welcome to write 
extensions and plugins that might add that functionality J 
 




From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn 
SchultheissSent: 
Wednesday, October 11, 2006 5:52 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] FlexBuilder 
Flintstone

 




Hey 
guys,

 

Obviously many of you have 
known this before,

But our Java guys were just 
showing me the Refactoring, Mark Occurance and more features of 
Eclipse.

 

I 
must admit I felt slightly inferior and dissapointed when i 
went back to FlexBuilder and noticed that i cant make use of these 
features.

 

Whats the 
deal,

I'm starting to feel like 
Barney Rubble chizzeling away at my keyboard in the stoneage era (i hope you 
guys have a sense of humour).

 

If i reinstall and use Eclipse 
with FB plugin will i get these features?

 
Regards, Bjorn 
Schultheiss 

 -- Ralf Bokelberg <[EMAIL PROTECTED]>Flex 
  & Flash Consultant based in Cologne/Germany  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] [Flex2] Error adding child to a ViewStack

2006-10-10 Thread Dirk Eismann
Hi Thomas,

> this.customerViewStack.selectedChild += 1;

You try to add 1 to a complex object (selectedChild is a reference to a
child of the ViewStack, *not* an numeric value!). Try this: 

  this.customerViewStack.selectedIndex += 1;


> this.customerViewStack.selectedIndex =
this.customerViewStack.numChildren;

this also breaks. selectedIndex is zero-indexed, wheras numChildren is
not. Try:

  this.customerViewStack.selectedIndex =
this.customerViewStack.numChildren-1;

Dirk.


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





RE: [flexcoders] var in Loop

2006-10-09 Thread Dirk Eismann
No, this does not work. for var in loops only work on dynamically
attached properties (i.e. your class is dynamic or you loop over the
props of an untyped Object instance)

To introspect a typed class instance use describeType(), it returns an
e4x XML structure that describes the type (hmm, probably the reason why
they named it that way)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of flexlearner
> Sent: Monday, October 09, 2006 12:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] var in Loop
> 
> hello all,
> I have a action script class which is bindable and 
> instantiates objects of other class as : 
> 
> 
> --
> --
> 
> [Bindable]
> public class Templateobjects
> {
> 
> public var template1 = new sampleTemplate1();
> 
> public var template2 = new sampleTemplate2();
> 
> public function Templateobjects(){
> 
> // constructor function 
> }
> 
> }
> 
> 
> --
> --
> 
> 
> 
> 
> and in my mxml file i import this class as and trying to access this 
> variables in this class, as:
> 
> import Templateobjects;
> public var templatelistObject:Templateobjects = new Templateobjects();
> 
> for(var i:Objects in Templateobjects){
> trace(" found objects");
> }
> 
> 
> i am not getting the trace...
> please tell me how should i go about this.
> 
> Regards
> Flex Learner
> 
> 
> 
> 
> 
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





RE: [flexcoders] Gradient Fill from LEFT to RIGHT

2006-10-09 Thread Dirk Eismann
You would have to implement this on your own.

A starting point would be a custom AS class extending
mx.skins.halo.HaloBorder. Inside override the updateDisplayList() method
and draw the gradient yourself. The HaloBorder class provides helper
functions to draw horizontal gradients by calling drawRoundRect() and
passing in a horizontal gradient matrix.

Finally, set the border-skin style of the Box/Application to the custom
class, e.g.

  border-skin: ClassReference("foo.bar.Gradient");

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork 
> from dorktown
> Sent: Monday, October 09, 2006 5:06 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Gradient Fill from LEFT to RIGHT
> 
> I would like to apply a gradient fill from left to right on 
> the application or hbox component. Something assigned through 
> css styles or tag attributes. TIA
> 
> Judah
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




RE: [flexcoders] Relative paths in IDE compiler args

2006-10-09 Thread Dirk Eismann
yep, 

same works for -source-path (and probably all other compiler flags as
well)

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Paul Spitzer
> Sent: Monday, October 09, 2006 8:42 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Relative paths in IDE compiler args
> 
> Hey Daniel,
> 
> I've definitely had the same problem. I found that for the 
> -load-config flag I had to climb up a directory ../ to get to 
> my project root... so I had something like... 
> -load-config+="../build/project-config.xml". I'm not entirely 
> sure but I think it was relative to my main source directory 
> which was in an as3 directory. I still can't get the 
> -link-report flag to work with a relative path however.
> 
> 
> 
> Daniel Wabyick wrote:
> > How do relative paths work in the IDE compiler arguments? In 
> > particular, what is the directory running from?
> >
> > For example, I would like to include a namespace manifest XML file 
> > that is outside of my project path. I should be able to use 
> > "-namespace http://www.mynamespace.com/ 
> > ../myotherproject/namespace_manifest.xml",
> > but I have to use an absolute path to get it to work.
> >
> > Additionally, I can't seem to include linked folders in as 
> source paths. 
> > I need to use absolute paths for those as well.
> >
> > Anyone had success with this?
> >
> > Thanks,
> > -Daniel
> >
> >
> >
> >   
> 
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





RE: [flexcoders] Re: Managed Attribute for Actionscript class objects

2006-09-25 Thread Dirk Eismann
Hi,

[Managed] is only useful if you use the Data Management feature of the
Flex Data Services (FDS). If you just use RemoteObject to connect to
your Java side, then [RemoteClass] should be enough (maybe you may want
to add [Bindable] to the class body or some of the public properties).

[Managed] does some behind-the-scenes-magic, most importantly it takes
your AS class makes it implement the mx.data.Imanaged interface. This
ensures that all changes to the object are propagated to the Flex 2
framework. It also enforces that all instances of the class have a
unique UID identifier.

Rule of thumb: 

1) if you use the Data Management feature (with or without Cairngorm),
your VO classes should be decorated with [Managed] and [RemoteClass]
metadata. You can leave out [Bindable] as this is implicit for [Managed]

2) if you use RemoteObject (with or without Cairngorm) your VO classes
should be decorated with the [RemoteClass] metadata and may be
[Bindable] as well

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of laidezmon
> Sent: Monday, September 25, 2006 2:38 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Managed Attribute for Actionscript 
> class objects
> 
> Ok one last effort to get this on the top. Hopefully someone 
> can answer this question.
> 
> --- In flexcoders@yahoogroups.com, "laidezmon" <[EMAIL PROTECTED]> wrote:
> >
> > Hoping to keep this from getting dropped to the bottom. 
> > 
> > Does anyone have any idea about this?
> > 
> > --- In flexcoders@yahoogroups.com, "laidezmon"  wrote:
> > >
> > > Question for the group here. 
> > > 
> > > I am working on an enterprise app, and I have gone through every 
> > > piece of documentation and training I can get my hands on.
> > > 
> > > I noticed in all the help for Flex, the training/tutorials say to 
> > > use the [Managed] attribute on your bindable actionscript objects 
> > > that refer to java objects.
> > > 
> > > However I am going through the Cairngorm 2 store stuff, 
> and none of 
> > > thier actionscript objects have that attribute associated 
> with them, 
> > > even though they are actionscript objects that are 
> translated to and 
> > > from java objects.
> > > 
> > > So when are you supposed to use it, and when are you now? 
> Why is it 
> > > different in cairngorm? What does it really do?
> > >
> >
> 
> 
> 
> 
> 
> 
> 
> --
> 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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




RE: [flexcoders] Re: Architecting a large, modular Flex application

2006-09-25 Thread Dirk Eismann





76k? 
That seems quite large - mine is 9290 bytes only.
 
You 
may want to add the rpc.swc and utilities.swc to the external library path as 
the two SWCs add another bunch of dependencies to the resulting SWC 
file.
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios 
  GianninasSent: Sunday, September 24, 2006 8:00 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: 
  Architecting a large, modular Flex application
  
  The cairngorm2-config.xml is used by 
  the compiler to know which classes/MXML files to compile (which it finds under 
  the src folder).
   
  the -external-library-path option 
  will use those file during compile time but not include them in the resulting 
  SWC.
   
  my cairngorm.swc is 
  76k.
   
  Dimitrios Gianninas
  RIA 
  Developer
  Optimal 
  Payments Inc.
   
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Derrick 
  GriggSent: Thursday, September 21, 2006 11:45 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: Architecting a 
  large, modular Flex application
  
  
  Hey Dimitrios,I have tried using the 'compc' compiler that ships 
  with Flex2, but Iam still getting an SWC for cairngorm that's around 350k. 
  Using the'compc' compiler, the syntax is a little different from your 
  file'sbut I think it's all correct. I have noticed two 
  differences:1. you include '${SDK_LIB}/fds.swc' which I'm 
  assuming is Flex DataServices. I don't have that swc on my system, however 
  I do haverpc.swc, which my library will not compile without.2 you 
  use a config file 
  value="-load-config+=${basedir}/cairngorm2-config.xml"/> 
  which I alsocan not find anywhere in the Cairngorm package I downloaded 
  from Adobelabs. Is this a file you have created to exclude certain 
  classes?Derrick--- In [EMAIL PROTECTED]ups.com, 
  "Dimitrios Gianninas"[EMAIL PROTECTED]> 
  wrote:>> > Now that I am back in the office, here is the 
  full ant command weuse to compile cairngorm and exclude all unneccesary 
  libraries:> > > dir="${BUILD}" > vmlauncher="false"> 
  failonerror="true">> />> 
  > 
  value="-external-library-path+=${SDK_LIB}/playerglobal.swc,${SDK_LIB}/framework.swc,${SDK_LIB}/fds.swc"/>> 
  >  
  > > > Dimitrios Gianninas> RIA Developer> 
  Optimal Payments Inc.> > -Original Message-> 
  From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com]On 
  Behalf Of Dimitrios Gianninas> Sent: Tuesday, September 19, 2006 6:26 
  PM> To: [EMAIL PROTECTED]ups.com> 
  Subject: RE: [flexcoders] Architecting a large, modular Flex 
  application> > Hi,> > I think you have setup 
  things pretty much the same way I would.Although I have never gone that 
  far... yet :)> > One thing I did notice which you can change is 
  that you said theentire flex framework gets included in the cairngorm.swc 
  ... doesn'thave to be. I build the carngorm.swc using the command-line 
  compilerand made sure to exclude the framework.swc, this did reduce the 
  sizeand is basically what I think you want to do. Don't remember the 
  exactswitch, will have to get that to you tomorrow once I'm back in the 
  office.> > Regards,> > Dimitrios Gianninas> 
  Optimal Payments Inc.> > > -Original 
  Message-> From: [EMAIL PROTECTED]ups.com 
  on behalf of derrickgrigg> Sent: Tue 9/19/2006 11:23 AM> To: [EMAIL PROTECTED]ups.com> 
  Subject: [flexcoders] Architecting a large, modular Flex application> 
  > I just want to bounce this idea/concept off the larger 
  Flexcommunity to see if there are any holes or possibly better 
  solutions.> > I am currently working with a team of developers 
  on a large, modularFlex application based on the Cairngorm framework. One 
  issue that weare trying to get our heads around is creating the 
  application in amodular fashion (ie seperate SWFs for application 
  modules). Eachmodule will only get loaded as needed by the main shell 
  application inorder to keep the overall size and memory use as small as 
  possible. > > The big issue that we are running into is how to 
  setup and developthe module flex projects in Flex Builder. We need to give 
  the moduleprojects access to the models, value objects etc (especially 
  bindable> properties) that they need from the main application without 
  havingthe actual application implemented version of those classes 
  getcompiled into the module swfs and causing problems when they 
  getloaded into the main application. Our current thinking is that 
  inorder to allow the modules to have full access to the models, 
  valueobjects, etc that have been defined in the main application we 
  createAbstract versions of those classes and put them in a seperate 
  flexlibrary project which will get compiled as an SWC and get 
  includedinto the seperate modules as a runtime shared library (RSL), 
  basicallyan library of Abstract classes only (and maybe some Interfaces). 
  Themodule projects will also include 

[flexcoders] Calling fill() on the same collection multiple times

2006-09-01 Thread Dirk Eismann
Hi,

simple question - and hopefully a simple answer :)

Imagine I have an ArrayCollection searchResult which is used to display
results returned from a fill() method. This fill() method gets invoked
with different additional arguments (the search query, additional filter
settinsg etc.).

What happens to the items in the ArrayCollection if I call fill() a
second time and pass in an ArrayCollection that already is filled with
different items?

1) they'll be released and removed from the DataStore automatically.
2) they won't be released - so over time the DataStore fills up with
"old" search result items.

I suspect 2) happens, right? In this case it seems to be a best practice
to release all items in an ArrayCollection that is frequently filled
with different item sets, right?

Dirk.


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

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

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

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





RE: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Dirk Eismann
It works fine for me - if you receive stream errors then this may be a
security issue or an issue with the server not being able to handle the
result correctly.

Instead of sending a XML structure, have you tried POSTing simple String
values? Does this work for you? 


Dirk.




> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of mthielman11
> Sent: Thursday, August 31, 2006 2:06 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Anyone actually able to save data from flex
> 
> OK we tried this method as well.  We have now spent another 
> entire day on this! Does anyone have a simple example of 
> sending an XML file (or XML model) Via aHTTP service Post??  
> We have tried this many ways and honestly this has become 
> very, very frustrating for everyone involved.  If no one has 
> any ideas, how about some place where i might be able to find 
> an answer.  I tried the Adobe forums and no one ever seems ro 
> respond over there.  
> 
> Help :)
> 
> 
> --- In flexcoders@yahoogroups.com, "Mike Collins" 
> <[EMAIL PROTECTED]> wrote:
> >
> > HTTPService passes strings not objects so that is most likely the 
> > issue.  Either convert the DataModel to a xml string or do 
> something 
> > like this to pass in the variables as form variables.
> > 
> > If you want to pass objects you need to use RemoteObject calls.
> > 
> > public function submitURL() {
> > 
> > var variables:Object = new Object();
> > // Build request
> > variables.parent1firstname =
> > parent1firstname.text;
> > variables.parent1lastname = parent1lastname.text;
> >   
> >  // Submit   
> > submitData.request = variables;
> > submitData.send();
> > }
> >
> 
> 
> 
> 
> 
> 
> --
> 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

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

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

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





RE: [flexcoders] Embedding fonts at runtime

2006-08-30 Thread Dirk Eismann
Yes, this is possible:
 
[Embed(source="Arial.ttf", fontName="myArial", unicodeRange="U+0041-U+005A" )]
public var myClass:Class;
 
Dirk.
 



Von: flexcoders@yahoogroups.com im Auftrag von Daniel Wabyick
Gesendet: Mi 30.08.2006 18:58
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] Embedding fonts at runtime



Awesome! I'll definitely have to check this out.

On a related note, I wonder if its possible to embed fonts with a
specific unicode range via this syntax.  It doesn't appear to be.

[Embed(systemFont='Symbol', fontName='mySymbol',
mimeType='application/x-font')]
var myFont:Class;

I know you can use @font-face, which appears to automatically generate a
variable in the class, but its not a consistently named variable. I am
sure a utility function in the class could be used to ferret out that
variable name.


Daniel Freiman wrote:
>
> I altered the code a little and got it half working.  It works if
> you're setting the imported font using setStyle, but not if you're
> setting the font through the TextFormat object.  Simply add the lines:
>
> var content:DisplayObject = ldr.content;
> var c:Class = content["myFont"];
> Font.registerFont(c);
>
> to the begining of onloadercomplete.
>
> I'm going to continue working on how to get the font to show up
> through TextFormat.
>
>
> On 8/29/06, * Daniel Wabyick* <[EMAIL PROTECTED]
> > wrote:
>
> I just tried to dynamically load a font at runtime, and the
> results are
> not too promising.
>
> For other's benefits, here is what I did:
>
> - Created an AS3 project and generated a SWF (SymbolEmbed.swf)
> with the
> Symbol font embedded.
>
> - Verified the font is available in the SWF via Font.enumerateFonts();
>
> - Loaded SymbolEmbed.swf into a Flex app using the Loader class,
> following instructions to keep the SWF's on the same
> applicationDomain.
>
> - Checked if the font is available to the Flex app, it is not.
>
> Please let me know if anyone has any ideas,
>
> -Daniel
>
>
>
>
> Code: AS3 project with embedded font.
> ---
> public class SymbolInclude extends Sprite
> {
> public function SymbolInclude()
> {
> [Embed(systemFont='Symbol', fontName='mySymbol',
> mimeType='application/x-font')]
> var myFont:Class;
>
> trace("here in SymbolInclude");
> var fontList : Array = Font.enumerateFonts();
> for ( var i:String in fontList )
> {
> trace("font: " + Font( fontList[i] ).fontName);
> }
> }
> }
>
>
> Code: Loader code in Flex app.
> ---
>
> 
>  
>  
>
>
>
>
>
>
> Daniel Freiman wrote:
> >
> > I have this question too but it hasn't reached the top of my to-do
> > list yet.  What I'm hoping is that is that you can embed a font
> in a
> > swf and then load that swf at runtime using a swfloader.
> >
> > On 8/28/06, *Daniel Wabyick* < [EMAIL PROTECTED]
> 
> > mailto:[EMAIL 
> PROTECTED]> >>> wrote:
> >
> > Hey guys,
> >
> > Is there any way to include a font at runtime using Flex
> 2?  There
> > was a
> > weird hack that works in Flash 8 where you load a movie that
> loads an
> > RSL. Does anything like this work in Flex 2 ?
> >
> > Thanks,
> > -Daniel
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> >   
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> > <
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> > < http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> > Yahoo! Groups Links
> >
> > < http://groups.yahoo.com/group/flexcoders/
> >
> >
> >  >
> >
> > < 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%40

RE: [flexcoders] approach question: how to handle lookup table data?

2006-08-29 Thread Dirk Eismann
Hmm, I would probably go this route
 
- create a destination "level"
- the identity of this destination is levelID
- create an Assembler for this destination (e.g. LevelAssembler)
 
- create a destination "person"
- the identity of this destination is personID
- it has another property "level" which is a one-to-one relationship to 
destination "level"
- create an Assembler for this destination (e.g PersonAssembler)
 
So in the end, a Person instance holds a Level instance in the level property. 
 
To get a list of all Levels, you call fill() on the LevelAssembler. You can 
alos easily add/edit/delete Levels by using the LevelAssembler. When calling 
fill() on the PersonAssembler, the PersonDAO code is in charge of building the 
correct Person object and to build the right Level object on the Person 
instance.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von tddclare
Gesendet: Di 29.08.2006 21:16
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] approach question: how to handle lookup table data?



I'm working to architect an app using Flex Data Services.

As a simple example, let's consider the office management application.

I have a Person class, who has all the normal properties, one of which
is "Level" indicating the code for their level of seniority ("A" "1"
"2" ... "5" "P" -- for partner).

These designators have changed in the past, and may change / be added
to in the future.  And we'll definitely want to use them to drill down
for reports, metrics, etc.

>From my database background, I would have my People table have a field
called levelID, which points to the Levels table having the ID and
Name fields.  My reports would be something like "Select * from people
where levelID = 3", etc.

What about Flex and Data Services? 

I'll want to show that Person X has a level of "P" but also let them
edit that person and pick off from a list of levels (comboBox), so I
need a way to get that list (and add to it, in case somebody gets
promoted to "Y" (yoda))

Should I have my Person class contain an instance of the Level class
which has id and title properties?  THat sounds easy, but with the
number of parameters I'm dealing with, it sounds like a lot of effort.
 I'd also have to parse ALL the People to create my pick list of
Levels... 

Or should I have the server FILL a collection of People (with their
levelIDs) and another collection of Levels and use cursors, finds,
etc. to match up the data?

Or go totally uncoupled and just pass the level NAME to the client and
have the server back end deal with the ID matching?

I think my brain hurts.  Any thoughts?  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

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

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

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

RE: [flexcoders] FDMS: check, if an item exists on the client?

2006-08-28 Thread Dirk Eismann





FYI: 
if an ArrayCollection is managed by a DataService, then the list property of the 
ArrayCollection is of type mx.data.DataList. This DataList holds a 
localItems Array which seems to track the references to the items available in 
this list. As the items are [Managed] (implement mx.data.DataService) they all 
have an uid property which is a String representation of the ID I need. 

 
So it 
really seems as if it's enough to drill down to the localItems Array and look 
for the UID in question.
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
  EismannSent: Monday, August 28, 2006 8:31 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] FDMS: check, if 
  an item exists on the client?
  
  Hi 
  Jimmy,
   
  I 
  don't think there's a getItem() method on ArrayCollection. There's only 
  getItemAt() but that's useless as I don't have the index of the item. 
  
   
  Actually, all I know about the item is the unique ID (i.e. the PK from 
  the DB table) so what I need is something like
   
    myArrayCollection.getItemByUID(uid);
   
  where uid is an Object containing the unique ID, e.g. 
  
   
    var uid:Object = {organization_id: 123};
   
  Makes sense?
   
  So 
  far I have found no way to query a DataStore/Arraycollection/DataList/whatever 
  for an item by passing in the unique ID withouth going to FDMS if the item is 
  already living on the client.
   
  Dirk.
__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] FDMS: check, if an item exists on the client?

2006-08-27 Thread Dirk Eismann





Hi 
Jimmy,
 
I 
don't think there's a getItem() method on ArrayCollection. There's only 
getItemAt() but that's useless as I don't have the index of the item. 

 
Actually, all I know about the item is the unique ID (i.e. the PK from 
the DB table) so what I need is something like
 
  myArrayCollection.getItemByUID(uid);
 
where 
uid is an Object containing the unique ID, e.g. 
 
  
var uid:Object = {organization_id: 123};
 
Makes 
sense?
 
So far 
I have found no way to query a DataStore/Arraycollection/DataList/whatever for 
an item by passing in the unique ID withouth going to FDMS if the item is 
already living on the client.
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios 
  GianninasSent: Saturday, August 26, 2006 4:38 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] FDMS: check, if 
  an item exists on the client?
  
  I think what you are looking for 
  is:
   
  myArrayCollection.getItem( x 
  );
   
  Assuming myArrayCollection was 
  populated by the fill() method of a DataService.
   
  Dimitrios Gianninas
  RIA 
  Developer
  Optimal 
  Payments Inc.
   
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
  EismannSent: Friday, August 25, 2006 10:43 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] FDMS: check, if an 
  item exists on the client?
  
  
  Is there any way in FDMS to get an item without really going to 
  theserver if it's on the client already? I found that calling 
  dataService.getItem(uid) always goes to the server,even if the item 
  in question is available on the client. This isunnecessary overhead IMHO 
  if the item is available in theDataStore/Collection. Do I 
  have to implement my own lookup strategy 
  here???Thanks,Dirk.
  


  
AVIS 
IMPORTANT
  
WARNING

  
Ce message 
électronique et ses pièces jointes peuvent contenir des renseignements 
confidentiels, exclusifs ou légalement privilégiés destinés au seul 
usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous 
n'êtes pas le destinataire visé du présent message ou si vous l'avez 
reçu par erreur, veuillez cesser immédiatement de le lire et le 
supprimer, ainsi que toutes ses pièces jointes, de votre système. La 
lecture, la distribution, la copie ou tout autre usage du présent 
message ou de ses pièces jointes par des personnes autres que le 
destinataire visé ne sont pas autorisés et pourraient être illégaux. Si 
vous avez reçu ce courrier électronique par erreur, veuillez en aviser 
l'expéditeur.
  
This 
electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the 
use of the intended recipient. No privilege or other rights are waived 
by any unintended transmission or unauthorized retransmission of this 
message. If you are not the intended recipient of this message, or if 
you have received it in error, you should immediately stop reading this 
message and delete it and all attachments from your system. The reading, 
distribution, copying or other use of this message or its attachments by 
unintended recipients is unauthorized and may be unlawful. If you have 
received this e-mail in error, please notify the 
sender. 
__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] FDMS: check, if an item exists on the client?

2006-08-25 Thread Dirk Eismann
Hi Seth,
 
thanks for your reply - the problem is that I cannot use ICursor.find as this 
only works on a sorted ArrayCollection and I cannot sort the collection in 
question as it uses paging. Doing a sort fetches all items.
 
Also, I'm not sure what you mean by saying "If you call getItem() you'll 
already have a reference to the item so just hang onto that". So far, to get a 
specific item I called 
 
  var ref:ItemReference = myDataService.getItem({id: 123});
 
added responders to the ItemReference and waited until the result came in to 
get a reference to the freshly fetched item. However, I don't want to make the 
trip to server, if the object is in the client already. 
 
What I want to achieve is the following:
 
1) create a new Person object 
2) set the organization attribute of the Person to Organization with ID 123
4) add the new Person to the personCollection (managed by a DataService, 
destination "person")
3) commit
 
So there are two DataService: on pointing to destination "person" and one 
pointing to destination "organization"
 
To set the organization attribute on the Person object, I need the Organization 
object with ID 123. This object may or may not already exist in the application 
in another ArrayCollection so I don't want to go to the server if this 
Organization object is already.
 
Perhaps I can use the localItems property of the DataList to look for the 
Organization - if it's not there, I use getItem() to fetch it.
 
Dirk.
 



Von: flexcoders@yahoogroups.com im Auftrag von Seth Hodgson
Gesendet: Fr 25.08.2006 19:54
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] FDMS: check, if an item exists on the client?



Hi Dirk,

getItem() will always fetch the current state of the requested object from the 
server and update the local instance with the result if it exists. If you don't 
have auto sync enabled (server pushed updates) this is how you can periodically 
refresh your local instance.

If you call getItem() you'll already have a reference to the item so just hang 
onto that. If you've fill()'ed and you want to get a reference to an instance 
in your filled ArrayCollection take a look at the ICursor.find() APIs.

Best,
Seth

____
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
Eismann
Sent: Friday, August 25, 2006 7:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDMS: check, if an item exists on the client?

Is there any way in FDMS to get an item without really going to the
server if it's on the client already?

I found that calling dataService.getItem(uid) always goes to the server,
even if the item in question is available on the client. This is
unnecessary overhead IMHO if the item is available in the
DataStore/Collection.

Do I have to implement my own lookup strategy here???

Thanks,
Dirk.



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

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

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

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

RE: [flexcoders] POP3 by Socket

2006-08-25 Thread Dirk Eismann
Don't have the correct syntax in front of me, but it should also be noted that 
by calling 
System.loadPolicyFile(http://www.foo.com/some/nested/folder/crossdomain.xml) or 
somthing similar, Flash Player can load crossdomain files that do not live in 
the "root" of the server. Also, by using loadPolicyFile() the file does not 
even need to be named crossdomain.xml :)
 
Dirk.


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

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

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

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

[flexcoders] FDMS: check, if an item exists on the client?

2006-08-25 Thread Dirk Eismann
Is there any way in FDMS to get an item without really going to the
server if it's on the client already? 

I found that calling dataService.getItem(uid) always goes to the server,
even if the item in question is available on the client. This is
unnecessary overhead IMHO if the item is available in the
DataStore/Collection. 

Do I have to implement my own lookup strategy here???

Thanks,
Dirk.


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

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

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

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





RE: [flexcoders] Display rendered HTML in Flex?

2006-08-24 Thread Dirk Eismann
Hi,

you may want to try this one:

http://www.deitte.com/archives/2006/08/finally_updated.htm

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of daniel_croona
> Sent: Thursday, August 24, 2006 11:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Display rendered HTML in Flex?
> 
> Hi!
> 
> What approach would you recommend me to use if I want to 
> achieve rendering of html the way a web browser would render 
> it (i.e. recording to w3c recommendations)
> 
> We are using Flex to manage a "template based" webpage. The 
> preview of this has to be 100% the way it will appear in a browser.
> 
>  


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

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

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

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





RE: [flexcoders] Cairngorm on Labs

2006-08-21 Thread Dirk Eismann
Hi,

some thoughts:

1) update the manifest file and add all Cairngorm classes to it
2) add the DestinationLocators provided by Peter Martin
3) update the library project so the SWC compiles against the Flex 2
framework without linking it (i.e. set the link type of the external
Flex 2 SWCs to external, right now they get merged into code)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Harfleet
> Sent: Monday, August 21, 2006 2:41 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm on Labs
> 
> Hi,
> 
> 
> As many of you are aware, Cairngorm now has space at Adobe 
> Labs. We are hoping to soon update the content on Labs in 
> order to give people more resources to become productive with 
> Cairgorm.
> 
> We'd really like to hear from you if you have any ideas or 
> opinions on the type of thing we should be including.
> 
> Please let us know by reply to all, replying here 
> http://weblogs.macromedia.com/dharfleet/archives/2006/08/cairn
> gorm_on_la.cfm#more
>  or just directly to me (dharfleet at adobe.com) with details 
> of what you would like to see, why you want to see it and how 
> it would enable you or others to utilise Cairngorm. 
> 
> Thanks in advance,
> 
> 
> Daniel Harfleet
> 
> 
> 
> 
> 
> 
> --
> 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

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

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

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





RE: [flexcoders] ASDoc now available on Labs

2006-08-15 Thread Dirk Eismann
Yeah! Thanks!

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
> Sent: Monday, August 14, 2006 7:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ASDoc now available on Labs
> 
> http://labs.adobe.com/wiki/index.php/ASDoc
> 
> Enjoy!
> 
> 
> --
> 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

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

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

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





RE: [flexcoders] cant find the "finger" cursor that appears over some buttons

2006-08-09 Thread Dirk Eismann
Try:



Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of hank williams
> Sent: Wednesday, August 09, 2006 3:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] cant find the "finger" cursor that 
> appears over some buttons
> 
> I want to activate the finger cursor that appears over some 
> buttons but not others. Specifically, if appears over the 
> buttons in a link bar, but not over regular buttons. I have 
> certain regular buttons I want it to appear over but I cant 
> find any references to it in the documentation. Does anyone 
> know how to access it?
> 
> Hank
>  


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

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

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

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





RE: [flexcoders] Flex dataservices: fill vs asynctoken

2006-08-09 Thread Dirk Eismann





Asynchronous methods like fill() return an AsyncToken instance which you 
can use to add custom data to it (i.e. mark that ypu invoked a fill operation). 
In the result handling function the AsyncToken is available again, so you can 
add additional logic to your result handler, e.g.
 
private function 
resultHandler(event:ResultEvent):void
{
  
switch (event.token.kind)
  
{
    case "fill":
  ...
    case "delete":
  ...
  
}
}
 
AsyncToken is a dynamic class so you can add whatever properties you 
like.
 
Another use case of AsyncToken is to add responders to it - this allows 
you to dynamically setup result/fault handling functions:
 
var 
token:AsyncToken = ds.fill(collection);
token.addResponder(new ItemResponder(resultFunction, faultFunction, 
"fill"));
 
and 
then
 
private function resultFunction(result:Object, 
token:Object):void
{
  
// result usually is of type ResultEvent, 
  
// token is the third parameter passed to the ItemResponder 
constructor
  
if (result is ResultEvent)
  
{
   ...
  
}
}
 

private function faultFunction(result:Object, 
token:Object):void
{
  
// result usually is of type FaultEvent, 
  
// token is the third parameter passed to the ItemResponder 
constructor
  
if (result is FaultEvent)
  
{
   ...
  
}
}
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jonas 
  WindeySent: Wednesday, August 09, 2006 11:30 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex dataservices: 
  fill vs asynctoken
  
  
  Hi,
   
  I’m new to flex dataservices 
  (using WebORB), and I like to know what’s the difference 
  between:
   
  ds = new 
  DataService("contact");
  ds.fill(contacts);
   
  and
   
  ds = new 
  DataService("contact");
  var token:AsyncToken = 
  AsyncToken(ds.fill(contacts));
  token.kind = 
  "fill";
   
  Thanks!
  Jonas
   
  


  

  
Jonas 
Windey
Web 
Developer
T. +32 3 216 86 
47
 
Pixco Interactive 
Division
T. +32 3 216 86 
40
F. +32 3 216 86 
49
 
http://www.pixco.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] Does ComboBox support paging?

2006-08-08 Thread Dirk Eismann
I use a ArrayCollection that is managed by a DataService, the
destination uses paging.

Paging works fine when I use this ArrayCollection as the dataProvider
for a DataGrid. However, if I assign it to a ComboBox then only n items
get displayed where n is the pageSize of the destination.

So - does ComboBox support no paging at all? Do I have to implement my
own paging strategy?

Dirk.


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

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

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

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





[flexcoders] Does ComboBox support paging?

2006-08-08 Thread Dirk Eismann
I use a paged ArrayCollection that is managed by a DataService. Paging
works fine when I use this ArrayCollection as the dataProvider for a
DataGrid. However, if I assign it to a ComboBox then only n items get
displayed where n is the pageSize of the destination.

Do I have to implement my own paging strategy?

Dirk.


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

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

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

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




[flexcoders] Set resubscribeAttempts on DataService?

2006-08-01 Thread Dirk Eismann
Is there any way to set the resubscribeAttempts of the underlying
Consumer instance used by a DataService?

In the case where the remote destination endpoint is not accessible
(i.e. network or server down) an attempt to connect to the destination
by invoking a fill() operation neither fires a fault event, nor do I get
a timeout (requestTimeout is set on the DataService) but just runs
forever.

Looking at the output of TraceTarget I see that the DataService's
consumers attempt to subscribe again and again but this never stops
automatically.

Any ideas?

Dirk.


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

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

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

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





RE: [flexcoders] Get the reference of a DataGrid cell in a itemRenderer

2006-07-26 Thread Dirk Eismann
Na Kollege :)
 
You probably only have to cast listOwner to DataGrid to make it work, i.e.
 
  DataGrid(listData.owner).indexToItemRenderer(1);
 
Cheers,
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Artur Kordowski
Gesendet: Mi 26.07.2006 11:56
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Get the reference of a DataGrid cell in a itemRenderer


In Flex 1.5 there was a way to get the reference of a DataGrid cell by using 
listOwner.rows[1].cells[1]. The same I try to do in Flex 2. I've tried to get 
the reference in my itemRenderer by using 
listData.owner.indexToItemRenderer(1). But in a itemRenderer the owner variable 
haven't any indexToItemRenderer() function. I need the reference to disable 
some controls if an other cell is clicked. Have anyone an idea how I can do it 
or in wich way I got the reference of the cell?
 
Any help will be appreciate.
 
Artur
 


 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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

RE: SPAM-LOW: Re: [flexcoders] Moderators: Please remove me from the list

2006-07-21 Thread Dirk Eismann





Actually, you can subscribe without having an yahoo 
ID:
 
http://www.flexcoders.org/index.html
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Pan 
  TroglodytesSent: Friday, July 21, 2006 4:48 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: SPAM-LOW: Re: [flexcoders] 
  Moderators: Please remove me from the list
  I don't think there is any way you can subscribe without having a 
  yahoo address.  You probably just told it to send them to your alternate 
  address.  Just go to http://groups.yahoo.com/group/flexcoders/ 
  and click Sign In.  Then click " 
  Forget your ID or password?".  Fill out the info (hopefully you gave 
  them correct info or can remember the fake info) and choose the option to put 
  in your alternate email address.  I think it will send you your yahoo ID 
  and maybe even reset your password.  If not, just do this process again 
  and choose option 1. 
__._,_.___





--
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] TODO/FIXME extension for Flex Builder 2

2006-07-21 Thread Dirk Eismann
Watch out for line breaks in the URL! Otherwise just go to
http://www.richinternet.de/blog and grab it there.

Dirk.
 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
> Sent: Friday, July 21, 2006 2:46 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TODO/FIXME extension for Flex Builder 2
> 
> I finally found some time to finish the TODO/FIXME extension 
> for Flex Builder 2 - thanks to Jean-Luc ;)
> 
> Please go ahead and give it a try:
> 
> http://www.richinternet.de/blog/index.cfm?entry=911D4B57-0F0D-
> 5A73-AF6F4
> D4D04099757
> 
> Dirk.
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Check out the new improvements in 
> Yahoo! Groups email.
> http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] TODO/FIXME extension for Flex Builder 2

2006-07-21 Thread Dirk Eismann
I finally found some time to finish the TODO/FIXME extension for Flex
Builder 2 - thanks to Jean-Luc ;)

Please go ahead and give it a try:

http://www.richinternet.de/blog/index.cfm?entry=911D4B57-0F0D-5A73-AF6F4
D4D04099757

Dirk.


 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] FlashPlayerTrust files don't get updated by Flex Builder 2

2006-07-21 Thread Dirk Eismann
Has anyone experienced that when running a SWF from Flex Builder 2 which
accesses a local file (i.e. pull XML file through HTTPService) sometimes
Security Sandbox violations happen and sometimes not?

On my machine it all boils down to the fact that the
flexbuilder_plugin.cfg and flexbuilder_plugin.fbr files in the local
user FlashPlayerTrust don't get updated correctly. For example, running
the plugin version of FB2 the files don't get updated wheras running the
standalone version they get updated.

It seems that by default Flex Builder 2 automatically adds the current
workspace and the current project folders to the above files to allow
SWFs started from FB2 to access local data. For some reasons, this does
not always happen and we frequently run into those Sandbox violations
again and again.

Dirk.


 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] Flex 2.0 - Passing Custom Java Objects to Flex

2006-07-20 Thread Dirk Eismann
Hi Josh,

_remoteClass has been deprecated since Flex 1.5

To create a mapping between AS3 and Java classes in Flex 2you have to
use the [RemoteClass(alias="foo.bar.Classname")] metadata tag on your
AS3 class. Check the "Serializing data" chapter (p. 1089) in the
flex2_devguide.pdf for morre information.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of porsoc
> Sent: Wednesday, July 19, 2006 11:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 2.0 - Passing Custom Java Objects to Flex
> 
> 
> I am having a problem passing custom java objects to flex.  
> The custom objects are successfully being sent/recieved but 
> are coming accross with an OjectProxy type instead of the 
> custom java object type.  
> 
> The _remoteClass attribute is set on my AS class.
> 
> Any ideas?
> 
> Josh
> 
> 
> 
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Check out the new improvements in 
> Yahoo! Groups email.
> http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] Re: Flex and CF

2006-07-20 Thread Dirk Eismann
Unfortunately not - if your authenticated against FDS (or a service behind FDS 
by using setRemoteCredentials()) you're not automatically authenticated against 
the RPC destination as this is running in a different process and vice versa.

You'll have to set the same credentials on both RPC and DS service which of 
course makes things a bit more different to handle.

This is the major drawback when using both RPC and DMS with CF and I hope there 
will be a better solution in a future release.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
> Sent: Thursday, July 20, 2006 12:14 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Flex and CF
> 
> 
> Mike,
> 
> using this approach, will an authentication made by a RPC 
> call be available by the FDS assembler?
> Imagine that I want to filter some fill call based on the 
> value of the getauthuser(), do I need to use 
> setRemoteCredentials on my DS destination or it's already available?
> 
> So basically, does a session created from a RPC call be the 
> same as the one created my FDS when calling the assembler?
> 
> João Fernandes
> 
> -Original Message-
> From: flexcoders@yahoogroups.com on behalf of Mike Nimer
> Sent: Wed 19-Jul-06 10:10 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Flex and CF
>  
> Joao,
> Your right there isn't much information, and we need more. 
> We'll work on that.
>  
> However, to answer you question now. To get this working so 
> you can call FDS destinations of CF via Flash Remoting you 
> would do it this way.
>  
> 1) Configure CF on 1 instance/server
> 2) Configure FDS on 2nd instance/server
> 3) Point your project at the services-config.xml in the FDS instance.
>  
> Ok at this point you can easily call FDS destinations which 
> use CF (or not).  Now to also call Flash remoting.
>  
> 4) Define the destination and channel with Actionscript, 
> instead of letting the compiler do it when it is pointed at 
> the CF version of the services-config.xml
>  
> To create you own ChannelSet the code would look something like this.
>  
> --
> public var cSet:ChannelSet;
>  
> public function initApp()
> {
> cSet = new ChannelSet();
> var customChannel:Channel = new AMFChannel("my-cfamf", 
> http://localhost:8500/flex2gateway/);
> // Add the Channel to the ChannelSet.
> cSet.addChannel(customChannel);
> foo.channelSet = cSet;
> }
> 
>  
>  id="foo" 
> destination="ColdFusion" 
> source="com.foo.component" />
> ---
>  
> Note: You can use this ChannelSet technique instead of the 
> -services compiler flag too. And you can use it, if you want 
> to use something like FlashVars to change the endpoint url.
>  
>  
> hope that helps,
> ---nimer
> 
> - Original Message 
> From: João Fernandes <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, July 19, 2006 1:52:29 PM
> Subject: RE: [flexcoders] Re: Flex and CF
> 
> 
> Damon,
> 
> but there isn't much information if you want to use RPC + 
> FDS. All examples are RPC or FDS only, not the mix.
> 
> If you define your CF RPC destination inside FDS it won't 
> work and there isn't any example, best-practice or a technote 
> how to implement this correcly.
> 
> If you merge FDS+CF this works fine. If Adobe could publish 
> any additional documentation how to achieve this (RPC+FDS), I 
> think everyone would be grateful.
> 
> João Fernandes
> 
> -Original Message-
> From: [EMAIL PROTECTED] ups.com on behalf of dcooper2025
> Sent: Wed 19-Jul-06 6:38 PM
> To: [EMAIL PROTECTED] ups.com
> Subject: [flexcoders] Re: Flex and CF
> 
> People seem to think they need to jam FDS into the CF 
> instance to get them to work together for some reason, likely 
> because that's the main config setup with CF + Flex 1.5, but 
> that's not necessary at all any longer with Flex 2 FDS. 
> 
> With Flex 2 and FDS, you absolutely do not need FDS installed 
> into the CF app instance for things to work. We designed them 
> to live together on the same machine or seperately on 
> different machines/instances, but we didn't spend much time 
> on the case where people would try to get FDS inserted into 
> the CF instance itself. I suppose there are valid arguments 
> for wanting to do this, but with the RMI interface between 
> the two now with Flex 2, and the existing Flex 1.5 bits 
> already living in the CF7 instance for CF7 Flash Forms, etc 
> (and the potential for conflict between Flex 1.5 and Flex
> 2 bits in package names, etc, etc), we thought it best to 
> recommend the use case where CF and Flex 2 FDS are not living 
> in the same webapp instance.
> 
> Hopefully that makes sense.
> 
> Damon
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Jim"  ...> wrote:
> >
> > Damon,
> > 
> > When you say, "They live nicely side-by-side, " how is Coldfusion 
> > loaded? Built-in Web Server, Multiserver (JRUN4), Using IIS or
> Apache

RE: [flexcoders] TODO and FIXME in Builder ?

2006-07-19 Thread Dirk Eismann





No, 
it's not included in Flex Builder 2. 
 
I 
started developing a plugin extension for Flex Builder 2 that adds this kind of 
functionality to both the MXML and AS editors a while ago but it's only 50% 
finished yet. If I find a way to get rid of the "A-day-only-has-24-hours" 
problem then I hope to get it finished and packaged soon but unless it will take 
some time.
 
Dirk. 

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc 
  ESSERSent: Wednesday, July 19, 2006 2:49 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] TODO and FIXME in 
  Builder ?
  
  Maybe missed it, but did'nt find anybody asking 
  how to implement the TODO and FIXME tasks in Builder.
  This is a must for every eclipse users, specially 
  when working in teams, but it does not work for mxml or as files (maybe 
  they are not parsed).
  Is there a simple way to have it work 
  ?
   
  Thanx,
  JL 
__._,_.___





--
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] initial loader color/style

2006-07-19 Thread Dirk Eismann
You'll have to create your own loader by subclassing
mx.preloaders.DownloadProgressBar and then point the preloader property
of your Application class to your subclass. 

Dirk.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of hank williams
Sent: Wednesday, July 19, 2006 3:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] initial loader color/style


There is a default setting for the background color and style of
the loader that you see before your app opens. Where can I change this?

Hank
 


 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] Class instance inheritance check

2006-07-19 Thread Dirk Eismann
describeType tends to be slow the more complex your class and
inheritance chain gets. 

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg
> Sent: Wednesday, July 19, 2006 12:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Class instance inheritance check
> 
> Would flash.util.describeType be an option?
> Cheers,
> Ralf.
> 
> On 7/19/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote:
> > Hi All!
> >
> > Imagine, I have the Class instnace as a function parameter.
> >
> > function myFunction(clazz : Class) {
> > ...
> > }
> >
> > How to check that clazz is inherited from some other class (e. g.
> > UIComponent). Sure, I can create instnace.
> >
> > if (new clazz() is UIComponent) {
> > ...
> > }
> >
> > But this approach seems not good as for me. Any ideas?
> >
> > Sergey.
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> --
> Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash 
> Consultant based in Cologne/Germany
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> 
> See what's inside the new Yahoo! Groups email.
> http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] Class instance inheritance check

2006-07-19 Thread Dirk Eismann
I've written a helper class for this:

package de.richinternet.utils
{

import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedSuperclassName;

public class ClassUtils
{

public static function isSubclassOf(classA:Class,
classB:Class):Boolean
{
if (classA == classB) return true;

if (getQualifiedSuperclassName(classA) == null)
throw new ArgumentError("Cannot determine supertype for " + classA);

while (classA != Object)
{
var s:String =
getQualifiedSuperclassName(classA);
var c:Class = getDefinitionByName(s) as
Class
if (c is Class)
{
return isSubclassOf(c, classB);
}
return false;   
}
return false;
}
}
}

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
> Sent: Wednesday, July 19, 2006 11:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Class instance inheritance check
> 
> Hi All!
> 
> Imagine, I have the Class instnace as a function parameter.
> 
> function myFunction(clazz : Class) {
> ...
> }
> 
> How to check that clazz is inherited from some other class (e. g.
> UIComponent). Sure, I can create instnace.
> 
> if (new clazz() is UIComponent) {
> ...
> }
> 
> But this approach seems not good as for me. Any ideas?
> 
> Sergey.
> 


 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] Are there any good flash fonts that will work well in flex

2006-07-18 Thread Dirk Eismann
You may want  to take a look at FlashType fonts. These can be used in Flex 2 
and display much better than normal fonts. The Flex 2 documentation has a 
chapter on how to use FlashType.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von hank williams
Gesendet: Di 18.07.2006 22:01
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Are there any good flash fonts that will work well in flex


One of the key things to defining an apps look and feel is fonts. But I find 
that truetype fonts just dont come out looking as good as flex's built in 
bitmap font. But I really dont want to look like every other application. In 
flash I know there are companies that sell great fonts, but I am wondering if 
anyone has anyone has any specific experience because working with some of the 
fonts I am familiar with you had to be careful to, for example, always specify 
one font size. 

Anyway, any recomendations would be appreciated.

Hank
 


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

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

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

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

RE: [flexcoders] How to detect whether DisplayObject is popup or not?

2006-07-17 Thread Dirk Eismann
Yes, that's true. But e.g. ToolTips also aren't children of the
application but live in a different IChildList of the SystemManager :)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg
> Sent: Monday, July 17, 2006 2:06 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] How to detect whether DisplayObject 
> is popup or not?
> 
> Isn't it, that popups are not children of application? Maybe 
> you can check this?
> Cheers,
> Ralf.
> 
> On 7/17/06, Dirk Eismann <[EMAIL PROTECTED]> wrote:
> > I see what you mean.
> >
> > Unless your application has been loaded into another 
> application then 
> > Application.application.systemManager should give you the correct 
> > SystemManager instance. By checking the SystemManager's 
> popUpChildren 
> > list you should be able to find all popups.
> >
> > Dirk.
> >
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
> > > Sent: Monday, July 17, 2006 12:51 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: Re: [flexcoders] How to detect whether DisplayObject is 
> > > popup or not?
> > >
> > > Okay, thank you. But still. Every DisplayObject, not only 
> > > UIComponent, could be popUp. How to deal with them? I found that 
> > > popUpChildren :
> > > IChildList exists in SystemManager class description. But 
> how to get 
> > > correct instance of that SystemManager and whether it's what I'm 
> > > looking for?
> > >
> > > On 7/17/06, Dirk Eismann <[EMAIL PROTECTED]> wrote:
> > > > In Flex 2 this property is called isPopUp and is defined in 
> > > > mx.core.UIComponent
> > > >
> > > > Dirk.
> > >
> > >
> > > --
> > > 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
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> --
> Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash 
> Consultant based in Cologne/Germany
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> 
> Check out the new improvements in Yahoo! Groups email.
> http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] How to detect whether DisplayObject is popup or not?

2006-07-17 Thread Dirk Eismann
I see what you mean.

Unless your application has been loaded into another application then
Application.application.systemManager should give you the correct
SystemManager instance. By checking the SystemManager's popUpChildren
list you should be able to find all popups.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
> Sent: Monday, July 17, 2006 12:51 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] How to detect whether DisplayObject 
> is popup or not?
> 
> Okay, thank you. But still. Every DisplayObject, not only 
> UIComponent, could be popUp. How to deal with them? I found 
> that popUpChildren :
> IChildList exists in SystemManager class description. But how 
> to get correct instance of that SystemManager and whether 
> it's what I'm looking for?
> 
> On 7/17/06, Dirk Eismann <[EMAIL PROTECTED]> wrote:
> > In Flex 2 this property is called isPopUp and is defined in 
> > mx.core.UIComponent
> >
> > Dirk.
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] Declaring webservices??

2006-07-17 Thread Dirk Eismann





It's 
not out-of-the-box in Flex 2 but you can easily write a singleton-alike class 
that stores the references to your WebService instances and access it from 
anywhere in your application. The Cairngorm framework uses this approach for its 
ServiceLocator class.
 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Ken 
  BrombergerSent: Monday, July 17, 2006 8:39 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Declaring 
  webservices??
  
  
  Hi 
  All,
   
  I seem to recall during the beta’s 
  seeing something where you can code your web services together and then 
  reference them at different points in the application. Kind of like a global 
  config for them so they can easily be reused. Though I can’t seem to find 
  anything on this now, is this possible??
   
  Thanks - 
  Ken
   
   
   
   
__._,_.___





--
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] Bind label to class attributes

2006-07-17 Thread Dirk Eismann
You'll have to either make the name property of your FtpUser class
[Bindable] as well or set [Bindable] on the FtpUser class level.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Windey
> Sent: Monday, July 17, 2006 10:07 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Bind label to class attributes
> 
> Hi, I use the following code:
> 
> [Bindable]
> public var currentUser:FtpUser;
> 
> In my titlewindow, I have:
> 
> title="User settings ({currentUser.name})"
> 
> This is working perfect, I fill the currentUser from inside 
> the caller of the titlewindow, and it's setting the correct result.
> However, I get a warning that Data binding will not be able 
> to detect assignments to "name".
> Any way to get rid of that? It's not that there's an error, 
> it's just annoying :-)
> 
> Thanks,
> Jonas
> 
> 
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Something is new at Yahoo! Groups.  
> Check out the enhanced email design.
> http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] How to detect whether DisplayObject is popup or not?

2006-07-17 Thread Dirk Eismann
In Flex 2 this property is called isPopUp and is defined in
mx.core.UIComponent 

Dirk. 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
> Sent: Monday, July 17, 2006 10:33 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to detect whether DisplayObject is 
> popup or not?
> 
> Hi All!
> 
> In Flex 1.5 there was popUp boolean property in UIObject 
> class. It was set to true if UIObject instance is popup and 
> false otherwise. How to examine this now?>
> 
> Sergey.
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Check out the new improvements in 
> Yahoo! Groups email.
> http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


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

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

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

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





[flexcoders] Announcing Flexforum.de

2006-06-29 Thread Dirk Eismann
Hey fellow German flexcoders,

after Flex 2 has hit the streets we're pleased to announce the launch of
Flexforum.de (http://www.flexforum.de) - our contribution to the Flex
community and especially to the German speaking folks. Flexforum is not
(and will never be) a counterpart to flexcoders but is meant as a
supplement for those of you that would like to get in contact with some
native-speaking Flexcoders.

Also - man sieht sich :)
Dirk.


 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] Re: What is the difference between versions of Flex Data Services

2006-06-29 Thread Dirk Eismann
Last thing I heard was that Dual-Core is regarded 1 CPU.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jwc_wensan
> Sent: Thursday, June 29, 2006 11:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: What is the difference between 
> versions of Flex Data Services
> 
> Matt:
> 
> Is Dual-Core considered 1 or 2 CPUs?
> 
> Thanks,
> 
> Jack
> 


 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] Generate sound

2006-06-28 Thread Dirk Eismann





Ahh, 
that hidden Metadata [FMSynthesis], eh?
 
Dirk.
 

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Roger 
  GonzalezSent: Wednesday, June 28, 2006 10:30 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Generate 
  sound
  
  Yes, but not easily.  I'll be writing a blog 
  post with example code on this soon.  :-)
   
  -rg
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of David 
ClarkSent: Wednesday, June 28, 2006 11:51 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Generate 
sound


Anyone know if it is possible to generate sound / tones from flash / 
flex? Something like a beep function to play a sound of a certain frequency, 
though not by loading a sound file.Thanks-- 
david"Many people die at twenty five and aren't buried until 
they are seventy five".- Benjamin Franklin  
__._,_.___





--
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] What is the difference between versions of Flex Data Services

2006-06-28 Thread Dirk Eismann
The free one has no concurrent user limit -  it's all up to your 1 CPU
and how much it can handle. 

If you run a beefy app (not just using proxying but Data Management
Services and Messaging etc.) then I bet it will die before you reach the
100 :)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of hank williams
> Sent: Wednesday, June 28, 2006 8:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] What is the difference between versions 
> of Flex Data Services
> 
> I understand there is a free version of fds, and 6k version, 
> and a 20k version of fds.
> 
> But I cant find any detailed info about this on the website.
> 
> One of the key questions I have is what is the difference 
> between the free version and the 6k version. Supposedly the 
> free version will only allow for one app on one CPU. but as I 
> understand it, the 6k version only allow for 100 users. So 
> does the free one have the same restrictions or not. It 
> sounds like the free one is better than the 6k one, though I 
> am sure thats not the case.
> 
> Anyway, a detailed description of the value proposition for 
> each version would be very helpful.
> 
> Thanks
> Hank
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Yahoo! Groups gets a make over. See 
> the new email design.
> http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





RE: [flexcoders] FlexBuilder refactoring capabilities

2006-06-28 Thread Dirk Eismann
Not yet. But that's the good thing about Flex Builder 2 being based on Eclipse: 
we can expect *lots* of neat additions/plugins/fragments for FB2 in the near 
future :)

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Rühl -akitogo-
> Sent: Wednesday, June 28, 2006 5:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FlexBuilder refactoring capabilities
> 
> 
> Hello list,
> 
> is there a way to intelligent refactor a project? Like moving 
> class files around or renaming packages with FlexBuilder 
> maintaining the imports and code fragments as it is in Java 
> projects for example?
> 
> I mean, this is most likely a common and important task. I 
> can't imagine to manually change everything my hand, or do I 
> have to do so?
> 
> Thanks,
> Thomas
> 
> 
>   
>   Thomas Rühl
>   Design, Programming & Concepts
>   
>   akitogo OHG
>   Hanauer Landstrasse 188
>   60314 Frankfurt
>   
>   Telefon +49 (0) 69 800 69 445
>   Fax +49 (0) 69 800 69 449
>   Mobil   +49 (0) 179 750 75 87
>   E-Mail  [EMAIL PROTECTED]
>   Web http://www.akitogo.com
>   
> 
> 
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Great things are happening at Yahoo! 
> Groups.  See the new email design.
> http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




RE: [flexcoders] Server Identity for FDS 2 in ColdFusion admin

2006-06-28 Thread Dirk Eismann





It's 
the  sub node of the  node of a 
destination. Check the data-management-config.xml file inside your 
fds2/resources/config folder, at the very bottom there are three examples how to 
configure a CF destination and the first one ("cfcontact") lists this option, 
e.g.
 

 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of João 
  FernandesSent: Wednesday, June 28, 2006 1:46 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Server Identity for 
  FDS 2 in ColdFusion admin
  
  
  Hi there,
   
  I’m running CFMX7 in multiserver install 
  and the updater now has new options for FDS support like “server Identity” so 
  we can have multiple instances running FDS support (beta 3 only allowed 1 
  instance). 
   
  My question is, how do we configure (and 
  where) which server instance to be used ? 
   
  Regards,
   
  João 
  FernandesDep. 
  Informática - Área de DesenvolvimentoCofina 
  mediaAvenida 
  João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGALTel 
  (+351) 213 185 200 . Fax (+351) 213 540 370[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








   






  
  
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] Duplicate variable definition

2006-06-28 Thread Dirk Eismann





yes. 


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jonas 
  WindeySent: Wednesday, June 28, 2006 11:29 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Duplicate variable 
  definition
  
  
  Hi, 
   
  In flex 2 b3, it was allowed to do 
  this:
   
  rivate function 
  fcnTest():void
  {
  for (var i:Number=0;i< 
  10;i++){
      
  //do 
  sthing 
  
  }
  for (var i:Number=0;i< 
  10;i++){
      
  //do something more  
      
      
  
  }
  }
   
  In 2.0 final, I get Duplicate 
  variable definition.
   
  Should I only declare it once 
  before every loop?
   
  Jonas 
__._,_.___





--
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: About dates sent to a webservice. Is this correct?

2006-06-26 Thread Dirk Eismann
Yes - I think it's an issue with 1.1
 
In our last Flex 2/.NET 2 application we were able to correctly pass date 
objects between Flex and .NET 
 
The only thing you have to watchout for is to make sure that the DateTime 
object your return from .NET has its Kind set to UTC - if so, it should work 
fine.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Daniel Tuppeny
Gesendet: Mo 26.06.2006 11:41
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] Re: About dates sent to a webservice. Is this correct?




I just tested this out (to see how bad it was!), and my web service
returned:

http://tempuri.org/";>2006-06-26T10:38:54.6541786+01:00

Which includes timezone info. When I call ToString() on the flash date,
it returns exactly the same (10:38+1:00). Is this just an issue with
.NET 1.1? We're using 2.0.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Tuppeny
Sent: 26 June 2006 10:26
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: About dates sent to a webservice. Is this
correct?


I've read through that thread, and this hardly seems like acceptable
behaviour to me.

We're sending dates from a .NET web service too, and we don't care about
the time. We're plotting them on a calendar. We can't afford to have
dates sent as one thing, and then rolled back to the previous day
because the client machine is in a different timezone. There *needs* to
be a way to turn this off. If my web service says an event occurs on the
1st June, I want Flex to give me the 1st June.

What's the point in Flex translating it, and then me having to translate
it back (and remember to do this *everywhere*)?




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kellyb723
Sent: 23 June 2006 17:24
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: About dates sent to a webservice. Is this
correct?

Yes this is correct.  I recently had a long thread about this.  What I
was told by Adobe is that If a web service defined the element-type in
WSDL as `dateTime' and sends a value that does not include a time zone
component Flex "has to" assume that this is UTC time and will
automatically adjust the Date value to your local time zone.

You can read my previous thread, including a post by Peter Farland
(Adobe) that this behavior is by design, and my workaround at:

http://groups.yahoo.com/group/flexcoders/message/39832

- Kelly

--- In flexcoders@yahoogroups.com, "Bas J. Brey" <[EMAIL PROTECTED]> wrote:
>
> You set a date e.g. 25th of January 2005 00:00 GMT +2
>
> Flex sends it to the service as 24th of January 2005 22:00 ?
>
> 
>
> If so than you can never use a "date" type in your webservice cause
then you
> miss timezone information.
>








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








[Inbound Mail Scanned by MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__



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








[Inbound Mail Scanned by MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__



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











 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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

RE: [flexcoders] Access SOAP fault code

2006-06-20 Thread Dirk Eismann





If you 
can get hold of the pure HTTP response in .NET (which I doubt) then you could 
set the HTTP status code to 200. This way the exception will be handled 
correctly by Flash Player (and that's how the Flex WS proxy handle this, 
too)
 
Another way would be to use servlet/ISAPI filters for this. With servlet 
filters this should be straightforward, not sure about ISAPI filters however. 

 
Dirk.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Daniel 
  TuppenySent: Tuesday, June 20, 2006 3:22 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Access SOAP 
  fault code
  
  We're using .NET web services, no cold 
  fusion.
   
  Looks like we'll have to wrap all responses in try/catch, 
  and return an object with an error property, and the actual data as another 
  property. Disgusting :-(
   
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Carson 
  HagerSent: 20 June 2006 14:11To: 
  flexcoders@yahoogroups.com; flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Access SOAP fault code
  
  
  Preaching to the choir. 
  :)  Believe me...we feel the same way.  From everything we have 
  heard from Adobe, this will not be addressed within the player within this 
  release.
   
  That being said, does CF support anything 
  like filters in J2EE that allow you to do things like alter the contents of 
  all responses before they leave the server?  If so, you can simply change 
  that HTTP status code to 200 for all CFC requests that have resulted in SOAP 
  faults.
   
  Just to clarify, Adobe told  us 
  informally that they would be coming up with various server side solutions 
  that would take care of this for you. You would have to check with them to see 
  if they are doing this for Cold Fusion.
   
   
  Carson
   
  
  
  From: flexcoders@yahoogroups.com on behalf of 
  Daniel TuppenySent: Tue 6/20/2006 9:06 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Access SOAP 
  fault code
  
  
  
  
  
  This sounds 
  pretty worrying. We're using SOAP without any server/proxy. So 
  we won't be able to get the SOAP exceptions at 
  all?
   
  That sounds 
  like rather a fundamental flaw. It means we're unable to give the user any 
  sensible messages, because we don't have the exception type. Is this not being 
  fixed for the final release? :-(
   
   
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Carson 
  HagerSent: 20 June 2006 13:29To: 
  flexcoders@yahoogroups.com; flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Access SOAP fault code
  
  
  This is currently a 
  limitation in the Flash Player ( all versions ).  SOAP faults require 
  HTTP 500 to returned. When the FP sees a 500, it stops reading data from the 
  socket.  The current workaround is to use the proxy or to use some other 
  mechanism to change the HTTP status code to 200 before the FP receives 
  it. Yes I realize that this is pretty poor and has serious 
  limitations.
   
  One last note, Adobe is evidently working 
  on something akin to the proxy that does this for you on your server. Clearly, 
  this won't help you when accessing web services one machines over which you 
  have no control.
   
  Carson
   
   
  
  
  From: flexcoders@yahoogroups.com on behalf of 
  m88e24Sent: Tue 6/20/2006 3:58 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Access SOAP fault 
  code
  
  
  
  
  Scenario:Flash players talks directly to a SOAP web service, no 
  proxy is used.The proxy attribute of the WebService element is set to 
  "false". Aspecific web service operation generates an application level 
  userexception and the faultcode and faultstring is returned in the 
  SOAPbody. The FaultEvent object received by the fault handler 
  functiondoes not contain the faultcode and the faultstring from the 
  SOAPmessage. The faultDetail in the FaultEvent object is of type 
  "ioError"and the error text is "Error #2032: Stream error …….." . Whilst 
  theactual SOAP faultcode is "soapenv:Server.userException" and the 
  SOAPfaultstring is 
  "coldfusion.xml.rpc.CFCInvocationException:[coldfusion.runtime.UndefinedElementException 
  : Element SPELER.ID isundefined in SESSION."This is custom 
  exception thrown by a remote function in a ColdFusionCFC. This is not an 
  ioError. A TCPmonitor shows the correct message request and response 
  with thefaultstring and faultcode as expected. How can the actual 
  SOAP faultcode and faultstring be retrieved fromthe FaultEvent or in any 
  other way. Why is the fault description inthe FaultEvent object totally 
  different from the actual SOAP faultmessage. It is not a transport error 
  so why does the FaultEvent showsan ioError. It is an application level 
  exception and as such returnedto the Flash application encapsulated in the 
  SOAP body. Any suggestions, thank you[Inbound Mail Scanned by 
  MessageLabs]__

  1   2   3   4   >