RE: [flexcoders] Re: Flex and Adsense

2007-06-06 Thread Benoit Hediard
It’s possible to put some html div layer on top of a flash/flex app.

But, in order to that, you must use wmode as opaque or transparent.

And if you do that: you’ll face the famous Firefox bug where most keyboard
inputs for special characters is screwed up.

Pretty annoying…

 

Right now, Ad servers are not ready to serve ad for flash/flex, all of them
rely on Javascript…

Adobe might try to do something about that and ask for flash compatibility
to the biggest Ad servers (Google AdSense, DoubleClick DART, RealMedia Open
AdStream…)?

 

Benoit Hediard

#affinitiz.com

 

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de alex steel
Envoyé : mardi 5 juin 2007 20:09
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex and Adsense

 

if you want I can make example of html over flex, with alternative content
but I'm sure almost everyone here can do that 

thnx
Alex

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Judith Dinowitz [EMAIL PROTECTED] wrote:

 Actually, Michael says that Adsense is a piece of JavaScript that
remotely
 pulls in content. Straightforward, but the content being pulled in,
which is
 essentially HTML, needs to be placed on the page in context. So if
the page
 is a Flex application, then the Flex application has to accept that
content
 and display it.
 
 Michael says that he's sure Flex can accept content from JavaScript and
 display it, but it runs into the problem that Adsense will deliver the
 content based on the contextual content of the page. Google has seen the
 page and knows what's on it. So therefore, Google has to see
something on
 the page that says, Hey, let's put a proper ad in. Google can't
read Flash
 content... That's where your problem comes in.
 
 So how do you solve that problem? The solution is to have the Flex
 application on a page that has content, or expose all the Flex
content in
 the application on the page for Google to see.
 
 Judith
 
 On 6/5/07, Judith Dinowitz [EMAIL PROTECTED] wrote:
 
  Actually, if someone has found a way to do so, I'd love to publish
it as a
  short article on FA online. :)
 
  Judith Dinowitz
  Editor-in-Chief
  Fusion Authority
  http://www.fusionauthority.com/
 
  On 6/5/07, Romain [EMAIL PROTECTED] wrote:
  
   Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ?
   Any in the room ?
  
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , James jwilson@ wrote:
   
Well if it is true that their current TOS disallows flash site
usage,
then we need to start a petition or something. But first we
need to
get Google's official stance. Anyone up to writing them a friendly
email? :)
   
-James
   
  
  
  
  
   --
   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
  
  
  
  
 
 
  --
  Judith Dinowitz
  Editor
  Fusion Authority
  The House of Fusion Technical Magazine
  http://www.fusionauthority.com
 
 
 
 
 -- 
 Judith Dinowitz
 Editor
 Fusion Authority
 The House of Fusion Technical Magazine
 http://www.fusionauthority.com


 

image001.jpgimage002.jpg

RE: [flexcoders] youtube

2007-05-05 Thread Benoit Hediard
Are you sure that it is allowed to play FLV directly without the official
YouTube player?

 

Benoit Hediard

#affinitiz.com

 

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Manish Jethani
Envoyé : samedi 5 mai 2007 11:45
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] youtube

 

On 5/5/07, André Rodrigues Pena [EMAIL PROTECTED]
mailto:andre.ufrj%40gmail.com  wrote:
 but loading from youtube server?

You can start here:

http://mannu.livejournal.com/326881.html

The demo doesn't work because of cross-domain issues. But you can
extract the code for fetching the FLV URL and use it in your app.

PS: Yes, you can play the FLV directly from YouTube. As long as you
get the URL right.

 

image001.jpgimage002.jpg

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

2007-04-25 Thread Benoit Hediard
Hi Michael,

 

We had this exact same problem just 2 days ago… ;)

And we have not found any working solution yet, despite some
experimentation.

 

When recompiling the as2map.fla, the generated as2map.swf doesn’t work
anymore, we have to use the provided as2map.swf, and you?

Have you found anywhere the fla source of the customMarker.swf?

 

One tip, we have added the following function in MapController :

public function setMapSize(height:int, width:int):void {

EIBuffer.addCall({method:super.swfDomId + “.setMapSize” +
super.UUID, data:{w:width, h:height}});

}

 

And then, on mapLoad event, you can call this function to set the map size
(usually the height and width of the parent container).

So you don’t have to recompile the as2map.fla for a given map size…

 

Benoit Hediard

#affinitiz.com

 

 

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Michael Wills
Envoyé : mardi 24 avril 2007 19:25
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] yahoomaps POI marker click event, htmltext
asfunction

 

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 event: protocol of course isn't recognized by the Flash 
 8 interpreter and so it's not available.

 So I was hoping it would be something like:

 markerDesction = a asfunction:doNotKnowWhatGoesHere.myFunction/

 Is that a possibility at all?

 Thanks,

 Michael

 

 

attachment: image001.jpg
attachment: image002.jpg


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

2007-04-25 Thread Benoit Hediard
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 mailto:flexcoders%40yahoogroups.com ,
Michael Wills [EMAIL PROTECTED] 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 event: protocol of course isn't recognized by the Flash 
  8 interpreter and so it's not available.
 
  So I was hoping it would be something like:
 
  markerDesction = a asfunction:doNotKnowWhatGoesHere.myFunction/
 
  Is that a possibility at all?
 
  Thanks,
 
  Michael
 
 


 

attachment: image001.jpg
attachment: image002.jpg


RE: [flexcoders] Re: Blog sites done in Flex

2007-04-24 Thread Benoit Hediard
Indeed, Flex might not be appropriate for a blog front-end, since it has
strong html display (and search engine indexing) limitations.

But as a back-end, it might have some advantages.

 

On our plate-form (www.affinitiz.com), we use :

-  an HTML-based front-end for the public pages (blogs), with some
Flex2-based widgets (audio/ video player, polls, photo galleries, comments,
maps…),

-  a Flex2-based back-end for the private group communication
(communities) and content publishing.

 

The main limitation is the Flex 2 Rich Text Editor which is currently pretty
basic… (compared to latest WYSIWYG Ajax/JS editors)

 

Benoit Hediard

 

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de one786786
Envoyé : lundi 23 avril 2007 20:33
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Blog sites done in Flex

 

Honestly, I think Flex would be overkill for a regular blog system. Is
there anything particular that you wish to achieve?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
mapper2255 [EMAIL PROTECTED] wrote:

 Hello,
 
 Any one seen a good blogging site lately that was done in Flex?
 
 Thanks.


 

attachment: image001.jpg
attachment: image002.jpg


[flexcoders] Affinitiz V3.2: english version released!

2007-03-19 Thread Benoit Hediard
Hi everyone!

 

A quick message to inform you that we just launched the English version of
our platform (even if the English is certainly not perfect yet.).

Affinitiz is a web publishing platform that allows you to easily share all
your contents on Internet (text, pictures, video, audio, opinions, polls,
events...), on private communities or public blogs.

Our V1.0 (focused on private communities) was originally launched in 2001,
in French language only.

 

The main publishing/manager app is based on Flex2, may be one of the most
advanced public-facing Flex 2 app on the market (it took me more than 2
years to develop this new version ;) ).

We also have some small Flex2 apps on the public/blog pages : photo
slideshows, polls, comments, audio/video player.

Ex. :
http://www.affinitiz.com/space/fredtrip/content/best-of-paysages_8149D124-DC
C4-4977-A4BF-1985EB672743

 

In fact, this V3.0 is fully based on the Adobe Engagement platform : Flex 2
+ ColdFusion 7 + Flash Media Server 2 (and soon to come Apollo)!

 

To access it : http://www.affinitiz.com (have a look at the 5 min guided
tour that shows the most important features).

On the Web2.0 market, the two most similar recently release platforms are
Marc Andreessen's Ning or SixAppart Vox Groups.

 

We definitely know that it is still far from perfect. so your feedbacks are
welcome.

 

Have fun!

 

Benoit Hediard

#affinitiz.com

 



[flexcoders] FileReference.download() crashes the browser

2006-12-04 Thread Benoit Hediard
Hi,
 
We have many users reporting browser crashes when trying to download files
from our Flex2 app.
But we have never been able to reproduce the problem.
 
Apparently, they have the latest Flash Player 9 and the problem occurs on IE
(6 or 7) or Firefox (1.5 o 2.0), on Windows XP SP2.
So I suppose this is linked to some additional software installed on their
machine, may be Norton Internet Security 2005 (I have NIS2006 and cannot
reproduce the pb...).
We are currently trying to get more info on their config.
 
Anyone has encounter a similar issue?
 
Benoit Hediard
#affinitiz.com


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

2006-11-23 Thread Benoit Hediard
That's why we don't use getter/setter functions in our CFCs VO (properties
are public), so we don't have this performance issue.
I suppose it gives you the performance of struct and the advantadges of
typed/mapped objects.
 
Benoit Hediard
#affinitiz.com
 
  _  

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Dirk Eismann
Envoyé : jeudi 23 novembre 2006 10:29
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] ColdFusion and Flex Integration - up to 10x gain,
avoid cf object creation




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



  _  

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


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


 


RE: [flexcoders] Large Cairngorm Directory structures

2006-11-02 Thread Benoit Hediard
Yes, dividing the app might me a solution.

Our different applications (based on Cairngorm2) are organized as follow.
We prefer to only use 4 main directories : model, view, controller and
service (structure we share for our ColdFusion server side applications).

/com/company1/commons/lib (commons libraries) 
/com/company1/commons/controls (commons controls) 

/com/company1/domain1/controller/ : CairngormEvents, shared between
applications
/com/company1/domain1/model/ : ValueObjects (business VO) and business
managers, shared between applications
/com/company1/domain1/service/ : ValueObjects (request/response service VO)
and business delegates, shared between applications
/com/company1/domain1/view/ : View components, shared between applications

/com/company1/domain1/application/app1/controller/ : Controller and
Commands, specific to app1
/com/company1/domain1/application/app1/model/ : ModelLocator, specific to
app1
/com/company1/domain1/application/app1/service/ : ServiceLocator, specific
to app1
/com/company1/domain1/application/app1/view/ : View components, specific to
app1

/com/company1/domain1/application/app2/controller/ : Controller and
Commands, specific to app2
/com/company1/domain1/application/app2/model/ : ModelLocator, specific to
app2
/com/company1/domain1/application/app2/service/ : ServiceLocator, specific
to app2
/com/company1/domain1/application/app2/view/ : View components, specific to
app2

...

For several domain applications, sharing CairngormEvents, ValueObjects and
Views usually make a lot of sense (for example when building a FrontOffice
app and a BackOffice app).
But there are so many ways to structure, organize and package
applications...

Benoit Hediard
#affinitiz.com

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : jeudi 2 novembre 2006 14:28
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Large Cairngorm Directory structures

I need to construct a directory structure for a MONSTER Flex/CF application.
(300 forms, 150 reports).  Does anyone have large system directory
structures they would be willing to share?

We are attempting to divide the system into several separate applications
(for obvious reasons).  Assuming we have 8 to 10 sub- systems sharing a
common front-end menu hierarchy, how should we construct a directory
structure for cairngorm:

applicationroot
   \assets
   \com
   \adobe  [why is this node needed?]
   \subapp1
  \business
  \comand
  \control
  \model
  \view
  \vo
\subapp2
  \business
  \comand
  \control
  \model
  \view
  \vo
 ...etc
 




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









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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] JUST SAY NO to creationPolicy=all !

2006-10-31 Thread Benoit Hediard
In most cases and in a perfect world, it can be avoided.
But in some specific cases, it is very useful, especially to workaround some
binding bugs...

In our app (a pretty complex one), we use as much as possible the Cairngorm
ModelLocator and bindings.
But we have some views that could not be configured by bindings or at
initialization, so we are using cairngorm ViewHelpers to do that.
In order to use viewHelpers, you have to be sure that the view has been
instantiated.

Deferred instantiation is not always the way to go.
So please, do not remove this option... ;)

Benoit Hediard
#affinitiz.com

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Adam Dorritie
Envoyé : mardi 31 octobre 2006 14:37
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] JUST SAY NO to creationPolicy=all !

On 10/30/06, Gordon Smith [EMAIL PROTECTED] wrote:
 rant
 I've never seen a case where it is necessary to push data into the
controls before they exist. If you must put the data somewhere in the
meantime, store it in data vars, which have none of the startup cost of a
visual component, and then move it into the controls after they get created.

 /rant

I guess I'm wondering why, if there is apparently no use case for this
feature and deferrred instantiation is the way to go, it is included in
the language at all.  Is there never a case to use this option?


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









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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] JUST SAY NO to creationPolicy=all !

2006-10-31 Thread Benoit Hediard
In that case, we even don't need view helpers, we could set the model
directly in our commands.
Sometimes, on complex app, bindings don't work as expected, so you have to
find workarounds.
But don't get me wrong, in 99% of the cases, bindings are the way to go.

Benoit Hediard
#affinitiz.com 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Tom Chiverton
Envoyé : mardi 31 octobre 2006 17:24
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] JUST SAY NO to creationPolicy=all !

On Tuesday 31 October 2006 15:40, Benoit Hediard wrote:
 But we have some views that could not be configured by bindings or at 
 initialization, so we are using cairngorm ViewHelpers to do that.
 In order to use viewHelpers, you have to be sure that the view has 
 been instantiated.

Why don't your ViewHelpers just set something in the model, then bind to
that in the view ?

--
Tom Chiverton
Helping to quickly participate eligible deliverables



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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] JUST SAY NO to creationPolicy=all !

2006-10-31 Thread Benoit Hediard





Good question... ;)

We've tried several times to isolate thebugs on more 
simple app, but without success.
Usually, it involves ViewStack, Repeater 
withRadioButtons and/or Tile.
The sizing of mx:Text with a width="100%" can also 
bevery buggy.
Very specific and 
complexcaseswhere the only quick workaround we found was to set 
creationPolicy to "all".
There was perhaps better and more elegantworkarounds 
but as it was working for us, we needed to go on...

Next time I face the problem, I'll try to isolate 
it.
But again, 
Cairngorm ModelLocator andbindings are the way to go.
Theycan avoidcreationPolicy="all" and 
viewHelpers most of the time.

Benoit Hediard
#affinitiz.com


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Alex 
UhlmannEnvoyé: mardi 31 octobre 2006 18:01À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] JUST SAY NO 
to creationPolicy="all" !

Hi Benoit,

can you tell us more wherebindings didn't work for 
you?

Best,
Alex



  
  

  


  
  
Alex 
Uhlmann Consultant (Rich Internet Applications)Adobe 
ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, 
Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969m: +44 (0) 
7917 428 951[EMAIL PROTECTED]http://weblogs.macromedia.com/auhlmann



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Benoit 
HediardSent: 31 October 2006 15:40To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] JUST SAY NO to 
creationPolicy="all" !


In most cases and in a "perfect" world, it can be avoided.But in some 
specific cases, it is very useful, especially to workaround somebinding 
bugs...In our app (a pretty complex one), we use as much as possible the 
CairngormModelLocator and bindings.But we have some views that could not 
be configured by bindings or atinitialization, so we are using cairngorm 
ViewHelpers to do that.In order to use viewHelpers, you have to be sure that 
the view has beeninstantiated.Deferred instantiation is not "always 
the way to go".So please, do not remove this option... ;)Benoit 
Hediard#affinitiz.com-Message d'origine-De : [EMAIL PROTECTED]ups.com 
[mailto:[EMAIL PROTECTED]ups.com] 
De lapart de Adam DorritieEnvoyé : mardi 31 octobre 2006 14:37À : [EMAIL PROTECTED]ups.comObjet 
: Re: [flexcoders] JUST SAY NO to creationPolicy="all" !On 
10/30/06, Gordon Smith [EMAIL PROTECTED]com wrote: 
rant I've never seen a case where it is necessary to push data 
into thecontrols before they exist. If you must put the data somewhere in 
themeantime, store it in data vars, which have none of the startup cost of 
avisual component, and then move it into the controls after they get 
created. /rantI guess I'm wondering why, if 
there is apparently no use case for this"feature" and deferrred 
instantiation is "the way to go," it is included inthe language at all. Is 
there never a case to use this option?--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] BitDefender does not like Flex AMF3 remoting

2006-10-25 Thread Benoit Hediard





FYI, it looks like 
the latest release of BitDefender (www.bitdefender.com)does not like 
AMF3 remoting by default.
Pretty annoying if 
firewalls start to block Flex/Flash Remoting capabilities...

I've not been able 
to reproduce the problem but it was reported by one of our user, after an update 
to the latest BitDefender release (it was working fine before the 
update).

Benoit 
Hediard
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] Affinitiz V3.0 powered by Flex2+ColdFusion7+FMS2

2006-09-29 Thread Benoit Hediard





Hi 
everyone,

FYI, we finally 
launched the new version of our blogs/communities platform Affinitiz 
(initiallylaunched in its V1.0in 2000)!

It's a personal 
publishing tool for blog/communities (public/private contents),with more 
than300 000 members and25 000 communities.
The main app is 
powered by Flex2 (developped with Cairngorm2 framework) and ColdFusion7 
remoteservices (developped with ColdSpring framework, no 
FDS).
ColdFusion7 is also 
used for the "public" pages (home, member profiles, blogs and global 
directories).
Next month, we'll 
add chat/online presence powered by Flash Media Server2.
A 100% "powered by 
Adobe" platform!

I spent more than 2 
years (on my own)to develop this new platform, starting itwith Flex1 
alpha andfinishing it withFlex2...
So you can imagine 
that I'm pretty happy to release it!

In order to have an 
overview of it, you can go to http://www.affinitiz.com and click on the 
button"Voir la visite guidée" (guided tour).

Sorry, it's only in 
french...

Have 
fun!

Benoit 
Hediard





__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



RE: [flexcoders] Affinitiz V3.0 powered by Flex2+ColdFusion7+FMS2

2006-09-29 Thread Benoit Hediard





You probably had a problem with the birthdate 
formatting?

This is typical of the feedback we have about the Flex 
error tips... ;)
Most of the users don't see the redhalo around the 
input.
It might be better if the error toolTip are displayed by 
default (and not only on roll over).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Francois 
DejardinEnvoyé: vendredi 29 septembre 2006 
12:06À: flexcoders@yahoogroups.comObjet: Re: 
[flexcoders] Affinitiz V3.0 powered by 
Flex2+ColdFusion7+FMS2

Hi,

Your application looks great, but i had a bug 
trying sign it in .. after the second inscription form i was
unable to go to the next step (confirmation) .. i 
had to close the window andretry again..

regards

Francois



  - Original Message - 
  From: 
  Benoit Hediard 
  
  To: flexcoders@yahoogroups.com 
  Sent: Friday, September 29, 2006 10:40 
  AM
  Subject: [flexcoders] Affinitiz V3.0 
  powered by Flex2+ColdFusion7+FMS2
  
  
  
  Hi 
  everyone,
  
  FYI, we finally 
  launched the new version of our blogs/communities platform Affinitiz 
  (initiallylaunched in its V1.0in 2000)!
  
  It's a personal 
  publishing tool for blog/communities (public/private contents),with more 
  than300 000 members and25 000 communities.
  The main app is 
  powered by Flex2 (developped with Cairngorm2 framework) and ColdFusion7 
  remoteservices (developped with ColdSpring framework, no 
  FDS).
  ColdFusion7 is 
  also used for the "public" pages (home, member profiles, blogs and global 
  directories).
  Next month, we'll 
  add chat/online presence powered by Flash Media Server2.
  A 100% "powered by 
  Adobe" platform!
  
  I spent more than 
  2 years (on my own)to develop this new platform, starting itwith 
  Flex1 alpha andfinishing it withFlex2...
  So you can imagine 
  that I'm pretty happy to release it!
  
  In order to have 
  an overview of it, you can go to http://www.affinitiz.com and click on 
  the button"Voir la visite guidée" (guided tour).
  
  Sorry, it's only 
  in french...
  
  Have 
  fun!
  
  Benoit 
  Hediard
  
  
  
  
  
   
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



RE: [flexcoders] Background transparancy

2006-09-29 Thread Benoit Hediard





In order to get full transparency (in an html page), you 
might also have to set windowMode to "transparent" in your code that insert the 
swf:
object ...
 ...
 param name="wmode" 
value="transparent" /
 ...
 embed 
 
...
 wmode="transparent"
 ... 

 /embed
/object

Benoit Hediard



De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de sumeet 
kEnvoyé: vendredi 29 septembre 2006 08:23À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Background 
transparancy

Hi Patrick,
Ypu can set backgroundAlpha="0" in application tag.dj 
[EMAIL PROTECTED] wrote:

  
  How do you set the background alpha of an application to 0, 
  possible?Thanks,Patrick


Get your own web 
address for just $1.99/1st yr. We'll help. Yahoo! 
Small Business.  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



RE: [flexcoders] Huge memory usage in Flex Builder 2 (release version)

2006-09-15 Thread Benoit Hediard
No, when your app start to grows, FB requires a lot of RAM for compilation.
For our app, I had to add 1Go of RAM (total 2Go) on my dev machine,
otherwise I had to close FB every 2 or 3 compilations... ;)

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de RBullotta
Envoyé : vendredi 15 septembre 2006 15:37
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Huge memory usage in Flex Builder 2 (release version)

In a not-so-big Flex application, I'm noticing that FB is often consuming
500MB+ of RAM.  Seems something is amiss...






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






 








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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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





RE: [flexcoders] Flex client cache and new versions

2006-08-30 Thread Benoit Hediard
The swf is stored in the user cache.
To be sure that your users get the latest version, you can simply add a
version parameter in the url of the swf.
Ex.: myApp.swf?version=2.0.34

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de shrefler
Envoyé : mercredi 30 août 2006 14:27
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Flex client cache and new versions

I have a question about how client cache handles flex 2 swfs.  I'm making an
application where some users speed is an issue.  After the initial download,
should the flex application be stored in the users cache?  Also, how can you
force a re-download of the application if a new version is released? 

THanks

Sam





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



 








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

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

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

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




RE: [flexcoders] Re: Flex 2 Final : Error #1009, in RadioButton/get labelPlacement()

2006-08-24 Thread Benoit Hediard
Hi Jason,

Yes, I found one workaround to this issue.
Use the repeatEnd event to execute a function that will assign the groupName
to each one of your RadioButton. 
Use also this function to assign the selected button (because the bindings
are a source of the problem).

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Jason
Envoyé : jeudi 24 août 2006 18:11
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex 2 Final : Error #1009, in RadioButton/get
labelPlacement()

Has anyone found a workaround to the bug with RadioButton groups and
repeater components described here?  I have having this same problem.

--jason

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

 I've investigated this issue a little bit more.
 It looks like there some problems with RadioButton when they are used 
 in groups.
 First display is generally correct, but when the display list is
refreshed,
 it generates some bugs.
  
 In our case, the RadioButton group is used in a popup, and even
after the
 popup is deleted, some popup display routines are still executed.
  
 When debugging is on, the error is generated in RadioButton.as, at
line 172,
 because the property group is null :
 if (_labelPlacement != ) {
 value = _labelPlacement;
 } else if (_group  group.labelPlacement != ) { // L.172
 value = group.labelPlacement;
 }
  
 Workaround : always define labelPlacement in all your RadioButton
(so that
 the group labelPlacement is never read).
  
 I've also encountered a similar error in another case : RadioButton
groups
 used inside a Repeater, with the groupName defined during the repeater 
 execution (groupName={theRepeater.currentIndex}).
 First execution is correct, but the next ones generate an error.
  
 When debugging is on, the error is generated in the RadioButton.as,
at line
 454, for the same reason (property group is null) :
 var g:RadioButtonGroup = group:
 g.addInstance(this); // L.454
  
 I haven't found a workaround for this one.
  
 It's too bad because all of this was working in previous beta but
not on the
 final release ;).
  
 Benoit Hediard
 
   _
 
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de Benoit Hediard
 Envoyé : lundi 3 juillet 2006 12:36
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Flex 2 Final : Error #1009, in RadioButton/get
 labelPlacement()
 
 
 Error #1009: Il est impossible d'accéder à la propriété ou la
méthode d'une
 référence d'objet nul.
 (in english, something like it is not possible to access the
property or
 the method of the null object reference) at 
 mx.controls::RadioButton/get labelPlacement() at

mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutConten
 ts()
 at mx.controls::Button/mx.controls:Button::updateDisplayList()
 ...
  
 In Flex2 final, I'm getting this error regularly...
 Not tried yet to reproduce it on a simple regular case, but it looks
like
 pretty random.
 I don't use the labelPlacement property in our app.
  
 I've never encountered this error in previous beta, only since the FP9 
 /
 Flex2 Final.
 Looks like a very annoying low level framework error, related to the
layout
 of RadioButtons.
  
 Anyone else facing this issue?
 And found a workaround?
  
 Benoit Hediard







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



 







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

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

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

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





RE: [flexcoders] Benoit Hediard: iTunes MP3 in flash player issue

2006-08-23 Thread Benoit Hediard
Indeed, I just made a test with a recently encoded file with iTunes and it
worked.
So I'm going to send you one the files that was causing a problem.

Thank you for looking at this issue.

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Amir
Envoyé : mercredi 23 août 2006 18:09
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Benoit Hediard: iTunes MP3 in flash player issue

Hi 

This email is for Benoit Hediard: 

You submitted an issue saying that an MP3 that has ID encoded with iTunes
doesn't play in flash player. 


I tried reproducing with itunes 6.0.5.20 , but it played just fine.
 

We also knew about an iTunes bug where the ID3 is encoded 
incorrectly, however my understanding was that the bug was fixed, 
which is the reason I couldn't repro with 6.0.5.20. So I closed out 
the issue when you first submitted it in the beta phase. 


Recently, you submitted this issue again, saying that you repro'ed 
with 6.0.5.20. I have not been able to repro. 


Can you please provide me the .mp3 file that you can't run in flash 
player 9? 


You ddin't leave your e-mail address, so this is why I'm sending out 
a blanket one to flexcoders yahoo group. 


Thanks, 
 

Amir Memon

Quality Engineer for Flash Player

Adobe Inc.







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



 







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

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

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

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




RE: [flexcoders] PopUp Windows 50% Transparent???

2006-08-16 Thread Benoit Hediard
Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)?

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Mike Anderson
Envoyé : mercredi 16 août 2006 22:58
À : flexcoders@yahoogroups.com
Objet : [flexcoders] PopUp Windows 50% Transparent???

Hello All,

Every time I create a popup, it's transparent around the entire border area.
I even tried using code, to force the Alpha value - and it still insists on
showing the application residing one layer below.

Is this by design, and is there a way I can inhibit this behavior??

Thanks in advance for any help,

Mike


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



 







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

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

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

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




RE: [flexcoders] Object is null/when it is passed along to Coldfusion.

2006-08-04 Thread Benoit Hediard
Try to put stuff in your object:
var oData:Object = new Object();
oData.test = hello;

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de maikelsibbald
Envoyé : vendredi 4 août 2006 08:28
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Object is null/when it is passed along to
Coldfusion.

We even made a simple test:

//WOKING
cf.test(true);

//WOKING
cf.test(1);

//WOKING
cf.test(hello);

//NOT WOKING //in CFC we expect a struct, right!?
var oData:Object = new Object();
cf.test(oData);


mx:RemoteObject id=cf
destination=ColdFusion
source= 
endpoint=## 
mx:method name=test result=serverResult(event)
fault=serverFault(event) /
/mx:RemoteObject

Can anybody tell me what is wrong...






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



 








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

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

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

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




RE: [flexcoders] textInput autocommit?

2006-07-28 Thread Benoit Hediard





You could also use 
the"valueCommit"event.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de 
sinatoskEnvoyé: vendredi 28 juillet 2006 
10:04À: flexcoders@yahoogroups.comObjet: Re: 
[flexcoders] textInput autocommit?
have you tried "focusOut" event?http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut 

On 28/07/06, ryan 
harlin [EMAIL PROTECTED] wrote:

  
  
  
  
  
  I posted a similar question with more explanation butI'll simplify 
  since I probably bored people away fromanswering:How do I get a 
  textInput field to autocommit to mydata source (FDS)? On leaving the field 
  I want thechanges to update the database but I can't seem tofigure it 
  out. I can get it work on pressing theenter key but not upon losing 
  focus.__Do You 
  Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 
   
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Caringorm - Visual Flowchart Poster!

2006-07-28 Thread Benoit Hediard
As for application server side technologies, you might just put :
- .NET,
- J2EE,
- LAMP.

It would cover 99% of them... ;)
 
Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Evan Gifford
Envoyé : vendredi 28 juillet 2006 17:16
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Caringorm - Visual Flowchart Poster!

Hey Tom, you're probably right about removing the database icons. I was
trying to show the diversity of technologies and services which Flex can
integrate into a single, seamless presentation-tier. I wanted this to really
look like a diverse, service orientated architecture and so tried to
differentiate the servers with a database icon. 

Would it work if I put, say ... a few other technologies such as GDLib on
Linux with Perl and MySQL, Oracle on J2EE and PDF generation working on IIS
with MSSQL?

Views?

Also, I'm a little confused about Views. Since this diagram does not (yet)
include the ViewHelper and ViewLocator, should I have the views labeled as
Views, or should they just be a datagrid-like-thing and a form, updated
by databinding?


I have done the following:

-Removed database icons from IIS Server


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, July 28, 2006 4:08 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Caringorm - Visual Flowchart Poster!

On Thursday 27 July 2006 21:42, Evan Gifford wrote:
 What else am I missing?

How come only the IIS server gets a database symbol :-) I'd drop them from
IIS myself - it's not important what the service does.

--
Tom Chiverton



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



 




-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 7/27/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 7/27/2006
 


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



 








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

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

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

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




RE: [flexcoders] Command classes that use multiple delegates

2006-07-28 Thread Benoit Hediard
If your commnad is calling two different delegates, you might refactor it
into two independant commands and call them in a sequence.
The result would be nearly the same and it might me cleaner.

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de jrjazzman23
Envoyé : vendredi 28 juillet 2006 18:49
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Command classes that use multiple delegates

Hi,

In the case of a Command that uses multiple business delegates, what's best
practice for an onResult() knowing which remote call it's handling?  

thanks






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



 








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

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

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

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





RE: [flexcoders] Cleaning a file in eclipse ?

2006-07-27 Thread Benoit Hediard





Hello Jean-Luc!

Nice to see you here... ;)

In .as files, you can re-organize your imports with 
Ctrl+Shift+O (very cool), but unfortunately, it does notclean the unused 
ones...
In .mxml files, nothing to re-orgnaize your imports 
yet...

I suppose that this kind of features as well as 
re-factoring are high on the enhancements list of the Flex Builder team for a 
future release.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Jean-Luc 
ESSEREnvoyé: jeudi 27 juillet 2006 10:55À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Cleaning a file 
in eclipse ?

Hi all !

I'm not talking about about the 'clean project' 
here.

Is there a way to clean your file for all unused 
imports for exemple ?
I know this is somehow possible in Java in eclipse, 
but it doesn't seem to work with Flex.

Best,
Jean-Luc 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Securing coldfusion remoting services for flex 2

2006-07-26 Thread Benoit Hediard
Hi Tom,

We are a public facing application, so no HTTPS and no authenticated
services...
Thank you very much for the method-access-level parameter of the service
XML file, this is exactly what I was looking for. 

So to resume...
To secure your ColdFusion service CFCs for Flex 2 only :

1. Put a cross-domain.xml policy file in your web root, with the parameter
allow-access-from domain=*.yourdomain.com /
So that, only swf served by your domain can call your services and load your
data.

2. In your WEB-INF/flex/services-config.xml, change the parameter
method-access-levelremote/method-access-level to
method-access-levelpublic/method-access-level
And use access=public in your service CFCs, so that your service CFCs can
only be called by the flex2gateway and not by webservice calls.

Have fun!

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Tom Chiverton
Envoyé : mercredi 26 juillet 2006 10:18
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Securing coldfusion remoting services for flex 2

On Tuesday 25 July 2006 15:58, Benoit Hediard wrote:
 What are the best practices to secure coldfusion remoting services for 
 Flex2?

I've been trying to get them to run over HTTPS for a start, with no luck so
far :-(

 On the flash/flex side, we haved configured the cross domain policy 
 file on our server, so that only swf served by our domain can call our
services.
 That's fine.

We've used Apache (as a front end proxy via mod_jrun) to lock things down to
specific IP adress', and if you don't mind a login prompt you can use HTTP
basic/digest protection too.

 Is it possible to allow only flex remote object calls on our services?
 That would solve the issue.

What you could do is tweak the services XML file so that public methods can
be invoked by Flash over remoteing, and not have any 'remote' methods in
your CFCs.

 Any suggestions?

Consider using named destinations, one per CFC, rather than the default '*'.

--
Tom Chiverton



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.



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

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



 








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

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

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

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




[flexcoders] Securing coldfusion remoting services for flex 2

2006-07-25 Thread Benoit Hediard





What are the best 
practices to secure coldfusion remoting services for Flex2?

On the flash/flex 
side, we 
havedconfigured the cross domain policy file on our server, so that only 
swf served by our domain can call our services.
That's 
fine.

But the problem 
comes from coldfusion cfc"remote" access : it allows 
(secured)flash/flex remoting calls, but also web services calls from any 
client fromanywhere.
Not very good for 
security...

Is it 
possibleto allow onlyflex remote object calls on our 
services?
That would solve the issue.

There was an old tip 
for that (http://www.flash-remoting.com/notablog/home.cfm?newsid=24)but 
it looks like it does not work with the ColdFusion 7.0.2 update and Flex remote 
object calls.

Any 
suggestions?

Benoit 
Hediard

__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Benoit Hediard
Are you sure you got the latest version?

I've just downloaded the zip file on another machine and compiled it
successfully.
You might have to clear your browser cache and re-download it.

Benoit Hediard 

PS : do not forget to add the Cairngorm.swc to your library path.

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 17:05
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

Thanks for looking at this Ben,  however, when I downloaded the app I find
that this code is the same as the previous one.
1. It is still referencing the ORG.NEVIS. prefix on the class references
in the Phones AS files.  The Cairngorm2 release now uses the Com.Adobe.
prefix.
2. The 'description' property is still referenced in the event.fault error
messages.  

There are other errors in the code when compiled with the final Flex Builder
2.  

Trying to debug this has been informative but frustrating.  Thanks for your
effort on this. 







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



 







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

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

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

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





RE: [flexcoders] Debugging the Phones Sample

2006-07-25 Thread Benoit Hediard
Yes, this was a change in the responder interface from Cairngorm 2 for beta3
to the final release.
The onResult and onFault function must have the following argument :
onResult(event:* = null)
onFault(event:* = null) 

Benoit Hediard

PS: you can also download the latest version for final release. 
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 17:16
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Debugging the Phones Sample

I have run into a construct I do not understand in trying to convert the
Phones sample to the final Flex2 and Cairngorm2 environment.  This statement
is causing an error:
public class PhoneListGetCommand implements command, Responder { ...

The error states that the Responder class is implemented with an
incompatible signature in the class file.

How should this be re-factored?






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



 








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

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

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

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

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




RE: [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Benoit Hediard
All the org.nevis references have been replaced in the latest version.
You're still downloading the old version, may be a cache issue?

Here is an alternate link to workaround the cache problem :
http://www.benorama.com/flex/samples/PhonesCairngorm2bis.zip

Have fun.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 19:10
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

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

 Are you sure you got the latest version?
 

Yes I am sure. I have just downloaded the code you supplied in your earlier
link:  This fragment illustrates part of the problem.  
The 'org.nevis' prefix is no longer supported in the Cairngorm2 product.
You must be compiling with an old version of the Cairngorm
classes:

package com.mycompany.phones.controller {

import com.mycompany.phones.model.ApplicationModel;
import com.mycompany.phones.service.PhoneDelegate;
import com.mycompany.phones.view.ApplicationView;

import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

import org.nevis.cairngorm.business.Responder;
import org.nevis.cairngorm.commands.Command;
import org.nevis.cairngorm.control.CairngormEvent;
import org.nevis.cairngorm.view.ViewLocator;






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

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



 







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

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

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

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





[flexcoders] Flex2/FP9 Final Bug : cannot play MP3 files encoded with iTunes

2006-07-11 Thread Benoit Hediard





Hi,

When trying to load 
an MP3 file encoded with iTunes (latest one v6.0.5.20), the MP3 starts playing 
but it stops when the loading is completed.
AnEvent.COMPLETE is generated just followed by an 
Event.SOUND_COMPLETE (whereas the sound is not completed at all and should 
continue to play).
After that, it is 
not possible to start the MP3 anymore.
It might be an ID3 
issue? (apparently, the ID3Info are not properly loaded)

Here is a template 
to reproduce the problem, a copy/paste from the LiveDocs.
It works fine with 
any MP3 files not encoded with iTunes.

?xml 
version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
layout="vertical" 
creationComplete="creationCompleteHandler()"mx:Script![CDATA[import 
flash.media.Sound; import 
flash.media.SoundChannel; import 
flash.net.URLRequest; import 
flash.utils.Timer; private var 
soundUrl:String = "http://localhost/SomeITunesEncodedFile.mp3"; 
private var 
soundFactory:Sound; private 
var channel:SoundChannel; 
private var 
positionTimer:Timer; 
public function creationCompleteHandler():void 
{ 
var request:URLRequest = new 
URLRequest(soundUrl); 
soundFactory = new 
Sound(); 
soundFactory.addEventListener(Event.COMPLETE, 
completeHandler); 
soundFactory.addEventListener(Event.ID3, 
id3Handler); 
soundFactory.addEventListener(IOErrorEvent.IO_ERROR, 
ioErrorHandler); 
soundFactory.addEventListener(ProgressEvent.PROGRESS, 
progressHandler); 
soundFactory.load(request); 
channel = 
soundFactory.play(); 
channel.addEventListener(Event.SOUND_COMPLETE, 
soundCompleteHandler); 
positionTimer = new 
Timer(50); 
positionTimer.addEventListener(TimerEvent.TIMER, 
positionTimerHandler); 
positionTimer.start(); 
} 
 private function 
positionTimerHandler(event:TimerEvent):void 
{ 
trace("positionTimerHandler: " + 
channel.position.toFixed(2)); 
} private function 
completeHandler(event:Event):void 
{ 
trace("completeHandler: " + 
event); 
} private function 
id3Handler(event:Event):void 
{ 
trace("id3Handler: " + 
event); 
} private function 
ioErrorHandler(event:Event):void 
{ 
trace("ioErrorHandler: " + 
event); 
positionTimer.stop(); 
 
} private function 
progressHandler(event:ProgressEvent):void 
{ 
trace("progressHandler: " + 
event); 
} private function 
soundCompleteHandler(event:Event):void 
{ 
trace("soundCompleteHandler: " + 
event); 
positionTimer.stop(); 
}]]/mx:Script/mx:Application

Benoit 
Hediard

PS: This problem has been raised during the beta, 
butwithout any answers. ;)
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 2 Final : Error #1009, in RadioButton/get labelPlacement()

2006-07-03 Thread Benoit Hediard





Error #1009: Il est 
impossible d'accéder à la propriété ou la méthode d'une référence d'objet 
nul.
(in english, 
something like "it is not possible to access the property or the method of the 
null object reference")
at 
mx.controls::RadioButton/get labelPlacement()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents()
at 
mx.controls::Button/mx.controls:Button::updateDisplayList()
...

In Flex2 final, I'm 
getting this error regularly...
Not tried yet to 
reproduce it on a simpleregular case, but it looks like pretty 
random.
I don't use the 
labelPlacement property in our app.

I've never 
encountered this error in previous beta, only since the FP9 / Flex2 
Final.
Looks like a very 
annoyinglow level framework error, related to the layout of 
RadioButtons.


Anyone else facing 
this issue?
And found a 
workaround?

Benoit 
Hediard
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 2 Final : Error #1034, in ChartBase dataTip functions

2006-07-03 Thread Benoit Hediard





Error #1034: Echec 
de la contrainte de type: conversion de mx.charts::[EMAIL PROTECTED] 
mx.charts.events.ChartItemEvent est impossible
at 
mx.charts.chartClasses::ChartBase/::invokeDTFunction()
at 
mx.charts::HitData/get displayText()
at 
mx.charts.chartClasses::DataType/set data()
at 
mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
...

Here is another 
error I've never encountered since FP9+ Flex 2 Final.
It is generated when 
doing a rolloveronbarof a BarChart on our 
app.

I'm going to try to 
isolate and reproduce the bug on a simple case.


Anyone else facing 
this issue?
And found a 
workaround?

Benoit 
Hediard
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] F2.0 final - Possbile bug with PopUpButton and PopUpMenuButton

2006-07-03 Thread Benoit Hediard





I've also encountered thisbug(event dispatched 
twice).

Here is a workaround :
private function itemClickHandler(event:MenuEvent):void 
{
 if (event.index != -1) { // Workaround 
to ignore the second event
 
...
 }
}

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de 
sinatoskEnvoyé: dimanche 2 juillet 2006 
21:41À: flexcoders@yahoogroups.comObjet: 
[flexcoders] F2.0 final - Possbile bug with PopUpButton and 
PopUpMenuButton
4 days after the release I come to update my Flex Application from 
Beta 3 to Final and the 2 main components I used seem to be bugged. not very 
good at explaining things to bare with me please :pPopUpButton 
 - Every time I select an item... 
the "itemClick" event gets dispatched twice. it just pops with with 2 Alert 
dialogs every time I select an 
itemPopUpMenButton - When I put my mouse over 
an item for the first time works fine... but soon as I hover over another 
menu item in the main level... the menu closes automatically and also if I Hover 
over an item that is a sub menu I can keep going in and in until there are 
no more children... or I could just go in once... and then soon as I hover over 
another item... again the menu just closes. Both times this is without click on 
any items in the menu I've posted the code belowFlex code 
being:?xml version="1.0" encoding="utf-8"?mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml " 
layout="absolute" 
mx:Script 
![CDATA[ 
import 
mx.controls.*; 
import 
mx.events.*; 
private var 
myMenu:Menu; 
 private 
var i:uint = 
0; // 
Initialize the Menu control, and specify it as the pop up 
object // 
of the PopUpButton control. 
 private 
function initMenu():void { 
 
myMenu = new 
Menu(); 
var dp:Object = [{label: "New Folder"}, {label: "Sent Items"}, {label: 
"Inbox"}]; 
 
myMenu.dataProvider = dp; 
 
myMenu.selectedIndex = 0; 
 
myMenu.addEventListener("itemClick", 
itemClickHandler); 
popB.popUp = 
myMenu; 
popB.label = "Put in: " + 
myMenu.dataProvider[myMenu.selectedIndex].label; 
} // 
Define the event listener for the Menu control's itemClick event. 
 private 
function itemClickHandler(event:MenuEvent):void { 
 
var label:String = event.item.label; 
 
popTypeB.text=String("Moved to " + 
label); 
popB.label = "Put in: " + 
label; 
popB.close 
(); 
myMenu.selectedIndex = 
event.index; 
 
Alert.show('menu popup number ' + 
++i); 
} ]] 
/mx:Script mx:Panel title="PopUpButton 
Control Example"  paddingTop="10" 
paddingBottom="10" paddingRight="10" paddingLeft="10" x="10" y="10" height="187" 
width="411" mx:Label 
width="100%" color="blue" 
 
text="Button label contains the name of the last selected menu item." 
/ mx:PopUpButton id="popB" 
label="Edit" creationComplete="initMenu();" width="135" / 
 
 mx:Spacer height="50" 
/ mx:TextInput 
id="popTypeB" / 
 /mx:Panel 
 
mx:Script 
![CDATA[ 
import 
mx.events.*; 
import 
mx.controls.*; 
 //Event 
handler, invoked when you select from the 
menu. 
public function itemClickHandler2(event:MenuEvent):void { 
 
Alert.show("Menu label: " + 
event.label 
+ " \n menu item index within parent menu: " + 
event.index); 
} ]] 
/mx:Script   !-- A an 
data provider in E4X format. -- mx:XMLList 
id="treeDP2" node 
label="Inbox" 
node 
label="Personal" 
node label="Family"/ 
 
node label="Friends"/ 
 
/node 
node 
label="Marketing"/ 
node label="To Do"/ 
/node  node 
label="Calendar" 
node label="Appointments" 
data=""/ 
node label="Meetings"/  
/node node 
label="Deleted Items"/  
/mx:XMLList mx:Panel 
title="PopUpMenuButton Control Example" 
 paddingTop="10" paddingLeft="10" 
paddingRight="10" x="10" y="205" height="143" width="271" 
 mx:Label width="100%" 
color="blue" 
text="Click the down arrow to open the 
menu."/ 
mx:PopUpMenuButton id="p2" 
 
dataProvider="{treeDP2}" 
 
labelField="@label" 
itemClick="itemClickHandler2(event);"/ 
/mx:Panel/mx:ApplicationFlex code end;Is it 
possible these are bugs? I've tested this with flash player 9.0.15.0 ( with debug ) and 9.0.16.0 ( without debug ) 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] F2.0 final - Possbile bug with PopUpButton and PopUpMenuButton

2006-07-03 Thread Benoit Hediard





I've also encountered this issue (event dispatched 
twice).

Here is a workaround :
private function itemClickHandler(event:MenuEvent):void 
{
 if (event.index != -1) { // Workaround 
to ignore the second event
 
...
 }
}

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de 
sinatoskEnvoyé: dimanche 2 juillet 2006 
21:41À: flexcoders@yahoogroups.comObjet: 
[flexcoders] F2.0 final - Possbile bug with PopUpButton and 
PopUpMenuButton
4 days after the release I come to update my Flex Application from 
Beta 3 to Final and the 2 main components I used seem to be bugged. not very 
good at explaining things to bare with me please :pPopUpButton 
 - Every time I select an item... 
the "itemClick" event gets dispatched twice. it just pops with with 2 Alert 
dialogs every time I select an 
itemPopUpMenButton - When I put my mouse over 
an item for the first time works fine... but soon as I hover over another 
menu item in the main level... the menu closes automatically and also if I Hover 
over an item that is a sub menu I can keep going in and in until there are 
no more children... or I could just go in once... and then soon as I hover over 
another item... again the menu just closes. Both times this is without click on 
any items in the menu I've posted the code belowFlex code 
being:?xml version="1.0" encoding="utf-8"?mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml " 
layout="absolute" 
mx:Script 
![CDATA[ 
import 
mx.controls.*; 
import 
mx.events.*; 
private var 
myMenu:Menu; 
 private 
var i:uint = 
0; // 
Initialize the Menu control, and specify it as the pop up 
object // 
of the PopUpButton control. 
 private 
function initMenu():void { 
 
myMenu = new 
Menu(); 
var dp:Object = [{label: "New Folder"}, {label: "Sent Items"}, {label: 
"Inbox"}]; 
 
myMenu.dataProvider = dp; 
 
myMenu.selectedIndex = 0; 
 
myMenu.addEventListener("itemClick", 
itemClickHandler); 
popB.popUp = 
myMenu; 
popB.label = "Put in: " + 
myMenu.dataProvider[myMenu.selectedIndex].label; 
} // 
Define the event listener for the Menu control's itemClick event. 
 private 
function itemClickHandler(event:MenuEvent):void { 
 
var label:String = event.item.label; 
 
popTypeB.text=String("Moved to " + 
label); 
popB.label = "Put in: " + 
label; 
popB.close 
(); 
myMenu.selectedIndex = 
event.index; 
 
Alert.show('menu popup number ' + 
++i); 
} ]] 
/mx:Script mx:Panel title="PopUpButton 
Control Example"  paddingTop="10" 
paddingBottom="10" paddingRight="10" paddingLeft="10" x="10" y="10" height="187" 
width="411" mx:Label 
width="100%" color="blue" 
 
text="Button label contains the name of the last selected menu item." 
/ mx:PopUpButton id="popB" 
label="Edit" creationComplete="initMenu();" width="135" / 
 
 mx:Spacer height="50" 
/ mx:TextInput 
id="popTypeB" / 
 /mx:Panel 
 
mx:Script 
![CDATA[ 
import 
mx.events.*; 
import 
mx.controls.*; 
 //Event 
handler, invoked when you select from the 
menu. 
public function itemClickHandler2(event:MenuEvent):void { 
 
Alert.show("Menu label: " + 
event.label 
+ " \n menu item index within parent menu: " + 
event.index); 
} ]] 
/mx:Script   !-- A an 
data provider in E4X format. -- mx:XMLList 
id="treeDP2" node 
label="Inbox" 
node 
label="Personal" 
node label="Family"/ 
 
node label="Friends"/ 
 
/node 
node 
label="Marketing"/ 
node label="To Do"/ 
/node  node 
label="Calendar" 
node label="Appointments" 
data=""/ 
node label="Meetings"/  
/node node 
label="Deleted Items"/  
/mx:XMLList mx:Panel 
title="PopUpMenuButton Control Example" 
 paddingTop="10" paddingLeft="10" 
paddingRight="10" x="10" y="205" height="143" width="271" 
 mx:Label width="100%" 
color="blue" 
text="Click the down arrow to open the 
menu."/ 
mx:PopUpMenuButton id="p2" 
 
dataProvider="{treeDP2}" 
 
labelField="@label" 
itemClick="itemClickHandler2(event);"/ 
/mx:Panel/mx:ApplicationFlex code end;Is it 
possible these are bugs? I've tested this with flash player 9.0.15.0 ( with debug ) and 9.0.16.0 ( without debug ) 
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Flex 2 Final : Error #1009, in RadioButton/get labelPlacement()

2006-07-03 Thread Benoit Hediard





I've investigated this issue a little bit 
more.
It looks like there some problems with RadioButton when 
they are usedin groups.
First display is generally correct, but when the display 
list is refreshed, it generates some bugs.


Inour case, the RadioButton group isused in a 
popup, and even after the popup is deleted, some popup 
displayroutinesare still 
executed.

When debuggingis on, the erroris generated in 
RadioButton.as, at line 172, because the property groupis 
null :
if (_labelPlacement != "") {
 value = 
_labelPlacement;
} else if (_group  
group.labelPlacement != "") { // L.172
 value = 
group.labelPlacement;
}

Workaround : always define labelPlacement 
in all your RadioButton (so that the group labelPlacement is never 
read).

I've also encountered a similar error in another case : 
RadioButton groups used inside a Repeater, with the groupName defined during the 
repeater execution (groupName="{theRepeater.currentIndex}").
First executionis correct, but the next ones generate 
anerror.

When debuggingis on, the error is generated 
in the RadioButton.as, at line 454, for the same reason (property 
groupis null) :
var g:RadioButtonGroup = group:
g.addInstance(this); // 
L.454

I haven't found a workaround for this 
one.

It's too bad because all of this was working in previous 
beta but not on the final release ;).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: lundi 3 juillet 2006 12:36À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Flex 2 Final : 
Error #1009, in RadioButton/get labelPlacement()

Error #1009: Il est 
impossible d'accéder à la propriété ou la méthode d'une référence d'objet 
nul.
(in english, 
something like "it is not possible to access the property or the method of the 
null object reference")
at 
mx.controls::RadioButton/get labelPlacement()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents()
at 
mx.controls::Button/mx.controls:Button::updateDisplayList()
...

In Flex2 final, I'm 
getting this error regularly...
Not tried yet to 
reproduce it on a simpleregular case, but it looks like pretty 
random.
I don't use the 
labelPlacement property in our app.

I've never 
encountered this error in previous beta, only since the FP9 / Flex2 
Final.
Looks like a very 
annoyinglow level framework error, related to the layout of 
RadioButtons.


Anyone else facing 
this issue?
And found a 
workaround?

Benoit 
Hediard 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Error that is killing me.

2006-07-03 Thread Benoit Hediard
Try to put a breakpoint on VendorManager_Vendor_Display_Result() and launch
a debugging session :
- check that result returned by the cfc is correct on the client side,
- check that parentApplication.mainDisplay.vven.firstName exists.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Jeremy Rottman
Envoyé : lundi 3 juillet 2006 16:16
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Error that is killing me.

I am working on my transaction app, and I have run into an error that I cant
figure out. In my cfc I am returning a struct that holds all my data that I
am trying to populate my flex form inputs with. The cfc is working
correctly, I know this because I can get a proper out put when I test the
function I am working with, however when I test it with my flex code I get
this error.

Any help with this would be greatly appreciated.

ReferenceError: Error #1069: Property firstName not found on String and
there is no default value.
 at
components.views.contacts::viewSearchVendor/::VendorManager_Vendor_Displ\
ay_Result()
 at
components.views.contacts::viewSearchVendor/__vendorDG_doubleClick()


Here is my as code I am using to call my cfc function. This function is
called when a user dbl clicks a record in my data grid.

//*VENDOR POPULATE
START***

// CALL POPULATE EDIT VENDOR
 private function VendorManager_Vendor_Display(UUID){
 VendorManager.Vendor_Display(UUID)
 }

// HANDLE POPULATE EDIT VENDOR RESULTS
 private function
VendorManager_Vendor_Display_Result(result):void{
 parentApplication.mainDisplay.vven.firstName.text =
result.firstName;
 parentApplication.mainDisplay.vven.lastName.text =
result.lastName;
 parentApplication.mainDisplay.vven.compName.text =
result.compName;
 parentApplication.mainDisplay.vven.address.text =
result.addrss;
 parentApplication.mainDisplay.vven.city.text = result.city;
 parentApplication.mainDisplay.vven.state.text = result.state;
 parentApplication.mainDisplay.vven.zip.text = result.zip;
 parentApplication.mainDisplay.vven.hPhone.text = result.hPhone;
 parentApplication.mainDisplay.vven.wPhone.text = result.wPhone;
 parentApplication.mainDisplay.vven.mPhone.text = result.mPhone;
 parentApplication.mainDisplay.vven.fax.text = result.fax;
 parentApplication.mainDisplay.vven.email.text = result.email;
 parentApplication.mainDisplay.vven.url.text = result.url;
 parentApplication.mainDisplay.vven.uuid.text = result.uuid;

 for (var i = 0;i  vendorTypeDP.length; i++)
 {
   if (vendorTypeDP[i].data == result.type)
  {
 parentApplication.mainDisplay.vven.type.selectedIndex = i;
   }
 }
 }

// HANDLE POPULTAE EDIT VENDOR ERRORS
 private function
VendorManager_Vendor_Display_Fault(event:FaultEvent):void{
 Alert.show(Test Error,Program Error);
 }


//*VENDOR POPULATE
END*


Here is my datagrid.

 mx:DataGrid x=240 y=40 id=vendorDG
doubleClickEnabled=true
 
doubleClick=VendorManager_Vendor_Display_Result(vendorDG.selectedItem.F\
LD_VENDOR_UID) width=80% height=100%
 mx:columns
 mx:DataGridColumn headerText=Name
dataField=FLD_VENDOR_FULLNAME/
 mx:DataGridColumn headerText=Company
dataField=FLD_VENDOR_COMPANYNAME/
 mx:DataGridColumn headerText=Phone
dataField=FLD_VENDOR_WORKPHONE/
 mx:DataGridColumn headerText=Fax
dataField=FLD_VENDOR_FAX/
 mx:DataGridColumn dataField=FLD_VENDOR_UID/
 /mx:columns
 /mx:DataGrid



Here is my CFC function code.

 cffunction name=Vendor_Display access=remote output=false
returntype=struct 
 cfargument name=UUID required=no type=string /

 cfquery name=VendorDisplayQry
datasource=#application.dsn#
 select * from tbl_smartPanel_vendors

 where fld_vendor_uid = cfqueryparam
cfsqltype=cf_sql_varchar value=#arguments.UUID# /
 /cfquery

 cfset VendorInfo = structNew()
 cfscript
 VendorInfo['firstName'] =
#VendorDisplayQry.fld_vendor_firstname#;
 VendorInfo['lastName'] =
#VendorDisplayQry.fld_vendor_lastname#;
 VendorInfo['compName'] =
#VendorDisplayQry.fld_vendor_companyname#;
 VendorInfo['address'] =
#VendorDisplayQry.fld_vendor_address#;
 VendorInfo['city'] =
#VendorDisplayQry.fld_vendor_city#;
 VendorInfo['state'] =
#VendorDisplayQry.fld_vendor_state#;
 VendorInfo['zip

RE: [flexcoders] Re: Flex 2 Final : Error #1034, in ChartBase dataTip functions

2006-07-03 Thread Benoit Hediard
Indeed, I'm missed this one in the Flex 2 final changes from beta3...

Thanks!

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de pasflex
Envoyé : lundi 3 juillet 2006 16:03
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex 2 Final : Error #1034, in ChartBase dataTip
functions

The method signature for a datatip function changed in from beta3 to
release, it used to take ChartItemEvent as an argument now it takes HitData.

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

 Error #1034: Echec de la contrainte de type: conversion de 
 mx.charts::[EMAIL PROTECTED] mx.charts.events.ChartItemEvent est
impossible
 at mx.charts.chartClasses::ChartBase/::invokeDTFunction()
 at mx.charts::HitData/get displayText() at 
 mx.charts.chartClasses::DataType/set data() at 
 mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
 ...
  
 Here is another error I've never encountered since FP9 + Flex 2
Final.
 It is generated when doing a rollover on bar of a BarChart on our
app.
  
 I'm going to try to isolate and reproduce the bug on a simple case.
  
 Anyone else facing this issue?
 And found a workaround?
  
 Benoit Hediard








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

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



 







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

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

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

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





RE: [flexcoders] Flex 2 Final : panel backgroundAlpha style change?

2006-06-29 Thread Benoit Hediard
No, sorry, I want a semi-transparent background... ;) 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Tom Chiverton
Envoyé : jeudi 29 juin 2006 10:16
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Flex 2 Final : panel backgroundAlpha style change?

On Wednesday 28 June 2006 18:23, Benoit Hediard wrote:
 In Flex 2 beta, setting the backgroundAlpha to 0.4 (same as default
 borderAlpha) allowed you to have completely transparent panels.

Wouldn't totally transparent be 1 or 0 ?

--
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of
the Year at the 2005 Growth Company Awards



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

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



 







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

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

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

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

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





[flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?

2006-06-28 Thread Benoit Hediard





Hi,

In the Flex 2 final, 
how do you implement the ServiceLocator and Delegates?

In ServiceLocator, 
it looks like result="event.call.resultHandler(event)"must be replaced by 
result="event.token.resultHandler(event)".
But how do you 
implement the delegate?

I suppose that we'll 
see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm 
currently blocked by this issue... ;)
Or am I missing 
something?

Benoit 
Hediard


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?

2006-06-28 Thread Benoit Hediard





OK, don't know what I did wrong, but changing event.call to 
event.token insolve the issue... ;)

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: mercredi 28 juin 2006 16:39À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Flex 2 final, 
Cairngorm ServiceLocator/Delegate implementation?

Hi,

In the Flex 2 final, 
how do you implement the ServiceLocator and Delegates?

In ServiceLocator, 
it looks like result="event.call.resultHandler(event)"must be replaced by 
result="event.token.resultHandler(event)".
But how do you 
implement the delegate?

I suppose that we'll 
see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm 
currently blocked by this issue... ;)
Or am I missing 
something?

Benoit 
Hediard

 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 2 Final : panel backgroundAlpha style change?

2006-06-28 Thread Benoit Hediard





There is a 
change in the styling of panels with the alpha transparency.
In Flex 2 beta, 
setting the backgroundAlpha to 0.4 (same as 
defaultborderAlpha)allowed you to have completely transparent 
panels.
In Flex 2 final, 
setting the backgroundAlpha to 0.4 does not perform the same rendering, the 
color of the panel is slightly different from the border.

Is it a 
bug?

Benoit 
Hediard
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Upload not working in Windows

2006-06-28 Thread Benoit Hediard
It's working here on Windows on Firefox with Flash Player 9.0.15 (coming
with Flex Builder 2).
No changes compared to beta3.
Sorry... ;)

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Marcus Bergstrom
Envoyé : mercredi 28 juin 2006 17:34
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Upload not working in Windows

When using the FileReference in Flex 2 final, I get an IOError followed by
an HTTPError 403, when trying to upload using Windows.
It's the same for Internet Explorer and FireFox. However, it works great on
a mac, using both Safari and FireFox. I can't find any information regarding
this problem. I am not sure if this is related to Flex 2 or the actual
player, due to it's platform difference.

Can anyone confirm that file upload is working for Flex 2 Final, and Flash
Player 9.0.16.

Thanks


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

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



 







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

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

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

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

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




RE: [flexcoders] cairngorm phone sample and new Stateless Commands mod

2006-05-16 Thread Benoit Hediard



Hi,

You can download the updated version for beta3:
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

Or add default null argument to the onResult and onFault command methods.
Ex: public function onResult(event:ResultEvent = null):void

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Barry Beattie
Envoyé : mardi 16 mai 2006 07:56
À : flexcoders@yahoogroups.com
Objet : [flexcoders] cairngorm phone sample and new Stateless Commands mod

I'm using Benoit Hediard's cairngorm 2 version of the Phone sample and the
latest Caringorm2 framework which includes changes to the way commands are
called to make them stateless:

http://weblogs.macromedia.com/swebster/archives/2006/05/cairngorm_2_for_1.cf
m

the change to the call in phones.ApplicationController.as was easy enough
(as per article) but I'm lost (all still very new to me) on changes needed
to the phones' commands

this affects both
public class PhoneGetCommand implements Command, Responder {...} public
class PhoneListGetCommand implements Command, Responder {...}


Interface method onResult in namespace
org.nevis.cairngorm.business:Responder is implemented with an incompatible
signature in class
com.mycompany.phones.controller:PhoneListGetCommand.
(PhoneListGetCommand.as 
line 17)


any suggestions?
thanx


PS:

I'm also getting a:

Implicit coercion of a value with static type Object to a possibly
unrelated type Array. PhoneListGetCommand.as
phones_cairngorm2/com/mycompany/phones/controller line
33

public function onResult(event:ResultEvent):void {
 model.phones = new ArrayCollection(event.result); /** HERE **/
 model.applicationState = ApplicationView.STATE_DEFAULT; }


PPS: there's also an unneeded
//import org.nevis.cairngorm.samples.login.commands.LoginCommand;

in ApplicationController.as
but I'm nit-picking and grateful Benoit made this sample.


 Yahoo! Groups Sponsor ~-- Home
is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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



 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Flex2 beta3: FileReference.download() bug

2006-05-15 Thread Benoit Hediard





When migrating from 
beta2 to beta3, our download fonctionalities don't work 
anymore.
The download dialog 
box shows up but nothing happens after validation.
When using service 
capture, I don't see any HTTP call to get the file.

Anyone can confirm 
this is a bug in beta3/FP9?

Benoit 
Hediard





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

2006-05-14 Thread Benoit Hediard





You'll be able to compile the app with Flex Builder 2 
beta3, but to run it you'll need ColdFusion.


The original app from the Adobe Labs is very basic in terms 
of architecture.
So the goal of this version is to show how to properly 
architectures based on best practices/design patterns and integrate Cairngorm2 
with a ColdFusion backend:
- Cairngorm 2 framework onthe Flexclient 
side,
- service CFC, DAO CFC, DG CFC on the 
ColdFusionserver side (so you could very easilyuse a 
ColdSpringframeworkfor your server side model).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Mahmoud 
ElsayessEnvoyé: samedi 13 mai 2006 18:11À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Problem with 
Cairngorm 2 version of Phones app.

Hi Benoit,
I do not have coldfusion on my 
machine, but I have Macromedia full suite, is there a way to run your 
sample?
Thank you.


Mahmoud Elsayesswww.readverse.com 

  - Original Message - 
  From: 
  Benoit Hediard 
  
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, May 13, 2006 2:30 
AM
  Subject: RE: [flexcoders] Problem with 
  Cairngorm 2 version of Phones app.
  
  Hi Kevin,
  
  You should upgrade to beta3.
  
  I've put an updated version for beta3, that works with 
  the new Cairngorm2 beta3:
  http://www.benorama.com/flex/samples/PhonesCairngorm2.zip
  
  I onlydid some minor changes (updated the responder 
  onResult and onFault signatures with null default 
  arguments).
  
  Benoit Hediard
  
  
  De: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] De la part de Kevin 
  RocheEnvoyé: vendredi 12 mai 2006 20:00À: 
  flexcoders@yahoogroups.comObjet: RE: [flexcoders] Problem 
  with Cairngorm 2 version of Phones app.
  
  Benoit,
  
  That's what I 
  did! I'm stuck 
  now.
  
  Kevin
  
-Original Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]On Behalf Of Benoit 
HediardSent: 12 May 2006 14:58To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Problem with 
Cairngorm 2 version of Phones app.
You need to unzip all the files in the root 
folderof a new Flex Builder project and compile it.
And it should work.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Kevin 
RocheEnvoyé: vendredi 12 mai 2006 15:47À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Problem 
with Cairngorm 2 version of Phones app.

Yes, the file is there but I gues it may not be in the right place. I 
am assuming that placing the whole thing under the place where the mxml file 
is is correct or does it nee to be in some path so that flex can find 
it?

  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf 
  Of Niklas RichardsonSent: 12 May 2006 11:59To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem 
  with Cairngorm 2 version of Phones app.Stupid 
  question - the file exists?
  On 5/12/06, Kevin 
  Roche [EMAIL PROTECTED] 
  wrote: 
  


Hi 
Nik,

I found the problem, 
needed to add all the mxml files to the application.

Now I have another 
problem.

Error message 
says:

Unable to locate 
specified base class 'org.nevis.cairngorm.business.ServiceLocator' for 
component class 'ApplicationServices'

I do have the cairngorm 
directorystructure (org.. etc) in the same directory as 
main.mxml.

Any ideas why its not 
found?

Kevin

  -Original 
  Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of 
  Niklas RichardsonSent: 12 May 2006 11:09To: 
  flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Problen with Cairngorm 2 version of Phones 
  app.Hi Kevin,Good to see you on 
  here.Could you post the line(s) in question? It might be 
  that you need to do some CheersNiklas
  On 5/12/06, Kevin Roche [EMAIL PROTECTED] wrote: 
  Hi,I 
am having difficult getting the Flex 2 Phones application working 
withFlex2 Beta 2 (Did not want to try Beta3 until it 
works)When I try to save and compile I get the following 
error:Implicit coercion of a value with static type 'Object' 
to a possibly unrelated type 'Array' Line 33 
PhoneListGetCommand.asAnyone know why or what went 
wrong?I am still learning ActionScript andcant see 
quite what is wrong here.Kevin 
Roche Yahoo! 
Groups Sponsor ~--Protect your PC from 
spy ware with award winning anti spy technology. It's free.http

RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

2006-05-14 Thread Benoit Hediard



The default flex-enterprise-services.xml with the ColdFusion destination
should look like this, for a standalone ColdFusion install:

?xml version=1.0 encoding=UTF-8?
services-config xmlns=http://www.macromedia.com/2005/flex-service-config

 services

 service id=coldfusionsamples-service
 class=flex.messaging.services.RemotingService
 messageTypes=flex.messaging.messages.RemotingMessage

 adapters
 adapter-definition id=cf-object
class=coldfusion.flash.messaging.ColdFusionAdapter default=true/
 /adapters

 destination id=ColdFusion
 channels
 channel ref=my-cfamf/
 /channels
 properties
 source*/source
 !-- define the resolution rules and access level of the
cfc being invoked --
 access
 !-- Use the ColdFusion mappings to find CFCs, by
default only CFC files under your webroot can be found. --
 use-mappingsfalse/use-mappings
 !-- allow public and remote or just remote
methods to be invoked --
 method-access-levelremote/method-access-level
 /access

 property-case
 !-- cfc property names --
 force-cfc-lowercasefalse/force-cfc-lowercase
 !-- Query column names --
 force-query-lowercasefalse/force-query-lowercase
 !-- struct keys --
 
force-struct-lowercasefalse/force-struct-lowercase
 /property-case
 /properties
 /destination

 /service

 /services

 security

 login-command class=flex.messaging.security.JRunLoginCommand
server=JRun/

 /security

 channels

 channel-definition id=my-cfamf
class=mx.messaging.channels.AMFChannel
 endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/
class=flex.messaging.endpoints.AMFEndpoint/
 properties
 polling-enabledfalse/polling-enabled
 serialization
 instantiate-typesfalse/instantiate-types
 /serialization
 /properties
 /channel-definition
 /channels
 logging

 target class=flex.messaging.log.ConsoleTarget level=Debug
 properties
 prefix[Flex] /prefix
 includeDatefalse/includeDate
 includeTimefalse/includeTime
 includeLevelfalse/includeLevel
 includeCategoryfalse/includeCategory
 /properties
 filters
 patternEndpoint.*/pattern
 patternService.*/pattern
 patternConfiguration/pattern
 patternMessage.*/pattern
 /filters
 /target

 /logging

 system
 locale
 default-localeen/default-locale
 supported-localede/supported-locale
 supported-localefr/supported-locale
 supported-localees/supported-locale
 /locale

 redeploy
 enabledtrue/enabled
 watch-interval20/watch-interval
 
watch-file{context.root}/WEB-INF/flex/flex-enterprise-services.xml/watch-
file
 touch-file{context.root}/WEB-INF/web.xml/touch-file
 /redeploy
 /system

/services-config

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Kevin Roche
Envoyé : samedi 13 mai 2006 19:10
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

Thanks Ben,

I installed the new Beta3 and CF Beta, It almost works

When It calls the CF app. 

mx:RemoteObject id=phoneService 
destination=ColdFusion 
result=event.call.resultHandler(event) 
fault=event.call.faultHandler(event) 
showBusyCursor=true 
source=com.mycompany.phones.service.PhoneService / 

I get a message saying that it cant find ColdFusion. It seems that the
flex-enterprise-services.xml doesn't have the definition for ColdFusion in
it. 

The Documentation seems to be out of date. Can you tell me what you have in
your flex-enterprise-services.xml file?

Thanks again Kevin



 Yahoo! Groups Sponsor ~--
Protect your PC from spy ware with award winning anti spy technology. It's
free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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



 












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

2006-05-14 Thread Benoit Hediard



Indeed, the server side was missing... ;)
This is corrected.

Thanks!

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Helen Triolo
Envoyé : dimanche 14 mai 2006 15:08
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Problem with Cairngorm 2 version of Phones app.

The readme.txt says - move the content of coldfusion folder to your
ColdFusion wwwroot, but there is no content in the coldfusion folder when I
extract the files (and I don't see any cfc's or a test.cfm in the zip list).
Do we need to get them from the previous version?

thx,
Helen

Benoit Hediard wrote:

 
 I've put an updated version for beta3, that works with the new
 Cairngorm2 beta3 :
 http://www.benorama.com/flex/samples/PhonesCairngorm2.zip
 




 Yahoo! Groups Sponsor ~--
Protect your PC from spy ware with award winning anti spy technology. It's
free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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



 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  












RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

2006-05-13 Thread Benoit Hediard





Hi Kevin,

You should upgrade to beta3.

I've put an updated version for beta3, that works with the 
new Cairngorm2 beta3:
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

I onlydid some minor changes (updated the responder 
onResult and onFault signatures with null default 
arguments).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Kevin 
RocheEnvoyé: vendredi 12 mai 2006 20:00À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Problem with 
Cairngorm 2 version of Phones app.

Benoit,

That's what I 
did! I'm stuck 
now.

Kevin

  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Benoit 
  HediardSent: 12 May 2006 14:58To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Problem with 
  Cairngorm 2 version of Phones app.
  You need to unzip all the files in the root 
  folderof a new Flex Builder project and compile it.
  And it should work.
  
  Benoit Hediard
  
  
  De: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] De la part de Kevin 
  RocheEnvoyé: vendredi 12 mai 2006 15:47À: 
  flexcoders@yahoogroups.comObjet: RE: [flexcoders] Problem 
  with Cairngorm 2 version of Phones app.
  
  Yes, 
  the file is there but I gues it may not be in the right place. I am assuming 
  that placing the whole thing under the place where the mxml file is is correct 
  or does it nee to be in some path so that flex can find 
it?
  
-Original Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]On Behalf Of Niklas 
RichardsonSent: 12 May 2006 11:59To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem with 
Cairngorm 2 version of Phones app.Stupid question - the 
file exists?
On 5/12/06, Kevin 
Roche [EMAIL PROTECTED] 
wrote: 

  
  
  Hi 
  Nik,
  
  I found the problem, 
  needed to add all the mxml files to the application.
  
  Now I have another 
  problem.
  
  Error message 
  says:
  
  Unable to locate 
  specified base class 'org.nevis.cairngorm.business.ServiceLocator' for 
  component class 'ApplicationServices'
  
  I do have the cairngorm 
  directorystructure (org.. etc) in the same directory as 
  main.mxml.
  
  Any ideas why its not 
  found?
  
  Kevin
  
-Original 
Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Niklas 
RichardsonSent: 12 May 2006 11:09To: flexcoders@yahoogroups.comSubject: Re: 
[flexcoders] Problen with Cairngorm 2 version of Phones 
app.Hi Kevin,Good to see you on 
here.Could you post the line(s) in question? It might be 
that you need to do some CheersNiklas
On 5/12/06, Kevin 
Roche [EMAIL PROTECTED] wrote: 
Hi,I 
  am having difficult getting the Flex 2 Phones application working 
  withFlex2 Beta 2 (Did not want to try Beta3 until it 
  works)When I try to save and compile I get the following 
  error:Implicit coercion of a value with static type 'Object' 
  to a possibly unrelated type 'Array' Line 33 
  PhoneListGetCommand.asAnyone know why or what went 
  wrong?I am still learning ActionScript andcant see 
  quite what is wrong here.Kevin 
  Roche Yahoo! 
  Groups Sponsor ~--Protect your PC from spy 
  ware with award winning anti spy technology. It's free.http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM 
  ~---Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links * To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/ 
  * To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to: 
  http://docs.yahoo.com/info/terms/ 
-- 
Niklas RichardsonPrismix LtdUK based Flex and ColdFusion 
Specialists --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED 
LINKS 

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


YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this g

[flexcoders] F2B3: Disable sorting datagrid headerRelease?

2006-05-13 Thread Benoit Hediard



Another comment on datagrid sorting... ;)

In Flex 1.5, there was a DataGridColumn property sortOnHeaderRelease.
All our sorting is done during the server side call, with paging, so we
don't want to use the default array collection sorting.
So we could set sortOnHeaderRelease to false and use the headerRelease event
to perform our remote paging calls.

But in Flex 2, this property has disappeared.
I havent' found any workaround yet.

Is it possible to have a headerRelease event but without any client side
sorting performed on the datagrid?
We need to keep all the sorting logic on the server side.

Benoit Hediard 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.

2006-05-12 Thread Benoit Hediard





You need to unzip all the files in the root folderof 
a new Flex Builder project and compile it.
And it should work.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Kevin 
RocheEnvoyé: vendredi 12 mai 2006 15:47À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Problem with 
Cairngorm 2 version of Phones app.

Yes, 
the file is there but I gues it may not be in the right place. I am assuming 
that placing the whole thing under the place where the mxml file is is correct 
or does it nee to be in some path so that flex can find it?

  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Niklas 
  RichardsonSent: 12 May 2006 11:59To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem with 
  Cairngorm 2 version of Phones app.Stupid question - the 
  file exists?
  On 5/12/06, Kevin 
  Roche [EMAIL PROTECTED] 
  wrote: 
  


Hi Nik,

I found the problem, needed 
to add all the mxml files to the application.

Now I have another 
problem.

Error message 
says:

Unable to locate specified 
base class 'org.nevis.cairngorm.business.ServiceLocator' for component class 
'ApplicationServices'

I do have the cairngorm 
directorystructure (org.. etc) in the same directory as 
main.mxml.

Any ideas why its not 
found?

Kevin

  -Original 
  Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Niklas 
  RichardsonSent: 12 May 2006 11:09To: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Problen with Cairngorm 2 version of Phones 
  app.Hi Kevin,Good to see you on 
  here.Could you post the line(s) in question? It might be 
  that you need to do some CheersNiklas
  On 5/12/06, Kevin 
  Roche [EMAIL PROTECTED] wrote: 
  Hi,I 
am having difficult getting the Flex 2 Phones application working 
withFlex2 Beta 2 (Did not want to try Beta3 until it 
works)When I try to save and compile I get the following 
error:Implicit coercion of a value with static type 'Object' to 
a possibly unrelated type 'Array' Line 33 
PhoneListGetCommand.asAnyone know why or what went 
wrong?I am still learning ActionScript andcant see quite 
what is wrong here.Kevin 
Roche Yahoo! Groups 
Sponsor ~--Protect your PC from spy ware 
with award winning anti spy technology. It's free.http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM 
~---Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links * To visit your group on the web, go 
to:http://groups.yahoo.com/group/flexcoders/ 
* To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]* 
Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ 
  -- Niklas 
  RichardsonPrismix LtdUK based Flex and ColdFusion Specialists 
  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  SPONSORED 
  LINKS 
  


  Web site design development 
  Computer software development 
  Software design and development 

  Macromedia flex 
  Software development best practice 

  
  
  YAHOO! GROUPS LINKS 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service . 
  
  
  -- 
  Niklas RichardsonPrismix LtdUK based Flex and ColdFusion 
  Specialists 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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

[flexcoders] Flex 2 / Flash Player 9 MP3 Support

2006-05-11 Thread Benoit Hediard





Could we have some information on Flex 2 / Flash Player 9 MP3 
support?

In Beta2 / 
FP8.5,most of mymp3s could notbe played in 
FP8.5.
In Beta3 / FP9, it 
is even worse : some of the mp3s that were 
working in Beta2 don't work anymore in Beta3.
ID3 tags are also 
not always reconized.

Those MP3s were 
encoded with iTunes, some are 128Kbps, others are 192Kbps, all with constant bit 
rates.
They are dynamically 
loadedwith the Sound class.

I already asked some 
info in Beta2, but no answers from Adobeso far.
This is a crucial 
feature for our app...

Thanks.

Benoit 
Hediard





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Flex2 and FMS2 : recording a stream?

2006-05-11 Thread Benoit Hediard





Indeed, the problem is corrected in beta 3 / flash player 
9.
That's cool!

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de jeremy 
luEnvoyé: vendredi 28 avril 2006 18:31À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Flex2 and 
FMS2 : recording a stream?
wait for beta 3 in the very very near future and try 
again.
On 4/28/06, Benoit 
Hediard [EMAIL PROTECTED]  
wrote: 

  
  Hi,
  
  I'm currently working on Flex2/FMS2 
  app.
  I've successfully managed to publish a 
  videostream, but I cannot record it.
  
  It looks like the flash.net.NetStream API 
  documentation is incomplete.
  The only documented methods are close(), 
  pause(), play() and seek().
  The undocumented methods attachCamera() and 
  attachAudio() works great but the publish() method don't for 
  recording?
  
  When using 
  someNetStream.publish("someStreamName", "record"), the "record" parameter is 
  ignored, no flv is created on the 
  server side.
  
  Any idea?
  
  Benoit Hediard
  --Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  SPONSORED 
  LINKS 
  


  Web site design development 
  Computer software development 
  Software design and development 

  Macromedia flex 
  Software development best practice 
  
  
  
  YAHOO! GROUPS LINKS 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

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





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Flex2 and FMS2 : recording a stream?

2006-04-28 Thread Benoit Hediard





Hi,

I'm currently 
working on Flex2/FMS2 app.
I've successfully 
managed to publish a videostream, but I cannot record 
it.

It looks like the 
flash.net.NetStream API documentation is incomplete.
The only documented 
methods are close(), pause(), play() and seek().
The undocumented 
methods attachCamera() and attachAudio() works great but the publish() method 
don't for recording?

When using 
someNetStream.publish("someStreamName", "record"), the "record" parameter is 
ignored, no 
flv is created on the server side.

Any 
idea?

Benoit 
Hediard






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Amazon Web Services

2006-04-26 Thread Benoit Hediard





I've also encountered this error:
http://www.cflex.net/flexcoders.cfm?Message=msg25454.html

Now,I'm using the AmazonREST 
services...

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Josh 
BuhlerEnvoyé: mercredi 26 avril 2006 13:33À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Amazon Web 
Services

Ok, I'm a bit of a newbie when it 
comes to Flex, but I just can't get this to work. I'm trying to do an item 
search on Amazon, using the chunk of code below. However, I keep getting the 
error that I'm missing required parameters like the "SearchIndex". Am I doing 
something wrong here? I can't find the answer anywhere else, so I'm at your 
mercy.

Thanks,

Josh


mx:WebService 
id="amazon" 
wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl"
useProxy="false"
mx:operation 
name="ItemSearch" 
showBusyCursor="true"
mx:request 
xmlns="http://webservices.amazon.com/AWSECommerceService/2006-03-08"
ItemSearch
AWSAccessKeyId1SEH1ZG68CMWH9E84VR2/AWSAccessKeyId
ServiceAWSECommerceService/Service
Keywords{searchString..text}/Keywords
SearchIndexBlended/SearchIndex
OperationItemSearch/Operation
/ItemSearch
/mx:request
/mx:operation
/mx:WebService
mx:Panel 
height="114" 
layout="absolute" 
title="Search for 
products" id="panel1" left="10" 
right="10" 
top="10"
mx:Label 
x="10" 
y="10" 
text="Search 
String" id="searchLabel"/
mx:TextInput 
x="96" 
y="8" 
width="228" 
id="searchString" 
text="elvis"/
mx:Button 
x="332" 
y="8" 
label="Search" 
id="startSearch"
click="amazon.ItemSearch.send()"/
/mx:Panel






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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Re: [Flex 2.0] How can get CFC information that is accessed via RemoteObject??

2006-04-19 Thread Benoit Hediard
In your RemoteObject/CFC, you should use getMetaData() to get all the
required informations:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/0488.htm

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de João Fernandes
Envoyé : mercredi 19 avril 2006 14:00
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Re: [Flex 2.0] How can get CFC information that is
accessed via RemoteObject??

Well, that variable is available with the correct CFC name.
I just tested in onRequest and I get the path to the CFC. 

Don't you?

João Fernandes
Dep. Informática - Área de Desenvolvimento Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185
200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sn197412
Sent: quarta-feira, 19 de Abril de 2006 12:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: [Flex 2.0] How can get CFC information that is
accessed via RemoteObject??

Hello and thank you for replay.

I want to know which CFC called via RemoteObject at Application.cfc.
Like CGI.SCRIPT_NAME.

--Shigeru (http://Shigeru-Nakagaki.com)

--- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED]
wrote:

 What kind of information are you looking for?
 
 João Fernandes
 Dep. Informática - Área de Desenvolvimento Cofina media
 
 Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351)
 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of sn197412
 Sent: quarta-feira, 19 de Abril de 2006 4:45
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] [Flex 2.0] How can get CFC information that
is accessed via RemoteObject??
 
 Hi.
 
 I have a question about ColdFusion with RemoteObject of Flex 2.0.
 When I dump CGI information that is accessed via RemoteObject,
dumped information is flex2gateway information.
 It's not CFC information.
 
 How can get CFC information that is accessed via RemoteObject??
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 Yahoo! Groups Links







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



 




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



 







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

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

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

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




RE: [flexcoders] Re: [Flex 2.0] How can get CFC information that is accessed via RemoteObject??

2006-04-19 Thread Benoit Hediard



Sorry, I don't think that getMetaData() is going to be useful in
Application.cfc.
It will only gives you info on your current Application.cfc...

Since, the remote object call is a request to the /flex2gateway servlet,
this is logical that cgi.SCRIPT_NAME=/flex2gateway.
So you can't use the cgi informations...

Have you tried to access the java page context object?
Ex. : getPageContext().getRequest();

You might find some info... (not tested)

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de sn197412
Envoyé : mercredi 19 avril 2006 15:36
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: [Flex 2.0] How can get CFC information that is
accessed via RemoteObject??

Hello.

Thank you for information.

getMetaData needs a agrument = object.
What should I set for the argument at Application.cfc??

-- Shigeru ( http://Shigeru-Nakagaki.com )

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

 In your RemoteObject/CFC, you should use getMetaData() to get all the 
 required informations:
 http://livedocs.macromedia.com/coldfusion/7/htmldocs/0488.htm
 
 Benoit Hediard
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de João Fernandes
 Envoyé : mercredi 19 avril 2006 14:00
 À : flexcoders@yahoogroups.com
 Objet : RE: [flexcoders] Re: [Flex 2.0] How can get CFC information
that is
 accessed via RemoteObject??
 
 Well, that variable is available with the correct CFC name.
 I just tested in onRequest and I get the path to the CFC. 
 
 Don't you?
 
 João Fernandes
 Dep. Informática - Área de Desenvolvimento Cofina media
 
 Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351)
213 185
 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of sn197412
 Sent: quarta-feira, 19 de Abril de 2006 12:29
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: [Flex 2.0] How can get CFC information that 
 is accessed via RemoteObject??
 
 Hello and thank you for replay.
 
 I want to know which CFC called via RemoteObject at Application.cfc.
 Like CGI.SCRIPT_NAME.
 
 --Shigeru (http://Shigeru-Nakagaki.com)
 
 --- In flexcoders@yahoogroups.com, João Fernandes joaofernandes@
 wrote:
 
  What kind of information are you looking for?
  
  João Fernandes
  Dep. Informática - Área de Desenvolvimento Cofina media
  
  Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351)
  213 185 200 . Fax (+351) 213 540 370 joaofernandes@
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of sn197412
  Sent: quarta-feira, 19 de Abril de 2006 4:45
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] [Flex 2.0] How can get CFC information that
 is accessed via RemoteObject??
  
  Hi.
  
  I have a question about ColdFusion with RemoteObject of Flex 2.0.
  When I dump CGI information that is accessed via RemoteObject,
 dumped information is flex2gateway information.
  It's not CFC information.
  
  How can get CFC information that is accessed via RemoteObject??
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links








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



 











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Flex2 and Amazon SOAP Web services, bug?

2006-04-18 Thread Benoit Hediard
Has anyone managed to port this example to Flex 2?
http://jeff.mxdj.com/using_amazons_itemsearch_webservice_from_flex.htm
 
Here is my Flex 2 version with REST and SOAP requests :
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
height=600 
width=800

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.controls.dataGridClasses.DataGridColumn;
import flash.net.*;

private var subId:String = blahblah; // your
subscription id here
   
private function showRESTResult(event:Object):void {
items.dataProvider =
event.result.ItemSearchResponse.Items.Item;
}

private function showSOAPResult(event:Object):void {
items.dataProvider =
event.result.Items.Item;
if (!event.result.Items[0].IsValid) {

Alert.show(event.result.Items[0].Errors.Error.Code +  :  +
event.result.Items[0].Errors.Error.Message, Error in SOAP Request);
}
}

private function showTitle(item:Object,
column:DataGridColumn):String{
return item.ItemAttributes.Title;
}

private function showAuthor(item:Object,
column:DataGridColumn):String{
return item.ItemAttributes.Author;
}

private function showBook(url:String):void {
navigateToURL(new URLRequest(url));
} 
   
private function doRESTSearch():void {
var request:Object = new Object();
request.Operation = ItemSearch;
request.SearchIndex = Books;
request.Sort = salesrank;
request.SubscriptionId = subId;
request.Keywords = searchTerm.text;
amazonRESTService.send(request);
}

private function doSOAPSearch():void {
var itemSearchRequest:Object = new Object();
itemSearchRequest.SearchIndex = Books;
itemSearchRequest.Sort = salesrank;
itemSearchRequest.Keywords =
searchTerm.text;

var search:Object = new Object();
search.Request = itemSearchRequest;
search.SubscriptionId = subId; 
amazonSoapService.ItemSearch(search);
}
]]
/mx:Script

mx:HTTPService id=amazonRESTService
result=showRESTResult(event) 
showBusyCursor=true

url=http://webservices.amazon.com/onca/xml?Service=AWSECommerceService;
useProxy=false /

mx:WebService id=amazonSoapService 

wsdl=http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.
wsdl
result=showSOAPResult(event) 
showBusyCursor=true /

mx:HBox width=100%
mx:TextInput id=searchTerm width=50%/  
mx:Button click=doRESTSearch() label=REST Search/
mx:Button click=doSOAPSearch() label=SOAP Search/
/mx:HBox

mx:DataGrid 
id=items 
width=100% 
change=showBook(event.target.selectedItem.DetailPageURL)   
  
mx:columns
mx:Array
mx:DataGridColumn dataField=Title
labelFunction=showTitle width=400 /
mx:DataGridColumn dataField=Author
labelFunction=showAuthor width=150/
mx:DataGridColumn dataField=ASIN headerText=ID
width=75/
/mx:Array
/mx:columns

/mx:DataGrid

/mx:Application

The REST search version works well.
The SOAP version doesn't...
 
When analyzing the SOAP parameters in the HTTP request with ServiceCapture,
it does not send any Request parameter (only SubscriptionId).
When I comment the line search.Request = itemSearchRequest;, it correctly
sends a Request parameter (with a null value).
 
It looks like there is a conflict somewhere with the Request parameter?
 
Benoit Hediard




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

RE: [flexcoders] Re: ItemListRenderer Error

2006-04-18 Thread Benoit Hediard





Have you tried to put a breakpoint in order to look in the 
debugger the structure of your result?

You might also have a look with ServiceCapture (http://kevinlangdon.com/serviceCapture/).
It's a "must have" tool for debugging 
RPCrequests.

The result is probably an array.
So you might have to do :
model.categoryList = 
newArrayCollection(event.result);

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de 
sufibabaEnvoyé: mardi 18 avril 2006 19:52À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Re: 
ItemListRenderer Error
Matt,Thanks for looking into this. I am taking 
another approach to solve this problem. UsingBenoit's PhoneCairngorm 
configuration. It seems to be working, however,I am getting a compiler error 
message:Implicit coercion of a value with static 
type 'Object' to a possibly unrelated 
type'mx.collections.ArrayCollection'Note: the red line in thecode below is the problem. The 
trace output returns an array ofobjects of type categoryVO. 
BTW, I also tried to cast :model.categoryList = 
ArrayCollection(event.result) but the same error from the 
compiler.-package 
com.smartetailing.templateEditor.commands { 
 import 
com.smartetailing.templateEditor.model.ApplicationModel; 
import 
com.smartetailing.templateEditor.service.CategoryDelegate; 
 import 
com.smartetailing.templateEditor.controller.CategoryListGetEvent; 
import 
com.smartetailing..templateEditor.view.libraryTemplates.*; 
 import 
mx.collections.ArrayCollection; import 
mx.controls.Alert; import 
mx.rpc.events.FaultEvent; import 
mx.rpc.events.ResultEvent;  import 
org.nevis.cairngorm.business.Responder; import 
org.nevis.cairngorm.commands.Command; import 
org.nevis.cairngorm.control.CairngormEvent; import 
org.nevis.cairngorm.view.ViewLocator; 
  import 
flash.util.trace;  
 public class getCategoryListCommand implements Command, 
Responder {   
 private static var model:ApplicationModel = 
ApplicationModel.getInstance();  
  public function 
execute(cairngormEvent:CairngormEvent):void { 
  trace("executeGetCategoryCommand = 
")   var 
event:CategoryListGetEvent = 
CategoryListGetEvent(cairngormEvent);  

var delegate:CategoryDelegate = new 
CategoryDelegate(this);  
 delegate.getCategoryList(event.userId); 

 model.applicationState = 
Properties.STATE_LOADING;  
}   
 
//- 
   public function 
onResult(event:ResultEvent):void {  

trace("categories = " + event.result)  
 model.categoryList = event.result; 
   
model.applicationState = Properties.STATE_DEFAULT; 
 }  
  
//- 
   public function 
onFault(event:FaultEvent):void {  
Alert.show(event.fault.description + " : " + 
event.fault.detail, "Errorin getCategoryListCommand"); 
 }  
} 
} 
In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] 
wrote: The data property is typed as Object so the binding code 
isn't going to know that it can safely read the data. Is your data 
object strongly typed? Maybe you can cast so binding will know 
what to do.  As for your GetIconFamily binding error, that 
sounds wrong. Can we see the code for that one? Maybe it's a 
bug.  Matt  -Original Message- 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of sufibaba Sent: Friday, April 14, 2006 5:17 PM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] ItemListRenderer 
Error  Hello Flexors,  I am getting a "binding" 
error while upgrading a working app from Flex2Beta1 to Flex2Beta2. 
  Below is the code that shows the TileList control with a 
custom ItemListRenderer myThumnail.mxml  - Error 
--  warning: 
unable to bind to property 'URL' on class 'Object' (class is not an 
IEventDispatcher)  -  Does 
anyone know what might be the cause.  Cheers,  
Tim--- Calling.mxml 
 mx:TileList  
 xmlns:mx="http://www.adobe.com/2006/mxml" 
  
dataProvider="{parentApplication.services.SEadminSvc.GetMyTemplates.resu 
lt}" 
width="100%" 
itemRenderer="myThumbnail" 
columnWidth="200" height="100%" 
 dragEnabled = 
"false" 
backgroundColor="#C0CCD2" 
creationComplete="InitEvent()"  
/mx:TileList   myThumnail.mxml 
---  ?xml 
version="1.0"? mx:VBox 
xmlns:mx="http://www.adobe.com/2006/mxml" 
horizontalAlign="center" 
verticalGap="0"  
horizontalGap="0" 
borderStyle=".5" 
width="100" 
height="150" 
   mx:Metadata  
[Event("thumbnailClicked")] /mx:Metad

RE: [flexcoders] Cairngorm Phone Selector in F2B2

2006-04-16 Thread Benoit Hediard
Oups... Bad file name on the server.

Corrected:
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Rick Schmitty
Envoyé : samedi 15 avril 2006 21:34
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Cairngorm Phone Selector in F2B2

Thanks for your help with the changes!  That did it as well Alex

Benoit, I got a 404 when trying to grab
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

Also, now it says Data binding will not be able to detect assignments to
STATE_LOADING. in reference to this

mx:states

mx:State name={STATE_LOADING}

mx:SetProperty name=enabled value=false /

/mx:State

/mx:states

On 4/15/06, Alex Uhlmann [EMAIL PROTECTED] wrote:
 Hi Rick

 Do you think the error is happening on

view:PhoneDetails id=phoneDetails
phone={phoneList.selectedItem}
width=100% /

 ?

 Try uncommenting this to verify. How is phone typed in PhoneDetails? 
 If typed as PhoneVO, you'd need to cast selectedItem, which is typed 
 as Object to PhoneVO like:

view:PhoneDetails id=phoneDetails
phone={PhoneVO( phoneList.selectedItem )}
width=100% /


 Best,
 Alex

 Alex Uhlmann
 Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 
 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951
 [EMAIL PROTECTED]


 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Rick Schmitty
 Sent: 15 April 2006 00:52
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Cairngorm Phone Selector in F2B2

 Hello I'm trying to get the phone selector running on cairngorm 2 and 
 am having some problems

 After chaning references to http://www.adobe.com/2006/mxml and 
 changing ApplicationView.mxml setPropety from mx:SetProperty
property=enabled
 value=false / to mx:SetProperty name=enabled
 value=false /  I also changed PhoneVO.as to implement ValueObject

 I now get:

 Implicit coercion of a value with static type 'Object' to a possibly 
 unrelated type 'com.mycompany.phones.model:PhoneVO'


 Here is the ApplicationView.mxml

 ?xml version=1.0 encoding=utf-8? mx:Panel 
 xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns:view=com.mycompany.phones.view.*
 currentState={model.applicationState}
 height=400
 layout=horizontal
 title=Nokia Phone Selector
 width=700

 mx:Script
 ![CDATA[
 import
 com.mycompany.phones.model.ApplicationModel;
 import com.mycompany.phones.model.PhoneVO;
 import
 com.mycompany.phones.controller.PhoneGetEvent;
 import flash.events.Event;

 public static var STATE_DEFAULT:String = ;
 public static var STATE_LOADING:String = 
 loading;

 [Bindable]
 public var model:ApplicationModel = 
 ApplicationModel.getInstance();
 ]]
 /mx:Script

 mx:List id=phoneList
 dataProvider={model.phones}
 height=100%
 labelField=name
 width=150 /

 view:PhoneDetails id=phoneDetails
 phone={phoneList.selectedItem}
 width=100% /

 mx:states

 mx:State name={STATE_LOADING}

 mx:SetProperty name=enabled value=false 
 /

 /mx:State

 /mx:states

 /mx:Panel


 And here is the PhoneVO:

 package com.mycompany.phones.model {

 import org.nevis.cairngorm.vo.ValueObject;

 [Bindable]
 [RemoteClass(alias=com.mycompany.phones.model.PhoneVO)]

 public class PhoneVO implements ValueObject {

 public var name:String;
 public var description:String;
 public var price:Number;
 public var image:String;
 public var series:String;
 public var triband:Boolean;
 public var camera:Boolean;
 public var video:Boolean;
 public var highlight1:String;
 public var highlight2:String;

 public function PhoneVO() {
 name  = ;
 description = ;
 price = 0;
 image = ;
 series = ;
 triband = false;
 camera = false;
 video = false;
 highlight1 = ;
 highlight2

RE: [flexcoders] Cairngorm Phone Selector in F2B2

2006-04-15 Thread Benoit Hediard
Indeed, you need to make a few changes to make it work in beta2 :
- http://www.macromedia.com/2005/mxml, changed to :
http://www.adobe.com/2006/mxml,
- phone={phoneList.selectedItem}, changed to :
phone={phoneList.selectedItem as PhoneVO},
- mx:SetProperty property=enabled value=false /, changed to :
mx:SetProperty name=enabled value=false /,
- public class PhoneVO implements ValueObject, changed to : public dynamic
class PhoneVO implements ValueObject.
(or you can implement IUID interface as explained here
http://www.macmartine.com/blog/2006/03/binding_custom_objects_to_tile.html)

I've uploaded an updated version of this Cairngorm2/ColdFusion sample app:
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Rick Schmitty
Envoyé : samedi 15 avril 2006 01:52
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Cairngorm Phone Selector in F2B2

Hello I'm trying to get the phone selector running on cairngorm 2 and am
having some problems

After chaning references to http://www.adobe.com/2006/mxml and changing
ApplicationView.mxml setPropety from mx:SetProperty property=enabled
value=false / to mx:SetProperty name=enabled
value=false /  I also changed PhoneVO.as to implement ValueObject

I now get:

Implicit coercion of a value with static type 'Object' to a possibly
unrelated type 'com.mycompany.phones.model:PhoneVO'


Here is the ApplicationView.mxml

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:view=com.mycompany.phones.view.*
currentState={model.applicationState}
height=400
layout=horizontal
title=Nokia Phone Selector
width=700

mx:Script
![CDATA[
import com.mycompany.phones.model.ApplicationModel;

import com.mycompany.phones.model.PhoneVO;
import
com.mycompany.phones.controller.PhoneGetEvent;
import flash.events.Event;

public static var STATE_DEFAULT:String = ;
public static var STATE_LOADING:String = loading;

[Bindable]
public var model:ApplicationModel =
ApplicationModel.getInstance();
]]
/mx:Script

mx:List id=phoneList
dataProvider={model.phones}
height=100%
labelField=name
width=150 /

view:PhoneDetails id=phoneDetails
phone={phoneList.selectedItem}
width=100% /

mx:states

mx:State name={STATE_LOADING}

mx:SetProperty name=enabled value=false /

/mx:State

/mx:states

/mx:Panel


And here is the PhoneVO:

package com.mycompany.phones.model {

import org.nevis.cairngorm.vo.ValueObject;

[Bindable]
[RemoteClass(alias=com.mycompany.phones.model.PhoneVO)]

public class PhoneVO implements ValueObject {

public var name:String;
public var description:String;
public var price:Number;
public var image:String;
public var series:String;
public var triband:Boolean;
public var camera:Boolean;
public var video:Boolean;
public var highlight1:String;
public var highlight2:String;

public function PhoneVO() {
name  = ;
description = ;
price = 0;
image = ;
series = ;
triband = false;
camera = false;
video = false;
highlight1 = ;
highlight2 = ;
}

}
}

And here is PhoneVO.cfc

cfcomponent

cfproperty name=name type=string default= cfproperty
name=description type=string default= cfproperty name=price
type=numeric default=0 cfproperty name=image type=string
default= cfproperty name=series type=string default= cfproperty
name=triband type=boolean default=false cfproperty name=camera
type=boolean default=false cfproperty name=video type=boolean
default=false cfproperty name=highlight1 type=string default=
cfproperty name=highlight2 type=string default=

cffunction name=init output=false
returntype=com.mycompany.phones.model.PhoneVO
cfscript
this.name = ;
this.description = ;
this.price = 0;
this.image = ;
this.series = ;
this.triband = false

RE: [flexcoders] Beta2 - Date manipulation functions?

2006-04-12 Thread Benoit Hediard
It's funny, I was looking for such functions today...
Here is an AS implementation equivalent to the ColdFusion dateAdd and
dateDiff functions!
http://jeff.mxdj.com/dateadd_for_actionscript.htm

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Ryan Pieszak
Envoyé : mercredi 12 avril 2006 19:58
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Beta2 - Date manipulation functions?

Hey all,

Are there any date manipulation functions in Flex / ActionScript?  I need a
DateDiff function that will find the difference between two dates in hours,
and also a DateAdd function that will add hours to a date.

I can't find anything on this, do such beasts exist?

Thanks.
Ryan






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



 








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

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

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

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




RE: [flexcoders] Re: Beta2 - Date manipulation functions?

2006-04-12 Thread Benoit Hediard
The functions code works great in AS3.
Only the class definition must be changed.
It works great!

Ben 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Ryan Pieszak
Envoyé : mercredi 12 avril 2006 20:12
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Beta2 - Date manipulation functions?

Hey Benoit,

Thanks for the link!  Have you implemented the code yet?  It says on the
page that it's AS2, and I think Flex 2.0 is based on AS3.  Not sure if it's
an issue at all, thought I'd ask.  I'll try to implement it now.

Thanks again,
Ryan

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

 It's funny, I was looking for such functions today...
 Here is an AS implementation equivalent to the ColdFusion dateAdd
and
 dateDiff functions!
 http://jeff.mxdj.com/dateadd_for_actionscript.htm
 
 Benoit Hediard
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de Ryan Pieszak
 Envoyé : mercredi 12 avril 2006 19:58
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Beta2 - Date manipulation functions?
 
 Hey all,
 
 Are there any date manipulation functions in Flex / ActionScript?  
I need a
 DateDiff function that will find the difference between two dates
in hours,
 and also a DateAdd function that will add hours to a date.
 
 I can't find anything on this, do such beasts exist?
 
 Thanks.
 Ryan
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 Yahoo! Groups Links








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



 







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

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

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

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




[flexcoders] Flex2 : how to stop media (down)loading?

2006-04-04 Thread Benoit Hediard





My objective 
isto get the videoHeight and the videoWidth of a video, justafter 
the upload of a.flv file.

In oder to do that, 
I'm using a videoDisplay control to start loading the flv until I get the width 
and the height of the video.
It works 
fine.

The problem : how to 
stop the loading process once I got the 
requiredinformations?
There is only a 
load() method...
I've tried to set 
videoDisplay.url to null or "", and to re-execute load() to cancel the previous 
one, but it generates an error...

I suppose this 
question is valid for all the "loader" components.

Any 
idea?

Benoit 
Hediard





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Flex2 : how to stop media (down)loading?

2006-04-04 Thread Benoit Hediard





Indeed, workaround :
videoDisplay.url = "";
videoDisplay.load();

Thanks Stefan.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Stefan 
RichterEnvoyé: mardi 4 avril 2006 13:48À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Flex2 : how 
to stop media (down)loading?

Hi Benoit,
try loading a non-existent flv:
videoDisplay.load("this_flv_is_nonsense.flv");

Stefan


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Benoit 
  HediardSent: 04 April 2006 12:31To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 : how to stop 
  media (down)loading?
  
  My objective 
  isto get the videoHeight and the videoWidth of a video, justafter 
  the upload of a.flv file.
  
  In oder to do 
  that, I'm using a videoDisplay control to start loading the flv until I get 
  the width and the height of the video.
  It works 
  fine.
  
  The problem : how 
  to stop the loading process once I got the 
  requiredinformations?
  There is only a 
  load() method...
  I've tried to set 
  videoDisplay.url to null or "", and to re-execute load() to cancel the 
  previous one, but it generates an error...
  
  I suppose this 
  question is valid for all the "loader" components.
  
  Any 
  idea?
  
  Benoit 
  Hediard





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Beta 2 CF connectivity problems

2006-03-27 Thread Benoit Hediard





What do you give as the root folder and the root 
url?
It should be the root of your coldfusion 
instance.
Ex. : C:\CFusionMX7\wwwroot and http://localhost:8500 (if you're using the 
integrated http server)
FB2 will then create a folder "flex" in WEB-INF and create 
the appropriate flex-enteprise-services.xml.

Are you using the integrated jrun http 
server?

I found that when using Apache as the http server instead 
of the integrated jrunhttp server, there is issue (compiled files are not 
created under the Apache wwwroot but the JRun root 
folder...).
So you have to create a Flex project without Flex server 
technology and configure the CF Adapter manually :
- by creating and configuringthe 
flex-enterprise-services.xml,
- by adding the compiler arg 
"--services=D:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml" 
(putthe correctpath to 
flex-enterprise-services.xml).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Doug 
HughesEnvoyé: lundi 27 mars 2006 05:11À: 
flexcoders@yahoogroups.comObjet: [Norton AntiSpam] [flexcoders] 
Beta 2 CF connectivity problems



Hello,

I’m just getting started with flex 2 
and I’ve run into a problem I can’t get past. I’m trying to create a 
project that will let me use AMF3. I don’t want to use web services and 
I’m not doing anything related to the enterprise 
services.

I’ve installed the “mystic” update 
over CF 7.0.1 running under JRun. There’s another instance of CF under 
JRun but it’s not running. 

I’m trying to create project using 
FlexBuilder 2. (I have the standalone version of beta 2 installed.) 
To create the project I click File  New  Flex Project. It 
then asks me what Flex server technology the project will use. I select 
ColdFusion Flash Remoting Service (this means AMF3, right?) and click 
next. 

The next page asks me for two 
things: Root folder and Root URL. I’ve provided the path to the flex 
folder under the ColdFusion instance in JRun and the path to the flex folder via 
the URL. (The JRun http server port is 8300.) 


No matter what I provide the finish 
button is always grayed out. I suspect that if I click Validate Location 
that it should validate this information and allow me to finish but every time I 
click that I get this error:

Server root is invalid. Could not 
locate flex-config.xml or 
flex-enterprise-services.xml.

For the life of me I’ve got no 
freakin’ clue how to get past this. Can anyone help me figure out how to 
get past this? Do I need to? Can I create a standard flex project 
and still use AMF3? 

Can I use this AMF stuff outside of 
the JRun urls? IE via http://www.mysite.com/ instead of http://localhost:8700/flex/?

Thanks for your 
help!

Doug 
Hughes
[EMAIL PROTECTED]






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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Cairngorm Model binding problem

2006-03-24 Thread Benoit Hediard






Youalso need toput [Bindable] in your 
ModelLocator class.

[Bindable]
public var ICV: ICollectionView;

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Jonathan 
MirandaEnvoyé: vendredi 24 mars 2006 01:30À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Cairngorm Model 
binding problem


Alright, I’m attempting to move my 
little dashboard to Cairngorm and it’s going alright but now I’ve got a real 
basic problem and it’s stumping me – I know it’s something little but I’m stuck. 
In my ModelLocator instance I have an ICollectionView. Service gets called by 
event/delegates and the command responder is setting the model.ICV 
correctly….but my chart which uses dataProvider=”{model.ICV}” isn’t updating. 
Now, since I made in my chart 
component:[Bindable]
public var model : ModelLocator = 
ModelLocator.getInstance();mx:LineChart id="salesChart" 
dataProvider="{model.ICV}"….And in my ModelLocator file:public 
var ICV: ICollectionView;I’m assuming the problem is somewhere in the 
binding – do I need to broadcast an update event to the Chart….that doesn’t 
sound right though, anytime an ICV changes I shouldn’t have to do that right? 
Bah, having a headache isn’t helping….anyone got any ideas where I went 
wrong?
_
Jonathan 
Miranda
Flexible Master 
of the Web
"Try not to become a man of success, but a man of 
value." - Albert Einstein
HealthGrades: Guiding 
America to Better 
Healthcare™
NASDAQ: HGRD
w (720) 
963-3832
c (707) 
761-0868
[EMAIL PROTECTED] 

_
The message contains confidential 
and/or legally privileged information and is intended for use only by the 
indicated addressee. If you are not the named addressee you should not 
disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] addColumn removed from Beat 2

2006-03-23 Thread Benoit Hediard
To handle datagrid columns in beta2, you need to directly access and
manipulate the columns array property.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de ZhaoXingdong
Envoyé : jeudi 23 mars 2006 08:22
À : flexcoders@yahoogroups.com
Objet : [flexcoders] addColumn removed from Beat 2

hi guys:

Could anyone tell me how to add columns to datagrid in actionscript?
I did it by using addColumn in Beta 1 but it's removed from Beta 2.

cheers,

xd


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



 







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

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

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

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




RE: [flexcoders] Where is the IncludeLayout

2006-03-23 Thread Benoit Hediard
This property is includeInLayout (one of the best addition in beta1!).

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de mvbaffa
Envoyé : jeudi 23 mars 2006 16:06
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Where is the IncludeLayout

Hi all,

Flex 2 beta 1 had a property, includeLayout, that relased the screen space
of invisible components.

I could not find it in Beta 2. Does anyone knows what is the new name os
includeLayout.

Thanks in advance





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



 







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

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

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

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




[flexcoders] Flex2 beta2 bug - Focus does not work on lists

2006-03-22 Thread Benoit Hediard
There is a pretty annoying bug in the new Beta2... ;)
The mouse over and focus does not work anymore on lists, when using class
instances as items.
The focus is always on the last visible list row.
 
To reproduce the problem.

-
ItemVO.as
-
package {
 
 public class ItemVO {
  
  public var label:String;
  
  public function ItemVO() {
   label = ;
  }
 
 }
 
}

-
ListFocusBug.mxml
-
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
layout=vertical

mx:Script
![CDATA[
import mx.collections.*;

[Bindable]
public var collection:ArrayCollection;

public function loadWithClassInstances():void {
var item1:ItemVO = new ItemVO();
item1.label = Item 1 (class);
var item2:ItemVO = new ItemVO();
item2.label = Item 2 (class);
var item3:ItemVO = new ItemVO();
item3.label = Item 3 (class);
collection=new ArrayCollection([item1, item2, item3]);
}

public function loadWithObjects():void {
collection = new ArrayCollection(
[{label:Item 1 (object)},
{label:Item 2 (object)},
{label:Item 3 (object)}]);
}
]]
/mx:Script

mx:Button label=Load with class instances
click=loadWithClassInstances() /

mx:Button label=Load with objects click=loadWithObjects() /

mx:List id=list 
dataProvider={collection}
rowCount=5
width=180 /

/mx:Application

When loaded with objects, it works.
When loaded with class instances, it does not work.

I haven't found any workaround right now...

Benoit Hediard





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

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

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

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




RE: [flexcoders] Flex2/ColdFusion connectivity : session scope problem

2006-03-22 Thread Benoit Hediard





FYI, it looks like this bug is corrected in 
beta2.
Cool!

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: jeudi 2 mars 2006 12:03À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] 
Flex2/ColdFusion connectivity : session scope problem

Any news on this issue from the Mystic ColdFusion Updater 
team?
This is a hugebug for us, since we'll need this to 
implement server-side security for each session on our 
project...

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: mercredi 22 février 2006 
13:15À: flexcoders@yahoogroups.comObjet: 
[flexcoders] Flex2/ColdFusion connectivity : session scope 
problem

I'm currently trying 
to use the ColdFusionsession scope in my CFC-based 
services.
I've added some 
logging to check the #session.sessionId# and the onSessionStart/onSessionEnd 
eventin my Application.cfc.

Problem : 

- when using 
ColdFusion default sessions, a new session is started at each of my remoteObject 
calls,
- when using J2EE 
sessions, it generates a null exception at each of my remoteObject 
calls.

Is it a bug or 
isthere some configuration parameters to use the ColdFusionsession 
scope?

Thanks.

Benoit 
Hediard






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Where to go to get flex builder 2 assistance?

2006-03-22 Thread Benoit Hediard





I think that youshould put :
- root folder = 
c:\jrun4\servers\cfusion
- root url = "">http://localhost:8300/cfusion (if you're using a cfusion context 
root)

Flex Builder should automatically create a flex folder 
in your WEB-INF with the correctly configured 
flex-enterprise-services.xml.
But you might check that the server port is correct 
(8300).

Benoit Hediard

PS: flex2gateway is aservlet mapping defined when 
you apply the mystic updater, used for Flex/ColdFusion 
remoting.
You should not change it.


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Doug 
HughesEnvoyé: mercredi 22 mars 2006 16:09À: 
flexcoders@yahoogroups.comObjet: [Norton AntiSpam] [flexcoders] 
Where to go to get flex builder 2 assistance?



Hi all,

Does this list’s topic encompass 
questions related to the Flex Builder 2 and CF/Flex connectivity betas? 


In particular, I’m trying to get 
started with all of this. The first thing I tried to do was to create a 
new Flex project in Flex Builder using ColdFusion Flash Remoting Service. 
I presume this is the CF/Flex connectivity “stuff”. I’ve been unable so 
far to find any information to confirm or refute this. 


From there FB asks for the root 
folder of the Flex Data Services server, which it seems to indicate is under my 
JRun folder somewhere. Because I’m working with CF I looked under the 
jrun4\servers\cfusion\... folders and found a flex folder. I set the 
root folder to that path. I then checked the port my CF instance is 
running on (8300) and set the Root URL to http://localhost:8300/web-inf/flex/ 
(and a range of others). I picked this url because it’s the most “correct” 
given the servers port. Amusingly, I can’t access that url via the web 
browser so I’m sure that’s got something to do with it. 


I edited the 
flex-enterprise-services.xml file in that flex folder to set the port to 
8300. Once thing I noticed was that the default url was http://localhost:8700{context.root}/flex2gateway/. 
I don’t have a folder “flex2gateway” anywhere on my system. I tried 
changing that to /flex but that didn’t work either. 


Anyhow, the error I’m getting when I 
click Validate Location is this:

Server Root is invalid. Could not 
locate flex-config.xml or 
flex-enterprise-services.xml

I don’t know which root is the 
problem, Root folder or Root URL. Furthermore, the finish button is grayed 
out so I assume that I need to click Validation Location before I can move 
forward. The folder I specified in the Root Folder field *does* have a flex-enterprise-services.xml 
file, but no flex-config.xml. 

So, I really don’t know where to go 
to get help on this (I’ve dug around labs.macromedia.com to no avail) so I’m 
asking here to get some guidance.

Thanks,

Doug 
Hughes
[EMAIL PROTECTED]





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Flex2 beta2 bug - Focus does not work on lists

2006-03-22 Thread Benoit Hediard






But "uid" is a property that we already use on all our 
value objects.
I don't want flex to overwrite this 
property...

Is there a workaround?

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Mac 
MartineEnvoyé: mercredi 22 mars 2006 19:32À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Flex2 beta2 
bug - Focus does not work on lists



You need to implement 
IUID, because otherwise the renderers do not have unique 
id’s.

I have an example 
here:

http://www.macmartine.com/blog/2006/03/binding_custom_objects_to_tile.html







From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alisdair MillsSent: Wednesday, March 22, 2006 3:05 
AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex2 beta2 bug - 
Focus does not work on lists


thanks Benoit for tracking that bug down. I noticed the 
same thing happening with lists yesterday when moving an app over to beta 2. Was 
going to spend some time this afternoon looking into but you have saved me both 
the time and frustration :)



cheers, Al



On 22 Mar 2006, at 10:51, Benoit Hediard 
wrote:

There is a pretty annoying bug in the new Beta2... 
;)The mouse over and focus does not work anymore on lists, when 
using classinstances as 
items.The focus is always on the 
last visible list row.To 
reproduce the problem.-ItemVO.as-package 
{public class ItemVO 
{  public var label:String;  
public function ItemVO() { label = ""; }}}-ListFocusBug.mxml-?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
xmlns="*"layout="vertical"  
mx:Script 
![CDATA[ 
import mx.collections.*; 
 
[Bindable] 
public var collection:ArrayCollection; 
 
public function loadWithClassInstances():void { 
 var item1:ItemVO = new 
ItemVO(); 
 item1.label = "Item 1 
(class)"; 
 var item2:ItemVO = new 
ItemVO(); 
 item2.label = "Item 2 
(class)"; 
 var item3:ItemVO = new 
ItemVO(); 
 item3.label = "Item 3 
(class)"; 
 collection=new ArrayCollection([item1, item2, 
item3]); 
} 
 
public function loadWithObjects():void { 
 collection = new 
ArrayCollection( 
 
[{label:"Item 1 (object)"}, 
 
{label:"Item 2 (object)"}, 
 
{label:"Item 3 (object)"}]); 
} 
]] 
/mx:Script  mx:Button label="Load with 
class instances"click="loadWithClassInstances()" 
/ 
 
mx:Button label="Load with objects" click="loadWithObjects()" 
/ 
 
mx:List id="list"   
dataProvider="{collection}"  
rowCount="5"  
width="180" //mx:ApplicationWhen loaded with objects, it works.When loaded with class instances, it does not 
work.I haven't found any 
workaround right now...Benoit 
Hediard--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 




YAHOO! GROUPS 
LINKS 



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












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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] framework_rb.swc error...

2006-03-21 Thread Benoit Hediard





Yes, I've also faced this problem (but for the fr_FR 
locale).
Apparently, the only resource bundle currently available in 
the Beta2 isen_US.

So for the moment, you need to copy the folder 'C:\Arquivos de 
programas\Adobe\Flex Builder 2 Beta 2\Flex Framework 2\frameworks\locale\us_US' 
and name it 'pt_br'.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Bruno 
MartinsEnvoyé: mardi 21 mars 2006 05:53À: 
flexcoders@yahoogroups.comObjet: [flexcoders] framework_rb.swc 
error...

In Beta 2 I have this problem:

SeverityDescriptionResourceIn 
FolderLocationCreation TimeId2unable to open 
'C:\Arquivos de programas\Adobe\Flex Builder 2 Beta 2\Flex Framework 
2\frameworks\locale\pt_br\framework_rb.swc'merc21 de 
Março de 2006 01:26:472 
How to solve it?

Tks...





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] ColdFusion sessions?

2006-03-20 Thread Benoit Hediard
Yes, you're not the only facing this issue :
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=592;
threadid=1121944forumid=72

I hope this is a known problem at Adobe that will be solved in Beta2... ;)

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de a1
Envoyé : dimanche 19 mars 2006 04:44
À : flexcoders@yahoogroups.com
Objet : [flexcoders] ColdFusion sessions?

Anyone else having problems getting ColdFusion sessions or cflogin to work
with Flex? As soon as I turn on sessionmanagement Flex freaks out. Is
something wrong with my config... or is this a known problem?

Thanks
-rd





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



 








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

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

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

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





RE: [flexcoders] Flex2 : MP3 Audio player, play problem...

2006-03-14 Thread Benoit Hediard
Thanks for the tip.
I made some research to find out the supported bit rates of the Flash
Player.
I did not find anything on the adobe/macromedia site, but I found this:
http://www.draftlight.net/dnex/mp3player/mp3format.php
 
It looks like variable bit rate (VBR) are not well supported but constant
bit rate are ok.
We have some MP3s encoded at 137kbps and at 320Kbps working with Flex2/Flash
Player 8.5.
So apparently, there is no bit rate limitation.
 
Any official word on this from the Adobe team?
I suppose that those problems are related to the alpha status of the player
8.5.
I will check with beta2 when it is released.
 
Benoit Hediard
 
PS: on the other side, FLV playback works great!

  _  

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Philippe Maegerman
Envoyé : mardi 14 mars 2006 13:04
À : flexcoders@yahoogroups.com
Objet : RE : [flexcoders] Flex2 : MP3 Audio player, play problem...


I remember reading in the flash 7 doc that the flash player can't read mp3s
encoded at higher rate than 140K.
 
Philippe

  _  

De: flexcoders@yahoogroups.com de la part de Benoit Hediard
Date: lun. 3/13/2006 16:12
À: flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Flex2 : MP3 Audio player, play problem...


No, I've not tried to do the AS example without Flex involved.
It looks like the problem is not coming from flex but from the MP3 files or
a buggy MP3 support in the 8.5 player.
With some MP3 files, it works, with others it doesn't...
But the MP3 files have been encoded directly from a CD with iTunes, so I
don't understand.

I've put online a (pretty buggy and unfinished) Flex2 audio player here
(with view source option) :
http://www.benorama.com/music/AudioPlayer.html

You can try different uploaded MP3s :
- AdamF.mp3 (encoded with iTunes), the song plays but the sound is cut all
the time, ID3 are not detected, when the load is complete, it stops the song
(channel soundComplete event mixed with sound load complete event?)...
- Unknown.mp3, this one works (no ID3 on this one),
- Herbaliser.mp3, this one does not play at all (immediate channel
soundComplete event), ID3 are loaded at the end of the load,
- CYHSY.mp3 (encoded with iTunes), this one does not play at all (immediate
channel soundComplete event), ID3 are not detected.

I can play all those songs with iTunes or Window Media Player without any
problem.

Other bugs :
- the pause does not work, it looks like sound.play(position) does not take
the position argument into account,
- when using the audio player inside another app, the loading/play progress
does not work at all.
The load progress bytesTotal does not have a fix value, it is growing all
the time...

Has anyone successfully built a MP3 audio player with Flex2 beta1?

This week, next step: a FLV video player... ;)

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Matt Chotin
Envoyé : dimanche 12 mars 2006 22:17
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Flex2 : MP3 Audio player, play problem...

Have you tried doing the AS example without Flex involved?  Based on
everything I can see I think it looks OK.  

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benoit Hediard
Sent: Friday, March 10, 2006 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 : MP3 Audio player, play problem...

I'm currently trying to build a very basic MP3 audio player with Flex2,
based on the SoundChannel code example.
The MP3 file is successfully loaded, ID3 tags are available, length is  0.
But when I press play I've got immediatly the soundComplete event.
What's wrong here?

I've tried with several MP3, same problem...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
  creationComplete=onCreationComplete()
  
  mx:Script
![CDATA[
  import flash.util.trace;
import flash.util.Timer;
 import flash.net.URLRequest;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.events.*;

private var soundUrl:String =
http://localhost/test.mp3;;
  private var soundFactory:Sound;
  private var channel:SoundChannel;
  private var positionTimer:Timer;
  
  private function onCreationComplete():void {
var request:URLRequest = new
URLRequest(soundUrl);
  soundFactory = new Sound();
  soundFactory.addEventListener(Event.COMPLETE,
completeHandler);
  soundFactory.addEventListener(Event.ID3,
id3Handler);
  soundFactory.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
  
soundFactory.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
  soundFactory.load(request

RE: [flexcoders] Flex2 : MP3 Audio player, play problem...

2006-03-13 Thread Benoit Hediard
No, I've not tried to do the AS example without Flex involved.
It looks like the problem is not coming from flex but from the MP3 files or
a buggy MP3 support in the 8.5 player.
With some MP3 files, it works, with others it doesn't...
But the MP3 files have been encoded directly from a CD with iTunes, so I
don't understand.

I've put online a (pretty buggy and unfinished) Flex2 audio player here
(with view source option) :
http://www.benorama.com/music/AudioPlayer.html

You can try different uploaded MP3s :
- AdamF.mp3 (encoded with iTunes), the song plays but the sound is cut all
the time, ID3 are not detected, when the load is complete, it stops the song
(channel soundComplete event mixed with sound load complete event?)...
- Unknown.mp3, this one works (no ID3 on this one),
- Herbaliser.mp3, this one does not play at all (immediate channel
soundComplete event), ID3 are loaded at the end of the load,
- CYHSY.mp3 (encoded with iTunes), this one does not play at all (immediate
channel soundComplete event), ID3 are not detected.

I can play all those songs with iTunes or Window Media Player without any
problem.

Other bugs :
- the pause does not work, it looks like sound.play(position) does not take
the position argument into account,
- when using the audio player inside another app, the loading/play progress
does not work at all.
The load progress bytesTotal does not have a fix value, it is growing all
the time...

Has anyone successfully built a MP3 audio player with Flex2 beta1?

This week, next step: a FLV video player... ;)

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Matt Chotin
Envoyé : dimanche 12 mars 2006 22:17
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Flex2 : MP3 Audio player, play problem...

Have you tried doing the AS example without Flex involved?  Based on
everything I can see I think it looks OK.  

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benoit Hediard
Sent: Friday, March 10, 2006 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 : MP3 Audio player, play problem...

I'm currently trying to build a very basic MP3 audio player with Flex2,
based on the SoundChannel code example.
The MP3 file is successfully loaded, ID3 tags are available, length is  0.
But when I press play I've got immediatly the soundComplete event.
What's wrong here?

I've tried with several MP3, same problem...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
creationComplete=onCreationComplete()

mx:Script
![CDATA[
import flash.util.trace;
import flash.util.Timer;
 import flash.net.URLRequest;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.events.*;

private var soundUrl:String =
http://localhost/test.mp3;;
private var soundFactory:Sound;
private var channel:SoundChannel;
private var positionTimer:Timer;

private function onCreationComplete():void {
var request:URLRequest = new
URLRequest(soundUrl);
soundFactory = new Sound();
soundFactory.addEventListener(Event.COMPLETE,
completeHandler);
soundFactory.addEventListener(Event.ID3,
id3Handler);
soundFactory.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);

soundFactory.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
soundFactory.load(request);
}

private function
positionTimerHandler(event:TimerEvent):void
{
//trace(positionTimerHandler:  + channel.position);
}

private function completeHandler(event:Event):void {
trace(completeHandler:  + event);
playButton.enabled = true;
}

private function id3Handler(event:Event):void {
trace(id3Handler:  + event);
}

private function ioErrorHandler(event:Event):void {
trace(ioErrorHandler:  + event);
}

private function
progressHandler(event:ProgressEvent):void {
trace(progressHandler:  + event);
}

private function soundCompleteHandler(event:Event):void
{
trace(soundCompleteHandler:  + event);
positionTimer.stop();
}

private function onPlayClick():void {
channel = soundFactory.play

[flexcoders] Flex2 : MP3 Audio player, play problem...

2006-03-10 Thread Benoit Hediard
I'm currently trying to build a very basic MP3 audio player with Flex2,
based on the SoundChannel code example.
The MP3 file is successfully loaded, ID3 tags are available, length is  0.
But when I press play I've got immediatly the soundComplete event.
What's wrong here?

I've tried with several MP3, same problem...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
creationComplete=onCreationComplete()

mx:Script
![CDATA[
import flash.util.trace;
import flash.util.Timer;
 import flash.net.URLRequest;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.events.*;

private var soundUrl:String =
http://localhost/test.mp3;;
private var soundFactory:Sound;
private var channel:SoundChannel;
private var positionTimer:Timer;

private function onCreationComplete():void {
var request:URLRequest = new URLRequest(soundUrl);
soundFactory = new Sound();
soundFactory.addEventListener(Event.COMPLETE,
completeHandler);
soundFactory.addEventListener(Event.ID3, id3Handler);
soundFactory.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
soundFactory.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
soundFactory.load(request);
}

private function positionTimerHandler(event:TimerEvent):void
{
//trace(positionTimerHandler:  + channel.position);
}

private function completeHandler(event:Event):void {
trace(completeHandler:  + event);
playButton.enabled = true;
}

private function id3Handler(event:Event):void {
trace(id3Handler:  + event);
}

private function ioErrorHandler(event:Event):void {
trace(ioErrorHandler:  + event);
}

private function progressHandler(event:ProgressEvent):void {
trace(progressHandler:  + event);
}

private function soundCompleteHandler(event:Event):void {
trace(soundCompleteHandler:  + event);
positionTimer.stop();
}

private function onPlayClick():void {
channel = soundFactory.play();
channel.addEventListener(Event.SOUND_COMPLETE,
soundCompleteHandler);

positionTimer = new Timer(50);
positionTimer.addEventListener(TimerEvent.TIMER,
positionTimerHandler);
positionTimer.start();
}
]]
/mx:Script

mx:Button id=playButton
click=onPlayClick()
enabled=false
label=Play /

/mx:Application

Benoit Hediard




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

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

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

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




[flexcoders] Flex2: RichTextEditor copy/paste bug and improvement requests

2006-03-09 Thread Benoit Hediard





It is not possible 
to perform copy/paste of existing text in the 
RichTextEditor.

To reproduce the 
problem:
- enter text or 
copy/paste some text in the RichTextEditor,
- select and try to 
copy/paste a portion of the entered text.

While we are talking 
about the RichTextEditor component, there are big usability issues with the URL 
linking system.

To add a link to 
text, you must :
- selecta 
portion of text,
- enter a 
URL,
- you must then use 
ENTER key to validate the change.
Would it be possible 
to add a OK button nearby the URL input text?

It isthen very 
difficult to remove the URL linking, because it is not possible to select the text 
anymore (the link become active and a click open the URL in a new 
window).
So you must use the 
arrow keys + shift key to select the text.
Most of users won't 
be able to do that.
Would it be possible 
to change the behaviour of a link :
- whenit isclicked, 
it become selected,
-the link is 
displayed in the URL Input text with Remove andUpdate buttons (so you can 
modify or delete the link).

It would be also 
nice if the links are visually marked (blue/underline).

Another improvement 
request :
- an HTML button, to 
be able toview and/or modifythe generated HTML (kind of expert 
mode).

What are your 
opinions and othersuggestions to improve the RichTextEditor 
components?

Thanks!

Benoit 
Hediard





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Flex2/ColdFusion connectivity : session scope problem

2006-03-02 Thread Benoit Hediard





Any news on this issue from the Mystic ColdFusion Updater 
team?
This is a hugebug for us, since we'll need this to 
implement server-side security for each session on our 
project...

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: mercredi 22 février 2006 
13:15À: flexcoders@yahoogroups.comObjet: 
[flexcoders] Flex2/ColdFusion connectivity : session scope 
problem

I'm currently trying 
to use the ColdFusionsession scope in my CFC-based 
services.
I've added some 
logging to check the #session.sessionId# and the onSessionStart/onSessionEnd 
eventin my Application.cfc.

Problem : 

- when using 
ColdFusion default sessions, a new session is started at each of my remoteObject 
calls,
- when using J2EE 
sessions, it generates a null exception at each of my remoteObject 
calls.

Is it a bug or 
isthere some configuration parameters to use the ColdFusionsession 
scope?

Thanks.

Benoit 
Hediard






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Re: Flex/Coldfusion connectivity test app

2006-03-02 Thread Benoit Hediard
To get a typed object on the Flex side, there is nothing specific to do, you
only need to correctly define :
- in the CFC VO , all the cfproperty,
Ex. : cfproperty name=someString type=String /
- in the service CFC cffunction, the correct returnType,
Ex. : returntype=com.mycompany.myapp.model.TestVO
- in the AS3 VO, the alias metadata,
Ex. : [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
- in the AS3 VO, all the public var properties
Ex. : public var someString:String;

You might also check 2 things, to see what's going on :
- on the ColdFusion server side, check the CF Adapter logs in
CFusionMX7/runtime/logs/coldfusion-out.log,
- on the Flex client side, install ServiceCapture,
http://kevinlangdon.com/serviceCapture/, you will see if the returned
objects are correctly typed.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de anopres
Envoyé : jeudi 2 mars 2006 05:42
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex/Coldfusion connectivity test app

How do you use the typed object that cf returns?  All I seemt to get is a
generic object on the Flex side.  Do you have to run through a bunch of set
functions to move the properties returned into a pre-existing .as typed
object?

Sorry for the noob question, but this one has been bugging me for a while.

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

 Since some people seems to have issues to use the Flex/ColdFusion 
 connectivity, here is a sample app to test your connectivity.
 
 
 ColdFusion / Server side
 
 
 Save the following value object CFC in 
 {wwwroot}/com/mycompany/myapp/model/TestVO.cfc
 cfcomponent
 
 cfproperty name=someString type=String / cfproperty 
 name=someNumber type=Numeric /
 
 cffunction name=init returntype=com.mycompany.myapp.model.TestVO
   cfscript
   this.someString = test;
   this.someNumber = 0;
   /cfscript
   cfreturn this /
 /cffunction
 
 /cfcomponent
 
 Save the following remote service CFC in 
 {wwwroot}/com/mycompany/myapp/service/TestService.cfc
 cfcomponent
 
 cffunction name=getArray access=remote returntype=Array
   cfscript
   var data = arrayNew(1);
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=getStruct access=remote returntype=Struct
   cfscript
   var data = structNew();
   data.firstData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   data.secondData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=receiveAndReturnVO access=remote
 returntype=com.mycompany.myapp.model.TestVO
   cfargument name=vo type=com.mycompany.myapp.model.TestVO
   cfreturn arguments.vo
 /cffunction
 
 /cfcomponent
 
 --
 Flex / Client side
 --
 
 Save the following value object in {some test 
 project}/com/mycompany/myapp/model/TestVO.as
 package com.mycompany.myapp.model {
 
   [Bindable]
   [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
   
   public class TestVO {
   
   public var someString:String;
   public var someNumber:int;
   
   public function TestVO() {
   someString = ;
   someNumber = 0;
   }
 
   }
   
 }
 
 Save the following test application in Flex Builder 2 {some test 
 project}/TestConnectivity.mxml ?xml version=1.0 encoding=utf-8? 
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=*
   
   mx:RemoteObject id=testService
   destination=ColdFusion
   result=onResult(event)
   source=com.mycompany.myapp.service.TestService  /
   
   mx:Script
   ![CDATA[
   import com.mycompany.myapp.model.TestVO;
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   import mx.utils.ObjectUtil;
   
   private function onResult(event:ResultEvent){

Alert.show(ObjectUtil.toString(event.result));
   }
   ]]
   /mx:Script
   
   mx:Button label=getArray click=testService.getArray() /
 
   mx:Button label=getStruct click=testService.getStruct() /
   !-- BUGS : display (null) value instead of objects, but objects are

 correctly returned... --
   
   mx:Button label=receiveAndReturnVO
 click=testService.receiveAndReturnVO(new TestVO()) /
   
 /mx:Application
 
 Compile and run TestConnectivity.mxml (do not forget to set the 
 compile argument to take

[flexcoders] Flex2 bug with mx:Text, incorrect height with width=100%

2006-03-02 Thread Benoit Hediard
One of the most annoying layout problem I'm currently facing on Flex2... ;)
 
When using width=100% the height of the Text component is never correct.
It looks like the height always equals the height of the text before the
resize to the new width.
 
Ex. : 
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. width=100% / 

mx:HRule /

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. / 

mx:HRule /

/mx:Application

As a workaround, I usually create a binding constraint between the Text
width and a parent document width.
But it generates problems when the browser is resize and/or scrollbars
appear.

So :
1. Is it a bug?
2. What is the best workaround?

Thanks.

Benoit Hediard





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

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

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

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




RE: [flexcoders] Coldfusion cfc's and Flex Remote Objects

2006-02-27 Thread Benoit Hediard
First thing to check is to see if you can call your cfcs with a regular http
call :
http://localhost/flex/remoting/samples/SomeService.cfc

To start with Flex/CF connectivity, do not use named remote objects.
Simply use the default ColdFusion destination (defined when installing the
updater) + source attribute.

Ex.:
mx:RemoteObject id=someService
destination=ColdFusion
source=flex.remoting.samples.SomeService /

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de oiland_barry
Envoyé : lundi 27 février 2006 16:11
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Coldfusion cfc's and Flex Remote Objects

Hi,

i have successfully got this working (almost!) at long last. I am running
both my cf and flex as iintegrated JRun servers on my server machine (port
8700 and 8500 respectively) and i am developing and accessing the mxml files
from my laptop.

I can get the echo cfc to work ok, and i also placed another cfc in the same
directory (plants.cfc) which seems to let me get flex and cf communicating.

My problem is that when i try to use another cfc in another directory (not
\flex\remoting\samples\) flex doesnt seem to be able to communicate at all,
it just sits there with the busy symbol.

Im not sure whats going on, but i am sure that i have added the appropriate
code in the right places and all the configuration files (flex's
flex-config.xml, cf's gateway-config.xml) seem to be in order!

Its just not working at all and i cant continue developing until i can
reliably have access to the cfc's!

Also, the named remote objects are giving em a bit of trouble...
should i be pointing to the server name or localhost. When i use localhost,
flex doesnt seem to be able to talk to the cfc's, but when i use the servers
name (advent) it seems to work fine.

Basically i cant get my flex to talk to my cfc's when they are stored in my
main cfc directory. I have restarted both the cf and flex servers on many
occasions and i have also restarted the whole machine on a few occasions
just to be sure everything is initialised properly.
I'll give it another restart now just to see.

Please help,

Barry






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



 







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

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

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

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





[flexcoders] Flex2: DateField formatFunction bug

2006-02-27 Thread Benoit Hediard
I've encountered this annoying bug today.
When using the formatFunction attribute of DateField, when the component
looses its focus, it erases the date text field.
 
To reproduce the problem, simply execute the following code from LiveDocs,
select a date and move the focus to the other text input:
mx:DateFormatter id=dfconv formatString=/MM/DD/
mx:Script
![CDATA[
private function formatDate(date:Date):String
{
return dfconv.format(date);
} 
]]
/mx:Script

mx:DateField id=df formattingFunction=formatDate /

mx:TextInput /

There is a simple workaround, but it does not work all the time:
mx:DateFormatter id=dfconv formatString=/MM/DD/
mx:Script
![CDATA[
private function formatDate(date:Date):String
{
return dfconv.format(date);
}

private function onChange():void {
df.text = formatDate(df.selectedDate);
}
]]
/mx:Script

mx:DateField id=df change=onChange() /

mx:TextInput /

Benoit Hediard



 
 




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

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

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

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





RE: [flexcoders] ServiceCapture, Firefox, Flash Player 8.5

2006-02-26 Thread Benoit Hediard
I'm successfully using ServiceCapture 1.2.8 with Firefox 1.5.0.1 and the
latest Flash Player 8.5 (from Flex2 beta1).
Have you added the file:///C://Program%20Files/ServiceCapture/firefox.js
in your Firefox proxy connection parameter?

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de JesterXL
Envoyé : dimanche 26 février 2006 22:51
À : Flexcoders
Objet : [flexcoders] ServiceCapture, Firefox,  Flash Player 8.5

Anyone used ServiceCapture 1.2.8 with Firefox and Flash Player 8.5 beta? 
I'm getting nothing, but works just fine with Flash Player 7 in IE...

??? 



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



 







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

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

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

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





RE: [flexcoders] Flex Builder Memory leak

2006-02-22 Thread Benoit Hediard





Here is another error I had during a "freeze/memory leak" 
:
"Couldn't read SWC
D:\Workspace\SomeProject\style.css
flex2.compiler.swc.SwcException: Error occurred while 
loading D:\Workspace\SomeProject\style.css: Unable to read files from SWC 
archive! Negative seek offset
"

It looks like there is also issues when using 
css.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Jonathan 
MirandaEnvoyé: mercredi 22 février 2006 
21:10À: flexcoders@yahoogroups.comObjet: 
[flexcoders] Flex Builder Memory leak


Anyone else having the problem that 
if the FlexBuilder is open for extended amounts of time, that it gets slower and 
slower? Closing mxml components can take up to 3-4 seconds if I have the program 
open for an hour or more, and opening/closing projects gets longer and longer. 
Ironically, building the project doesn’t change but the builder is definitely 
having issues after time – copy and pasting big chunks can nearly freeze the 
program and it seems to only be affected if I have the builder open for over 2-3 
hours. I’ve got usually multiple projects open but only working in one – should 
I be closing all projects I’m not working on? I usually open another file in 
another project to see some code, then close that file and go back to 
working…closing would make that a lot longer process (open project and wait for 
it to load, open file, read, close file, close project). I’ve only got like 4-5 
projects though, don’t think that’s the issue.
_
Jonathan 
Miranda
Flexible Master 
of the Web
"In the game of chess, it's important to 
never let your opponent see your pieces."
HealthGrades: Guiding America 
to Better Healthcare™
NASDAQ: 
HGRD
w (720) 
963-3832
c (707) 
761-0868
[EMAIL PROTECTED] 

_
The message contains confidential 
and/or legally privileged information and is intended for use only by the 
indicated addressee. If you are not the named addressee you should not 
disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] First time flex2 app Phones Example Failing

2006-02-21 Thread Benoit Hediard
You might checked two things.
Have you verified the port number in flex-enterprise-services.xml?
Have you added the additional argument in Flex Builder2 to take into account
flex-enterprise-services.xml?

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de ianskinnerbs
Envoyé : lundi 20 février 2006 20:42
À : flexcoders@yahoogroups.com
Objet : [flexcoders] First time flex2 app Phones Example Failing

I followed the instructions for the phone sample flex2 app found here:
http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity:Sampl
es:Phone_Selector.

I have confirmed that the CF side is apparently working correctly, but when
I try to run the flex app, I just get an empty container and an endless
loading clock cursor.  What am I missing?  I don't see any errors either
during compilation or runtime.  Just an endless blank app.

TIA
Ian Skinner





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



 








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

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

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

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




RE: [flexcoders] First time flex2 app Phones Example Failing

2006-02-21 Thread Benoit Hediard
I've never tried on a multi-home config, but everything looks fine.

You change the port number in your endpoint URL in
flex-enterprise-services.xml:
Ex. : endpoint uri=http://localhost:8500/flex2gateway/; 
(you must restart your service)

In your case, it should be (default value, I think):
endpoint uri=http://localhost{context.root}/flex2gateway/; 

What you can do : check the cfusion-out.log in the Jrun logs.
If the flex2gateway is correctly called, it will log all the messages in it
with [Flex] flag.
But I suspect that your flex2gateway is never called...

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Ian Skinner
Envoyé : mardi 21 février 2006 17:50
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] First time flex2 app Phones Example Failing

Thanks Benoit

Have you added the additional argument in Flex Builder2 to take into account
flex-enterprise-services.xml?

I have added the following value in the Additional compiler arguments:
--services=C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\fle
x-enterprise-services.xml

I am running ColdFusion in a multi-home configuration on the native Jrun.
So I am not sure this is the correct value.  But I picked the
flex-enterprise-services.xml that was in the cfusion jrun server.  This is
the Cf/jrun instance associated with the default website configured in my
IIS manager.

Have you verified the port number in flex-enterprise-services.xml?
I have tried.  I looked in the flex-enterprise-services.xml file, but I do
not see a port number, I am not sure which element is supposed to have one
and whether I should be seing one or not.  I access my defalut website with
http://localhost without a portnumber.  I've tested the CF code with the
following url: http://localhost/CFIDE/samples/Phones/CF/test.cfm.

So what port number should I be checking in the
flex-enterprise-services.xml?

Thanks
 
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning



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



 




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

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

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

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





RE: [flexcoders] Cairngorm2 reusable commands

2006-02-17 Thread Benoit Hediard
I'll second this approach : 
1. use as much as possible the Model Locator and bindings to avoid
commandsviews dependencies,
2. when not sufficient or not elegant, use a viewhelper.

Benoit Hediard (which was using too much viewhelpers at the begining ;) )

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de João Fernandes
Envoyé : vendredi 17 février 2006 13:08
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Cairngorm2 reusable commands

Alberto,

In my opinion commands shouldn't be aware of the views. It's not what
cairngorm is made for. Dispatch your event and set the result to some
variable in your ModelLocator. Then if foobar1 and foobar2 need that info,
use bindings and bind them to that variable ... Do you need to transform
that information in a different way for each one? Fine, use the
Foobar1ViewHelper and Foobar2ViewHelper to do it.

Example:

Foobar1.mxml 
mx:Script
![CDATA[   
Import your.model.locator.path.ModelLocator;

[Bindable]
public var model:ModelLocator =
ModelLocator.getInstance();
]]
/mx:Script
mx:Combobox dataProvider={Foobar1ViewHelper.formatMyModel(model.myVar)}/


Foobar2.mxml

mx:Combobox
dataProvider={Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}/


João Fernandes
Sistemas de Informação

Programador Informático
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185
200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alberto Albericio Salvador
Sent: sexta-feira, 17 de Fevereiro de 2006 11:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm2 reusable commands

Hi all,

In Cairngorm commands, I always define statically where I want some
results to be sent (normally a custom function in component that extends
ViewHelper). This updates my view and works fine. But...

How can I make that command Class to send some results to whatever asked
for them (who dispatched the event that threw that command)?

Eg:

foobar1.mxml and foobar2.mxml
..
public function setResults(someResults):void {
//update my controls
}

public function getResults():void {
dispatchEvent(askForResults);
}


foobar1 and foobar2 dispatch the same event and the command needs to know
where to send back the results and run setResults on the corresponding
caller. How can I achieve this?

Thanks in advance


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



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



 





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



 








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

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

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

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




RE: [flexcoders] Flex 2 builder: is there a way to turn warnings off

2006-02-16 Thread Benoit Hediard
There is at least one annoying warning that should be always removed in Flex
Builder 2.
When binding to static const, it still shows Data binding will not be able
to detect assignments to SOME_CONST.
 
For example :
public static const STATE_LOADING:String = loadingState;
...
mx:State 
name={STATE_LOADING}
...
/mx:State

We don't require [Bindable] on this var since it is a constant value.

This issue generates a lot of warnings on large apps : warning list is not
usable at all because of that.

Thanks.

Benoit Hediard



De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Johannes Nel
Envoyé : jeudi 16 février 2006 03:21
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Flex 2 builder: is there a way to turn warnings off


or at least say what should generate a warning (like FDT)

-- 
j:pn 


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




SPONSORED LINKS 
Web site design development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site
+design+developmentw2=Computer+software+developmentw3=Software+design+and+
developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
66.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si
te+design+developmentw2=Computer+software+developmentw3=Software+design+an
d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
=166.sig=lvQjSRfQDfWudJSe1lLjHw   Software design and development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+
site+design+developmentw2=Computer+software+developmentw3=Software+design+
and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 
Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve
lopmentw2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n
PIrz7_EpZI36cYzBjw Software development best practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W
eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi
gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
c=5s=166.sig=f89quyyulIDsnABLD6IXIw  



YAHOO! GROUPS LINKS 


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









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

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

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

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





RE: [flexcoders] Cairngorm 2 SequenceCommand issues

2006-02-13 Thread Benoit Hediard
We have also faced this problem.
In alpha 1, it looks like events dispatched by commands (extending
EventDispatcher) are not caught by the controllers.

Simple workaround, use the Application.application to dispatch events in
commands.

For example, in the SequenceCommand.as replace
Line 123 : dispatchEvent( nextEvent ); 
by
Line 123 : Application.application.dispatchEvent( nextEvent ); 
(you might need to import mx.core.Application)

It should solve your issue.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Simon Barber
Envoyé : lundi 13 février 2006 13:00
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Cairngorm 2 SequenceCommand issues

Hi,

Here are 5 steps that lead to my issue.

1. The user types his username, password and clicks login.
2. The LoginEvent is dispatched with the user details.
3. The LoginCommand execute method is called and my Application Delegate
calls the remote method on the server.
4. onResult callback is called when the data returns from the server and i
set all the relevant Application model data.
5. The LoginCommand extends the SequenceCommand so that i can set the
nextEvent property and call executeNextCommand method.

The last point is where the problem lies. I have stepped through the code,
the executeNextCommand gets called and so does the dispatchEvent
(event) but it never executes the next command in the sequence.

Any ideas would be greatly appreciated.






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



 







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

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

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

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




RE: [flexcoders] Re: Cairngorm 2 SequenceCommand issues

2006-02-13 Thread Benoit Hediard
We don't use the SequenceCommand, we dispatch directly our events from the
commands.
And it works fine.

Have you tried to dispatch the event directly from the login command result
handler?
Ex. : Application.application.dispatchEvent(new SomeEvent());

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Simon Barber
Envoyé : lundi 13 février 2006 15:38
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Cairngorm 2 SequenceCommand issues

Hi Beniot,

I tried that workaround out with no luck. Have you managed to get it to
work?

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

 We have also faced this problem.
 In alpha 1, it looks like events dispatched by commands (extending
 EventDispatcher) are not caught by the controllers.
 
 Simple workaround, use the Application.application to dispatch
events in
 commands.
 
 For example, in the SequenceCommand.as replace Line 123 : 
 dispatchEvent( nextEvent ); by Line 123 : 
 Application.application.dispatchEvent( nextEvent ); (you might need to 
 import mx.core.Application)
 
 It should solve your issue.
 
 Benoit Hediard
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] De la
 part de Simon Barber
 Envoyé : lundi 13 février 2006 13:00
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Cairngorm 2 SequenceCommand issues
 
 Hi,
 
 Here are 5 steps that lead to my issue.
 
 1. The user types his username, password and clicks login.
 2. The LoginEvent is dispatched with the user details.
 3. The LoginCommand execute method is called and my Application
Delegate
 calls the remote method on the server.
 4. onResult callback is called when the data returns from the
server and i
 set all the relevant Application model data.
 5. The LoginCommand extends the SequenceCommand so that i can set
the
 nextEvent property and call executeNextCommand method.
 
 The last point is where the problem lies. I have stepped through
the code,
 the executeNextCommand gets called and so does the dispatchEvent
 (event) but it never executes the next command in the sequence.
 
 Any ideas would be greatly appreciated.
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 Yahoo! Groups Links







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



 







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

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

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

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





[flexcoders] Cairngorm2 version of Phones Flex/ColdFusion Connectivity samples

2006-02-11 Thread Benoit Hediard





Hi 
everyone,

Today, I managed to 
take some time to write a Cairngorm2 version of the Phones Flex/ColdFusion 
Connectivity sample!

Description:A 
Cairngorm 2 version of the Phone Selector sample application.http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity:Samples:Phone_Selector

Purpose:- to 
show Flex RIA best practices,- to show Flex/ColdFusion Connectivity best 
practices.

Changes:I made 
some minor changes to the original app, in order to simplify it.- removed 
 simple list instead of tile list without details state,- removed  
no images,- added  reload button to demonstrate Cairngorm 
events/commands with Flex/ColdFusion connectivity,- added  loading state 
during remoting commands.

Installation:- 
download Cairngorm 2 alpha (http://www.richinternetapps.com/archives/000145.html),- 
unzip the Phones and Cairngorm files in new Flex Builder 2 project,- move 
the content of "coldfusion" folder to your ColdFusion wwwroot,- test the 
service by calling http://localhost/com/mycompany/phones/service/test.cfm,- 
compile the Main.mxml app (do not forget to set the compiler args to use 
flex-enterprise-services.xml). 

The zip file can be 
downloaded here :
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

Any feedbacks are 
welcome.

Have 
fun!

Benoit 
Hediard





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Localizing Flex 2 app

2006-02-09 Thread Benoit Hediard





I could not find any 
documentation on localization in the Flex 2 beta live docs.

Here it the reason 
why and the link to the doc:
http://www.deitte.com/archives/2006/02/localizing_flex.htm

Cool!

Benoit 
Hediard





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Re: Flex/Coldfusion connectivity test app

2006-02-08 Thread Benoit Hediard
Hi Tim,

 are you using Cairngorm2 yet?

Yes, we are using Cairngorm2 on a pretty large Flex/ColdFusion project.

Our architecture :
- ColdFusion MX 7 Standard + Flash Media Server 2 + SQL Server 2005 (we do
not plan to use Flex Enterprise Services),
- Flash (Flex 2).

Frameworks used :
- ColdSpring to handle our CFC-based model/service layers,
- Model-Glue to handle our CFC/CFM-based view/controller layers for the HTML
client,
- Cairngorm to handle our AS3/MXML model/view/controller layers for the
Flash client. 

I'm a big fan of those three frameworks : lightweight and powerful.
We never used ARP, so I have no opinions on it.

As soon as I have some times (maybe this week-end...), I'll write a sample
Flex/ColdFusion application (probably, a Cairngorm 2 version of Ben Forta's
Phones app).

Benoit Hediard

PS: Later this year, I also plan to rebuild entirely benorama.com (not
updated since 2002 for CFMX launch...), in order to put all the latest
Flex2/ColdFusion7 best practices!
 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de sufibaba
Envoyé : mardi 7 février 2006 23:08
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex/Coldfusion connectivity test app

Thanks for the excellent reply.   

You saved the day.  

We do have CF working with Flex.  There's also the Phones example on the
Adobe Labs site that shows this connectivity.  All of this is working fine.
The challenge we were having was with the new version of Cairngorm.  We have
been using ARP for a flash application that is to be migrated to flex2 and
we need to get a bit of advice from the creator of Cairngorm -- who is now
Adobe, to suggest a best practice example that shows how coldfusion is the
perfect mate for flex2.

The login example that was given is a bit too simplified and also did not
include how coldfusion.  

If Adobe wants to sell coldfusion with flex, then it would be beneficial to
demonstrate via examples how things could work together.

Anyhow, aside from our wish list to Adobe, 

Merci Beaucoup for your excellent tutorial and sharing your experiences,
especially the bugs.  

BTW, are you using Cairngorm2 yet? or what type of architecture are you
using.  

P.S.  I used your Benorama architecture for a project and was very happy
with it.  What are your thoughts on Cairngorm and the upcomming
ARP3 for flex2.

Cheers,

Tim



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

 This sample app also shows how CFC/AS3 VO mappings (or remote class
alias)
 works.
 
 Have fun!
 
 Benoit Hediard
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de Benoit Hediard
 Envoyé : mardi 7 février 2006 20:37
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Flex/Coldfusion connectivity test app
 
 Since some people seems to have issues to use the Flex/ColdFusion 
 connectivity, here is a sample app to test your connectivity.
 
 
 ColdFusion / Server side
 
 
 Save the following value object CFC in 
 {wwwroot}/com/mycompany/myapp/model/TestVO.cfc
 cfcomponent
 
 cfproperty name=someString type=String / cfproperty
name=someNumber
 type=Numeric /
 
 cffunction name=init returntype=com.mycompany.myapp.model.TestVO
   cfscript
   this.someString = test;
   this.someNumber = 0;
   /cfscript
   cfreturn this /
 /cffunction
 
 /cfcomponent
 
 Save the following remote service CFC in 
 {wwwroot}/com/mycompany/myapp/service/TestService.cfc
 cfcomponent
 
 cffunction name=getArray access=remote returntype=Array
   cfscript
   var data = arrayNew(1);
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=getStruct access=remote returntype=Struct
   cfscript
   var data = structNew();
   data.firstData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   data.secondData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=receiveAndReturnVO access=remote
 returntype=com.mycompany.myapp.model.TestVO
   cfargument name=vo type=com.mycompany.myapp.model.TestVO
   cfreturn arguments.vo
 /cffunction
 
 /cfcomponent
 
 --
 Flex / Client side
 --
 
 Save the following value object in {some test 
 project}/com/mycompany/myapp/model/TestVO.as
 package com.mycompany.myapp.model {
 
   [Bindable]
   [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
   
   public class TestVO {
   
   public var someString:String;
   public var someNumber:int;
   
   public function TestVO() {
   someString

RE: [flexcoders] Re: Flex/Coldfusion connectivity test app

2006-02-08 Thread Benoit Hediard
I recommend ColdSpring, we use it to implement our model CFC factory
(beanFactory).
It is very nice when you have a complex model with a lot of CFCs and complex
CFCs composition/dependencies.
(we have not tested the AOP features)

We don't use yet on production server, but it should not have any
performance issues, since the framework is only called at application
start-up to read the xml config file and creating/wiring all your model
CFCs.

The 1.0 release is very nearby.

So, yes, you should give it a try:
http://www.coldspringframework.org/

Benoit Hediard

PS: the other framework we are using is CF Unit
(http://cfunit.sourceforge.net/), to test our CFC-based model/service
layers.
A must when working with Flex, to be sure that your remote services are
correctly working!

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Dirk Eismann
Envoyé : mercredi 8 février 2006 11:06
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Re: Flex/Coldfusion connectivity test app

Hi Ben,

 Frameworks used :
 - ColdSpring to handle our CFC-based model/service layers,

that's very interesting. We also thought about giving ColdSpring a try - do
you recommend it? It's a very young project and still in alpha so I wonder
if you had any issues with it in a production environment.

Dirk.




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



 







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

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

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

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





[flexcoders] Flex/Coldfusion connectivity test app

2006-02-07 Thread Benoit Hediard
 to use your service CFCs in a cairngorm application, you just need
to add the RemoteObject definition in your ServiceLocator definition file.

Hope this helps!

Benoit Hediard






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

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

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

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





RE: [flexcoders] Flex/Coldfusion connectivity test app

2006-02-07 Thread Benoit Hediard
This sample app also shows how CFC/AS3 VO mappings (or remote class alias)
works.

Have fun!

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Benoit Hediard
Envoyé : mardi 7 février 2006 20:37
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Flex/Coldfusion connectivity test app

Since some people seems to have issues to use the Flex/ColdFusion
connectivity, here is a sample app to test your connectivity.


ColdFusion / Server side


Save the following value object CFC in
{wwwroot}/com/mycompany/myapp/model/TestVO.cfc
cfcomponent

cfproperty name=someString type=String / cfproperty name=someNumber
type=Numeric /

cffunction name=init returntype=com.mycompany.myapp.model.TestVO
cfscript
this.someString = test;
this.someNumber = 0;
/cfscript
cfreturn this /
/cffunction

/cfcomponent

Save the following remote service CFC in
{wwwroot}/com/mycompany/myapp/service/TestService.cfc
cfcomponent

cffunction name=getArray access=remote returntype=Array
cfscript
var data = arrayNew(1);
arrayAppend(data, createObject(component,
com.mycompany.myapp.model.TestVO).init());
arrayAppend(data, createObject(component,
com.mycompany.myapp.model.TestVO).init());
/cfscript
cfreturn data /
/cffunction

cffunction name=getStruct access=remote returntype=Struct
cfscript
var data = structNew();
data.firstData = createObject(component,
com.mycompany.myapp.model.TestVO).init();
data.secondData = createObject(component,
com.mycompany.myapp.model.TestVO).init();
/cfscript
cfreturn data /
/cffunction

cffunction name=receiveAndReturnVO access=remote
returntype=com.mycompany.myapp.model.TestVO
cfargument name=vo type=com.mycompany.myapp.model.TestVO
cfreturn arguments.vo
/cffunction

/cfcomponent

--
Flex / Client side
--

Save the following value object in {some test
project}/com/mycompany/myapp/model/TestVO.as
package com.mycompany.myapp.model {

[Bindable]
[RemoteClass(alias=com.mycompany.myapp.model.TestVO)]

public class TestVO {

public var someString:String;
public var someNumber:int;

public function TestVO() {
someString = ;
someNumber = 0;
}

}

}

Save the following test application in Flex Builder 2 {some test
project}/TestConnectivity.mxml ?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*

mx:RemoteObject id=testService
destination=ColdFusion
result=onResult(event)
source=com.mycompany.myapp.service.TestService  /

mx:Script
![CDATA[
import com.mycompany.myapp.model.TestVO;
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
import mx.utils.ObjectUtil;

private function onResult(event:ResultEvent){
Alert.show(ObjectUtil.toString(event.result));
}
]]
/mx:Script

mx:Button label=getArray click=testService.getArray() /

mx:Button label=getStruct click=testService.getStruct() /
!-- BUGS : display (null) value instead of objects, but objects are
correctly returned... --

mx:Button label=receiveAndReturnVO
click=testService.receiveAndReturnVO(new TestVO()) /

/mx:Application

Compile and run TestConnectivity.mxml (do not forget to set the compile
argument to take into account your flex/coldfusion service definition,
flex-enterprise-services.xml)

It should work, if your ColdFusion server is correctly configured with the
Flex/ColdFusion connectivity add-on.
You can also check the adapter logs in
{CFusionMX7}/runtime/logs/coldfusion-out.log, very nice to see if the typed
objects are correctly received or sent by the ColdFusion adapter.


BUGS


We have faced several bugs with the Flex/ColdFusion connectivity.

1. In the above sample app, getStruct() display (null) object in the Flex
app, but objects are correctly returned... Strange.

2. Sometimes, the AS - CFC does not map the full type correctly.
Example : the CFC might receive TestVO instead of
com.mycompany.myapp.model.TestVO, so the CFC argument type validation will
fail and you will get an error...
The current workaround is to remove typed object validation in remote
service CFCs.

3. You might have to add UPPERCASE setter functions for CFC - AS
translation to work correctly.
We don't know yet when it is necessary... But sometimes it does!

Example

RE: [flexcoders] Does Cairngorm work at all with the new flex2 coldfusion adapter.

2006-02-07 Thread Benoit Hediard
Yes, it works, but first of all, you need to test your Flex/ColdFusion
connectivity (without Cairngorm).
See the message I just sent few minutes ago, with a sample app.

Then, to use your service CFCs in a cairngorm application, you just need to
add the RemoteObject definition in your ServiceLocator definition file.

Good luck!

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de sufibaba
Envoyé : mardi 7 février 2006 18:36
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Does Cairngorm work at all with the new flex2
coldfusion adapter.

Hi,

We've posted a few questions about cairngorm alpha and coldfusion and so far
no replies. ( no replies, as we have learned from our past experiences with
cairngorm means that there might be problems...
however, it could also be that everyone is so busy)  

Does anyone have experience with Cairngorm alpha with coldfusion -
flex2 beta adapter.  Please provide a small example of how to setup
cairngorm alpha with coldfusion.  

Perhaps someone from the cairngorm team can reply to this question because
it will help for the early adoption of Cairngorm as opposed to
ARP3 as an architecture platform.  

Cheers,

Tim





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



 








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

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

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

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




  1   2   >