RE: [flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread Gordon Smith
That doesn't ring a bell. Can you post simple-as-possible versions of
your subclass and an that shows the problem?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of johnknyc
Sent: Thursday, April 26, 2007 7:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem using a subclass of ComboBox in
actionscript



Hi all,

I created a AS subclass of ComboBox. I can use the subclass in MXML,
however when I try to instantiate the subclass in AS, it comes up
blank when I run the app.

I tried running a trace in the subclass's constructor, and it seems
the constructor is not even being called.

Any ideas?



 


[flexcoders] List itemrenderer problem

2007-04-26 Thread slash_n_rose
Hi

I m using a list with an item renderer(some labels). Items in the list
shows some errors when i update an item in my dataprovider(array
collection) . The item renderer's label donot shows the updated
object's data.But the arraycollections is updated successfully..



[flexcoders] Re: wsdl path error

2007-04-26 Thread slash_n_rose
--- In flexcoders@yahoogroups.com, "Jaganathan.K" <[EMAIL PROTECTED]>
wrote:
>
> Place the crossdomain.xml file on your server path so that you can 
> access it at http://abc.com/crossdomain.xml
> Your xml file should contain the following code
> 
>  SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
> 
> 
> 
> OR
> 
> There is an alternative, where you need to add -use-network=false to 
> the additional compiler arguments of your project.
> 
> You can right click on your project and click the properties, you 
> can find additional compiler arguments in the flex compiler.
> 
> Hope this helps...
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "slash_n_rose"  
> wrote:
> >
> > Hi,
> > When I access data from server using webservice I have to specify 
> the
> > path of wsdl. There is a problem with that
> > For example If I give the path as
> > http://www.abc.com/service.asmx?WSDL, I cant access the html page
> > containing that swf movie with out using "www" infront of the url. 
> If
> > I access the html page just like http://abc.com/test.html its 
> throwing
> > an error.
> > 
> > The vice versa is also making problem..
> > 
> > If the service is in the same domain I can give relative path to 
> avoid
> > this problem, but how can we solve this problem if the service is 
> in a
> > different domain?
> > 
> > Please help
> > Jerry
> >
>


Thank you all



Re: [flexcoders] ArrayCollections as source for charting

2007-04-26 Thread Prabhakar Shenoy
What Sunil said is abolutely right. but in your case I'll suggest you to do 
this.

chartData = baseArrayCollection.source.slice(stIdx, enIdx);

and bind chartData to your chart, calculate stIdx, enIdx based on thisWeek 
or thisMonth or thisQuarter.


here  I am assuming that baseArrayCollection will have *all* data required for 
*all* charts.

- Original Message 
From: Sunil Bannur <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, April 26, 2007 5:31:14 PM
Subject: RE: [flexcoders] ArrayCollections as source for charting









  














Answer to First question: Just assign the
same arraycollection as dataprovider to all charts
 

Answer to Second question: The charts will
update, when the base arraycollection is changed.
 

  
 

-Sunil
 

  
 










From:
[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
klar1ty

Sent: Wednesday, April 25, 2007
11:20 PM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders]
ArrayCollections as source for charting
 




  
 







I am writing a flex application that stores a dataset
in an

arrayCollection called stats. Through use of the application, the

stats:ArrayCollecti on is updated.



One particular state of the application has 3 charts covering stats

for thisWeek, thisMonth and thisQuarter. 



Right now, I have a single chart working and want to add in the other

two. Since the base data for each chart is stored in

stats:ArrayCollecti on what should I use as the dataProvider for each

chart?



Since all the data is inside one ArrayCollection, should I keep a

single array collection then simply make a function for each period

and use the function as the dataProvider? If I do it this way, will

the charts update when the base arrayCollection is changed?



My original thought was to store 3 additional arrayCollection objects,

one for each period and update the correct object when the data

changes. This doesn't seem like the most elegant manner to handle the

situation.



Any advice is appreciated.



Dan Wilson
 
















  















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

[flexcoders] Re: NetConnection.Connect.Failed

2007-04-26 Thread arokyzxc
greg h
It's wonderful , I feel exciting about it . My app can talk to FMS
sucessfully, the only
thing that result in failing exactly was Action Message Format version
.You do me a
great favor ,thanks a lot.
Best regards
arokyzxc
--- In flexcoders@yahoogroups.com, "greg h" <[EMAIL PROTECTED]> wrote:
>
> arokyzxc,
>
> Following at at the end is an excerpt from an article by Renaun
regarding
> Flex & FMS.  The excerpt covers how to set in Flex/AS3 the correct
> NetConnection.objectEncoding when communicating with FMS 2.
>
> Full article is here:
> http://mxdj.sys-con.com/read/295379.htm
>
> Demo and downloadable source on Renaun's sample app here:
> http://renaun.com/blog/2006/10/28/139/
>
> Please post back regarding whether this helps you or not.
>
>Best regards,
>
>g
>
> EXCERPT
>
> The Flash Player 9 introduced a newer Action Message Format version
called
> AMF3. Flex 2 creates ActionScript 3.0 SWF's, but Flash Media Server is
still
> based on ActionScript 2.0 and the earlier AMF0. By default, the Flex 2
> NetConnection class uses AMF3, therefore you must tell the
NetConnection
> what object encoding to use. There are two ways to do this:
>
> var nc:NetConnection = new NetConnection();
> nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
>
> or
>
> NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
>
> The first method changes the object encoding for the instantiated
object
> only, whereas the second method changes the object encoding for all
> NetConnections globally. With the NetConnection set to use AMF0, the
Flex
> application will know how to communicate with the FMS application
properly.
>



[flexcoders] Games in Flex / Apollo?

2007-04-26 Thread Andrew
I'm working on a new blog that will center around game creation using
Flex and Apollo. So far it seems that everyone has focused on
"traditional" applications using Flex. I'm hoping to shake that up a
bit with not only blogging about Flex-based games but helping to
create some game libraries for Flex. 

I was wondering if anyone here is contemplating doing any game
building using Flex/Apollo.



Re: [flexcoders] Re: Tile Extra Space

2007-04-26 Thread Pan Troglodytes

Don't you hate it when you find someone asking your exact question but
there's no answer?  Even better, you find TWO people asking it.

I'm having this same problem and it's frustrating.  The whole point of the
Tile was to manage the layout for me and flow it on the window resizing.
Right now I'm experimenting with subclassing Tile and adding my own resize.
If anyone has already done this, I'd love to see your solution.

On 4/24/07, Alex <[EMAIL PROTECTED]> wrote:


  I'm having exactly the same problem. The Tile component grows taller
than expected. It seems to allocate height for an extra row when
there's no need to do so :S

Did you already find a solution to this?

--- In flexcoders@yahoogroups.com , joshua
gatcke <[EMAIL PROTECTED]> wrote:
>
> I am trying to use a  container to layout a set of
> application icons. I have set the  container to a width of
100%
> and would like the icons to wrap to the line below if the browser
is
> smaller or resized. The problem I am having is that the icons in
my
>  container are 60px tall and The  container does not
fit
> the height to the content, it looks like the  container is
> double or triple the icon height, even when there is no need to
wrap.
> I have no width or maxWidth etc attributes on the 
container.
> This is a real pain, I just want the tile container to fit the
height
> to the content.
>
> Thanks in advance for your help
>
> Joshua Gatcke
> Design/ Development
> [EMAIL PROTECTED]
> P: 403.269.1020
> C: 403.815.3265
> --

> -
> http://www.LaunchCMS.com - Simple intuitive content management
> software for the web.
> --

> -
>

 





--
Jason


[flexcoders] Find and replace wih regex?

2007-04-26 Thread b_alen
I have a huge XML file with complex DTD. Now I have to parse this into
something more usable by stripping the redundant tags and modifying
some of them. I see two options:

1. Recursivly visit all the nodes and handle them with "if" statements.
2. Use RegEx to do some sort of find and replace. 

The second options seems easier and faster if someone can point me in
the right direction. Or maybe some other ideas?

Thanks,
Alen



[flexcoders] Re: Will ECMAScript ever support abstract classes?

2007-04-26 Thread b_alen
Stop that wishfull thinking guys, the list is too long ;) I read
somewhere that abstract classes / functions were meant to be in the
release of AS3 but there was no time to do it for this release. They
had to rewrite the whole engine and we gotta give them some credit for
that. I really hope this will make into the next release.

As for overloading, the way they are handling function parameters at
the moment, I don't think we will be seeing that feature ever. Too bad
for that.




--- In flexcoders@yahoogroups.com, Yiðit Boyar <[EMAIL PROTECTED]> wrote:
>
> and function overloading (like in c++) ??
> 
> - Original Message 
> From: ben.clinkinbeard <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, April 26, 2007 11:30:31 PM
> Subject: [flexcoders] Will ECMAScript ever support abstract classes?
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> I've found myself wishing we had them on multiple
occasions, so I am
> 
> just wondering if anyone in the know can tell me if its been
> 
> proposed/considered /denied.
> 
> 
> 
> Thanks,
> 
> Ben
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>




Re: [flexcoders] Re: NetConnection.Connect.Failed

2007-04-26 Thread greg h

arokyzxc,

Following at at the end is an excerpt from an article by Renaun regarding
Flex & FMS.  The excerpt covers how to set in Flex/AS3 the correct
NetConnection.objectEncoding when communicating with FMS 2.

Full article is here:
http://mxdj.sys-con.com/read/295379.htm

Demo and downloadable source on Renaun's sample app here:
http://renaun.com/blog/2006/10/28/139/

Please post back regarding whether this helps you or not.

  Best regards,

  g

EXCERPT

The Flash Player 9 introduced a newer Action Message Format version called
AMF3. Flex 2 creates ActionScript 3.0 SWF's, but Flash Media Server is still
based on ActionScript 2.0 and the earlier AMF0. By default, the Flex 2
NetConnection class uses AMF3, therefore you must tell the NetConnection
what object encoding to use. There are two ways to do this:

var nc:NetConnection = new NetConnection();
nc.objectEncoding = flash.net.ObjectEncoding.AMF0;

or

NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;

The first method changes the object encoding for the instantiated object
only, whereas the second method changes the object encoding for all
NetConnections globally. With the NetConnection set to use AMF0, the Flex
application will know how to communicate with the FMS application properly.


RE: [flexcoders] Re: Will ECMAScript ever support abstract classes?

2007-04-26 Thread Matt Chotin
Yeah, at the moment it'd have to be something big I think.
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, April 26, 2007 8:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Will ECMAScript ever support abstract classes?



Thanks Matt, I wasn't able to find any real discussion of abstract
support but I will take your word for it. :) I assume something like
that would only be integrated in a major (AS4) release?

Thanks again,
Ben

--- In flexcoders@yahoogroups.com 
, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> You can see an export of the Wiki which contains a lot of these
> discussions here: http://developer.mozilla.org/es4/
 
> 
> Both overloading and abstract :-)
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of ben.clinkinbeard
> Sent: Thursday, April 26, 2007 1:31 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Will ECMAScript ever support abstract classes?
> 
> 
> 
> I've found myself wishing we had them on multiple occasions, so I am
> just wondering if anyone in the know can tell me if its been
> proposed/considered/denied.
> 
> Thanks,
> Ben
>



 


RE: [flexcoders] FF and Java sessions

2007-04-26 Thread Dimitrios Gianninas
I am doing a POST as well... this problem only happens with FireFox...works 
fine with IE. So just trying to see what ppl do for FF.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn 
Schultheiss
Sent: Thursday, April 26, 2007 7:36 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FF and Java sessions



Dimitrios,

I actually get the same JSESSIONID value when i make an upload request to a 
servlet. 
Although i am making a POST request and send vars via the URLVariables object.

example:
var req:URLRequest = new URLRequest( config_model.userConfig.datasetUpPath + 
"/upload" );
var urlVars:URLVariables = new URLVariables();
urlVars.id = upload_model.fileID;
urlVars.username = config_model.userConfig.username;
urlVars.password = config_model.userConfig.password;
req.data = urlVars;  
req.method = URLRequestMethod.POST;




upload_model.artworkFileRef.upload( req );




Bjorn.


On 27/04/2007, at 7:38 AM, Dimitrios Gianninas wrote:




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.





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


 

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

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilé

[flexcoders] Re: Will ECMAScript ever support abstract classes?

2007-04-26 Thread ben.clinkinbeard
Thanks Matt, I wasn't able to find any real discussion of abstract
support but I will take your word for it. :) I assume something like
that would only be integrated in a major (AS4) release?

Thanks again,
Ben


--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> You can see an export of the Wiki which contains a lot of these
> discussions here: http://developer.mozilla.org/es4/
>  
> Both overloading and abstract :-)
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Thursday, April 26, 2007 1:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Will ECMAScript ever support abstract classes?
> 
> 
> 
> I've found myself wishing we had them on multiple occasions, so I am
> just wondering if anyone in the know can tell me if its been
> proposed/considered/denied.
> 
> Thanks,
> Ben
>




RE: [flexcoders] Re: FF and Java sessions

2007-04-26 Thread Dimitrios Gianninas
using WebLogic 8.1SP3 and I do have url rewriting turned on ( we are also in a 
cluster):
 


URLRewritingEnabled

true



 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul 
DeCoursey
Sent: Thursday, April 26, 2007 9:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FF and Java sessions



I have had this same issue and in some cases I was able to get it to
share the session when I make a get call first and then use the same
URLRequest for the upload. This didn't work for me when I was
uploading to a server different than the server the app was served
from. What I did in that case was basically the same except that the
first request would get a token that I would add to the upload
request. My upload processing servlet then would ignore sessions and
handle the upload based on the token. These tokens would then expire
after a a short time so they couldn't be exploited. We would do other
checks to make sure the remote was the same for both requests as well. 

I don't think this is the best solution however, but it works.

Just to rule it out, what server container are you using? Make sure
that URL rewriting is allowed for session management. I know that
WebSphere does not have this enabled by default. I think that tomcat
and JBoss both do, but you should check. URL rewriting is the method
used to get the session from the url.

Paul

--- In flexcoders@yahoogroups.com  , Bjorn 
Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> Dimitrios,
> 
> I actually get the same JSESSIONID value when i make an upload 
> request to a servlet.
> Although i am making a POST request and send vars via the 
> URLVariables object.
> 
> example:
> var req:URLRequest = new URLRequest 
> ( config_model.userConfig.datasetUpPath + "/upload" );
> var urlVars:URLVariables = new URLVariables();
> urlVars.id = upload_model.fileID;
> urlVars.username = config_model.userConfig.username;
> urlVars.password = config_model.userConfig.password;
> req.data = urlVars;
> req.method = URLRequestMethod.POST;
> 
> upload_model.artworkFileRef.upload( req );
> 
> 
> Bjorn.
> 
> 
> On 27/04/2007, at 7:38 AM, Dimitrios Gianninas wrote:
> 
> >
> > 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.
> >
> >
> > 
> 
> Regards,
> 
> Bjorn Schultheiss
> Senior Developer
> 
> 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  
> 
> ((Thi

Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-26 Thread Jeffry Houser

  I think this is true for many enterprises.  Not true for a lot of 
developers.

At 09:41 PM 4/26/2007, Bjorn Schultheiss wrote:

>Think again.
>
>
>
>On 27/04/2007, at 11:26 AM, mvbaffa wrote:
>
>>Everybody uses Windows, almost all the workstations are windows. Macs
>>have IE working OK.



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 
Connecticut Macromedia User Group: 



[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-26 Thread mvbaffa
I beleive that Adobe wants to increase its participation in 
the software development market. .NET is very good and its number of 
developers is huge. That's why they should not be fogotten. 

This at least is naive.

Adobe has one thing that Microsoft does not have, FLASH. This is the 
key to success if it is well conducted. 

I do not care about politics. I really do not care which is the winner 
Microsoft or Adobe. The winner will be the one that can deploy good and 
affordable products.

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss 
<[EMAIL PROTECTED]> wrote:
>
> Think again.
> 
> 
> 
> On 27/04/2007, at 11:26 AM, mvbaffa wrote:
> 
> > Everybody uses Windows, almost all the workstations are windows. 
Macs
> > have IE working OK.
>




Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-26 Thread Bjorn Schultheiss

Think again.



On 27/04/2007, at 11:26 AM, mvbaffa wrote:


Everybody uses Windows, almost all the workstations are windows. Macs
have IE working OK.





[flexcoders] Re: NetConnection.Connect.Failed

2007-04-26 Thread arokyzxc
ye ,the typically or normally RTMP URL would looks more like this :
rtmp://myserver:1935/myapplicaton/myappinstance ,
for the specific localhost server would be like this:
rtmp://localhost:1935/myapplication/myappinstance, but it can also
written :
rtmp:/myapplication/myappinstance  , because the format of RTMP URL was
rtmp:[//server][:port]/application[/instance].
This problem really gave me headache for a few days ,why my application
can not
talk to FMS server ,but example downloaded form adobe site can .My
application
was very like example ,except some little  personal custom .
Can somebody help me ??? Thanks a lot .

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> Can you give me the URL to that specific FMS example?
>
> That nc.connect URL looks a little odd. Is your server name really
> tutorial_hello, or did you just remove this information for the
purposes
> of posting to this forum?
>
> Typically, I'd expect an RTMP URL to look more like this:
> rtmp://myserver:1935/myapplicaton/myroom
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of arokyzxc
> Sent: Wednesday, April 25, 2007 3:53 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: NetConnection.Connect.Failed
>
>
>
> I download fms example from adobe site, it works fine that sucessfully
> connected FMS server.but it didn't work that i wrote my codes followed
> exmaple tutorial, it always reports "connect failed" .I can see
connects
> number was increased when i run my app in admin console.
> I wrote codes in Flex Builder, named HelloFms.mxml.But i wondering
> whether i should write fla file,instead of mxml file ? The error
> (NetConnection.Connect.Failed) does matter with this ?? how can i
> establish my work environment ???
> here is my client-side codes: helloFms.mxml
>
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="absolute">
> 
> 
> 
>
>  click="connection()"/>
> 
>
> 
>
> here is server-side codes: main.asc
> application.onConnect = function(p_client,text) {
> application.acceptConnection(p_client);
> //text handler
> }
> Any help would be appreciate .
>




[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-26 Thread mvbaffa
Everybody uses Windows, almost all the workstations are windows. Macs 
have IE working OK. The better solution was a cross plataform 
solution, that's why I've been working with Flex.

I expected, when I downloaded the alpha version of Flex 2.0, that at 
this moment Adobe would already havea .NET solution. But this it not 
true.

So maybe, and just maybe, it´s better to have a IE solution supported 
by a big company, like Microsoft, than to deploy an application 
constructed with Open Source solutions.

I would say that some of this Open Source solutions a very good, 
like, Fluorine, very well conducted by Zoltan. But what we need is a 
solution supported by another big company like Adobe.


--- In flexcoders@yahoogroups.com, "Nick Collins" <[EMAIL PROTECTED]> 
wrote:
>
> How will they become a "true" competitor when as I understand it, 
the XBAPs
> really only work in IE, so the whole cross-platform notion goes out 
the
> window, doesn't it?
> 
> I think that WPF definitely has it's place... on the windows 
desktop. It is
> my opinion that it will be huge in making windows applications more 
rich and
> friendly experiences, but for now at least, I don't see it making 
the same
> headway in online applications.
> 
> On 4/23/07, mvbaffa <[EMAIL PROTECTED]> wrote:
> >
> >   I would like to remember that Windows Communication Foundation 
has
> > duplex, or callback services. That allows the server notify the
> > clients of any server events. Sounds like FDS don't you think ???
> >
> > And It's free !
> >
> > FDS is still more easy to use and more complete. But WCF is 
getting
> > there.
> >
> > When Microsoft solves the restrictions for the XBAP sandbox, XAML
> > Browser applications will be a true competitor of Flex.
> >
> > --- In flexcoders@yahoogroups.com , "dorkie
> > dork from dorktown"
> >
> >  wrote:
> > >
> > > you wrote,
> > > How many enterprise / companies do you know are shopping around 
for
> > > electronic forms built in PDF vs SAAS solutions? PDF is a danger
> > in some
> > > organisations, it's something they want to put as much distance
> > away from as
> > > possible and prefer to leave them buried in the Document 
Management
> > > Solution(s). I'm not saying it's not worth the persuit (I think
> > MSFT has
> > > some stuff in this space as well, forgive me as I've not cared 
to
> > look into
> > > what they are) but do so *NOT* at the expense of FLEX/RIA
> > development
> > > world-wide.
> > >
> > > that's what i'm talking about! there is a goal here that i 
thought
> > Flex/RIA
> > > was trying to address. i thought that was to make development 
and
> > developers
> > > lives easier and add new and necessary features to progress 
that.
> > >
> > > i love flex. it is an amazing vehicle but i think we need to 
get the
> > > foundation built. the flex 2 framework is part of the 
foundation.
> > the data
> > > services adapters on the server need to be part of that 
foundation.
> > at least
> > > basic amf remoting deserializers / classes. half the benefit of
> > flex is the
> > > data communications. client side *is* only half the application.
> > >
> > > flex builder - reasonably priced
> > > flex sdk - free (great for mass adoption)
> > > flex data services - out of reach for mass adoption of flex
> > >
> > > IMO that is the reason people would shop around to another 
solution.
> > >
> > > i don't see Silverlight's path in this market. if it does have
> > something out
> > > of the box it will have a huge advantage.
> > >
> > >
> > > On 4/21/07, Scott Barnes  wrote:
> > > >
> > > > Paul,
> > > >
> > > > How many enterprise / companies do you know are shopping 
around
> > for
> > > > electronic forms built in PDF vs SAAS solutions? PDF is a 
danger
> > in some
> > > > organisations, it's something they want to put as much 
distance
> > away from as
> > > > possible and prefer to leave them buried in the Document
> > Management
> > > > Solution(s). I'm not saying it's not worth the persuit (I 
think
> > MSFT has
> > > > some stuff in this space as well, forgive me as I've not 
cared to
> > look into
> > > > what they are) but do so *NOT* at the expense of FLEX/RIA
> > development
> > > > world-wide.
> > > >
> > > > 2002 RIA Theory was written down, people bought it (I for one,
> > hey he also
> > > > was the brains behind CF, so I owe my mortgage to his last 
idea,
> > so figured
> > > > he'd be worth the second). It's 2007 and RIA is supposed to be
> > bigger! Yet,
> > > > isn't as widespread.
> > > >
> > > > So, Microsoft are looking to give developers access to three
> > tiers of User
> > > > Experience through a more mature approach that goes beyond the
> > runtime stck
> > > > with a focus on the developers initially, get them on firm
> > footing, then go
> > > > look at the higher ends of town as by this point developers, 
whom
> > are just
> > > > as important, have validated the substance of the technology 
on
> > merit.
> > > >
> > > > Good Experience
> > > > AJAX / HTML / CSS
>

[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-26 Thread mvbaffa
FDS Express is free provided you use for one application per server 
and the server has only one CPU. 

This is not exactly what I would call free. In fact it seems to me 
that FDS Express was delivered this way to provide a way to develop 
and test applications, which is very good. 

With this kind of license agreement it can not be used in a 
production systems. Because if you need to upgrade your server you 
would pass from zero do US 6K. Or even if you use the same server and 
has two Flex application hosted you would be charged the same way.

The "Big account" maketing and commercial strategy of Adobe is very 
dangerous. Software is tipically constructed by small/medium companies
they are the ones that make things run. 

Remember IBM and its very good products. IBM is mainly devoted to big 
accounts, because of Mainframes, of course. They tried to transport 
this filosophy to Software, we all know what happened.

I hope Adobe knows what it is doing. If they are wrong we will loose 
Flex.


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Monday 23 Apr 2007, mvbaffa wrote:
> > And It's free !
> 
> Isn't FDS Express free ?
> 
> > When Microsoft solves the restrictions for the XBAP sandbox, XAML
> > Browser applications will be a true competitor of Flex.
> 
> As long as you don't want to have small downloads. Or to work on 
Linux.
> 
> -- 
> Tom Chiverton
> Helping to widespreadedly restore turn-key supply-chains
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: One Singleton many application

2007-04-26 Thread nxzone
My getInsttance look like this:

public static function getInstance() : TimelineModelLocator
{
  if ( modelLocator == null ){
modelLocator = new TimelineModelLocator();
  } 
  return modelLocator;
}

I found a solution, i in my first application i create a loadcontext:
#[Bindable]
#public var lc:LoaderContext= new
#LoaderContext(false,flash.system.ApplicationDomain.currentDomain);
and when i load i pass this loadercontext to the SWFLoader, it's working:
#

I think now all variable are save in the same context, same root...


--- In flexcoders@yahoogroups.com, "Brian Holmes" <[EMAIL PROTECTED]>
wrote:
>
> If you have two applications that need to share the same variable, look
> into creating a RSL where the singleton can exist safely and everyone
> knows where to go get it. 
> 
>  
> 
> If you're using an application shell and loading modules you can create
> a static class or variable to house the singleton. 
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Manish Jethani
> Sent: Wednesday, April 25, 2007 3:32 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] One Singleton many application
> 
>  
> 
> Why, this works perfectly well in flex 2.0. I don't remember if
> something changed in flex 2.01 but I don't think so.
> 
> What does your getInstance() look like?
> 
> On 4/25/07, nxzone <[EMAIL PROTECTED]  > wrote:
> > How can i have only one Singleton if i have two applications. I want
> > share the same singleton from the parent application
> >
> > Application1
> > {
> > var singleton:ShareThis = ShareThis.getInstance()
> >
> > function init(){
> > singleton.name="test"
> > SWFLoader.source="application2.swf"
> > }
> >
> > }
> > -
> > Application2
> > {
> > var singleton:ShareThis = ShareThis.getInstance()
> >
> > function init(){
> > trace(singleton.name) // give null
> > }
> >
> > }
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> 
>  
> 
> 
> 
> ***
> The information in this e-mail is confidential and intended solely
for the individual or entity to whom it is addressed.  If you have
received this e-mail in error please notify the sender by return
e-mail delete this e-mail and refrain from any disclosure or action
based on the information.
> ***
>




[flexcoders] Re: FF and Java sessions

2007-04-26 Thread Paul DeCoursey
I have had this same issue and in some cases I was able to get it to
share the session when I make a get call first and then use the same
URLRequest for the upload. This didn't work for me when I was
uploading to a server different than the server the app was served
from. What I did in that case was basically the same except that the
first request would get a token that I would add to the upload
request.  My upload processing servlet then would ignore sessions and
handle the upload based on the token.  These tokens would then expire
after a a short time so they couldn't be exploited.  We would do other
checks to make sure the remote was the same for both requests as well. 

I don't think this is the best solution however, but it works.

Just to rule it out, what server container are you using?  Make sure
that URL rewriting is allowed for session management. I know that
WebSphere does not have this enabled by default.  I think that tomcat
and JBoss both do, but you should check.  URL rewriting is the method
used to get the session from the url.

Paul


--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> Dimitrios,
> 
> I actually get the same JSESSIONID value when i make an upload  
> request to a servlet.
> Although i am making a POST request and send vars via the  
> URLVariables object.
> 
> example:
> var req:URLRequest = new URLRequest 
> ( config_model.userConfig.datasetUpPath + "/upload" );
> var urlVars:URLVariables = new URLVariables();
> urlVars.id = upload_model.fileID;
> urlVars.username = config_model.userConfig.username;
> urlVars.password = config_model.userConfig.password;
> req.data = urlVars;
> req.method = URLRequestMethod.POST;
>   
> upload_model.artworkFileRef.upload( req );
> 
> 
> Bjorn.
> 
> 
> On 27/04/2007, at 7:38 AM, Dimitrios Gianninas wrote:
> 
> >
> > 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.
> >
> >
> > 
> 
> Regards,
> 
> Bjorn Schultheiss
> Senior Developer
> 
> 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] Re: Click through a Container

2007-04-26 Thread Claudia Barnal

Yep, that did the trick...

Thanks Juan!

On 4/26/07, scalenine <[EMAIL PROTECTED]> wrote:


  Try this:


http://www.adobe.com/2006/mxml";
layout="absolute">






The trick is setting mouseEnabled="false" on the Canvas.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com , "Claudia
Barnal" <[EMAIL PROTECTED]> wrote:
>
> Hi Gordon,
>
> I do need as much interactivity as possible :)
>
> Isn't there something like turn shield on or off? I noticed that if you
> don't define a background color or alpha, you can interact with the
button.
>
> As for the actual WHY question... the answer is: The designer wants it.
> It is really not just one button under the translucent piece... it
is a part
> of the application, and the button and other controls happens to be
right
> there.
>
> Thanks,
> Claudia
>
> On 4/26/07, Gordon Smith <[EMAIL PROTECTED]> wrote:
> >
> > I don't think this is easy to do. How much interactivity with the
> > Button do you actually need? When you roll over the button, do you
need it
> > to highlight? When you click, do you need the button to depress?
Or do you
> > just need the button's click handler to execute?
> >
> > And I'm curious... why do you need to have a translucent Canvas over a
> > Button?
> >
> > - Gordon
> >
> > --
> > *From:* flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com ] *On
> > Behalf Of *Claudia Barnal
> > *Sent:* Thursday, April 26, 2007 3:30 PM
> > *To:* flexcoders@yahoogroups.com 
> > *Subject:* [flexcoders] Click through a Container
> >
> > Hi,
> >
> > How can I click through a Container (Canvas in my case) that has a
> > backgroundColor set and a 0.2 backgroundAlpha.
> >
> > I want to be able to interact with a button that is under the
Container.
> >
> > Thanks,
> > Claudia
> >
> >
> >
>

 



RE: [flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Peter Farland

You can listen at three levels...

 
1. At the service level...
 
remoteObject.addEventListener(ResultEvent.RESULT, resultHandler);
remoteObject.addEventListener(FaultEvent.FAULT, faultHandler);
 
 

2. At the operation/method level...
 
remoteMethod.addEventListener(ResultEvent.RESULT, resultHandler);
remoteMethod.addEventListener(FaultEvent.FAULT, faultHandler);
 


3. At the invocation level...

var asyncToken:AsyncToken = remoteMethod.send();
var responder:IResponder = new Responder(resultHandler, faultHandler);
asyncToken.addResponder(responder);

(You could also bind to the token.result property, but this doesn't help
with faults).





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of hank williams
Sent: Thursday, April 26, 2007 8:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: accessing amf3 remote services
using netConnection instead of removteObject



Mark,

I spoke before I tested, which is always a mistake. I realized I
am not sure, in this scenario, how to set up the event handlers for the
remoteObject in this scenario.

Thanks
Hank


On 4/26/07, Mark Piller <[EMAIL PROTECTED]
 > wrote: 

Hey Hank,

I know you can invoke a remote object and pass the args
in an array.
We just did this very thing in our data management
implementation.
Here's some reference code:

// create remote object. 
// notice the placeholder for the DESTINATION_NAME
var channelSet:ChannelSet = new ChannelSet();
var channel:Channel = ServerConfig.getChannel( "my-amf"
);
channelSet.addChannel(channel);
var remoteObject:RemoteObject = new RemoteObject(
DESTINATION_NAME );

remoteObject.channelSet = channelSet;

var remoteMethod:AbstractOperation;
// get a reference to the operation. 
remoteMethod=remoteObject.getOperation(
METHOD_YOU_NEED_TO_INVOKE );
// set the arguments. Notice it is an array
remoteMethod.arguments = args;
// invoke the function, get asyncToken
var asyncToken:AsyncToken = remoteMethod.send();

Hope this helps. Let me know if I am not answering your
question :)

Thanks,
Mark

--- In flexcoders@yahoogroups.com
 , "hank williams" <[EMAIL PROTECTED]>
wrote:
>
> Hey Mark,
> 
> No I am really just trying to create a very compact
replacement for
> remoteObject. I want to create a single function that
can do
everything that
> remoteObject does with instantiation setting
destinations and
listeners etc.
> The problem is that actually invoking the remote
function cant be
done with
> an args array with remote object.
> 
> The reason I want to do all of this is to bottleneck
all remoting
calls in
> this library I am building in one place. It is being
ported to an
alternate
> platform and device and all the remoting stuff is
going to have to be
> swapped out so I want to have it exist in one place
and have all the
pieces
> of the code that need it to use this one routine.
Because of the
args issue
> above remoteObject doesnt lend itself to this
strategy.
> 
> Hank
> 
> On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:
> >
> > Hi Hank,
> >
> > Is the end goal to route the invocation via RTMP?
> >
> > Cheers,
> > Mark
> >
> > --- In flexcoders@yahoogroups.com
  ,


"hank
> > williams"  wrote:
> > >
> > > Thanks Sam!
> > >
> > > One question. Is there any way to use the
"destination" concept
since I
> > > already have all of that defined on the FDS/Server
side of things?
> > >
> > > Thanks
> > > Hank
> > >
> > > On 4/26/07, Samuel R. Neff  wrote:
> > > >
> > > >

Re: [flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Mark,

I spoke before I tested, which is always a mistake. I realized I am not
sure, in this scenario, how to set up the event handlers for the
remoteObject in this scenario.

Thanks
Hank

On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:


  Hey Hank,

I know you can invoke a remote object and pass the args in an array.
We just did this very thing in our data management implementation.
Here's some reference code:

// create remote object.
// notice the placeholder for the DESTINATION_NAME
var channelSet:ChannelSet = new ChannelSet();
var channel:Channel = ServerConfig.getChannel( "my-amf" );
channelSet.addChannel(channel);
var remoteObject:RemoteObject = new RemoteObject( DESTINATION_NAME );

remoteObject.channelSet = channelSet;

var remoteMethod:AbstractOperation;
// get a reference to the operation.
remoteMethod=remoteObject.getOperation( METHOD_YOU_NEED_TO_INVOKE );
// set the arguments. Notice it is an array
remoteMethod.arguments = args;
// invoke the function, get asyncToken
var asyncToken:AsyncToken = remoteMethod.send();

Hope this helps. Let me know if I am not answering your question :)

Thanks,
Mark

--- In flexcoders@yahoogroups.com , "hank
williams" <[EMAIL PROTECTED]> wrote:
>
> Hey Mark,
>
> No I am really just trying to create a very compact replacement for
> remoteObject. I want to create a single function that can do
everything that
> remoteObject does with instantiation setting destinations and
listeners etc.
> The problem is that actually invoking the remote function cant be
done with
> an args array with remote object.
>
> The reason I want to do all of this is to bottleneck all remoting
calls in
> this library I am building in one place. It is being ported to an
alternate
> platform and device and all the remoting stuff is going to have to be
> swapped out so I want to have it exist in one place and have all the
pieces
> of the code that need it to use this one routine. Because of the
args issue
> above remoteObject doesnt lend itself to this strategy.
>
> Hank
>
> On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:
> >
> > Hi Hank,
> >
> > Is the end goal to route the invocation via RTMP?
> >
> > Cheers,
> > Mark
> >
> > --- In flexcoders@yahoogroups.com 
,

"hank
> > williams"  wrote:
> > >
> > > Thanks Sam!
> > >
> > > One question. Is there any way to use the "destination" concept
since I
> > > already have all of that defined on the FDS/Server side of things?
> > >
> > > Thanks
> > > Hank
> > >
> > > On 4/26/07, Samuel R. Neff  wrote:
> > > >
> > > >
> > > > It's not well documented, but basically you create a
> > NetConnection, set
> > > > the
> > > > encoding, and run NetConnection.call() where the first param is
> > the fully
> > > > qualified class and method name and remaining params are the
params to
> > > > pass
> > > > on to the server side method.
> > > >
> > > > See classes below (watch wrapping).
> > > >
> > > > HTH,
> > > >
> > > > Sam
> > > >
> > > >
> > > > ---
> > > > We're Hiring! Seeking a passionate developer to join our team
building
> > > > Flex
> > > > based products. Position is in the Washington D.C. metro area. If
> > > > interested
> > > > contact careers@ 
> >
> > > >
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.*;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.events.ResultEvent;
> > > >
> > > > public class RemotingServiceBase extends EventDispatcher
> > > > {
> > > > private var _connection:NetConnection;
> > > > private var _remoteClassName:String;
> > > >
> > > > public function RemotingServiceBase(remoteClassName:String,
> > > > encoding:uint = 3) {
> > > >
> > > > _remoteClassName = remoteClassName;
> > > >
> > > > _connection = new NetConnection();
> > > > _connection.objectEncoding = encoding;
> > > > _connection.connect(URLInfo.instance.gatewayUrl);
> > > > }
> > > >
> > > > protected function callService(method:String,
> > > > eventPrefix:String, responder:Function, fault:Function, ...
> > > > rest):AsyncToken
> > > > {
> > > >
> > > > var token:AsyncToken = new AsyncToken(null);
> > > >
> > > > var r:DispatchingResponder = new
> > > > DispatchingResponder(
> > > >
> > > > this,
> > > >
> > > > eventPrefix,
> > > >
> > > > token,
> > > >
> > > > responder,
> > > >
> > > > fault);
> > > >
> > > >
> > > > var a:Array = new Array(rest.length + 2);
> > > > a[0] = _remoteClassName + "." + method;
> > > > a[1] = r;
> > > > var i:uint = 2;
> > > > for each(var o:Object in rest) {
> > > > a[i++] = o;
> > > > }
> > > > _connection.call.apply(_connection, a);
> > > > return token;
> > > > }
> > > >
> > > > }
> > > > }
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.Responder;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.events.ResultEvent;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.events.FaultEvent

[flexcoders] Re: Click through a Container

2007-04-26 Thread scalenine
Try this:


http://www.adobe.com/2006/mxml";
layout="absolute">






The trick is setting mouseEnabled="false" on the Canvas.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com, "Claudia Barnal" <[EMAIL PROTECTED]> wrote:
>
> Hi Gordon,
> 
> I do need as much interactivity as possible :)
> 
> Isn't there something like turn shield on or off? I noticed that if you
> don't define a background color or alpha, you can interact with the
button.
> 
> As for the actual WHY question... the answer is: The designer wants it.
> It is really not just one button under the translucent piece... it
is a part
> of the application, and the button and other controls happens to be
right
> there.
> 
> Thanks,
> Claudia
> 
> On 4/26/07, Gordon Smith <[EMAIL PROTECTED]> wrote:
> >
> >I don't think this is easy to do. How much interactivity with the
> > Button do you actually need? When you roll over the button, do you
need it
> > to highlight? When you click, do you need the button to depress?
Or do you
> > just need the button's click handler to execute?
> >
> > And I'm curious... why do you need to have a translucent Canvas over a
> > Button?
> >
> > - Gordon
> >
> >  --
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Claudia Barnal
> > *Sent:* Thursday, April 26, 2007 3:30 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Click through a Container
> >
> >  Hi,
> >
> > How can I click through a Container (Canvas in my case) that has a
> > backgroundColor set and a 0.2 backgroundAlpha.
> >
> > I want to be able to interact with a button that is under the
Container.
> >
> > Thanks,
> > Claudia
> >
> >  
> >
>




[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread scalenine
So like this (just in case someone is looking for a solution to the
same problem):


http://www.adobe.com/2006/mxml";
layout="absolute">


TabNavigator{
tabStyleName: "tabs";
horizontalGap:0;
}
.tabs{
borderColor:#ff;
fillColors: #7bd3f7, #7bd3f7;
fillAlphas: 1,1;
highlightAlphas: .5,0;
}










--- In flexcoders@yahoogroups.com, "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
> 
> Thanks this was very helpful. I got rid of the tiny gap, by setting the
> tab navigators bordercolor and the tabDetails bordercolor to the same as
> the background color of the container... looks perfect. Thanks again -
> Iko
> 
> 
> --- In flexcoders@yahoogroups.com, "scalenine"  wrote:
> >
> > Try this:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> >  > resizeToContent="true" cornerRadius="10" paddingTop="0"
> > paddingRight="10" paddingBottom="10">
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> > 
> > 
> >
> > I just added a white fill color and some padding to the bottom and top
> > of the tab navigator. The only thing is a small gap in the border on
> > the left where the TabNav corner curves.
> >
> > The other thing you could do is create an image to use as the
> > background with some 9-slice proerties on it that has 3 rounded
> > corners and one not.
> >
> > Or check out some custom border components out there that might help
> > you get the effect your looking for.
> >
> > Juan
> > scalenine.com
> >
> > --- In flexcoders@yahoogroups.com, "iko_knyphausen" iko@ wrote:
> > >
> > >
> > > Hello,
> > >
> > > I am trying to use rounded corners (cornerRadius) on a tab
> navigator.
> > > Unfortunately it also rounds the upper left corner of the first
> canvas
> > > which makes it unsightly. One could use paddingLeft to move the tabs
> a
> > > little to the right, but that doesn't look to great either. One
> could
> > > "underlay" the tab navigator at the upper left corner with a
> > > mini-canvas, but that only works, if you have no border. I need a
> solid
> > > border...
> > >
> > > Has anyone come up with a good solution for this?
> > >
> > > Thanks a mill..
> > >
> >
>




Re: [flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Mark,

Thanks so much. After no one answered earlier in the day I figured there was
just no way to do this. But this is much better than using netConnection.

So get some sleep you midnightcoder :)

Hank

On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:


  Hey Hank,

I know you can invoke a remote object and pass the args in an array.
We just did this very thing in our data management implementation.
Here's some reference code:

// create remote object.
// notice the placeholder for the DESTINATION_NAME
var channelSet:ChannelSet = new ChannelSet();
var channel:Channel = ServerConfig.getChannel( "my-amf" );
channelSet.addChannel(channel);
var remoteObject:RemoteObject = new RemoteObject( DESTINATION_NAME );

remoteObject.channelSet = channelSet;

var remoteMethod:AbstractOperation;
// get a reference to the operation.
remoteMethod=remoteObject.getOperation( METHOD_YOU_NEED_TO_INVOKE );
// set the arguments. Notice it is an array
remoteMethod.arguments = args;
// invoke the function, get asyncToken
var asyncToken:AsyncToken = remoteMethod.send();

Hope this helps. Let me know if I am not answering your question :)

Thanks,
Mark

--- In flexcoders@yahoogroups.com , "hank
williams" <[EMAIL PROTECTED]> wrote:
>
> Hey Mark,
>
> No I am really just trying to create a very compact replacement for
> remoteObject. I want to create a single function that can do
everything that
> remoteObject does with instantiation setting destinations and
listeners etc.
> The problem is that actually invoking the remote function cant be
done with
> an args array with remote object.
>
> The reason I want to do all of this is to bottleneck all remoting
calls in
> this library I am building in one place. It is being ported to an
alternate
> platform and device and all the remoting stuff is going to have to be
> swapped out so I want to have it exist in one place and have all the
pieces
> of the code that need it to use this one routine. Because of the
args issue
> above remoteObject doesnt lend itself to this strategy.
>
> Hank
>
> On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:
> >
> > Hi Hank,
> >
> > Is the end goal to route the invocation via RTMP?
> >
> > Cheers,
> > Mark
> >
> > --- In flexcoders@yahoogroups.com 
,

"hank
> > williams"  wrote:
> > >
> > > Thanks Sam!
> > >
> > > One question. Is there any way to use the "destination" concept
since I
> > > already have all of that defined on the FDS/Server side of things?
> > >
> > > Thanks
> > > Hank
> > >
> > > On 4/26/07, Samuel R. Neff  wrote:
> > > >
> > > >
> > > > It's not well documented, but basically you create a
> > NetConnection, set
> > > > the
> > > > encoding, and run NetConnection.call() where the first param is
> > the fully
> > > > qualified class and method name and remaining params are the
params to
> > > > pass
> > > > on to the server side method.
> > > >
> > > > See classes below (watch wrapping).
> > > >
> > > > HTH,
> > > >
> > > > Sam
> > > >
> > > >
> > > > ---
> > > > We're Hiring! Seeking a passionate developer to join our team
building
> > > > Flex
> > > > based products. Position is in the Washington D.C. metro area. If
> > > > interested
> > > > contact careers@ 
> >
> > > >
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.*;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.events.ResultEvent;
> > > >
> > > > public class RemotingServiceBase extends EventDispatcher
> > > > {
> > > > private var _connection:NetConnection;
> > > > private var _remoteClassName:String;
> > > >
> > > > public function RemotingServiceBase(remoteClassName:String,
> > > > encoding:uint = 3) {
> > > >
> > > > _remoteClassName = remoteClassName;
> > > >
> > > > _connection = new NetConnection();
> > > > _connection.objectEncoding = encoding;
> > > > _connection.connect(URLInfo.instance.gatewayUrl);
> > > > }
> > > >
> > > > protected function callService(method:String,
> > > > eventPrefix:String, responder:Function, fault:Function, ...
> > > > rest):AsyncToken
> > > > {
> > > >
> > > > var token:AsyncToken = new AsyncToken(null);
> > > >
> > > > var r:DispatchingResponder = new
> > > > DispatchingResponder(
> > > >
> > > > this,
> > > >
> > > > eventPrefix,
> > > >
> > > > token,
> > > >
> > > > responder,
> > > >
> > > > fault);
> > > >
> > > >
> > > > var a:Array = new Array(rest.length + 2);
> > > > a[0] = _remoteClassName + "." + method;
> > > > a[1] = r;
> > > > var i:uint = 2;
> > > > for each(var o:Object in rest) {
> > > > a[i++] = o;
> > > > }
> > > > _connection.call.apply(_connection, a);
> > > > return token;
> > > > }
> > > >
> > > > }
> > > > }
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.Responder;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.events.ResultEvent;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.e

[flexcoders] Re: Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread ronnlixx
can you post the code?




Re: [flexcoders] FF and Java sessions

2007-04-26 Thread Bjorn Schultheiss

Dimitrios,

I actually get the same JSESSIONID value when i make an upload  
request to a servlet.
Although i am making a POST request and send vars via the  
URLVariables object.


example:
var req:URLRequest = new URLRequest 
( config_model.userConfig.datasetUpPath + "/upload" );

var urlVars:URLVariables = new URLVariables();
urlVars.id = upload_model.fileID;
urlVars.username = config_model.userConfig.username;
urlVars.password = config_model.userConfig.password;
req.data = urlVars;
req.method = URLRequestMethod.POST;

upload_model.artworkFileRef.upload( req );


Bjorn.


On 27/04/2007, at 7:38 AM, Dimitrios Gianninas wrote:



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.






Regards,

Bjorn Schultheiss
Senior Developer

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




[flexcoders] problems with repeater

2007-04-26 Thread Tadas Ziemys
Hello!

I'm trying to create forum, and the best solution i could think of was
a repeater function. But i stuck with a little problem:
When i create dynamically for example Accordions canvas and in it
DataGrid i cant think of a way to assign every different DataGrid
different dataProvider. Is it somehow possible?
I can think a different solution to this problem:
To have one source for all datagrids, but to form it every time i
change Accordions canvas, but i dont know how to know which one is
selected?

Any tips or suggestions? :)

Sincerely,
Tadas


[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Just went to your site... nice! Your "Obsidian" theme would benefit from
the background border color... Cheers

--- In flexcoders@yahoogroups.com, "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
>
> Thanks this was very helpful. I got rid of the tiny gap, by setting
the
> tab navigators bordercolor and the tabDetails bordercolor to the same
as
> the background color of the container... looks perfect. Thanks again -
> Iko
>
>
> --- In flexcoders@yahoogroups.com, "scalenine" juan@ wrote:
> >
> > Try this:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> >  > resizeToContent="true" cornerRadius="10" paddingTop="0"
> > paddingRight="10" paddingBottom="10">
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> >  > backgroundColor="#ff"/>
> > 
> > 
> >
> > I just added a white fill color and some padding to the bottom and
top
> > of the tab navigator. The only thing is a small gap in the border on
> > the left where the TabNav corner curves.
> >
> > The other thing you could do is create an image to use as the
> > background with some 9-slice proerties on it that has 3 rounded
> > corners and one not.
> >
> > Or check out some custom border components out there that might help
> > you get the effect your looking for.
> >
> > Juan
> > scalenine.com
> >
> > --- In flexcoders@yahoogroups.com, "iko_knyphausen" iko@ wrote:
> > >
> > >
> > > Hello,
> > >
> > > I am trying to use rounded corners (cornerRadius) on a tab
> navigator.
> > > Unfortunately it also rounds the upper left corner of the first
> canvas
> > > which makes it unsightly. One could use paddingLeft to move the
tabs
> a
> > > little to the right, but that doesn't look to great either. One
> could
> > > "underlay" the tab navigator at the upper left corner with a
> > > mini-canvas, but that only works, if you have no border. I need a
> solid
> > > border...
> > >
> > > Has anyone come up with a good solution for this?
> > >
> > > Thanks a mill..
> > >
> >
>





[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Thanks this was very helpful. I got rid of the tiny gap, by setting the
tab navigators bordercolor and the tabDetails bordercolor to the same as
the background color of the container... looks perfect. Thanks again -
Iko


--- In flexcoders@yahoogroups.com, "scalenine" <[EMAIL PROTECTED]> wrote:
>
> Try this:
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  resizeToContent="true" cornerRadius="10" paddingTop="0"
> paddingRight="10" paddingBottom="10">
>  backgroundColor="#ff"/>
>  backgroundColor="#ff"/>
>  backgroundColor="#ff"/>
>  backgroundColor="#ff"/>
> 
> 
>
> I just added a white fill color and some padding to the bottom and top
> of the tab navigator. The only thing is a small gap in the border on
> the left where the TabNav corner curves.
>
> The other thing you could do is create an image to use as the
> background with some 9-slice proerties on it that has 3 rounded
> corners and one not.
>
> Or check out some custom border components out there that might help
> you get the effect your looking for.
>
> Juan
> scalenine.com
>
> --- In flexcoders@yahoogroups.com, "iko_knyphausen" iko@ wrote:
> >
> >
> > Hello,
> >
> > I am trying to use rounded corners (cornerRadius) on a tab
navigator.
> > Unfortunately it also rounds the upper left corner of the first
canvas
> > which makes it unsightly. One could use paddingLeft to move the tabs
a
> > little to the right, but that doesn't look to great either. One
could
> > "underlay" the tab navigator at the upper left corner with a
> > mini-canvas, but that only works, if you have no border. I need a
solid
> > border...
> >
> > Has anyone come up with a good solution for this?
> >
> > Thanks a mill..
> >
>





Re: [flexcoders] Error #1034: Type Coercion failed

2007-04-26 Thread Michael Wills
Would it help to make your HTTPService resultFormat "e4x" and not use 
mx:Model for categorienAC, but rather use an XMLList?








Hope that helps,

Michael

rdeijkers wrote:


I'm trying to fill a Tile with the contents of an xml file. This is my
mxml code:


http://www.adobe.com/2006/mxml 
"

layout="absolute" width="100%" height="100%" backgroundAlpha="0"
applicationComplete="srv.send();" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
















My XML looks like this:




test

 
Arizona

test

 
ARIZONA / GREY


 

Atrium
test

 
Avant Garde
test





I'm receiving the following error when I try to execute my code :

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.collections::[EMAIL PROTECTED] to mx.utils.ObjectProxy.
at categorie/categorie::xmlLoaded()[Z:\project\categorie.mxml:6]

Anybody an idea what's going wrong ?

Anyhelp would be greatly appreciated.

Thanks

Regards

Ries

 


Re: [flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal

Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the button.

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a part
of the application, and the button and other controls happens to be right
there.

Thanks,
Claudia

On 4/26/07, Gordon Smith <[EMAIL PROTECTED]> wrote:


   I don't think this is easy to do. How much interactivity with the
Button do you actually need? When you roll over the button, do you need it
to highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?

And I'm curious... why do you need to have a translucent Canvas over a
Button?

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Claudia Barnal
*Sent:* Thursday, April 26, 2007 3:30 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Click through a Container

 Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia

 



[flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Mark Piller
Hey Hank,

I know you can invoke a remote object and pass the args in an array.
We just did this very thing in our data management implementation.
Here's some reference code:

// create remote object. 
// notice the placeholder for the DESTINATION_NAME
var channelSet:ChannelSet = new ChannelSet();
var channel:Channel = ServerConfig.getChannel( "my-amf" );
channelSet.addChannel(channel);
var remoteObject:RemoteObject = new RemoteObject( DESTINATION_NAME );
 
remoteObject.channelSet = channelSet;

var remoteMethod:AbstractOperation;
// get a reference to the operation. 
remoteMethod=remoteObject.getOperation( METHOD_YOU_NEED_TO_INVOKE );
// set the arguments. Notice it is an array
remoteMethod.arguments = args;
// invoke the function, get asyncToken
var asyncToken:AsyncToken = remoteMethod.send();

Hope this helps. Let me know if I am not answering your question :)

Thanks,
Mark


--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> wrote:
>
> Hey Mark,
> 
> No I am really just trying to create a very compact replacement for
> remoteObject. I want to create a single function that can do
everything that
> remoteObject does with instantiation setting destinations and
listeners etc.
> The problem is that actually invoking the remote function cant be
done with
> an args array with remote object.
> 
> The reason I want to do all of this is to bottleneck all remoting
calls in
> this library I am building in one place. It is being ported to an
alternate
> platform and device and all the remoting stuff is going to have to be
> swapped out so I want to have it exist in one place and have all the
pieces
> of the code that need it to use this one routine. Because of the
args issue
> above remoteObject doesnt lend itself to this strategy.
> 
> Hank
> 
> On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:
> >
> >   Hi Hank,
> >
> > Is the end goal to route the invocation via RTMP?
> >
> > Cheers,
> > Mark
> >
> > --- In flexcoders@yahoogroups.com ,
"hank
> > williams"  wrote:
> > >
> > > Thanks Sam!
> > >
> > > One question. Is there any way to use the "destination" concept
since I
> > > already have all of that defined on the FDS/Server side of things?
> > >
> > > Thanks
> > > Hank
> > >
> > > On 4/26/07, Samuel R. Neff  wrote:
> > > >
> > > >
> > > > It's not well documented, but basically you create a
> > NetConnection, set
> > > > the
> > > > encoding, and run NetConnection.call() where the first param is
> > the fully
> > > > qualified class and method name and remaining params are the
params to
> > > > pass
> > > > on to the server side method.
> > > >
> > > > See classes below (watch wrapping).
> > > >
> > > > HTH,
> > > >
> > > > Sam
> > > >
> > > >
> > > > ---
> > > > We're Hiring! Seeking a passionate developer to join our team
building
> > > > Flex
> > > > based products. Position is in the Washington D.C. metro area. If
> > > > interested
> > > > contact careers@ 
> >
> > > >
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.*;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.events.ResultEvent;
> > > >
> > > > public class RemotingServiceBase extends EventDispatcher
> > > > {
> > > > private var _connection:NetConnection;
> > > > private var _remoteClassName:String;
> > > >
> > > > public function RemotingServiceBase(remoteClassName:String,
> > > > encoding:uint = 3) {
> > > >
> > > > _remoteClassName = remoteClassName;
> > > >
> > > > _connection = new NetConnection();
> > > > _connection.objectEncoding = encoding;
> > > > _connection.connect(URLInfo.instance.gatewayUrl);
> > > > }
> > > >
> > > > protected function callService(method:String,
> > > > eventPrefix:String, responder:Function, fault:Function, ...
> > > > rest):AsyncToken
> > > > {
> > > >
> > > > var token:AsyncToken = new AsyncToken(null);
> > > >
> > > > var r:DispatchingResponder = new
> > > > DispatchingResponder(
> > > >
> > > > this,
> > > >
> > > > eventPrefix,
> > > >
> > > > token,
> > > >
> > > > responder,
> > > >
> > > > fault);
> > > >
> > > >
> > > > var a:Array = new Array(rest.length + 2);
> > > > a[0] = _remoteClassName + "." + method;
> > > > a[1] = r;
> > > > var i:uint = 2;
> > > > for each(var o:Object in rest) {
> > > > a[i++] = o;
> > > > }
> > > > _connection.call.apply(_connection, a);
> > > > return token;
> > > > }
> > > >
> > > > }
> > > > }
> > > >
> > > > package com.atellis.rpc
> > > > {
> > > > import flash.net.Responder;
> > > > import flash.events.EventDispatcher;
> > > > import flash.events.Event;
> > > > import mx.rpc.events.ResultEvent;
> > > > import mx.rpc.AsyncToken;
> > > > import mx.rpc.events.FaultEvent;
> > > > import mx.rpc.Fault;
> > > >
> > > > public class DispatchingResponder extends Responder
> > > > {
> > > > private var _eventDispatcher:EventDispatcher;
> > > > private var _eventPrefix:String;
> > > > private var _token

RE: [flexcoders] Click through a Container

2007-04-26 Thread Gordon Smith
I don't think this is easy to do. How much interactivity with the Button
do you actually need? When you roll over the button, do you need it to
highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?
 
And I'm curious... why do you need to have a translucent Canvas over a
Button?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudia Barnal
Sent: Thursday, April 26, 2007 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Click through a Container



Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia


 


Re: [flexcoders] Re: Module GC question

2007-04-26 Thread jake247
Could you elaborate a bit more on why you think the GC hack was causing 
problems?  We're considering using it for a significant memory leak problem 
we're having ...

Thanks,

  -- Jeff Hindman

 "kyle.vanvranken" <[EMAIL PROTECTED]> wrote: 
> UPDATE: So it would seem the hack method of forcing garbage collection
> for my test was actually causing the trouble.
> 
> -
> try {
>   new LocalConnection().connect('foo');
>   new LocalConnection().connect('foo');
> } catch (e:*) {}
> -
> 
> Without that code it seems to be working nicely now. I've had a test
> app running on my machine now for a bit with a timer every couple
> seconds reloading the simple module and it appears to be working as
> intended now. I don't really understand why forcing GC was causing it
> to eat up more memory then not forcing, but I am sufficiently
> satisfied that it seems to be working.
> 



[flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal
Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia


[flexcoders] How do I load variables from a loaded swf?

2007-04-26 Thread Johannes Boyne
Hey,

my problem is this:

I have loaded a SWF(Flash9)-File in to my Flex App.
Now I want to load some variables out of the SWF-File, but I 
haven't the faintest idea how to do this on an elegant and 
performance full way.

Thanks!

Johannes


--
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: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Hey Mark,

No I am really just trying to create a very compact replacement for
remoteObject. I want to create a single function that can do everything that
remoteObject does with instantiation setting destinations and listeners etc.
The problem is that actually invoking the remote function cant be done with
an args array with remote object.

The reason I want to do all of this is to bottleneck all remoting calls in
this library I am building in one place. It is being ported to an alternate
platform and device and all the remoting stuff is going to have to be
swapped out so I want to have it exist in one place and have all the pieces
of the code that need it to use this one routine. Because of the args issue
above remoteObject doesnt lend itself to this strategy.

Hank

On 4/26/07, Mark Piller <[EMAIL PROTECTED]> wrote:


  Hi Hank,

Is the end goal to route the invocation via RTMP?

Cheers,
Mark

--- In flexcoders@yahoogroups.com , "hank
williams" <[EMAIL PROTECTED]> wrote:
>
> Thanks Sam!
>
> One question. Is there any way to use the "destination" concept since I
> already have all of that defined on the FDS/Server side of things?
>
> Thanks
> Hank
>
> On 4/26/07, Samuel R. Neff <[EMAIL PROTECTED]> wrote:
> >
> >
> > It's not well documented, but basically you create a
NetConnection, set
> > the
> > encoding, and run NetConnection.call() where the first param is
the fully
> > qualified class and method name and remaining params are the params to
> > pass
> > on to the server side method.
> >
> > See classes below (watch wrapping).
> >
> > HTH,
> >
> > Sam
> >
> >
> > ---
> > We're Hiring! Seeking a passionate developer to join our team building
> > Flex
> > based products. Position is in the Washington D.C. metro area. If
> > interested
> > contact [EMAIL PROTECTED] 

> >
> >
> > package com.atellis.rpc
> > {
> > import flash.net.*;
> > import flash.events.EventDispatcher;
> > import flash.events.Event;
> > import mx.rpc.AsyncToken;
> > import mx.rpc.events.ResultEvent;
> >
> > public class RemotingServiceBase extends EventDispatcher
> > {
> > private var _connection:NetConnection;
> > private var _remoteClassName:String;
> >
> > public function RemotingServiceBase(remoteClassName:String,
> > encoding:uint = 3) {
> >
> > _remoteClassName = remoteClassName;
> >
> > _connection = new NetConnection();
> > _connection.objectEncoding = encoding;
> > _connection.connect(URLInfo.instance.gatewayUrl);
> > }
> >
> > protected function callService(method:String,
> > eventPrefix:String, responder:Function, fault:Function, ...
> > rest):AsyncToken
> > {
> >
> > var token:AsyncToken = new AsyncToken(null);
> >
> > var r:DispatchingResponder = new
> > DispatchingResponder(
> >
> > this,
> >
> > eventPrefix,
> >
> > token,
> >
> > responder,
> >
> > fault);
> >
> >
> > var a:Array = new Array(rest.length + 2);
> > a[0] = _remoteClassName + "." + method;
> > a[1] = r;
> > var i:uint = 2;
> > for each(var o:Object in rest) {
> > a[i++] = o;
> > }
> > _connection.call.apply(_connection, a);
> > return token;
> > }
> >
> > }
> > }
> >
> > package com.atellis.rpc
> > {
> > import flash.net.Responder;
> > import flash.events.EventDispatcher;
> > import flash.events.Event;
> > import mx.rpc.events.ResultEvent;
> > import mx.rpc.AsyncToken;
> > import mx.rpc.events.FaultEvent;
> > import mx.rpc.Fault;
> >
> > public class DispatchingResponder extends Responder
> > {
> > private var _eventDispatcher:EventDispatcher;
> > private var _eventPrefix:String;
> > private var _token:AsyncToken;
> > private var _responder:Function;
> > private var _fault:Function;
> >
> > public function DispatchingResponder(
> >
> > eventDispatcher:EventDispatcher,
> >
> > eventPrefix:String,
> >
> > token:AsyncToken,
> >
> > responder:Function,
> >
> > fault:Function) {
> > super(doRelay, doFault);
> > _eventDispatcher = eventDispatcher;
> > _eventPrefix = eventPrefix;
> > _responder = responder;
> > _fault = fault;
> > _token = token;
> > }
> >
> > private function doRelay(... rest):void {
> > var event:ResultEvent = new ResultEvent(
> >
> > _eventPrefix + "Result",
> >
> > false,
> >
> > false,
> >
> > rest == null || rest.length != 1 ? rest : rest[0],
> >
> > _token,
> >
> > null);
> >
> >
> > _eventDispatcher.dispatchEvent(event);
> > if (_responder != null) {
> > _responder(event);
> > }
> > }
> >
> > private function doFault(netFault:Object):void {
> > var f:Fault;
> >
> > if(netFault) {
> > var typ:Array = netFault.type.split(".");
> >
> > f = new Fault(typ[typ.length - 1],
> > netFault.description, netFault.details);
> > } else {
> > f = new Fault("Unkown", "An error occurred
> > and no fault details are available", "Unknown");
> > }
> > var event:FaultEvent = new FaultEvent(_eventPrefix +
> > "Fault", false, false, f, _token, null);
> > _eventDispatcher.dispatchEvent(event);
> > if (_fault != null) {
> > _fault(event);
> > }
> > }
> > }
> > }
> >
> > 
> >
> > From: flexco

RE: [flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread Matt Chotin
You can see an export of the Wiki which contains a lot of these
discussions here: http://developer.mozilla.org/es4/
 
Both overloading and abstract :-)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, April 26, 2007 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Will ECMAScript ever support abstract classes?



I've found myself wishing we had them on multiple occasions, so I am
just wondering if anyone in the know can tell me if its been
proposed/considered/denied.

Thanks,
Ben



 


[flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Mark Piller
Hi Hank,

Is the end goal to route the invocation via RTMP? 

Cheers,
Mark

--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> wrote:
>
> Thanks Sam!
> 
> One question. Is there any way to use the "destination" concept since I
> already have all of that defined on the FDS/Server side of things?
> 
> Thanks
> Hank
> 
> On 4/26/07, Samuel R. Neff <[EMAIL PROTECTED]> wrote:
> >
> >
> > It's not well documented, but basically you create a
NetConnection, set
> > the
> > encoding, and run NetConnection.call() where the first param is
the fully
> > qualified class and method name and remaining params are the params to
> > pass
> > on to the server side method.
> >
> > See classes below (watch wrapping).
> >
> > HTH,
> >
> > Sam
> >
> >
> > ---
> > We're Hiring! Seeking a passionate developer to join our team building
> > Flex
> > based products. Position is in the Washington D.C. metro area. If
> > interested
> > contact [EMAIL PROTECTED] 
> >
> >
> > package com.atellis.rpc
> > {
> > import flash.net.*;
> > import flash.events.EventDispatcher;
> > import flash.events.Event;
> > import mx.rpc.AsyncToken;
> > import mx.rpc.events.ResultEvent;
> >
> > public class RemotingServiceBase extends EventDispatcher
> > {
> > private var _connection:NetConnection;
> > private var _remoteClassName:String;
> >
> > public function RemotingServiceBase(remoteClassName:String,
> > encoding:uint = 3) {
> >
> > _remoteClassName = remoteClassName;
> >
> > _connection = new NetConnection();
> > _connection.objectEncoding = encoding;
> > _connection.connect(URLInfo.instance.gatewayUrl);
> > }
> >
> > protected function callService(method:String,
> > eventPrefix:String, responder:Function, fault:Function, ...
> > rest):AsyncToken
> > {
> >
> > var token:AsyncToken = new AsyncToken(null);
> >
> > var r:DispatchingResponder = new
> > DispatchingResponder(
> >
> > this,
> >
> > eventPrefix,
> >
> > token,
> >
> > responder,
> >
> > fault);
> >
> >
> > var a:Array = new Array(rest.length + 2);
> > a[0] = _remoteClassName + "." + method;
> > a[1] = r;
> > var i:uint = 2;
> > for each(var o:Object in rest) {
> > a[i++] = o;
> > }
> > _connection.call.apply(_connection, a);
> > return token;
> > }
> >
> > }
> > }
> >
> > package com.atellis.rpc
> > {
> > import flash.net.Responder;
> > import flash.events.EventDispatcher;
> > import flash.events.Event;
> > import mx.rpc.events.ResultEvent;
> > import mx.rpc.AsyncToken;
> > import mx.rpc.events.FaultEvent;
> > import mx.rpc.Fault;
> >
> > public class DispatchingResponder extends Responder
> > {
> > private var _eventDispatcher:EventDispatcher;
> > private var _eventPrefix:String;
> > private var _token:AsyncToken;
> > private var _responder:Function;
> > private var _fault:Function;
> >
> > public function DispatchingResponder(
> >
> > eventDispatcher:EventDispatcher,
> >
> > eventPrefix:String,
> >
> > token:AsyncToken,
> >
> > responder:Function,
> >
> > fault:Function) {
> > super(doRelay, doFault);
> > _eventDispatcher = eventDispatcher;
> > _eventPrefix = eventPrefix;
> > _responder = responder;
> > _fault = fault;
> > _token = token;
> > }
> >
> > private function doRelay(... rest):void {
> > var event:ResultEvent = new ResultEvent(
> >
> > _eventPrefix + "Result",
> >
> > false,
> >
> > false,
> >
> > rest == null || rest.length != 1 ? rest : rest[0],
> >
> > _token,
> >
> > null);
> >
> >
> > _eventDispatcher.dispatchEvent(event);
> > if (_responder != null) {
> > _responder(event);
> > }
> > }
> >
> > private function doFault(netFault:Object):void {
> > var f:Fault;
> >
> > if(netFault) {
> > var typ:Array = netFault.type.split(".");
> >
> > f = new Fault(typ[typ.length - 1],
> > netFault.description, netFault.details);
> > } else {
> > f = new Fault("Unkown", "An error occurred
> > and no fault details are available", "Unknown");
> > }
> > var event:FaultEvent = new FaultEvent(_eventPrefix +
> > "Fault", false, false, f, _token, null);
> > _eventDispatcher.dispatchEvent(event);
> > if (_fault != null) {
> > _fault(event);
> > }
> > }
> > }
> > }
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
[mailto:
> > flexcoders@yahoogroups.com ] On
> > Behalf Of hank williams
> > Sent: Thursday, April 26, 2007 4:38 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] accessing amf3 remote services using
netConnection
> > instead of removteObject
> >
> >
> > Does anybody have any example on how to access amf3 remote
services, which
> > need to deal with new concepts like "destination", using a
netConnection
> > call? I am finding that remoteObject doesnt do everything I need.
> >
> > Thanks
> > Hank
> >
> >  
> >
>




[flexcoders] FF and Java sessions

2007-04-26 Thread Dimitrios Gianninas
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.
 

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

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



Re: [flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Thanks Sam!

One question. Is there any way to use the "destination" concept since I
already have all of that defined on the FDS/Server side of things?

Thanks
Hank

On 4/26/07, Samuel R. Neff <[EMAIL PROTECTED]> wrote:



It's not well documented, but basically you create a NetConnection, set
the
encoding, and run NetConnection.call() where the first param is the fully
qualified class and method name and remaining params are the params to
pass
on to the server side method.

See classes below (watch wrapping).

HTH,

Sam


---
We're Hiring! Seeking a passionate developer to join our team building
Flex
based products. Position is in the Washington D.C. metro area. If
interested
contact [EMAIL PROTECTED] 


package com.atellis.rpc
{
import flash.net.*;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;

public class RemotingServiceBase extends EventDispatcher
{
private var _connection:NetConnection;
private var _remoteClassName:String;

public function RemotingServiceBase(remoteClassName:String,
encoding:uint = 3) {

_remoteClassName = remoteClassName;

_connection = new NetConnection();
_connection.objectEncoding = encoding;
_connection.connect(URLInfo.instance.gatewayUrl);
}

protected function callService(method:String,
eventPrefix:String, responder:Function, fault:Function, ...
rest):AsyncToken
{

var token:AsyncToken = new AsyncToken(null);

var r:DispatchingResponder = new
DispatchingResponder(

this,

eventPrefix,

token,

responder,

fault);


var a:Array = new Array(rest.length + 2);
a[0] = _remoteClassName + "." + method;
a[1] = r;
var i:uint = 2;
for each(var o:Object in rest) {
a[i++] = o;
}
_connection.call.apply(_connection, a);
return token;
}

}
}

package com.atellis.rpc
{
import flash.net.Responder;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.Fault;

public class DispatchingResponder extends Responder
{
private var _eventDispatcher:EventDispatcher;
private var _eventPrefix:String;
private var _token:AsyncToken;
private var _responder:Function;
private var _fault:Function;

public function DispatchingResponder(

eventDispatcher:EventDispatcher,

eventPrefix:String,

token:AsyncToken,

responder:Function,

fault:Function) {
super(doRelay, doFault);
_eventDispatcher = eventDispatcher;
_eventPrefix = eventPrefix;
_responder = responder;
_fault = fault;
_token = token;
}

private function doRelay(... rest):void {
var event:ResultEvent = new ResultEvent(

_eventPrefix + "Result",

false,

false,

rest == null || rest.length != 1 ? rest : rest[0],

_token,

null);


_eventDispatcher.dispatchEvent(event);
if (_responder != null) {
_responder(event);
}
}

private function doFault(netFault:Object):void {
var f:Fault;

if(netFault) {
var typ:Array = netFault.type.split(".");

f = new Fault(typ[typ.length - 1],
netFault.description, netFault.details);
} else {
f = new Fault("Unkown", "An error occurred
and no fault details are available", "Unknown");
}
var event:FaultEvent = new FaultEvent(_eventPrefix +
"Fault", false, false, f, _token, null);
_eventDispatcher.dispatchEvent(event);
if (_fault != null) {
_fault(event);
}
}
}
}



From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
Behalf Of hank williams
Sent: Thursday, April 26, 2007 4:38 PM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] accessing amf3 remote services using netConnection
instead of removteObject


Does anybody have any example on how to access amf3 remote services, which
need to deal with new concepts like "destination", using a netConnection
call? I am finding that remoteObject doesnt do everything I need.

Thanks
Hank

 



RE: [flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Samuel R. Neff
 
It's not well documented, but basically you create a NetConnection, set the
encoding, and run NetConnection.call() where the first param is the fully
qualified class and method name and remaining params are the params to pass
on to the server side method.
 
See classes below (watch wrapping).
 
HTH,
 
Sam
 

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

 package com.atellis.rpc
{
import flash.net.*;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;

public class RemotingServiceBase extends EventDispatcher
{
private var _connection:NetConnection;
private var _remoteClassName:String;

public function RemotingServiceBase(remoteClassName:String,
encoding:uint = 3) {

_remoteClassName = remoteClassName;

_connection = new NetConnection();
_connection.objectEncoding = encoding;
_connection.connect(URLInfo.instance.gatewayUrl);
}

protected function callService(method:String,
eventPrefix:String, responder:Function, fault:Function, ... rest):AsyncToken
{

var token:AsyncToken = new AsyncToken(null);

var r:DispatchingResponder = new
DispatchingResponder(

this,

eventPrefix,

token,

responder,

fault);


var a:Array = new Array(rest.length + 2);
a[0] = _remoteClassName + "." + method;
a[1] = r;
var i:uint = 2;
for each(var o:Object in rest) {
a[i++] = o;
}
_connection.call.apply(_connection, a);
return token;
}

}
}




package com.atellis.rpc
{
import flash.net.Responder;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.Fault;

public class DispatchingResponder extends Responder
{
private var _eventDispatcher:EventDispatcher;
private var _eventPrefix:String;
private var _token:AsyncToken;
private var _responder:Function;
private var _fault:Function;

public function DispatchingResponder(

eventDispatcher:EventDispatcher, 

eventPrefix:String, 

token:AsyncToken,

responder:Function, 

fault:Function) {
super(doRelay, doFault);
_eventDispatcher = eventDispatcher;
_eventPrefix = eventPrefix;
_responder = responder;
_fault = fault;
_token = token;
}

private function doRelay(... rest):void {
var event:ResultEvent = new ResultEvent(

_eventPrefix + "Result", 

false, 

false, 

rest == null || rest.length != 1 ? rest : rest[0],

_token, 

null);


_eventDispatcher.dispatchEvent(event);
if (_responder != null) {
_responder(event);
}
}

private function doFault(netFault:Object):void {
var f:Fault;

if(netFault) {
var typ:Array = netFault.type.split(".");

f = new Fault(typ[typ.length - 1],
netFault.description, netFault.details);
} else {
f = new Fault("Unkown", "An error occurred
and no fault details are available", "Unknown");
}
var event:FaultEvent = new FaultEvent(_eventPrefix +
"Fault", false, false, f, _token, null);
_eventDispatcher.dispatchEvent(event);
if (_fault != null) {
_fault(event);
}
}
}
}







From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hank williams
Sent: Thursday, April 26, 2007 4

Re: [flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread Yiðit Boyar
and function overloading (like in c++) ??

- Original Message 
From: ben.clinkinbeard <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, April 26, 2007 11:30:31 PM
Subject: [flexcoders] Will ECMAScript ever support abstract classes?









  



I've found myself wishing we had them on multiple occasions, so I am

just wondering if anyone in the know can tell me if its been

proposed/considered /denied.



Thanks,

Ben






  















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

[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread scalenine
Try this:


http://www.adobe.com/2006/mxml";
layout="absolute">








I just added a white fill color and some padding to the bottom and top
of the tab navigator. The only thing is a small gap in the border on
the left where the TabNav corner curves.

The other thing you could do is create an image to use as the
background with some 9-slice proerties on it that has 3 rounded
corners and one not.

Or check out some custom border components out there that might help
you get the effect your looking for.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com, "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
> 
> Hello,
> 
> I am trying to use rounded corners (cornerRadius) on a tab navigator.
> Unfortunately it also rounds the upper left corner of the first canvas
> which makes it unsightly. One could use paddingLeft to move the tabs a
> little to the right, but that doesn't look to great either. One could
> "underlay" the tab navigator at the upper left corner with a
> mini-canvas, but that only works, if you have no border. I need a solid
> border...
> 
> Has anyone come up with a good solution for this?
> 
> Thanks a mill..
>




[flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Does anybody have any example on how to access amf3 remote services, which
need to deal with new concepts like "destination", using a netConnection
call? I am finding that remoteObject doesnt do everything I need.

Thanks
Hank


[flexcoders] Re: expand tree when selectedItem is changed (Cairngorm)

2007-04-26 Thread Sebastian Feher
--- In flexcoders@yahoogroups.com, "Sebastian Feher" <[EMAIL PROTECTED]> 
wrote:
>
> I have an explorer view with a tree on the left hand side and a 
list on 
> the right. While navigating across the tree (can be done from both 
> views) when changing the location on the right I select
(synchronize) 
> the new location in the tree through databinding by setting the 
> selectedItem. 
> 
> Here's where I'm stuck: how do I expand the tree so the new 
selection 
> is visible? Can I somehow listen for an itemSelected event?
> 
> The views do not communicate other than by sending events (event-
>model-
> >view).
> 
> Any ideas?
> 
> Sebi
>

Not sure if this is good practice .. but ChangeWatcher.watch() seems 
to do the trick.



[flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread ben.clinkinbeard
I've found myself wishing we had them on multiple occasions, so I am
just wondering if anyone in the know can tell me if its been
proposed/considered/denied.

Thanks,
Ben



[flexcoders] mx:Model to VO

2007-04-26 Thread Russell Sprague
I read a tutorial last week about connecting a mx:Model tag to an AS 
Value Object.  I can't for the life of me find that tut again.
Does any one know how to do this, or know of a/the tutorial?

Thanks
Russ


[flexcoders] mx:Model to VO

2007-04-26 Thread targetplanet
I read a tutorial last week about linking an mx:Model tag to a AS
Value Object class, and I can not find that tutorial again for the
life of me...
So does anyone know how this is done, or know where the tut is?
Thanks 
Russ



Re: [flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread hank williams

I should have explained that I cant use apply because it is a proxyed
function so it doesnt really exist. I am trying to do this with remoteObject
so the actual function I am calling is not real but is handled by an
overridden "callProperty" function.

Hank

On 4/26/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:


  Look up the Function class in your favorite API reference, and check out
its "apply" method... it'll let you call a function with an array of
arguments.

Troy.



On 4/26/07, Doug Lowder <[EMAIL PROTECTED]> wrote:
>
>   Sounds like you may be able to use ...rest for that.
> http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
> _parameter
>
> --- In flexcoders@yahoogroups.com , "hank
> williams" <[EMAIL PROTECTED]>
> wrote:
> >
> > I want to call a function, call it "foo" in a circumstance where,
> at compile
> > time, I dont know what the parameters to foo are going to be. In
> the past
> > perhaps I could have used something like Eval to construct the
> call, but
> > that is no longer available.
> >
> > As an example, in one circumstance I might want to call:
> >
> > foo("a");
> >
> > and in another circumstance I would want to call
> >
> > foo("a","b")
> >
> > but in each case the exact number of parameters is indeterminate
> and must be
> > constructed on the fly. Unfortunately, I cannot pass an array into
> foo, I
> > must actually have an independent parameter for each passed value.
> >
> > Any ideas?
> >
> > Thanks,
> > Hank
> >
>
>
 



Re: [flexcoders] Re: Module GC question

2007-04-26 Thread Erik Price
On 4/26/07, kyle.vanvranken <[EMAIL PROTECTED]> wrote:
> UPDATE: So it would seem the hack method of forcing garbage collection
> for my test was actually causing the trouble.
>
> -
> try {
>   new LocalConnection().connect('foo');
>   new LocalConnection().connect('foo');
> } catch (e:*) {}
> -
>
> Without that code it seems to be working nicely now. I've had a test
> app running on my machine now for a bit with a timer every couple
> seconds reloading the simple module and it appears to be working as
> intended now. I don't really understand why forcing GC was causing it
> to eat up more memory then not forcing, but I am sufficiently
> satisfied that it seems to be working.

How are you sure that the hack was actually causing GC?  Is that
documented anywhere?

e


Re: [flexcoders] Different webservice results in IE and Firefox

2007-04-26 Thread Abdul Qabiz

hmm...I have never seen such problem?

What do you see if you look at HTTP traffic using firebug or
livehttpheaders?

Do you recieve same or different data before it goes to Flash Player?

-abdul

On 4/27/07, manfred.maierhofer <[EMAIL PROTECTED]> wrote:


  Hey guys,
I have a really strange problem.

I use SOAP webservices to access data from a SAP server. The problem
is, I get different resultsets in IE and Firefox.

There are no error messages or anything comparable.

I use an event handler to read the data form the webservice result
event into a internal model variable. If I debug and set a breakpoint
to read the data directly from the result event the tables have
different entrys. In one column in Firefox a few row items are just
cleared instead of filled with text as in IE.

Has anybody already seen comparable problems??

Thanks for any suggestion, I am really confused.

Greets,
Mane

 



Re: [flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread Troy Gilbert

Look up the Function class in your favorite API reference, and check out its
"apply" method... it'll let you call a function with an array of arguments.

Troy.


On 4/26/07, Doug Lowder <[EMAIL PROTECTED]> wrote:


  Sounds like you may be able to use ...rest for that.
http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
_parameter

--- In flexcoders@yahoogroups.com , "hank
williams" <[EMAIL PROTECTED]>
wrote:
>
> I want to call a function, call it "foo" in a circumstance where,
at compile
> time, I dont know what the parameters to foo are going to be. In
the past
> perhaps I could have used something like Eval to construct the
call, but
> that is no longer available.
>
> As an example, in one circumstance I might want to call:
>
> foo("a");
>
> and in another circumstance I would want to call
>
> foo("a","b")
>
> but in each case the exact number of parameters is indeterminate
and must be
> constructed on the fly. Unfortunately, I cannot pass an array into
foo, I
> must actually have an independent parameter for each passed value.
>
> Any ideas?
>
> Thanks,
> Hank
>

 



[flexcoders] expand tree when selectedItem is changed (Cairngorm)

2007-04-26 Thread Sebastian Feher
I have an explorer view with a tree on the left hand side and a list on 
the right. While navigating across the tree (can be done from both 
views) when changing the location on the right I select(synchronize) 
the new location in the tree through databinding by setting the 
selectedItem. 

Here's where I'm stuck: how do I expand the tree so the new selection 
is visible? Can I somehow listen for an itemSelected event?

The views do not communicate other than by sending events (event->model-
>view).

Any ideas?

Sebi




[flexcoders] Different webservice results in IE and Firefox

2007-04-26 Thread manfred.maierhofer
Hey guys,
I have a really strange problem.

I use SOAP webservices to access data from a SAP server. The problem
is, I get different resultsets in IE and Firefox.

There are no error messages or anything comparable.

I use an event handler to read the data form the webservice result
event into a internal model variable. If I debug and set a breakpoint
to read the data directly from the result event the tables have
different entrys. In one column in Firefox a few row items are just
cleared instead of filled with text as in IE.

Has anybody already seen comparable problems??

Thanks for any suggestion, I am really confused.

Greets,
Mane



[flexcoders] Re: Setting the $title field in index .template.html

2007-04-26 Thread Doug Lowder
You can set it via the pageTitle property of the Application tag.  Are 
you specifically looking for something other than that?


--- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]> 
wrote:
>
> where do I set the field $title which is referred to at the top of the
> template filed used to generate index.html?
>




[flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread Doug Lowder
Sounds like you may be able to use ...rest for that.
http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
_parameter


--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> 
wrote:
>
> I want to call a function, call it "foo" in a circumstance where, 
at compile
> time, I dont know what the parameters to foo are going to be. In 
the past
> perhaps I could have used something like Eval to construct the 
call, but
> that is no longer available.
> 
> As an example, in one circumstance I might want to call:
> 
> foo("a");
> 
> and in another circumstance I would want to call
> 
> foo("a","b")
> 
> but in each case the exact number of parameters is indeterminate 
and must be
> constructed on the fly. Unfortunately, I cannot pass an array into 
foo, I
> must actually have an independent parameter for each passed value.
> 
> Any ideas?
> 
> Thanks,
> Hank
>




Re: [flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread Abdul Qabiz

Can you share the code? That helps understanding whats wrong..

It might be something with subclass code or the way you are trying to
instantiate.

-abdul

On 4/26/07, johnknyc <[EMAIL PROTECTED]> wrote:


  Hi all,

I created a AS subclass of ComboBox. I can use the subclass in MXML,
however when I try to instantiate the subclass in AS, it comes up
blank when I run the app.

I tried running a trace in the subclass's constructor, and it seems
the constructor is not even being called.

Any ideas?

 



[flexcoders] Is it possible to buile a parameter list programatically

2007-04-26 Thread hank williams

I want to call a function, call it "foo" in a circumstance where, at compile
time, I dont know what the parameters to foo are going to be. In the past
perhaps I could have used something like Eval to construct the call, but
that is no longer available.

As an example, in one circumstance I might want to call:

foo("a");

and in another circumstance I would want to call

foo("a","b")

but in each case the exact number of parameters is indeterminate and must be
constructed on the fly. Unfortunately, I cannot pass an array into foo, I
must actually have an independent parameter for each passed value.

Any ideas?

Thanks,
Hank


Re: [flexcoders] FileReferenceList

2007-04-26 Thread Abdul Qabiz


1. how to trace values in console panel?



Use trace (..) statement. You might need to  configure/create mm.cfg on your
machine. Check this link:

http://livedocs.adobe.com/flex/201/html/logging_125_04.html

2. I have to create flv palyer in Apollo.


Read the documentation and write it. Check out how other folks have done:

http://theflexblog.com/?p=21

It's pretty simple but depends what all functionalities you are looking.


I'm getting problem in storing path of files which are selected by user in

an array so that i can play them one by one.



You need to read more and learn fundamentals and keep trying.

-abdul






On 4/26/07, kanu kukreja <[EMAIL PROTECTED]> wrote:


  Hello everyone,
being new to flex i have so many queries in this.

1. how to trace values in console panel?
2. I have to create flv palyer in Apollo.

   I'm getting problem in storing path of files which are selected by user
in an array so that i can play them one by one.

till selection of files i'm done but storing path is an issue.

I hope you all help me out in this ASAP.


*Best Regards*
*Kanu Kukreja*

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

 



Re: [flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-26 Thread Sergey Kovalyov

Thanks! Though everything works even when I postpone calculation to
commitProperties(). :)

On 4/26/07, Manish Jethani <[EMAIL PROTECTED]> wrote:


  I assume you're cancelling the default sort, which is why the column's
sortDescending is never updated.

You'll have to get the actual sort order from the collection itself.

var descending:Boolean = false;
var s:Sort = collection.sort;
var fields:Array = s.fields;
for (var i = 0; i < fields.length; i++)
if (fields[i].name == dataField)
descending = fields[i].descending

// now you have the value

On 4/25/07, Sergey Kovalyov <[EMAIL 
PROTECTED]>
wrote:
>
> Hi All!
>
> I have defined my own handler for the headerRelease event in order to
> perform custom server-side sorting, since my DataGrid is pagable. In
order
> to do that I get the field from event.dataField and and order from
> DataGridColumn(DataGrid(event.target).columns[event.columnIndex
]).sortDescending,
> though sortDescending is false after first and second clicks. Why?
>
> Sergey.





[flexcoders] Re: Module Interface Problems

2007-04-26 Thread Viktor Yarmak
Hi!

Got the same problem and solution seems to be simple (as mentioned by
Alex Harui):

before loading module you must set applicationDomain for ModuleLoader
(example: moduleTwo.applicationDomain = ApplicationDomain.currentDomain;)

Full example is here http://www.yarmak.info/flex/module-to-module.zip

Regards,
Viktor



[flexcoders] FileReferenceList

2007-04-26 Thread kanu kukreja
Hello everyone,
  being new to flex i have so many queries in this.
   
  1. how to trace values in console panel?
  2. I have to create flv palyer in Apollo.
   
 I'm getting problem in storing path of files which are selected by user in 
an array so that i can play them one by one.
   
  till selection of files i'm done but storing path is an issue.
   
  I hope you all help me out in this ASAP.


Best Regards
  Kanu Kukreja

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

[flexcoders] Re: Module GC question

2007-04-26 Thread kyle.vanvranken
UPDATE: So it would seem the hack method of forcing garbage collection
for my test was actually causing the trouble.

-
try {
  new LocalConnection().connect('foo');
  new LocalConnection().connect('foo');
} catch (e:*) {}
-

Without that code it seems to be working nicely now. I've had a test
app running on my machine now for a bit with a timer every couple
seconds reloading the simple module and it appears to be working as
intended now. I don't really understand why forcing GC was causing it
to eat up more memory then not forcing, but I am sufficiently
satisfied that it seems to be working.



[flexcoders] Re: Alert Control Crashing App

2007-04-26 Thread Troy A. Binford
I updated to version 9.0.45.0 that was released april 12. The code
still crashes to a large stack dump and an "undefined" error. Thanks
for the suggestion, but this didn't seem to fix my problem. Anyone
else have any suggestions? It would be much appreciated.

Thanks,

Troy

--- In flexcoders@yahoogroups.com, rml__ <[EMAIL PROTECTED]> wrote:
>
> Update your flash player version, i had the same problem in IE, it
was solved updating the flash player.
> 
> rml
> 
> - Mensaje original 
> De: Manish Jethani <[EMAIL PROTECTED]>
> Para: flexcoders@yahoogroups.com
> Enviado: miércoles, 25 de abril, 2007 5:33:04
> Asunto: Re: [flexcoders] Alert Control Crashing App
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Perhaps you can post a working example somewhere or at
least a stack
> 
> trace? That'll make it easier to follow.
> 
> 
> 
> On 4/25/07, Troy A. Binford  wrote:
> 
> > This is a little complex, but I'll try to describe what's going on to
> 
> > the best of my ability.
> 
> >
> 
> > 1. Create a new Flex Application.
> 
> > 2. Add a Canvas or whatever and give it an id.
> 
> > 3. Create a new Custom Control that is a DataGrid.
> 
> > 4. Make the DataGrid editable and give it a dataProvider and at least
> 
> > one column.
> 
> > 5. Add itemEditEnd event.
> 
> > 6. Have the listener method fire an Alert.show(" test")
> 
> > 7. close the Custom Control.
> 
> > 8. Create a mx:Script section in the main app.
> 
> > 9. create a private var (x) that is an instance of the Custom Control.
> 
> > 10. Add initialize event.
> 
> > 11. Have the listener assign x = new ()
> 
> > 12. addChild(x)
> 
> >
> 
> > Run the program and edit a column (making itemEditEnd fire). If done
> 
> > correctly, the Alert.show() will result in a large stack dump and an
> 
> > undefined error.
> 
> >
> 
> > My question is: Is this my fault? What did I do wrong?
> 
> >
> 
> >
> 
> >
> 
> > --
> 
> > Flexcoders Mailing List
> 
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
sFAQ.txt
> 
> > Search Archives: http://www.mail- archive.com/ flexcoders%
40yahoogroups. com
> 
> > Yahoo! Groups Links
> 
> >
> 
> >
> 
> >
> 
> >
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> __
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
> Regístrate ya - http://correo.yahoo.com.mx/
>




[flexcoders] BP=?: 1 ArrayCollection, different selection criteria, same time

2007-04-26 Thread Peter Demling
I have one ArrayCollection that holds all of the data I've retrieved
from my (RemoteObject) data service, and I need to display it in 2 UI
components, but with different filter conditions at the same time
(e.g., imagine an ArrayCollection of SnackItems, where one DataGrid is
showing you the CandyBars, and the other is showing you the FruitCups
at the same time).

I know I can accomplish this by creating a separate ArrayCollection
for each UI component, and assigning them different filter functions -
but is this best practice?  It seems like I should be able to avoid
copying my data in order to view it in different ways simultaneously.
 Could this involve creating multiple ViewCursors on the same
ArrayCollection?  Or am I overestimating the (performance/memory) cost
of creating multiple ArrayCollections of the same source data?

Thanks for any suggestions!

-Peter Demling
 Lexington, MA



[flexcoders] Setting the $title field in index .template.html

2007-04-26 Thread simonjpalmer
where do I set the field $title which is referred to at the top of the
template filed used to generate index.html?



[flexcoders] Re: Open source Flex (incl. compiler)

2007-04-26 Thread kyle.vanvranken
To be honest I am not surprised that flex is going open source and was
just talking about this with a friend of mine a day or so ago. I
figured it was only a matter of time. Logically it makes sense and I
think it's a smart move on Adobe's part. In doing so they open up the
doors to developers from all walks to jump in and get their hands
dirty with flex and effectively ramp up development on Flex. This in
turn leads to better adoption of the platform, better components,
integration etc etc. Plus from a business standpoint they're still
making money with FDS and going to increase the demand for said
product with greater adoption of Flex.

All the same kudos and thank you to Adobe!

- Kyle VanVranken



[flexcoders] Disallowing selection of certain items in datagrid vs. shift-click multi-select

2007-04-26 Thread tsiesser
I have a datagrid where allowMutipleSelection is true. I'm trying to
disallow selection of certain rows in the grid. I tried hooking into
the ListEvent.CHANGE event and removing disallowed items from the
selectedItems array:

addEventListener(ListEvent.CHANGE, selectionChangeHandler);

private function selectionChangeHandler(event:ListEvent):void
{
var items:Array = new Array();
for each (var item:Object in selectedItems)
{
if (itemIsSelectable(item))
items.push(item);
}
selectedItems = items;
}

private function itemIsSelectable(item:Object):Boolean
{
// determine whether item is selectable...
:
}

This works fine for single-click and ctrl-click selection, but somehow
the very existence of code inside selectionChangeHandler breaks
shift-click selection. What I mean is that if I include the code
above, then if you try to multi-select via shift-click, by the time
you get into selectionChangeHandler, selectedItems contains only a
single item (the starting item). This is before my code has even run!
Yet if you comment out the code inside the handler, shift-click works
normally. 

I *think* this looks like a timing issue since if I run in debug mode
and single-step all the way through mouseDownHandler (all the way up
the superclass chain to ListBase), then shift-click is okay.

Does anyone have any ideas on how I can make this work? Or
alternatively, another way to disallow selection of particular items?

Thanks!



[flexcoders] Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Hello,

I am trying to use rounded corners (cornerRadius) on a tab navigator.
Unfortunately it also rounds the upper left corner of the first canvas
which makes it unsightly. One could use paddingLeft to move the tabs a
little to the right, but that doesn't look to great either. One could
"underlay" the tab navigator at the upper left corner with a
mini-canvas, but that only works, if you have no border. I need a solid
border...

Has anyone come up with a good solution for this?

Thanks a mill..




RE: [flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Mike Anderson
Thanks Ely!
 
My thoughts exactly :)
 
I just wanted to ask you first, before investing time into an alternate
solution.
 
That xOffset and yOffset would be a pretty cool addition to your future
versions of SuperImage.
 
Either way, you did a WONDERFUL job on this component. Just adding the
Border and DropShadow properties, you increased the value of SuperImage
versus the standard Image Component, by 10-fold...
 
Thank you for sharing this component with the community, as well as
everything else you've put out there.  You are a very good programmer -
I can tell just by examining your source-code - it's well thought out,
clean, easy to read and most important, quite functional.
 
Take care and thank you :)
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Thursday, April 26, 2007 10:50 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question on Ely's SuperImage Component



 

 

Hi Mike. There is a _content property in the SuperImage, which is
essentially the same as the Image.content property. However, the
SuperImage actively maintains the size and position of the content, so I
don't think you can guarantee that changes you make to its position will
stick.  

 

So, two options:

 

1)  Grab the source, and make the modifications you need. An
'offset' might be a nice property to add, and something we could
integrate back into the main source.

2)  Wrap the Super Image in a Canvas. And move the SUperImage around
inside the canvas instead.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, April 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Ely's SuperImage Component

 

Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself. I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size & place the container where I need it to be
- then I move & scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make? If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike

 


RE: [flexcoders] Re: QTP 9.2 Eval version and Flex

2007-04-26 Thread Matt Chotin
The SDK was already free.  The QTP plugin is not considered part of the
move to open source at this time.
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Hoff
Sent: Thursday, April 26, 2007 7:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: QTP 9.2 Eval version and Flex



Does open source = free going forward?



 


[flexcoders] Re: datagrid cell renderers

2007-04-26 Thread blc187
thanks for the suggestion manish
do you have an example of this working?

from what i can figure, it looks as though the sprite is just a 
template for the row to fill a shape the same shape as whatever the 
sprite is.
it looks like the same one gets reused for each row and just shifted 
down, as when i attach anything to it, they just get shifted down as 
the grid draws more rows and everything is attached to the same sprite.



RE: [flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Ely Greenfield
 

 

Hi Mike. There is a _content property in the SuperImage, which is
essentially the same as the Image.content property. However, the
SuperImage actively maintains the size and position of the content, so I
don't think you can guarantee that changes you make to its position will
stick.  

 

So, two options:

 

1)  Grab the source, and make the modifications you need. An
'offset' might be a nice property to add, and something we could
integrate back into the main source.

2)  Wrap the Super Image in a Canvas. And move the SUperImage around
inside the canvas instead.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, April 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Ely's SuperImage Component

 

Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself. I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size & place the container where I need it to be
- then I move & scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make? If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike

 

<>
<>


[flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Mike Anderson
Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself.  I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size & place the container where I need it to be
- then I move & scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make?  If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike


RE: [flexcoders] XML and Button

2007-04-26 Thread Gordon Smith
This list works best when people ask specific questions. Can you be more
explicit about what you don't understand?
 
Getting the external XML file into your app? Use .
Looping over the  elements? Look at some E4X examples.
Extracting the  and  for a particular ? Look at
some E4X examples.
Creating components dynamically? b = new Button()
Setting the label of a Button dynamically? b.label = ...
Setting the click handler of a Button dynamically?
b.addEventListener(MouseEvent.CLICK, ...)
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dur-E-Wahab Khan
Sent: Thursday, April 26, 2007 2:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML and Button



Hi,
 
How are all of you. Well I am new to Flex. But I have started building
simple applications. One of the top most problem I am facing is working
with XML and Button. Can  you please assist me in this. I am explaining
my problem:
 
I have an external XML file like this:


   0
   General Health
   General Health pages is currently under construction


   1
   Mental Health
   Mental Health pages is currently under construction


 
Now I want to generate Buttons Dynamically from this XML. And the second
thing which is the most problematic is that how I code it so that when I
press the Button labled "General Health", it will show the same text as
in the XML tag coresponding to tag "General Health" ?
I badly need this. I am realy confused on this. Kindly help me.
 
Regards
..::DeX



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

 


[flexcoders] Replacement of Resize Effect

2007-04-26 Thread Matt
After dealing with the frustrations of the Resize effect for too long
I decided to write my own replacement to it that works the way I would
expect Resize should.

Major distinctions are support for resizing with percentages and
supports the ability to resize one direction (width or height) with a
different type (pixel or percentage) than the other.

Here's the code:

package jsl {
import mx.effects.IEffectInstance;
import mx.effects.TweenEffect;

public class Resize extends TweenEffect {
public function Resize(target:Object = null) {
super(target);
instanceClass = ResizeInstance;
}

[Inspectable(defaultValue=null)]
public var widthFrom:Number;

[Inspectable(defaultValue=null)]
public var heightFrom:Number;

[Inspectable(defaultValue=null)]
public var widthTo:Number;

[Inspectable(defaultValue=null)]
public var heightTo:Number;

[Inspectable(defaultValue=null)]
public var widthType:String;

[Inspectable(defaultValue=null)]
public var heightType:String;

override protected function
initInstance(instance:IEffectInstance):void {
super.initInstance(instance);
var effectInstance:ResizeInstance = 
ResizeInstance(instance);
effectInstance.widthFrom = widthFrom;
effectInstance.heightFrom = heightFrom;
effectInstance.widthTo = widthTo;
effectInstance.heightTo = heightTo;
effectInstance.widthType = widthType;
effectInstance.heightType = heightType;
}
}
}

package jsl {
import mx.effects.effectClasses.AnimatePropertyInstance;
import mx.effects.effectClasses.TweenEffectInstance;

public class ResizeInstance extends TweenEffectInstance {
public var widthFrom:Number;
public var heightFrom:Number;
public var widthTo:Number;
public var heightTo:Number;
public var widthType:String;
public var heightType:String;

private var widthEffect:AnimatePropertyInstance;
private var heightEffect:AnimatePropertyInstance;

public function ResizeInstance(target:Object) {
super(target);
}

override public function play():void {
super.play();
initializeProperties();
if (widthEffect != null) widthEffect.play();
if (heightEffect != null) heightEffect.play();
}

protected function initializeProperties():void {
if ((!isNaN(widthTo)) && (widthType != 'auto')) {
widthEffect = new 
AnimatePropertyInstance(target);
widthEffect.duration = duration;
widthEffect.repeatCount = repeatCount;
widthEffect.repeatDelay = repeatDelay;
widthEffect.startDelay = startDelay;
widthEffect.easingFunction = easingFunction;
if (widthType == 'pixel') {
widthEffect.property = 'width';
} else if (widthType == 'percentage') {
widthEffect.property = 'percentWidth';
} else {
Logger.log('Unknown Width Property: ' + 
widthType);
}
if (!isNaN(widthFrom)) {
widthEffect.fromValue = widthFrom;
} else if ((widthType == 'percentage') &&
(isNaN(target['percentWidth']))) {
// Trying to change percentage but a 
percentage is not currently
determined
var pW:Object = target['parent'];
if (pW != null) {
widthEffect.fromValue = 
(target['width'] / pW['width']) * 100;
}
}
widthEffect.toValue = widthTo;
}
if ((!isNaN(heightTo)) && (heightType != 'auto')) {
  

RE: [flexcoders] Flex Goes Open Source

2007-04-26 Thread David Mendels
YES!
 
This is going to be part of Flex 3.  We are hard at work on Flex 3--code
named "Moxie".  Expect a public beta this summer.  The change is that
for the SDK (which is free already), it will be open source, with a
public bugbase and the ability for folks outside Adobe to participate in
the process. 
 
Flex Builder 3 and Data Services remain commercial products.  No change
there.
 
We are doubling down on our investment and committment to Flex.
 
-David



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Grinsfelder
Sent: Thursday, April 26, 2007 6:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Goes Open Source



So, will Adobe still make/sell Flex 3?

 


[flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread johnknyc
Hi all,

I created a AS subclass of ComboBox. I can use the subclass in MXML,
however when I try to instantiate the subclass in AS, it comes up
blank when I run the app.

I tried running a trace in the subclass's constructor, and it seems
the constructor is not even being called.

Any ideas?







[flexcoders] Flickr and Flex Implementation

2007-04-26 Thread Jurgen Beck
I am working on a photo gallery app that is supposed to access private 
images from a Flickr account. While it's pretty straight forward 
accessing publicly viewable images from a Flickr user or account, there 
seems to be a big problem with accessing private images AND keep 
everything user friendly.

Here is what I am finding:

When using the Flex Flickr API, I get stuck with displaying a separate 
window to authorize the Flex application to access the private images. 
That's not the fault of the API, but rather a way Flickr is implementing 
their authorization scheme.

 From a user's perspective, this of course is silly for two reasons: 
Number one, why having a RIA that keeps everything integrated and then 
going outside of the web application to authorize access, and secondly, 
this exposes the Flickr account in the secondary browser window, which I 
definitely don't want.

I thought I had found a workaround by simply just calling the 
authorization URL in a URLLoader like this:

var auth_url:String = flickrService.getLoginURL( 
frob, AuthPerm.READ );
   
 var loginLoader:URLLoader = new URLLoader();
var loginRequest:URLRequest = new URLRequest(auth_url);
   

loginLoader.addEventListener(Event.COMPLETE,loginRequestComplete);

loginLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,loginSecurityError);

   

In the loginRequestComplete method I then proceed to getting the frob.

This works PERFECT on my local machine. I don't have to pop up a 
separate browser window to authorize the application with Flickr and 
everything proceeds to load the private images in the Flex application.

However, moving this to the web site, I get the dreaded security error 
that states that the application cannot access data from the Flickr URL.

I looked at the URLs. Here is what I find:

auth_url in the above code snippet will start with 
http://api.flickr.com/services/auth/?api_key=..., targeting the 
api.flickr.com, for which Flickr has set up a crossdomain.xml file. 
However, to check what's happening with the authorization process I use 
the auth_url n a browser window and find that there is a redirect that 
happens back to a URL of http://www.flickr.com/services/auth/?api_key=...

This means that my security error is triggered, because we are getting a 
response back from the flickr.com domain and not the api.flickr.com 
domain, at least that's what I assume is happening.

So, long write up and short question:

Has anyone made this work? What I am essentially after is a way to get 
to the private images through the Flex Flickr API without having to 
display the Flickr authorization window.

Thanks for any suggestions!

Jurgen


[flexcoders] Re: ListBase ScrollVertically error #1010

2007-04-26 Thread confined_to_death666
I don't have the error anymore. I'm now using a vbox with a repeater
and my custom item renderer instead. With some tweaking
(recyclechildren, etc) it works just as good as the list component but
it doesn't give me the error. Thnx everyone who replied on my problem
before.




RE: [flexcoders] RE: Updating progress bar in datagrid when uploading files

2007-04-26 Thread Mark Ingram
I've managed to find the answer myself, it was on this page:

 

http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/

 

It doesn't involve progress bars, but the idea is the same.

 

Cheers,

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 26 April 2007 11:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Updating progress bar in datagrid when
uploading files

 

Hi, I only joined yesterday, not sure if the email got received or not.

 

I am basically just trying to hook up the ProgressBar.source property
with a property stored on the data provider
(m_uploadFileList[i].FileReference). 

 

Thanks,

Mark

 

 



From: Mark Ingram 
Sent: 25 April 2007 13:43
To: FlexCoders (flexcoders@yahoogroups.com)
Subject: Updating progress bar in datagrid when uploading files

 

Hi, I have a standard data grid with a progress bar in the 3rd column:

 











 


 


 


 


 


 


 








 

m_uploadFileList is an array collection of FileReference objects. How
can I hook up the progress of each file upload (done via FileReference)
to the progress bar on each line? I understand each file must be done in
turn.

 

Any pointers on this will be gratefully received!

 

Thanks,

 

Mark

 

 

 

 



RE: [flexcoders] Cairngorm, is this suitable as Cairngorm "event"

2007-04-26 Thread Dimitrios Gianninas
Imay be a little late here, but no, its not only for calling backend. Anytime 
you want encapsulate some UI logic, put it in a command. Even if it just to 
manipulate data, update the view or to call the server-side.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bnsmeets
Sent: Wednesday, April 25, 2007 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm, is this suitable as Cairngorm "event"



Hi all,

Wondering if the Cairngorm events are supposed to be only events that
need backend comunication.

Situation now is that I have a Model, which contains e.g.
"SelectedObject". I use this var to store the selected object by users
in the interface.

No problems so far. But now I want to be able to let the user "clear"
that selectedobject. I am tempted to just use
AppModel.SelectedObject=null in a view. But the thought is running in
my head that it might be neater to create a
"SelectedObjectClearedEvent" and attach a command to that which
contains the logic if it is possible to clear it.

Question in the bigger picture is this: Are cairngorm events "as is"
supposed to be used only when there is a "I want to call backend"-
event? Or are View related events (or any other events in that matter)
supposed to be Cairngorm events too?

And on top of that, how do you (Cairngorm users out there) give your
other events a place in your structure?

For example, my model also dispatches a custom event which has nothing
to do with the backend. I use it to listen to any changes in a
Collection (Default ArrayCollection events didn't do the trick).

Tx in advance,
Ben



 

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

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



[flexcoders] Re: ZLIB compression standard within Flex (Flash)??

2007-04-26 Thread Matthew OMeara
It took a day for this post to show up on Yahoo, and in the meantime 
I have resolved the issue.  Turns out that I was passing a WideString 
from a windows server to Flex (also on Windows).  But the char sets 
must have been different (utf-8 vs ASCII), so the compressed string 
was misunderstood at trhe client (Flex app).

I pass the string as HexString now and it works fine, will switch to 
Byte Stream soon.

best,

Matthew


--- In flexcoders@yahoogroups.com, "Matthew OMeara" <[EMAIL PROTECTED]> 
wrote:
>
> I have been spinning cycles trying to get the uncompress function 
of 
> ByteArray to process a zipped xml string that I am sending from a 
> custom web server.  I have read up on the process and understand 
that 
> Flex ByteArrays support zlib compression and I believe they expect 
to 
> find an Adler checksum within the zipped string as well.
> 
> Problem is that there are 31 flavors of compression to choose from 
> server side and I can not get any to match what Flex ByteArray 
> decompress expects???
> 
> For example, there are these options of compession within zlib...
> 
>   CompressionLevel = (
> zcNone,
> zcFastest,
> zcDefault,
> zcMax,
> zcLevel1,
> zcLevel2,
> zcLevel3,
> zcLevel4,
> zcLevel5,
> zcLevel6,
> zcLevel7,
> zcLevel8,
> zcLevel9
>   );
> 
>   Strategy = (
> zsDefault,
> zsFiltered,
> zsHuffman,
> zsRLE,
> zsFixed
>   );
> 
> ~
> 
> The ultimate goal here is to grab 5mb xml files that are first 
> zipped, then encrypted that have been cached on the server.  I have 
> flex unencrypting data successfully, but I can not get Flex to 
> recognize and unzip any flavor of Zip that I send to it.
> 
> Any thoughts?
> 
> Thanks
> 
> Matthew
>




[flexcoders] Re: QTP 9.2 Eval version and Flex

2007-04-26 Thread Scott Hoff
Does open source = free going forward?



Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Dave Carabetta

Most definitely. In fact, outside of the bug base being made public in the
June timeframe along with some other infrastructure enhancements, you're
probably not going to be a whole lot change until after Flex 3 (aka "Moxie")
is released in the second half of this year. I say that because Adobe
employees will still be the sole "committers" of any changes to the SDK
through the end of the Flex 3 release cycle, so while you'll be able to
contribute before then, it's not guaranteed to make it into the Flex 3
release.

Definitely take some time and read the links below, as it's going to be
really easy for one slight mis-statement on these types of forums to skew
the reality of this announcement (including any made by me!):

http://labs.adobe.com/wiki/index.php/Flex:Open_Source

http://labs.adobe.com/wiki/index.php/Flex_Open_Source_FAQ

http://groups.google.com/group/flex-open-source   <-- Adobe employees are
answering specific questions here, I see.


Regards,
Dave.
Cynergy Systems, Inc.


On 4/26/07, Jim Grinsfelder <[EMAIL PROTECTED]> wrote:


   So, will Adobe still make/sell Flex 3?

 



[flexcoders] KeyBoardEvents - Flex can't hide control key sequences from Internet Explorer

2007-04-26 Thread fuad_kamal
If anyone has a solution that doesn't involve JavaScript in the html
wrapper I'd love to hear it...


The problem is, Internet Explorer interprets control-key sequences
(such as ctrl-r which reloads the browser window) regardless of
whether your flex app captures the keystrokes or not, regardless of
whether you setFocus() or not.  The keystrokes still bubble to the
browser.  I have tested this both in Firefox and IE7, in Firefox the
swf captures the control sequences without disturbing the browser, in
IE7 the swf also captures the control sequences, but the browser also
reacts to them which can be disastrous from the perspective of the
application.

This note from Adobe makes me think they have not come up with a
simple fix for this yet:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=events_054_21.html

The only solution right now seems to be using JS in the wrapper to
modify the browser behavior.  Here are the related leads I've found so
far:

http://santrajan.blogspot.com/2007/03/cross-browser-keyboard-handler.html

http://www.colettas.org/?p=69

I'd be happy to hear if anyone else has a better solution.

--- In flexcoders@yahoogroups.com, "Michael Klishin" <[EMAIL PROTECTED]> wrote:
>
> From my experience setFocus helps in your case, just use it in
> creationComplete handler of parent container (whatever it is) or
component
> root tag (which happens to be parent container as well)
> 
> On 11/01/07, Lieven Cardoen <[EMAIL PROTECTED]> wrote:
> >
> >  In Application is seems to work once with this.setFocus(), but
then it
> > doesn't work anymore. Is there a way to catch the keys at all time???
> >
> >
> >
> > I think I'm missing something here. I have an application with some
> > layoutContainers and in one of the containers a user can draw a
groundPlan.
> >
> > When rubberBand is enabled, I want a user to be able to press CTRL and
> > click with mouse so that rubberband disappears.
> >
> >
> >
> > This Container where the drawing happens is called GroundPlan.as
(extends
> > Container).
> >
> >
> >
> > In here I create sprites, … and in here I should be able to catch
> > KeyEvents…
> >
> >
> >
> > Thx, Lieven Cardoen, IndieGroup
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Lieven Cardoen
> > *Sent:* donderdag 11 januari 2007 12:32
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* RE: [flexcoders] KeyBoardEvents
> >
> >
> >
> > Strange, because I click with mouse in the Container...
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Jason Hawryluk
> > *Sent:* donderdag 11 januari 2007 11:08
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* RE: [flexcoders] KeyBoardEvents
> >
> >
> >
> > You need to make sure your container has the focus
> >
> >
> >
> > //from the parent of the container
> >
> > GroundPlan.setFocus();
> >
> >
> >
> >
> >
> > //or try this after you have set the listeners.
> >
> > setFocus();
> >
> >
> >
> >
> >
> >
> >
> > jason
> >
> >
> >
> >
> >
> > -Message d'origine-
> > *De :* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
> > la part de* Lieven Cardoen
> > *Envoy� :* jeudi 11 janvier 2007 10:58
> > *� :* flexcoders@yahoogroups.com
> > *Objet :* [flexcoders] KeyBoardEvents
> >
> > Why are my KeyboardEvents not working?
> >
> > GroundPlan is a chilc of a Canvas…
> >
> > I also tried catching keyboard events in my
Application.application but it
> > doesn't work neither…
> >
> > I'm testing in Internet Explorer and my application has focus…  thx.
> >
> > *public* *class* GroundPlan *extends* Container
> >
> > {...
> >
> > *public* *function* addEventListeners():*void*{
> >
> >   *this*.addEventListener(MouseEvent.MOUSE_MOVE,
mouseMoveHandler);
> >
> >   *this*.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
> >
> >   *this*.addEventListener(KeyboardEvent.KEY_DOWN,
myKeyDownHandler);
> >
> >   *this*.addEventListener(KeyboardEvent.KEY_UP, myKeyUpHandler);
> >
> > }
> >
> > /**
> >
> > *
> >
> >  */
> >
> > *private* *function* myKeyDownHandler(event:KeyboardEvent):*void* {
> >
> >   *trace*(*"myKeyDownHandler("* + event + *")"*);
> >
> >   *if*(event.keyCode == Keyboard.CONTROL){
> >
> > *this*.controlKeyDown = *true*;
> >
> >   }
> >
> > }
> >
> > /**
> >
> >  *
> >
> >  */
> >
> > *private* *function* myKeyUpHandler(event:KeyboardEvent):*void*{
> >
> >   *trace*(*"myKeyUpHandler("* + event + *")"*);
> >
> >   *if*(event.keyCode == Keyboard.CONTROL){
> >
> > *this*.controlKeyDown = *false*;
> >
> >   }
> >
> > }
> >
> > *Lieven Cardoen
> > **Application developer
> > **
> > **indie**group**
> > **interactive digital experience**
> > **engelse wandeling 2 k18
> > b8500 kortrijk *
> >
> >
> >
> 
> 
> 
> -- 
> This was freedom. Losing all hope was freedom.
> 

[flexcoders] Combo Box in Grid -- Is there a better way?

2007-04-26 Thread boy_trike
Following is the snippet of my code to embedd a combo box in a
dataGrid.  Is there a better way to do this?

Thanks

Bruce


  











   
  









Re: [flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread Michael Wills
Hi there Anupam,

Actually I figured out a way yesterday. The asfunction link calls a 
function in the map which then triggers an event in the AS2 map which is 
passed through a new EIBuffer.addCall which is received by a new event 
handler in MapEventDispatcher.as. The string parameter of the asfunction 
is passed through as a data object and used in Flex and every thing is 
dandy. The only limitation I ran into was the length of text usable with 
asfunction. I believe I saw somewhere that it was 116 characters as a 
limit because of hrefs in general, but it's OK. It works now. :-P

Many thanks!

Michael

anupam_81 wrote:
>
> Hi All,
> I was just googleing the "asfunction" and found this link
>
> http://livedocs.adobe.com/flex/2/langref/migration.html 
> 
>
> See that asfunction is not supported in Action Script 3.0 and the Flex
> 2.0 is using Flash 9 which in turn using AS3 so i think its not that
> straight forward to write asfunction and handling the event..
>
> Although yahoo map component is written in as2 but we are consuming it
> in as3.. My instinct says that there will be some other way that we
> can handle the link click event..
> Working on it..
> Keep u posted
> Cheers!
> Anupam
> --- In flexcoders@yahoogroups.com 
> , Michael Wills <[EMAIL PROTECTED]> 
> wrote:
> >
> > Yeah the POI marker click event is fine and quite useful. I think it
> was
> > after reading your post Anupam. :-) However after that, I can't trigger
> > anything in the Cairngorm app. I even tried to make a function with the
> > original as2map.fla that would simply trigger a new POIMarkerClick
> event
> > with data passed from the asfunction call within the marker. That
> hasn't
> > worked yet either.
> >
> > I also tried to use FlashInterface which, by itself, should work.
> > However it blocks the communication of the YahooMap communication
> kit as is.
> >
> > Basically, similar to Anupam's change to the code, I'd like to add an
> > htmlTextClick function which can be can be called via asfunction.
> > Something like:
> >
> > function onHTMLLinkClick(ev:Object) {
> > var rtnObj:String = new String();
> > EIBuffer.addCall({method:swfDomId + ".onHTMLLinkClick" + id,
> > data:rtnObj});
> > }
> >
> > and where it sets up listeners in the mapClip object
> >
> > myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);
> >
> > and then in the description of a POI Marker have
> >
> > description:"Click
> > me..."
> >
> > or would this have to be:
> >
> > description:" > href=\'asfunction:_parent.onHTMLLinkClick,someString\'>Click me..."
> >
> > and in the Flex project
> >
> > mapEventDispather.addEventListener('onHTMLLinkClick',
> htmlLinkClickHandler);
> >
> > So the link would trigger the new event which would call the
> function in
> > the loaded as2map.swf which would then trigger the new event which
> would
> > be picked up by Flex, etc.
> >
> > So is this possible? Since this function isn't in the original API, is
> > it possible to add it this way? It looks like the .addCall would add it
> > to the methodQueue array in the ExternalInterfaceBuffer.as file. Here's
> > to hoping...
> >
> > And Benoit, thanks for the tip about adding the setMapSize snippet in
> > the MapController.as. It sized fine when first loading but that
> could be
> > VERY useful when dynamically resizing.
> >
> > Thank you to you both. I'll give these a shot and see if there is any
> > progress with it.
> >
> > Michael
> >
> > Benoit Hediard wrote:
> > >
> > > Are you sure you can catch events generated by an href link in the
> > > description htmlText?
> > >
> > >
> > >
> > > I think we've tried to play around with the POIMarkerClick event.
> > >
> > > But it was only dispatched when you first click on the marker to
> open it.
> > >
> > > Further click on a link in the htmlText description was not
> generating
> > > any POIMarkerClick events, so we could not catch anything.
> > >
> > >
> > >
> > > But may be, we did something wrong, we have to check it out again...
> > >
> > >
> > >
> > > Benoit Hediard
> > >
> > > #affinitiz.com
> > >
> > >
> > >
> > > *De :* flexcoders@yahoogroups.com 
>  
> [mailto:flexcoders@yahoogroups.com ]
> > > *De la part de* anupam_81
> > > *Envoyé :* mercredi 25 avril 2007 09:27
> > > *À :* flexcoders@yahoogroups.com 
> > > *Objet :* [flexcoders] Re: yahoomaps POI marker click event, htmltext
> > > asfunction
> > >
> > >
> > >
> > > Hi michael,
> > > I have done this and its pretty easy,
> > > You can call any flex event on the click of the marker click
> > > there is one event called onPOIMarkerClick in the Yahoo map component.
> > > You should have the latest code because this event handler was not
> > > there in the previous versions.
> > >
> > > I have written a blog entry on this...
> > > Check it out..
> > >

[flexcoders] How can I do the kind of DRM in Adobe Media Player in my own app

2007-04-26 Thread hank williams

Is this possible? are there special API's for the DRM related stuff in
Apollo? Can I do this kind of thing with audio only (mp3) instead of FLV?

Thanks
Hank


RE: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Jim Grinsfelder
So, will Adobe still make/sell Flex 3?



[flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread anupam_111181
Hi All,
I was just googleing the "asfunction" and found this link

http://livedocs.adobe.com/flex/2/langref/migration.html

See that asfunction is not supported in Action Script 3.0 and the Flex
2.0 is using Flash 9 which in turn using AS3 so i think its not that
straight forward to write asfunction and handling the event..

Although yahoo map component is written in as2 but we are consuming it
in as3.. My instinct says that there will be some other way that we
can handle the link click event..
Working on it..
Keep u posted
Cheers!
Anupam
--- In flexcoders@yahoogroups.com, Michael Wills <[EMAIL PROTECTED]> wrote:
>
> Yeah the POI marker click event is fine and quite useful. I think it
was 
> after reading your post Anupam. :-) However after that, I can't trigger 
> anything in the Cairngorm app. I even tried to make a function with the 
> original as2map.fla that would simply trigger a new POIMarkerClick
event 
> with data passed from the asfunction call within the marker. That
hasn't 
> worked yet either.
> 
> I also tried to use FlashInterface which, by itself, should work. 
> However it blocks the communication of the YahooMap communication
kit as is.
> 
> Basically, similar to Anupam's change to the code, I'd like to add an 
> htmlTextClick function which can be can be called via asfunction. 
> Something like:
> 
> function onHTMLLinkClick(ev:Object) {
> var rtnObj:String = new String();
> EIBuffer.addCall({method:swfDomId + ".onHTMLLinkClick" + id, 
> data:rtnObj});
> }
> 
> and where it sets up listeners in the mapClip object
> 
> myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);
> 
> and then in the description of a POI Marker have
> 
> description:"Click 
> me..."
> 
> or would this have to be:
> 
> description:" href=\'asfunction:_parent.onHTMLLinkClick,someString\'>Click me..."
> 
> and in the Flex project
> 
> mapEventDispather.addEventListener('onHTMLLinkClick',
htmlLinkClickHandler);
> 
> So the link would trigger the new event which would call the
function in 
> the loaded as2map.swf which would then trigger the new event which
would 
> be picked up by Flex, etc.
> 
> So is this possible? Since this function isn't in the original API, is 
> it possible to add it this way? It looks like the .addCall would add it 
> to the methodQueue array in the ExternalInterfaceBuffer.as file. Here's 
> to hoping...
> 
> And Benoit, thanks for the tip about adding the setMapSize snippet in 
> the MapController.as. It sized fine when first loading but that
could be 
> VERY useful when dynamically resizing.
> 
> Thank you to you both. I'll give these a shot and see if there is any 
> progress with it.
> 
> Michael
> 
> Benoit Hediard wrote:
> >
> > Are you sure you can catch events generated by an href link in the 
> > description htmlText?
> >
> >  
> >
> > I think we've tried to play around with the POIMarkerClick event.
> >
> > But it was only dispatched when you first click on the marker to
open it.
> >
> > Further click on a link in the htmlText description was not
generating 
> > any POIMarkerClick events, so we could not catch anything.
> >
> >  
> >
> > But may be, we did something wrong, we have to check it out again...
> >
> >  
> >
> > Benoit Hediard
> >
> > #affinitiz.com
> >
> >  
> >
> > *De :* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> > *De la part de* anupam_81
> > *Envoyé :* mercredi 25 avril 2007 09:27
> > *À :* flexcoders@yahoogroups.com
> > *Objet :* [flexcoders] Re: yahoomaps POI marker click event, htmltext 
> > asfunction
> >
> >  
> >
> > Hi michael,
> > I have done this and its pretty easy,
> > You can call any flex event on the click of the marker click
> > there is one event called onPOIMarkerClick in the Yahoo map component.
> > You should have the latest code because this event handler was not
> > there in the previous versions.
> >
> > I have written a blog entry on this...
> > Check it out..
> >
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/

> >

> >
> > Cheeers!
> > Anupam
> > --- In flexcoders@yahoogroups.com 
> > , Michael Wills  wrote:
> > >
> > > For clarification, the idea is simply to allow a marker to be
> > clicked to
> > > open it, but then trigger an event/call a function in the
cairngorm app
> > > when clicking on a link in the description.
> > >
> > > Thanks,
> > >
> > > Michael
> > >
> > > Michael Wills wrote:
> > > >
> > > > Hello all,
> > > >
> > > > Just wondering if it's possible to use asfunction to call a
function
> > > > in a cairngorm app from the htmltext in the description of a POI
> > > > marker within a Yahoomap in a Flex 2 app without making
modification
> > > > to the as2map.fla file.
> > > >
> > > > It's a long shot, but I was just wondering if it's been done, and
> > > > eagerly anticipating a true AS3 map component.
> > > >
> > > > The new AS3 "ev

Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Christian Gruber
This is great, however, because even if it won't rule the world,  
it'll be a LOT easier to implement the flex2 maven plugin with an  
open source compiler.  We should be able to make something that  
builds flex without having to pre-install the flex system.  The  
current approach is fine, but annoying for setup.

Christian.


On Apr 26, 2007, at 8:47 AM, Brian Lesser wrote:

> LOL, I hope not... world domination seems a little extreme for a
> compiler, debugger, component framework and the other bits and  
> pieces...
>

christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob  
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES




[flexcoders] using remoteObject with a parameter array

2007-04-26 Thread hank williams

 I am trying to figure out how to use remoteObject in such a way that the
parameters passed to the remote function come from an argument array as
shown below. What is the appropriate way to do this?

Hank

 function asynchGet(type:String,
  destination:String,
  funcName:String,
  resultHandler:Function,
  faultHandler:Function,
  argArray:Array):void{

   var ro:RemoteObject = new RemoteObject();
   ro.destination = destination;

  // can I do this below line?
   ro["funcName"].addEventListener("result",resultHandler);

   ro.addEventListener("fault", faultHandler);

  // I know the below line isnt right but am trying to
figure out what is
ro["funcName"].apply(argArray);
   }


Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Brian Lesser
LOL, I hope not... world domination seems a little extreme for a 
compiler, debugger, component framework and the other bits and pieces...

The discussion has been interesting though. I really like the idea that 
developers could weave their own components into the framework:

See Ryan Stewart: http://blogs.zdnet.com/Stewart/?p=353

But what interests me most is how Adobe will go open source but still 
retain control as they gradually allow people outside the company to run 
with "sub projects" within the Flex system. (Again see Ryan's article.)

I hope taking Flex open source is a huge success because I'd like to see 
Adobe do something similar with the player. (To "RULE THE WORLD" in 
Greg's terms?) My guess (and I really don't know) is that many people in 
Adobe can't imagine how they would take the player open source in a 
meaningful way. It is a highly optimized and size-constrained piece of 
code. For example one question would be how could Adobe begin to provide 
the community with a way to own sub projects?

One tantalizing possible answer is for Adobe to look at re-engineering 
the player to adopt an extension mechanism of some type. The strategy is 
risky because no one wants an Acrobat player experience for Flash but it 
could solve a lot of problems. There was a fitc session that I couldn't 
attend where I understand the Flash player group asked for comments on 
what to put into the player in the future. I imagine there were all 
sorts of requests like hardware accelerated 3D, screen sharing, and 
better video codecs. It's hard for Adobe to add those sorts of things 
quickly without a player extension mechanism. It's probably impossible 
for them to keep the player size small and add many of the big important 
things designers and developers want.

So it seems there are a lot of good drivers for going with introducing a 
more extensible/modular architecture for the player:

1.it provides an opportunity for real participation in an eventual 
open source initiative for the player
2.the player becomes more agile (and therefore competitive) with 
smaller extensions coming out in-between major player upgrade cycles
3.Adobe can add newer more powerful features to the player without 
bloating the initial download size much more. Extensions would have to 
download once as needed.

There are probably a lot of reasons folks inside Adobe know about for 
not doing this that I'm not aware of. For example another thing no one 
wants to see is a Windows Media Player experience where the player 
announces it can't find the right codec to play your video. But if those 
things could be overcome this note is my personal request to Adobe to 
continue the process you started with AS3 and make it happen for the 
player too.

Cheers,
-Brian

greg h wrote:

> TRULY, NOW, FLEX WILL RULE THE WORLD!!!
>
> Oh, and now I better understand why the name change on Flex Data 
> Services to LiveCycle Data Services.
>
> g
>


-- 
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__



[flexcoders] Flex 1.5/Flash Remoting Gateway Problem

2007-04-26 Thread oiland_barry
Hi,

It's been a while since I posted on the group, I've been lucky
enough to not have many big problems while developing with Flex in the
past 6 months!

But last week whilst testing a significant section of my flex
application, it was discovered that the flash client was having problems
receiving a result from the flash remoting gateway on certain occasions.

This is a BIG problem, especially as I am coming to the end of the
contract with my employer, and I'm trying to get the project wrapped up
for next week!

I am developing in Flex 1.5 (using remote objects to consume the
Coldfusion CFCs), with Coldfusion MX 7.0.2 running in the back end, and
MS SQL 2005 (although i dont think the databse is anything to do with
the problem), on a Windows Server 2003 SP2 server.

I have ruled out a number of issues that I believe could be the problem,
including:

   Network connections (the flash client can communicate with the server
no problem, initially!)

   Coldfusion (the CFC method is being invoked successfully, and
returning the result to - I dump the result to a html log file)

   Flash Remoting Gateway (The log files confirm that the gateway
completes sending the result back to the )

   Flash Client (I have tried replicating the steps followed on a number
of different client machines, all fail at the same point)

When the Flex application initially loads, it invokes 23 methods in the
Coldfusion CFC, which returns all the results with no problem.

The user then adds some data to the form on the flash client (the Flex
application).  The form contains a combo box that the user selects a
category from.  When the category changes, a CFC method is invoked (one
of the 23 that was invoked only moments earlier), which returns a
Boolean value, to check if the category has any sub categories.

>From time to time (and more often than not) when this method is invoked,
the flash client just sits idle with the timer icon spinning around (it
is waiting for a response from the flash remoting gateway).

I have checked the flash remoting gateway log files, and the result is
being returned by the gateway.  It seems that the flash client is not
receiving the response.

There are many other sections in the application where flex/flash
clients consume Coldfusion CFC's, again they can be temperamental and
hang, waiting for a response indefinitely!

I believe my Flex application is ok, as it successfully invokes the CFC
method without any problems; it just seems to hang on certain occasions.
Maybe the flash remoting gateway is not correctly configured?

I also thought it might be a http connection issue with the server, but
as far as i know, the CFCs are invoked, the result is sent back, and the
http connection is closed.

I also thought it might have been a session-based issue with the
Coldfusion CFCs, but i think i have ruled that out.

If anyone could help me I would be in serious debt to them!  As I said I
am coming to the end of this project and I don't need this problem
right now.  I have tired ruling out every possibility, but to no end can
I find the source of the problem.

Regards,

Barry

p.s. here is a dump of the flash remoting gateway log when the flex
application is first loaded in the browser, and the result of the first
CFC method invocation...

4/26 12:22:41 [INFO] RemoteObject_AMF: Creating Service for
remoting.plants
4/26 12:22:41 [INFO] RemoteObject_AMF: Creating gateway connection for
http://carndevserver:8500/flashservices/gateway
4/26 12:22:41 [INFO] RemoteObject_AMF: Successfully created Service
4/26 12:22:41 [INFO] RemoteObject_AMF: Creating Service for
remoting.miscTables
4/26 12:22:41 [INFO] RemoteObject_AMF: Successfully created Service
ERROR: ComboBox dataProvider must be instance of Array, ResultSet, or
implement the DataProvider methods
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSoilTypes on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetDurabilities on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetGenusNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSpeciesNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetCategories on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetColours on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetHardiness on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetComposts on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetGrowthHabits on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetToxicities on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetCommonNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetLightLevels on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetPositions on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSeasons on
remotin

  1   2   >