Re: [flexcoders] webservices and Flex 2

2006-12-08 Thread Patrick Mineault
Hi Robin,

Whether you're using RemoteObject or WebService, the point of using 
either is _not_ to have to do that kind of serializing/deserializing. So 
it's all built-in, and it's all done behind the scenes, at the player 
level in the RemoteObject case and at the ActionScript level in the 
WebService case.

As a side-note, if you're going to be creating web services (as opposed 
to using a ready-made one), you might as well use RemoteObject; 
WebService and RemoteObject do the same job, but SOAP is very verbose 
while AMF has a much smaller footprint, so RemoteObject usually beats 
WebService speed-wise by a large margin.

Patrick

Robin Burrer a écrit :

 What about the other way round? Can I convert an xml formatted object 
 as an AS object as well without having to manually deserialize it?

 Robin

 * From: * [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] 
 ups.com ] *On Behalf Of *Robin Burrer
 *Sent:* Friday, 8 December 2006 12:25 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* RE: [flexcoders] webservices and Flex 2

 Too easy – that works great – thanks!

 * From: * [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] 
 ups.com ] *On Behalf Of *Carson Hager
 *Sent:* Friday, 8 December 2006 12:10 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* RE: [flexcoders] webservices and Flex 2

 You definitely do not have to do that. You simply pass AS objects that 
 matches the arguments to the web service method and Flex handles 
 serializing them.

 Carson

  _ _ _ _

 Carson Hager
 Cynergy Systems, Inc.
 http://www.cynergys ystems.com http://www.cynergysystems.com/

 Email: carson.hager@ cynergysystems. com 
 mailto:[EMAIL PROTECTED]
 Office: 866-CYNERGY
 Mobile : 1.703.489.6466

 * From: * [EMAIL PROTECTED] ups.com [mailto: flexcoders@ 
 yahoogroups. com ] *On Behalf Of *Robin Burrer
 *Sent:* Thursday, December 07, 2006 4:58 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] webservices and Flex 2

 Hi there,

 Is there any way to do the “AS Object” to XML serialization 
 automatically? What do you do when you want to send complex data types 
 to a SOAP webservice? Converting AS objects to XML manually somehow 
 seems to be a bit clumsy. I noticed the http service has a property 
 contentType which can be set to “application/ xml”. Is there anything 
 similar for the webservice component?

 Robin

  



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: Cairngorm's Anaemic Domain Model

2006-12-08 Thread Peter Martin
I thought at this point it is worth jumping in to talk a bit about
Cairngorm Enterprise, which we are currently working on.

 

With Cairngorm Enterprise one of goals is to promote an application
model on the client (RIA) and a domain model on server. We see the
application model being a good OO model that reflects the UI and tells
us about the entities and their relationships that we are surfacing. It
will also encapsulate all the business rules that apply to the UI. I see
this being different to the domain model and the business rules that
reside on the server. Next, we see the application model being
responsible for communication with the server-side i.e. it will call
remote services, consume messages, produce messages and contain managed
data collections. It knows when it needs to retrieve data from the
server, it knows when it needs to update server and it knows what to do
when data is pushed from the server.

 

This sort of shifts the concept we have at the moment, whereby you call
a command, which may invoke a service via a delegate. In essence we are
going to move the delegates behind the model and have the command call
an operation on the model. This is not saying what we do today is wrong,
but recognizing different applications have different needs. A simple
application certainly doesn't need this level of complexity - Cairngorm
today is just fine.

 

From our observations as the complexity of an application increases we
see people treating the ModelLocator as a session for storing data that
comes back from the server. There is no application model that shows the
entities and their relationships, this is often left to the view to
piece together. To help with this we have introduced the concept of an
operation, which is effectively your IResponder. When an operation is
executed on the delegate it creates an operation, which is responsible
for updating the application model. The idea then is that an operation
can perform any post-processing, which is required on the data. This
allows the application model to be update correctly - quite often when a
legacy application is involved the data that comes back from server
isn't in a form that reflects how it is going to be viewed. We would
deal with that in the operation. In essence it would be nice to see VOs
/ DTOs being used for transporting data rather than making their way in
to the view via the ModelLocator.

 

We hope by encouraging an application model it will stop people having
to code allot of the logic in to the views and also make unit testing
easier. If we had a well encapsulated model it would be easier to unit
test than a bunch of views.

 

In saying this we can't force people to create an application model nor
are you prevented from doing so today. If you want to build an
application model in Cairngorm today you can and I know people do. Our
goal here is to encourage this in your design and to promote this
approach within Cairngorm Enterprise. In addition we want to emphasize
security and make it inherent within Cairngorm Enterprise by adopting
the safe-by-default mantra.

 

We have already done allot of work on Cairngorm Enterprise and there is
more to do - so now commitment just now as to when we will release it.
Certainly I would like to solicit your feedback on the above and hear
your ideas.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: 05 December 2006 11:30
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Cairngorm's Anaemic Domain Model

 

My question isn't about the model locator. It's about logic, or lack
thereof encapsulated within the domain objects.

 

 

On 05/12/2006, at 9:59 PM, Tim Hoff wrote:





It doesn't matter if it's a collection of dumb value objects, a 
component, a state variable, or just a common effect. If an object 
is used more than a couple of times in the app, put it in the
ModelLocator.  Remember, everything is an object; instantiated and 
destroyed like the rest of them (GC?:)).  The key is; does the object 
need to be reusable?  If so, make it central.

-TH

p.s. right on Tom.

 

 



[flexcoders] getDefinitionByName

2006-12-08 Thread Daniel
Im using the method getDefinitionByName so I can get instances of
classes which I only know their name.
Now, this classes always receive 2 parameters in their constructor.
My question would be, how can I pass these parameters using the method
getDefinitionByName, somehing like:

var name:String = Daniel;
var nickname:String = danboh;
var ClassName:String = AddClient
var ClassReference : Class =
getDefinitionByName(com.client.+ClassName) as Class; 
var instance : Object = new ClassReference(name, nickname);

Any suggestions???

Thanks for your help!



Re: [flexcoders] Design Pattern/Best Practices for generic record 'list' and 'detail' view Component

2006-12-08 Thread Lachlan Cotter

Hi Steve,

Is your problem to do with your rules about which view to display? If  
it's getting a bit complicated or 'crufty', then you probably need  
another level of abstraction. Encapsulate your rules about which view  
should be displayed inside a getter called currentView. Bind your  
view stack to this.


Now you need to work out how that variable gets updated when  
appropriate. One way is to make this a bindable property with a  
custom event type. Now dispatch that event type when the length of  
dataProvider changes. Obviously, your getter method for currentView  
has to contain the logic you described for deciding which view to use.


Is that what you were looking for?

Cheers,
Lach




On 06/12/2006, at 5:27 AM, Steve Hindle wrote:


Hi All,

I'm trying to create a component to use as an example or 'template'
of how to achieve a record list and detail view in flex. I'm starting
with a simple 'contact' record (model) that has name, address, phone,
email, etc. The list of records is held in _dataProvider, and the
specific record to be displayed in the detail view is held in _model.
My goal is to have a nice clean skeleton of how to handle this sort of
display.

My component is a viewstack with 2 views:
View 0: a datagrid displaying summary info of a list of records
(title, first, last). Double click on an entry should
open it in the
'detail' view. dataProvider is bound to _dataProvider, an
arrayCollection.
View 1: a custom component that displays all my model fields.
It has a 'model' property that is used to set the
record to be displayed.
model is a single static instance of my record type, and
all fields in the
view are bound to it ( eg text='{_model.last_name}' )

The logic for the component is pretty simple:
1. Initial view is determined by _dataProvider.length
2. if _dataProvider.length = 1, default to 'detail' view of that  
record

3. if _dataProvider.length  2, default to 'list' view
4. if _dataProvider.length = 0, add a new empty record and
default to 'detail'
view to allow data entry.

This mostly works - however, I run into 'odd' problems with
dataBinding and Initialization, etc. As my script gets cruftier with
all sorts of special case logic, and
manually poking stuff to get dataBindings updated, I wonder if perhaps
others have a better Design Pattern or template for this ??

I'd appreciate any feedback...




[flexcoders] Re: getDefinitionByName

2006-12-08 Thread Daniel
Nevermind, for some reason it didnt work in the past, but now its
working perfectly.
Sweet!



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

 Im using the method getDefinitionByName so I can get instances of
 classes which I only know their name.
 Now, this classes always receive 2 parameters in their constructor.
 My question would be, how can I pass these parameters using the method
 getDefinitionByName, somehing like:
 
 var name:String = Daniel;
 var nickname:String = danboh;
 var ClassName:String = AddClient
 var ClassReference : Class =
 getDefinitionByName(com.client.+ClassName) as Class; 
 var instance : Object = new ClassReference(name, nickname);
 
 Any suggestions???
 
 Thanks for your help!





[flexcoders] how to set function reference in css? (e.g. for setting slideEasingFunction)

2006-12-08 Thread benschwehn
Hello all, 

the slider class has a style property slideEasingFunction that i
supposedly can set to a function. 

How can i set a function reference in an external css file? I know how
to set a class reference:

e.g.  downSkin: ClassReference('whateverclass');

how would I do the same with a function? I looked in the slider code
and the style is loaded like this:

var easingFunction:Function = getStyle(slideEasingFunction) as Function;
if (easingFunction != null) {
t.easingFunction = easingFunction;
}

I have created my own slider class based on slider now anyways, so I
do have an acceptable workaround by defining the function inline or as
a property, but am still wondering how could I do it in css?

Thanks 
Ben



[flexcoders] 2.01 Update

2006-12-08 Thread Austin Kottke
Is there an ETA of the new flex builder 2.01 update?

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

[flexcoders] updating ArrayCollection

2006-12-08 Thread sreedhar reddy
Hi,
   
  I am working with Combo Box for which dataprovider is ArrayCollection and I 
am getting data from database using HttpService as follows:
   
  mx:HTTPService id=cb_podcast url=combo.jsp makeObjectsBindable=false/
  
  mx:ArrayCollection id=cbXml 
source={mx.utils.ArrayUtil.toArray(cb_podcast.lastResult.data)}/
   
   
  mx:ComboBox dataProvider={cbXml} labelFunction=myLabelFunc1 width=195  
id=cb_chart/
   
   
  public function myLabelFunc1(item:Object):String 
  {
return item.data1;
   }
   
  Here, I want to update combo box(ArrayCollection) when I submit a textInput 
data to database.
   
  I tried to update combo box using:
   
  cbXml.addItem(textInput.text);
   
  But the combo box is not getting updated with new value.
  Once I close and Re-execute the application, the combo box is displayed with 
the new value.
   
   
  Help can be appreciated.
   
  Thanks,
  Sreedhar
   
   


Thanks  Regards,
Sreedhar

-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

RE: [flexcoders] Best practice: string tables

2006-12-08 Thread Giles Roadnight
Fantastic - that is just what I was looking for. I did a few searches in the
docs for string tables and similar but didn't come up with anything.

 

Thanks to both of you.

 

Giles Roadnight

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of greg h
Sent: 07 December 2006 18:45
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best practice: string tables

 

Giles,

For more on mx.resources.
http://livedocs.macromedia.com/flex/2/langref/mx/resources/ResourceBundle.h
tml ResourceBundle, the following thread has links into the docs, a related
technote and to articles by Jeff Tapper: 
http://tech. http://tech.groups.yahoo.com/group/flexcoders/message/52882
groups.yahoo.com/group/flexcoders/message/52882

hth,

g

On 12/7/06, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com
wrote:

Flex already has the concept of resource bundles. You put your localizable
strings in .properties files, which get compiled into ResourceBundle
classes. You can then fetch strings out of the ResourceBundles, most easily
in MXML with the @Resource() directive. The docs have info about this..

 
- Gordon

 

  _  

From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com
[mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Giles Roadnight
Sent: Thursday, December 07, 2006 9:30 AM
To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com
Subject: [flexcoders] Best practice: string tables

 

Hi All.

 

In my previous flash projects we've had a string table of sorts set up so
that all the strings in the application can be edited easily. We can also
easily modify the strings for foreign users.

 

[...]

 

 



[flexcoders] Re: Dot notation to access objects inside a datagrid column

2006-12-08 Thread niko_schmuck
Thanks, Jeremy and Tracy, for the fast answer! By using the
labelFunction now the data is displayed correctly.

-- Niko


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

 I encountered this same thing before. The solution is to use a
 labelfunction. 
 
 Like this:
 
 Here is the grid column.
 mx:DataGridColumn headerText=Port Country
 labelFunction=myLabelFunction /
 
 
 Here is the function which should reside inside the Script tag:
 
 private function myLabelFunction(item:Object, col:DataGridColumn) :
String
   {
   return item.userGroup.name;
   }
 
 Give this a try. 
 
 Jeremy Sanders
 Cardinal Solutions Group.
 [EMAIL PROTECTED]
 
 --- In flexcoders@yahoogroups.com, Niko Schmuck niko.schmuck@
 wrote:
 
  Hi FlexCoders:
  
  Coming from a Java background, I was surprised that the dot
operator is
  not working as I expected.
  
  The array with the data structure and children is populated from the 
  (Hibernate) data source at creationComplete time with:
  
ds.fill(users, all.users, []);
  
  The array collection is declared via:
  
mx:ArrayCollection id=users /
  
  and then used inside the datagrid ...
  
mx:DataGrid id=dgrid dataProvider={users} editable=false
  mx:columns
  mx:DataGridColumn headerText=User ID dataField=id/
  mx:DataGridColumn headerText=First Name
 dataField=firstName/
  mx:DataGridColumn headerText=Last Name dataField=lastName/
  mx:DataGridColumn headerText=Group dataField=userGroup.name/
  /mx:columns
/mx:DataGrid
  
  Unfortunately the dot-access to the related user group name seems
not to
  work, there is just nothing being displayed. If
 dataField=userGroup then
  there is [object UserGroup] displayed inside the datagrid column.
  
  So how do you retrieve the properties of the related user group
object?
  
  Thanks for your help,
  Niko
  
  
  PS: The classes for value objects look very straight-forward:
  
  // User.as
  package com.example.flex
  {
  
  [Managed]
  [RemoteClass(alias=com.example.flex.User)]
  
  public class User
  {
  
  public var id:Number;
  public var firstName:String = ;
  public var lastName:String = ;
  public var userGroup:UserGroup;
  
  public function User() {
  }
  
  }
  }
  
  
  // UserGroup.as
  package com.example.flex
  {
  
  [Managed]
  [RemoteClass(alias=com.example.flex.UserGroup)]
  
  public class UserGroup
  {
  
  public var id:Number;
  public var name:String = ;
  
  public function UserGroup() {
  }
  
  }
  }
 





[flexcoders] Re-usable Components

2006-12-08 Thread Giles Roadnight
Hi All

 

I'm just finishing messing around with the tutorial projects I have been
working on and am now getting started with actually building the application
I want to build.

I am trying to set up my folder structure and what I want is a folder for
components (that will be used in lots of projects), a folder for general
code that will be useful in lots of projects and then project folder, all of
these in the same folder.

I have got my project to include the code fine but I can't get it to work
with components (mxml components) outside the project root folder.

 

Is there a way of doing this? I think there must be or you'd have to have
copies of your component code all over the place.

 

Secondly, while I am here, what are namespaces all about. I removed my
namespace code that was added when I added my custom component and the
project still worked fine.

 

Many Thanks.

 

Giles Roadnight

 



[flexcoders] httpservice conundrum

2006-12-08 Thread kim_boulton
I need to change a httpservice url at runtime. However when I change
the url the xml is not being updated, it is always one step behind.

See the following example app, the xml displayed in the Alert box is
always from the previous call.

How do I get it to update correctly?

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationPolicy=all
creationComplete=onCreationComplete(); width=687 height=332
mx:HTTPService id=gsservice url=test0.xml resultFormat=e4x
result=gsData = gsservice.lastResult as XML/
mx:Script
![CDATA[
import mx.collections.XMLListCollection;
import mx.controls.Alert;
private var gsData:XML;

private function onCreationComplete():void{
gsservice.send();
}

private function test(file:String):void {
gsservice.url = file;
gsservice.send();
gsData = gsservice.lastResult as XML;
Alert.show(gsData.toString());
}
]]
/mx:Script
mx:Button x=10 y=10 label=Test 1 width=180
click=test('test1.xml');/
mx:Button x=10 y=40 label=Test 2 width=180
click=test('test2.xml');/
/mx:Application 



[flexcoders] Clearing panels before changing state

2006-12-08 Thread stephen50232
Hi,

In my application when the user clicks the log out button, the
currentState is changed, but before that I'd like to be able to clear
all the TitleWindows that my still be opened by the user. 

Is there a way to force all the TitleWindows to close before changing
the state?

Thanks

Stephen



[flexcoders] Best way to communicate with database

2006-12-08 Thread darylgmyers
We have a web application which is built using Zope and has postgreSQL 
as the database backend.  We are planning on adding/replacing 
functionality in sections with Flex 2.  Over time the majority of the 
application will be done in Flex 2. 

We are trying to evaluate the many different ways we can communicate 
with the database - Flex Data Services, WebOrb for Ruby on Rails, Web 
Services we create, etc.

Does anyone have advice and experience to help us make this decision?  
We are looking for the most efficient solution from a coding standpoint 
as our primary goal.



Re: [flexcoders] Clearing panels before changing state

2006-12-08 Thread Paul Andrews
- Original Message - 
From: stephen50232 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 08, 2006 2:17 PM
Subject: [flexcoders] Clearing panels before changing state


 Hi,

 In my application when the user clicks the log out button, the
 currentState is changed, but before that I'd like to be able to clear
 all the TitleWindows that my still be opened by the user.

 Is there a way to force all the TitleWindows to close before changing
 the state?

How about issuing a custom LOGOUT event that the windows can respond to?

Paul

 Thanks

 Stephen



 --
 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] Re: Best practice: string tables

2006-12-08 Thread zenwarden
Is there a way to have these properties not load at compile time, but
rather be read at run time? One of the nicest things about properties
in java and other langauges is that they allow you to change or modify
behavior and values without recompiling code.

Flash seems to ignore this concept both with properties and with css.


Chris


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

 Flex already has the concept of resource bundles. You put your
 localizable strings in .properties files, which get compiled into
 ResourceBundle classes. You can then fetch strings out of the
 ResourceBundles, most easily in MXML with the @Resource() directive. The
 docs have info about this..
 
  
 
 - Gordon
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Giles Roadnight
 Sent: Thursday, December 07, 2006 9:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Best practice: string tables
 
  
 
 Hi All.
 
  
 
 In my previous flash projects we've had a string table of sorts set up
 so that all the strings in the application can be edited easily. We can
 also easily modify the strings for foreign users.
 
  
 
 I have taken this idea and implemented it in Flex as follows.
 
 In the main application I have this code:
 
  
 
 [Bindable]
 
 public var dialogueText:Object = {
 
 loginBoxHeader:Member Login,
 
  
 
 to set up the string table (obviously other strings in there as well).
 
  
 
 In my login component I have the following:
 
  
 
 [Bindable]
 
 private var mainApplication:Object = mx.core.Application.application;
 
  
 
 and
 
  
 
 mx:Label x=10 y=12
 text={mainApplication.dialogueText.loginUsername}/
 
  
 
 Is this the best way of doing this or will having all of these bound
 variables around the place slow things down?
 
 Is there a better way of doing this?
 
  
 
 Many Thanks
 
  
 
 Giles Roadnight





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

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

Dirk. 

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


[flexcoders] Re: Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-08 Thread sof4real03
Kelly,

Simple point  click works fine as it did in Flex 1.5 with Flash
Player 7, but the issue resides with double-clicking and recognizing
text input boxes. In Flex 1.5/Flash Player 7 when you clicked into a
text input fields; the fields would display an icon to launch the
on-screen keyboard. That is no longer happening. Now with the
double-clicking issue; it seems you need to click repeatedly at a very
hight rate for Flash player 9 to recognize a double-click gesture with
the pen. Thoughts?

- Sof

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

 There is a Windows XP Tablet PC Edition 2005, it's the name given to 
 Windows XP Tablet PC Edition with SP2 installed.  That is what i run on 
 My Toshia Portege M200 and I do run flex 2.0 applicaitons on it and it 
 seems to run perfectly. 
 
 I admittedly rarely use the pan/tablet features and could not
testify to 
 how well flash apps response to pen gestures but I just tried some 
 simple point-and-click with the pen on my flash app and it works as 
 expected.
 
 - Kelly
 
 Chris Hill wrote:
  AFAIK there is no Windows 2005 Tablet PC edition. I am running
Windows 
  XP Tablet PC edition on this computer, is that what you're talking 
  about? Or are you perhaps running Vista on a Tablet PC?
 
 
  John Dowdell wrote:
 

  Steven Toth wrote:
  
  Has any testing been done of the Flash Player 9 on Windows 2005
Tablet
  PC edition? When running our application under Flash Player 7 it
  responded as expected. However, Flash Player 9 is responding
poorly to
  pen gestures such as textInput focus and double click. We filed
a bug
  report and the Adobe rep. that contacted us didn't know what Windows
  2005 Tablet PC edition was and wasn't sure how to help us. Any help
  would be greatly appreciated. Thanks.

  I'm pulling up 18 Google references to search phrase Windows 2005
  Tablet PC... variant phrases don't return good results either.
Is there
  another label I should be searching on to find others' experience
with
  similar machines...?
 
  tx,
  jd
 
  -- 
  John Dowdell . Adobe Developer Support . San Francisco CA USA
  Weblog: http://weblogs.macromedia.com/jd 
  http://weblogs.macromedia.com/jd
  Aggregator: http://weblogs.macromedia.com/mxna 
  http://weblogs.macromedia.com/mxna
  Technotes: http://www.macromedia.com/support/ 
  http://www.macromedia.com/support/
  Spam killed my private email -- public record is best, 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] Remote Objects: No support for inner class serialization?

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

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

Dirk.


[flexcoders] Re: Odd behaviour from String.search()

2006-12-08 Thread camlinaeizerous
I had not thought of that, and your right the .search() is detecting
it as a regex expression. Being I can't expect the end user to
understand to type \(###\)###- to filter phone numbers is there a
simple way to make it ignore the characters and not take it as a regex?


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

 Seems like the (, ), and * are being interpreted as regexp 
 quantifiers.  You can escape them if you want them treated as 
 literals.
 
 http://livedocs.macromedia.com/flex/2/docs/1904.html#118959
 
 --- In flexcoders@yahoogroups.com, camlinaeizerous camlinae@ 
 wrote:
 
  I have a list of phone numbers in either a (###)###- of
  ###-###- type format. There is also a text box that on change
  filters array collection that populates the list. The code breaks 
 down to.
  
  private function phoneFilter(item:Object):Boolean
  {
  if(item.Phone.search(searchBar.text) = 0)
  {return true;}
  else
  {return false;}
  }
  
  the 5 phone numbers that i randomly put in the collection are are
  #1)123-456-7890
  #2)null
  #3)(403)734-4312
  #4)(780)495-4949
  #5)(780)828-4229
  
  the #1 and #2 phone number filters as expected however the ones 
 with
  the brackets are awkward.
  (, (780, 780), (780)828 fail not as I expected
  (780), 780 succeed as I expected
  
  And tossing in random * succeed definitely not as I had expected
  (780)*82 matches #5
  (780)*8 or even 780*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4* 
 matches
  #4, #5, and #1
  (780)*, or (spam)* match all 5 numbers
  even ()* or (###)* where # is any 3 numbers and it matches all 
 5
  numbers again even the null.
  even (828) matches #5 or similar ideas
  
  Obviously the (, ) and * characters are doing something 
 strange
  to the search() function. Hopefully someone can explain why I'm 
 seeing
  this behavior with these characters or a way to change how I'm
  filtering the phone numbers to get somewhat normal behavior.
 





Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau

You shouldn't have to cast as an object. And, according to the docs, you
should be able to simply add a property to a function and access it. No
offense - I really do appreciate the effort to help me out - but casting
seems to be a bit of a hack. Although I like AS3 there are some things that
were so simple in AS1/AS2 that are just not possible, or require workarounds
that really seem like hacks.

All I wanted to do was give some context to a function so when it is called
it could grab that context info. An example of what people have wanted from
this from the MX days is getting the name of the function for various
reasons, including debugging and logging. My particular reason is a little
more complex and probably seems strange unless you know the entire context
of what I'm trying to do, but here goes ...

I built a class that extends Proxy. The idea is that someone would call a
function on the instance of the class and I would resolve it from a
dynamically added manifest. That part isn't hard, using the override for
callProperty. However, if someone tries to call a function using [] syntax
the getProperty override is actually called, and a function is expected to
be returned. Unfortunately, that scenario breaks what I was trying to
accomplish since it means I need to return an actual function object and the
function is not able to know it's name for me to determine if the call
should go through or return an error. I could determine this in the
getProperty override, but I don't necessarily know if the user meant to call
a function or access a property.

What I wanted to do was pass a function object back with a property on the
function that was the name of the function. Instead I've had to build a
class that stores a value in a variable and has a method on it that gets
returned from the getProperty override. That is such a waste considering
Function is supposed to be able to do what I want.

So, I have a workaround, but I really want to know whether the documentation
is correct and I've simply missed something, or Adobe needs to clean up the
docs. I've already posted a comment in the LiveDocs asking about this and it
has not yet been approved. That was about a week ago.

Can anyone else confirm this? Or does anyone know how to get the example
code working?


On 12/8/06, Clint Modien [EMAIL PROTECTED] wrote:


  Function inherits from Object so you should be able to do...

Object(this.test).prop = someprop;

Why are you doing this?  What are you trying to do... it sounds
interesting.




Re: [flexcoders] Functions as objects

2006-12-08 Thread Anatole Tartakovsky

Please see apply method
also I posted pre-edited cut from the book here:
http://flexblog.faratasystems.com/?p=125 - with closure object ala
Flex 1.5you can use

Thanks,
Anatole



On 12/8/06, Derek Vadneau [EMAIL PROTECTED] wrote:


  You shouldn't have to cast as an object. And, according to the docs, you
should be able to simply add a property to a function and access it. No
offense - I really do appreciate the effort to help me out - but casting
seems to be a bit of a hack. Although I like AS3 there are some things that
were so simple in AS1/AS2 that are just not possible, or require workarounds
that really seem like hacks.

All I wanted to do was give some context to a function so when it is
called it could grab that context info. An example of what people have
wanted from this from the MX days is getting the name of the function for
various reasons, including debugging and logging. My particular reason is a
little more complex and probably seems strange unless you know the entire
context of what I'm trying to do, but here goes ...

I built a class that extends Proxy. The idea is that someone would call a
function on the instance of the class and I would resolve it from a
dynamically added manifest. That part isn't hard, using the override for
callProperty. However, if someone tries to call a function using [] syntax
the getProperty override is actually called, and a function is expected to
be returned. Unfortunately, that scenario breaks what I was trying to
accomplish since it means I need to return an actual function object and the
function is not able to know it's name for me to determine if the call
should go through or return an error. I could determine this in the
getProperty override, but I don't necessarily know if the user meant to call
a function or access a property.

What I wanted to do was pass a function object back with a property on the
function that was the name of the function. Instead I've had to build a
class that stores a value in a variable and has a method on it that gets
returned from the getProperty override. That is such a waste considering
Function is supposed to be able to do what I want.

So, I have a workaround, but I really want to know whether the
documentation is correct and I've simply missed something, or Adobe needs to
clean up the docs. I've already posted a comment in the LiveDocs asking
about this and it has not yet been approved. That was about a week ago.

Can anyone else confirm this? Or does anyone know how to get the example
code working?


On 12/8/06, Clint Modien  [EMAIL PROTECTED] wrote:

   Function inherits from Object so you should be able to do...

 Object(this.test).prop = someprop;

 Why are you doing this?  What are you trying to do... it sounds
 interesting.

 



RE: [flexcoders] Can FLEX develop under IBM RAD6?

2006-12-08 Thread Matt Chotin
Yes, RAD6 doesn't work so well with Flex.  However we have done work in
2.0.1 to make it compatible with RAD7 which is coming out soon (or
already came out).  2.0.1 is out early next year.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan
Sent: Thursday, December 07, 2006 10:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can FLEX develop under IBM RAD6?

 

Hi,

Does anyone has try to develop a project in IBM RAD6 running the 
websphere server? Since the RAD6 is built on eclipse 3.0. The FLEX 
plugin can't install on it. And what i am trying to do is to use 
another eclipse with FLEX built in to build my project. But everytime i 
want to deploy the project for a test, I have to export a war file and 
import that to RAD6. Which is very time consumpting (not to mention 
that i can't debug FLEX under RAD6.)

Does anyone success or know the way how to set a server in eclipse 
which can start up the websphere in RAD6? Is that possible? So i can 
develop and run my FLEX project in the same eclipse environment.

Dan

 



RE: [flexcoders] 2.01 Update

2006-12-08 Thread Matt Chotin
Very early next year.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Austin Kottke
Sent: Thursday, December 07, 2006 10:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 2.01 Update

 

Is there an ETA of the new flex builder 2.01 update?

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

 



[flexcoders] backgroundGradientColors on something other than Application

2006-12-08 Thread Matt Maher
I was wondering if there were other elements (canvas, hbox, panel, etc)
that can suport the backgroundGradientColors gradient properties?

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






Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau

Funny, I just read that this morning. However, it doesn't really apply here.
I need to pass a function object and the name will probably be different for
each one. So assigning a value to a variable of the class isn't acceptable,
since the value will change for each call.

As I mentioned, I have a workaround, but I really want to know whether the
documentation is correct and I've simply missed something, or Adobe needs to
clean up the docs.



On 12/8/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:


  Please see apply method
also I posted pre-edited cut from the book here:
http://flexblog.faratasystems.com/?p=125 - with closure object ala Flex
1.5 you can use

Thanks,
Anatole








--

Derek Vadneau


[flexcoders] Re: Clearing panels before changing state

2006-12-08 Thread stephen50232
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message - 
 From: stephen50232 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, December 08, 2006 2:17 PM
 Subject: [flexcoders] Clearing panels before changing state
 
 
  Hi,
 
  In my application when the user clicks the log out button, the
  currentState is changed, but before that I'd like to be able to clear
  all the TitleWindows that my still be opened by the user.
 
  Is there a way to force all the TitleWindows to close before changing
  the state?
 
 How about issuing a custom LOGOUT event that the windows can respond to?
 
 Paul
 
  Thanks
 
  Stephen
 
 
 
  --
  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
 
 
 
 

Hi,

I do have a logout event, which is being listened for in the main
application (main.mxml) page, this the runs another method which
changes the currentState to the login state, but if any other panels
are open then they say open when the state changes.

I could have all panels listen out for that event and close when they
see the event being called?





RE: [flexcoders] httpservice conundrum

2006-12-08 Thread Tracy Spratt
ALL data service calls in flex are asynchronous.  You can never access
the result of a data call in the same function in which you invoke the
send().  You must ALWAYS use the result event or bind to lastResult.

 

Binding directly to lastResult can be hard to debug, so get in the habit
of creating a result handler function. 

mx:HTTPService ... result=onResult(event)

 

import mx.rpc.events.ResultEvent;

import mx.rpc.events.FaultEvent; 

private function onResult(event:ResultEvent):void  {

  Var xmlResult:XML = event.result as XML;

  Alert.show(xmlResult.toXMLString());

 

Post back if you need more guidance.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kim_boulton
Sent: Friday, December 08, 2006 9:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] httpservice conundrum

 

I need to change a httpservice url at runtime. However when I change
the url the xml is not being updated, it is always one step behind.

See the following example app, the xml displayed in the Alert box is
always from the previous call.

How do I get it to update correctly?

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute creationPolicy=all
creationComplete=onCreationComplete(); width=687 height=332
mx:HTTPService id=gsservice url=test0.xml resultFormat=e4x
result=gsData = gsservice.lastResult as XML/
mx:Script
![CDATA[
import mx.collections.XMLListCollection;
import mx.controls.Alert;
private var gsData:XML;

private function onCreationComplete():void{
gsservice.send();
}

private function test(file:String):void {
gsservice.url = file;
gsservice.send();
gsData = gsservice.lastResult as XML;
Alert.show(gsData.toString());
}
]]
/mx:Script
mx:Button x=10 y=10 label=Test 1 width=180
click=test('test1.xml');/
mx:Button x=10 y=40 label=Test 2 width=180
click=test('test2.xml');/
/mx:Application 

 



[flexcoders] Re: Odd behaviour from String.search()

2006-12-08 Thread Doug Lowder
You can use String.indexOf() instead of String.search() if you don't 
want any sort of pattern matching at all.  Or, you could take the 
string the user enters and run that through an escaping function 
before using it with String.search().  Something like:

  if(item.Phone.search( myEscapeFunc(searchBar.text) ) = 0)


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

 I had not thought of that, and your right the .search() is 
detecting
 it as a regex expression. Being I can't expect the end user to
 understand to type \(###\)###- to filter phone numbers is 
there a
 simple way to make it ignore the characters and not take it as a 
regex?
 
 
 --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
wrote:
 
  Seems like the (, ), and * are being interpreted as regexp 
  quantifiers.  You can escape them if you want them treated as 
  literals.
  
  http://livedocs.macromedia.com/flex/2/docs/1904.html#118959
  
  --- In flexcoders@yahoogroups.com, camlinaeizerous camlinae@ 
  wrote:
  
   I have a list of phone numbers in either a (###)###- of
   ###-###- type format. There is also a text box that on 
change
   filters array collection that populates the list. The code 
breaks 
  down to.
   
   private function phoneFilter(item:Object):Boolean
   {
   if(item.Phone.search(searchBar.text) = 0)
   {return true;}
   else
   {return false;}
   }
   
   the 5 phone numbers that i randomly put in the collection are 
are
   #1)123-456-7890
   #2)null
   #3)(403)734-4312
   #4)(780)495-4949
   #5)(780)828-4229
   
   the #1 and #2 phone number filters as expected however the 
ones 
  with
   the brackets are awkward.
   (, (780, 780), (780)828 fail not as I expected
   (780), 780 succeed as I expected
   
   And tossing in random * succeed definitely not as I had 
expected
   (780)*82 matches #5
   (780)*8 or even 780*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4*4* 
  matches
   #4, #5, and #1
   (780)*, or (spam)* match all 5 numbers
   even ()* or (###)* where # is any 3 numbers and it matches 
all 
  5
   numbers again even the null.
   even (828) matches #5 or similar ideas
   
   Obviously the (, ) and * characters are doing something 
  strange
   to the search() function. Hopefully someone can explain why 
I'm 
  seeing
   this behavior with these characters or a way to change how I'm
   filtering the phone numbers to get somewhat normal behavior.
  
 





RE: [flexcoders] FDS number NaN

2006-12-08 Thread Peter Farland
First, the behavior of ActionScript 3 Number, int and uint is based on
the ECMA Script 4 specification (well, at least what this specification
stipulated at the time of release). Given that AS3 has been released
Flex is dependent on the way it is today.
 
Second, Java primitives can't be null (they default to 0 if one tries to
provide null to them on reflection). So, if you wanted to preserve a
null value then your Java propeties would have to use the Object form of
the Java numeric types.
 
Third, for ActionScript integer types (i.e. int and uint), and Java
integer types (long, int, short, and byte) can not accept NaN. If you
try to get the long value from Double.NaN (or Float.NaN) you'll get 0.

Fourth, ActionScript Number goes over the wire in AMF3 using the double
type and is deserialized as a Java Double. On instantiating your remote
Java object or passing a parameter to a method to be invoked this Double
is translated to the required type using reflection and translation.

So, an ActionScript Number.NaN - Java Double.NaN - Java Long 0 and
thus your limitation is that AS numeric types can't be null in general
and Java integers can't be NaN.

So you need to either use Object in ActionScript to hold null or use
Double (or Float) in Java to hold NaN.

Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Krueger
Sent: Tuesday, December 05, 2006 10:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS number NaN



Anyone else have this problem or am I just doing something wrong.
 
Thanks
 
Jeff

 
  Jeff Krueger wrote:
   All,
  
   I am finding that when I pass a actionscript class
to a remote
   java object and a number variable type in the
actionscript
 class is
   set to NaN (Null), that the java class gets set to
a 0, instead
  of a
   null. Is there something I am missing or something
I need to set
  the
   number to so it will be null in my java class?
  
   Thanks
  
   Jeff


[flexcoders] XML-RPC

2006-12-08 Thread z4guyuk
I have spent most of today googling and searching forums looking for
an answer to this and it's getting towards that time on a Friday so my
brain has given up.

Does Flex natively support XML-RPC? I found 1 or 2 examples of it
being used - one of them here:
http://tech.groups.yahoo.com/group/flexcoders/message/549
and when I have been able to get the example code to work (like the
above one) I have been unable to then get it to work with my own server.
So far each time I have tried I get an unknown method error.

One comment I found was that the webservice class would be better than
the HTTPService class. If so does anyone have an example?

The code I have used is this:

mx:HTTPService url={serverSettings.xmlRPCstring}
method=GET id=service result=methodResult(true,event)
fault=methodResult(false,event)
mx:request
methodauthor.login/method
Customer108/Customer
Nameusername/Name
PasswordPassword/Password
/mx:request
/mx:HTTPService

I get the result function call firing but I can't see and data. When I
dig through all the variables in the debugger I eventually come across
a unknown method string that is returned by the server.

Can anyone help me with this or do I have to try and get a 3rd party
AS2 library to work with Flex instead?

Many Thanks

Giles



Re: [flexcoders] Functions as objects

2006-12-08 Thread Clint Modien

Here's some code to get the name of the currently executing function
dynamically if that's what you're after...

   var traceTarget:TraceTarget = new TraceTarget();

   // Log only messages for the classes in the mx.rpc.* and

   // mx.messaging packages.
   //traceTarget.filters=[mx.rpc.*,mx.messaging.*];

   // Log all log levels.
   traceTarget.level = LogEventLevel.ALL;

   // Add date, time, category, and log level to the
output.
  // This is a bug right now... you can't include both date
and time.
   traceTarget.includeDate = false;
   traceTarget.includeTime = true;
   traceTarget.includeCategory = true;
   traceTarget.includeLevel = true;
   traceTarget.filters = [com.esria.logging];

   // Begin logging.

   var logger:ILogger = Log.getLogger(com.esria.logging);
   traceTarget.addLogger(logger);

   Log.addTarget(traceTarget);
   var d:String =  DateUtil.formatDate(new Date(),
MM/DD/YYY);
   var x:XML = describeType(this);
   var memberName:String = undefined;
   var members:XMLList = x.method.(@declaredBy==
this.className);
   for each(var member:XML in members) {
   memberName = [EMAIL PROTECTED];
   if (this[memberName] == arguments.callee)

break;
   }
   logger.debug({0}.{1}, this.className, memberName);

Quick note... You should build a hasmap of each classes members that get
returned by (x.method.(@declaredBy==this.className); )  if you plan on using
it more than once to save looping over the classes variable names.

On 12/8/06, Derek Vadneau [EMAIL PROTECTED] wrote:


  Funny, I just read that this morning. However, it doesn't really apply
here. I need to pass a function object and the name will probably be
different for each one. So assigning a value to a variable of the class
isn't acceptable, since the value will change for each call.

As I mentioned, I have a workaround, but I really want to know whether the
documentation is correct and I've simply missed something, or Adobe needs to
clean up the docs.



On 12/8/06, Anatole Tartakovsky [EMAIL PROTECTED]  wrote:

   Please see apply method
 also I posted pre-edited cut from the book here:
 http://flexblog.faratasystems.com/?p=125  - with closure object ala Flex
 1.5 you can use

 Thanks,
 Anatole







--

Derek Vadneau
 



RE: [flexcoders] XML-RPC

2006-12-08 Thread Tracy Spratt
I am not familiar with XML-RPC, but I suspect that the answer to your
question is no.

 

Can you do an ordinary HTTPService call successfully?

 

This:

methodauthor.login/method

Looks suspicious. It is sending a querystring parameter that looks like
this:

...?method=author.login

 

Does the url target know how to handle that?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of z4guyuk
Sent: Friday, December 08, 2006 11:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML-RPC

 

I have spent most of today googling and searching forums looking for
an answer to this and it's getting towards that time on a Friday so my
brain has given up.

Does Flex natively support XML-RPC? I found 1 or 2 examples of it
being used - one of them here:
http://tech.groups.yahoo.com/group/flexcoders/message/549
http://tech.groups.yahoo.com/group/flexcoders/message/549 
and when I have been able to get the example code to work (like the
above one) I have been unable to then get it to work with my own server.
So far each time I have tried I get an unknown method error.

One comment I found was that the webservice class would be better than
the HTTPService class. If so does anyone have an example?

The code I have used is this:

mx:HTTPService url={serverSettings.xmlRPCstring}
method=GET id=service result=methodResult(true,event)
fault=methodResult(false,event)
mx:request
methodauthor.login/method
Customer108/Customer
Nameusername/Name
PasswordPassword/Password
/mx:request
/mx:HTTPService

I get the result function call firing but I can't see and data. When I
dig through all the variables in the debugger I eventually come across
a unknown method string that is returned by the server.

Can anyone help me with this or do I have to try and get a 3rd party
AS2 library to work with Flex instead?

Many Thanks

Giles

 



RE: [flexcoders] Functions as objects

2006-12-08 Thread Francis Cheng
You should be able to add properties to function objects, just as the
docs suggest. Unfortunately, it looks like this isn't working in strict
mode anymore. Oddly, it does work in standard mode, but that may not be
a viable workaround for you. I had a brief discussion about this with
the engineers that worked on it and their initial reaction was that this
sounds like a bug. I've filed it as such, and they will investigate it
further. 

 

Francis



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derek Vadneau
Sent: Wednesday, December 06, 2006 8:15 AM
To: flexcoders
Subject: [flexcoders] Functions as objects

 

I've tried using the example from the docs where you assign the value
to a property on the function and then use arguments.callee.prop to
get the value, but Flex Builder gives me an error saying Access of
possibly undefined property prop through a reference with static type
Function. when assigning the value to the function.

Example:
function test()
{
trace(arguments.callee.prop);
}
test.prop = testing; // Error

Global.as defines Function as dynamic yet FB produces an error.

This is supposedly possible in AS3 as per:
http://livedocs.macromedia.com/flex/2/docs/1835.html
http://livedocs.macromedia.com/flex/2/docs/1835.html 

However, if you try the last example you'll get compiler errors.

Is there a way to add properties to a function? Or is this not supported
in AS3?

-- 

Derek Vadneau

 



[flexcoders] Re: FlexTagLib Issue

2006-12-08 Thread sanjaypmg
Hi Doug,

Thanks for responding...

So now pls tell me how can i integrate mxml with JSP.

I tried to include compiled SWF file in my JSP file but it shows an 
error of destination doesnt exist. It doesnt find RO which I have 
made in remote-config.xml.

Please help
Regards,
Sanjay

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

 
 It looks to me like you need flex-bootstrap.jar from Flex 1.5 in 
order
 to use the tag library:
 
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/0848.htm#wp15
028\
 3
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/0848.htm#wp1
502\
 83
 
 I haven't seen or heard anything specific about using the Flex tag
 library with Flex 2.
 
 
 
 -Doug
 
 
 --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote:
 
  Hi All,
 
  I have deployed Flex2 on JBOSS and created a JSP file with the
  following code:
 
  %@ taglib uri=FlexTagLib prefix=mm %
 
  mm:mxml source=AccountSetup.mxml /
 
  But, It is showing an error:
 
  FlexTagLib Not Found.
 
  Please help me to resolve this issue.
 
  Regards,
  Sanjay
 





[flexcoders] RSL's and Dynamic components

2006-12-08 Thread wljammal
Hi all,

I'm currently working on a big project and need to load components
dynamicaly but this doesnt seem to be working to well with our
framework so the other option is to use seperate applications as the
entire application is binding driven.

The problem here is that empty applications come in at 120K so I need
to figure out how to reduce that by sharing whatever gets loaded by
default into a shared library so all my application swf's will be
pretty small by default.

Thanks



Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau

Thanks Clint! I completely forgot about describeType. That's MUCH better
than tacking on a property - not that you shouldn't be able to do that, but
describeType is better suited in this case.

And thank you, Francis, for looking into this. It's good to hear that I'm
not crazy! ... at least nothing proven here ...

--

Derek Vadneau


[flexcoders] SOLUTION: Unable to bind Warning

2006-12-08 Thread Paul Whitelock
I found out what was happening to cause the unable to bind warning in the
scenario that I described (see below). I eventually stumbled onto this
solution after trying many different searches in Google:

--

This is a solution for the common warning: unable to bind to property 'XXX'
on class 'Object' (class is not an IEventDispatcher)

This problem occurs frequently when transferring complex objects using AMF
when the object returned from the server contains an array or array
collection of more objects.
 
One symptom of this problem is that it occurs after converting the data
request from an HTTPService call to a Remote Object call.

It turns out that Flex does not handle data returned from the AMF data
service in quite the same way as HTTPService and WebService results. With
these two later services Flex will automatically wrap Arrays in
ArrayCollection and Objects in ObjectProxy wrappers so binding will work. 

The solution is to do this same thing manually, with code similar to the
following:

function resultHandler(result:Array) {
   for(var i:String in result) result[i] = new ObjectProxy(result[i]);
   targetArrayCollection = new ArrayCollection(result);
}

Note: It may be the case that the result object is already an
ArrayCollection yet the Objects in ObjectProxy wrappers. In this case you
only need to include the for loop to implement ObjectProxy for all objects
in the ArrayCollection.

--

I also discovered that if you add an object (i.e., one that you create
yourself) to the ArrayCollection, then you'll also need to create an
ObjectProxy for the new object or you'll get the same unable to bind
warnings.

Hope this helps save someone else the hours I spent trying to find a
solution :-)

Paul

---
Paul Whitelock
Denver, Colorado


==

Re: Unable to bind Warning 


Posted by: Samuel Reuben
Fri Dec 8, 2006 4:00 am (PST) 

from the looks of the code it seems that you'll have to change the name of
your ArrayCollection. Try myDataProvider

hope it works,
-sam

On 12/8/06, Paul Whitelock [EMAIL PROTECTED] wrote:

 I hoping someone might know why I am getting an unable to bind warning
 with the following scenario. Below is a portion of my code that uses a
 DataGrid bound to an ArrayCollection data provider (text is one of the
 fields in the collection).

 --

 [Bindable]
 public var dataProvider:ArrayCollection;

 mx:DataGrid id=dg dataProvider={dataProvider} 
 mx:columns
 mx:DataGridColumn headerText=Items itemRenderer=renderer.RichText
 dataField=text editable=false /
 /mx:columns
 /mx:DataGrid

 --

 The following is a very simple component (renderer.RichText) that simply
 converts the text data to rich text.

 --

 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Text id=richText htmlText={data.text} width=100% height=100%
 selectable=false /
 /mx:Canvas

 --

 When the application is run, I get the following error:

 warning: unable to bind to property 'text' on class 'Object' (class is
 not
 an IEventDispatcher)

 Note that the data from data.text is correctly displayed in the
 DataGrid.

 Any idea why I am getting the unable to bind warning and how I might get
 rid of it? Thanks!

 Paul

 ---
 Paul Whitelock
 Denver, Colorado





[flexcoders] Re: FlexTagLib Issue

2006-12-08 Thread Doug Lowder
Hi Sanjay,

Again, I haven't heard anything specific about FlexTagLib being 
supported in Flex2 so I'm afraid I can't be of much help there.

Regarding your compiled SWF in a JSP file, can you successfully 
browse to the SWF directly, i.e. without the JSP?

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

 Hi Doug,
 
 Thanks for responding...
 
 So now pls tell me how can i integrate mxml with JSP.
 
 I tried to include compiled SWF file in my JSP file but it shows 
an 
 error of destination doesnt exist. It doesnt find RO which I have 
 made in remote-config.xml.
 
 Please help
 Regards,
 Sanjay
 
 --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
 wrote:
 
  
  It looks to me like you need flex-bootstrap.jar from Flex 1.5 in 
 order
  to use the tag library:
  
  
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/0848.htm#wp15
 028\
  3
  
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/0848.htm#wp1
 502\
  83
  
  I haven't seen or heard anything specific about using the Flex 
tag
  library with Flex 2.
  
  
  
  -Doug
  
  
  --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ 
wrote:
  
   Hi All,
  
   I have deployed Flex2 on JBOSS and created a JSP file with the
   following code:
  
   %@ taglib uri=FlexTagLib prefix=mm %
  
   mm:mxml source=AccountSetup.mxml /
  
   But, It is showing an error:
  
   FlexTagLib Not Found.
  
   Please help me to resolve this issue.
  
   Regards,
   Sanjay
  
 





[flexcoders] Re: SOLUTION: Unable to bind Warning

2006-12-08 Thread lostinrecursion
It's interesting how AMF does not provide the same wrapper
functionality as HTTP and WEB services. Reason being, when using the
standard CFC to AS Class mapping features of Flex 2, you could
certainly benefit from such an automated conversion. For example, when
passing data to Coldfusion as an ArrayCollection and getting it back
as an Array.

Nice find. I was having a similar issue.



[flexcoders] Create a custom keyboard shortcut?

2006-12-08 Thread imjustlar
Is it feasible to create a custom keyboard shortcut?  I see the huge
list of items I can use by default but I would like to create some of
my own to account for the repetitive typing (copy/paste) actions.  (I
am looking to do this in the IDE and not within the application.)
  
I opened the Window  Preferences  Keys section to see if I could add
a new item but I was limited to modify an existing shortcut. 
Any suggestions where I should look?  Or did I just not see the
correct place to add my custom shortcut?

Thanks.



[flexcoders] Disabling the Ctrl key copy action during a drag-n-drop event.

2006-12-08 Thread lokesh2084
I have a simple list (code below) that has drag and drop enabled. I
want to allow the user to reorder items in the list. But I do NOT want
them to be able to duplicate list items by holding down the CTRL key
during the drag drop. What would be the simplest way to handle this?

mx:List dataProvider={foo}
allowDragSelection=true allowMultipleSelection=false
dragEnabled=true dragMoveEnabled=true dropEnabled=true
/mx:List

Thanks,
Lokesh



RE: [flexcoders] RSL's and Dynamic components

2006-12-08 Thread Roger Gonzalez
Hi,
 
RSLs aren't the best match for what you need.  Look into the new 2.0.1
Modules feature.  
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of wljammal
Sent: Thursday, December 07, 2006 6:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RSL's and Dynamic components



Hi all,

I'm currently working on a big project and need to load
components
dynamicaly but this doesnt seem to be working to well with our
framework so the other option is to use seperate applications as
the
entire application is binding driven.

The problem here is that empty applications come in at 120K so I
need
to figure out how to reduce that by sharing whatever gets loaded
by
default into a shared library so all my application swf's will
be
pretty small by default.

Thanks



 



[flexcoders] Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-08 Thread lostinrecursion
Hi all,

I just had the pleasure of stepping through the Cairngorm Store (v2.0)
and checking it out. (I2, Great Work)

I have two event questions regarding the store.

1. I notice that there are two events (UpdateShippingCostEvent and
NewScreenEvent) which do not map to a command in the Controller. What
is the motivation behind that? Meaning, is there a specific reason why
one would choose to have some events not handled by a command in a
Cairngorm app?

2. The other is separation of logic from presentation. There are two
events mapped to Commands in the controller (FilterProductsEvent and
SortProductsEvent) which are nothing more than view manipulation of
the data. By putting these in a command, aren't we coupling the
business logic to the view a little too tight?


2. (Explained) I ask number two because I have a Component in my
application that is a List with the US States in it. Users can drag
the states from the List and drop them in a grid, where I have setup
additional data entry capabilities. The state List dataProvider is a
copy of a model variable called STATES_US. The List is re-sorted and
filtered as states are pulled from it. (Essentially to prevent the
user from adding the same state twice)

Following the logic of the Cairngorm Store, I would need to map an
event to a command and bounce it to the model. But in this case,
that's not possible since it is a component property we are sorting.

Thanks for any insight you can offer.



Re: [flexcoders] XML-RPC

2006-12-08 Thread Valy Sivec
What do you use on the server side?. If you;re using java on the server side  
you can call a method on the server side if your http controller is properly 
configured. 

Give us more detail with what you have on the backend, and you might want to 
consider using  resultFormat=e4x when you declare the HTTP service too.

Valy


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 8, 2006 1:12:52 PM
Subject: RE: [flexcoders] XML-RPC

I am not familiar with “XML-RPC”, but I suspect that the answer to your 
question is no.
 
Can you do an ordinary HTTPService call successfully?
 
This:
methodauthor.login/method
Looks suspicious. It is sending a querystring parameter that looks like this:
…?method=”author.login”….
 
Does the url target know how to handle that?
 
Tracy
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of z4guyuk
Sent: Friday, December 08, 2006 11:44 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] XML-RPC
 
I have spent most of today googling and searching forums looking for
an answer to this and it's getting towards that time on a Friday so my
brain has given up.

Does Flex natively support XML-RPC? I found 1 or 2 examples of it
being used - one of them here:
http://tech. groups.yahoo. com/group/ flexcoders/ message/549
and when I have been able to get the example code to work (like the
above one) I have been unable to then get it to work with my own server.
So far each time I have tried I get an unknown method error.

One comment I found was that the webservice class would be better than
the HTTPService class. If so does anyone have an example?

The code I have used is this:

mx:HTTPService url={serverSetting s.xmlRPCstring} 
method=GET id=service result=methodResul t(true,event) 
fault=methodResult (false,event) 
mx:request
methodauthor. login/method
Customer108 /Customer
Nameusername /Name
PasswordPassword /Password
/mx:request
/mx:HTTPService

I get the result function call firing but I can't see and data. When I
dig through all the variables in the debugger I eventually come across
a unknown method string that is returned by the server.

Can anyone help me with this or do I have to try and get a 3rd party
AS2 library to work with Flex instead?

Many Thanks

Giles



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

[flexcoders] Re: Flex II Stand-alone Builder and SVN?

2006-12-08 Thread discollective
--- In flexcoders@yahoogroups.com, jer_ela [EMAIL PROTECTED] wrote:

 I've used it with no trouble with svn.  Rather than creating a project
 that points to an existing svn directory, you may have to create a new
 empty project and then import from svn.
 
 --- In flexcoders@yahoogroups.com, discollective discollective@
 wrote:
 
  Can anyone tell me if the Flex II stand-alone builder plays nice with
  SVN?  I did take it for a quick test-drive, and it seems that the Flex
  II standalond IDE does not like some of the svn related folders when
  you just try to point a new project to a directory that is under SVN.
   Any advice or assistance is much appreciated.
  
  Thanks,
  
  -Jeff
 


So, you were able to integrate SVN with the Flex II standalone builder
without using subclipse plugin?  If so, could you provide a couple
line items on the steps you take to create a flex II project using svn?

Thanks,
-Jeff



[flexcoders] Abnormal CPU usage?

2006-12-08 Thread zzwi89
My Flex application occasionally likes to ramp up the CPU usage. It
will jump to 30 or 40% and slowly increase to 70 or 80%. This seems to
happen when I generate components programatically. My code doesn't
generate anything like an infinte loop that I could imagine causing this.

Has anyone else experienced this, and if so, what did you do about it?




[flexcoders] Can not trap ALT keys

2006-12-08 Thread boy_trike
I have a keyboard listener which listens to and responds fine to CTRL + keys or 
SHIFT + keys 
or plain old keystrokes. but it is never called when I press ALT + key.  Any 
suggestions?

Thanks
Bruce



[flexcoders] Extending ChartElement class

2006-12-08 Thread purcept

Does anyone know why I can't create an MXML Component that extands the
ChartElement class.

* I have Charting license   * Used the New MXML Component wizard  
* Chose ChartElement form the Based on: list

It creates MyChartElemeny.mxml with no problems,  but when I insert it
in an App and compile it, I get a Could not resolve mx:ChartElement
to a component implementation error.  I beleive this should work.

Don

Here are some code snipets:

-

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=vertical  xmlns=* 

  MyChartElement /

-

?xml version=1.0 encoding=utf-8?
mx:ChartElement xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
  mx:Label text=MyChartElement /
/mx:ChartElement

-





Re: [flexcoders] Re: SOLUTION: Unable to bind Warning

2006-12-08 Thread Patrick Mineault
As long as we're on that subject... I've added a new setting to amfphp, 
which is:

$gateway-setAmf3RecordSetFormat(Array);

Which can also be set to ArrayCollection. I have yet to implement it, 
but does this sound like something useful to you?

Patrick

lostinrecursion a écrit :

 It's interesting how AMF does not provide the same wrapper
 functionality as HTTP and WEB services. Reason being, when using the
 standard CFC to AS Class mapping features of Flex 2, you could
 certainly benefit from such an automated conversion. For example, when
 passing data to Coldfusion as an ArrayCollection and getting it back
 as an Array.

 Nice find. I was having a similar issue.

  



RE: [flexcoders] XML-RPC

2006-12-08 Thread Giles Roadnight
Thanks for the reply.

 

The lib I use at the moment (for actionscript 1 in player 6) is here:

 

http://members.netmadeira.com/killer/xmlrpc/

 

and some details here:

 

http://en.wikipedia.org/wiki/XML-RPC

 

It looks like I'll have to get my existing lib to work with AS3 - it
shouldn't be too hard as I already had to tinker with it to make it work
with AS2.

 

Thanks for the reply.

 

Giles Roadnight

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: 08 December 2006 18:13
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML-RPC

 

I am not familiar with XML-RPC, but I suspect that the answer to your
question is no.

 

Can you do an ordinary HTTPService call successfully?

 

This:

methodauthor.login/method

Looks suspicious. It is sending a querystring parameter that looks like
this:

.?method=author.login..

 

Does the url target know how to handle that?

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of z4guyuk
Sent: Friday, December 08, 2006 11:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML-RPC

 

I have spent most of today googling and searching forums looking for
an answer to this and it's getting towards that time on a Friday so my
brain has given up.

Does Flex natively support XML-RPC? I found 1 or 2 examples of it
being used - one of them here:
http://tech. http://tech.groups.yahoo.com/group/flexcoders/message/549
groups.yahoo.com/group/flexcoders/message/549
and when I have been able to get the example code to work (like the
above one) I have been unable to then get it to work with my own server.
So far each time I have tried I get an unknown method error.

One comment I found was that the webservice class would be better than
the HTTPService class. If so does anyone have an example?

The code I have used is this:

mx:HTTPService url={serverSettings.xmlRPCstring}
method=GET id=service result=methodResult(true,event)
fault=methodResult(false,event)
mx:request
methodauthor.login/method
Customer108/Customer
Nameusername/Name
PasswordPassword/Password
/mx:request
/mx:HTTPService

I get the result function call firing but I can't see and data. When I
dig through all the variables in the debugger I eventually come across
a unknown method string that is returned by the server.

Can anyone help me with this or do I have to try and get a 3rd party
AS2 library to work with Flex instead?

Many Thanks

Giles

 



[flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Steve Kellogg @ Project SOC
Hello,

 

Is there any easy way to tell flex that I want it to add parameters to the
URL when debug launching?  I've looked over the preferences are of
FlexBuilder, but I can't seem to find anything..

 

FOR EXAMPLE.

 

I've got the following debug URL for one of my applications.

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html 

 

I'd LIKE to have FlexBuilder call

 

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html?sessionID=1657

 

 

 

 

Thanks in advance for any help.

 

 

Steve

 

 

 

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]

 



Re: [flexcoders] Fade from one color to another

2006-12-08 Thread dorkie dork from dorktown

@dustin - Do you know if there is a way to get around the grayish color in
the middle of the transition? It looks like it fades from white to the
grayish color then to black. And the same from black to white.

Here is my code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
styleName=plain

   mx:Sequence id=fadeToBlack
   mx:AnimateProperty target={this} property=alpha fromValue=1
toValue=0
   effectEnd=setStyle('backgroundColor','0') /
   mx:AnimateProperty target={this} property=alpha fromValue=0
toValue=1 /
   /mx:Sequence

   mx:Sequence id=fadeToWhite
   mx:AnimateProperty target={this} property=alpha fromValue=1
toValue=0
   effectEnd=setStyle('backgroundColor','white') /
   mx:AnimateProperty target={this} property=alpha fromValue=0
toValue=1 /
   /mx:Sequence

   mx:Button label=Fade To White click=fadeToWhite.play(); /
   mx:Button label=Fade To Black click=fadeToBlack.play();  x=58
y=86/
/mx:Application

On 12/6/06, Deepa Subramaniam [EMAIL PROTECTED] wrote:


 What about overriding the onTweenUpdate event handlers didn't work?

I'll try to whip together an example that works in the next day or two.



-deepa


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *dorkie dork from dorktown
*Sent:* Tuesday, December 05, 2006 11:23 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Fade from one color to another



@dustin - that worked for simple colors that are close by but not for pure
white to pure black #FF, #00

@deepa - i could not get that to work after one hour.

i decided to try to dissolve from one state to another. one state has a
white background. the other state has a black background. the code i wrote
makes sense to me but the effects are triggering at the wrong time.
shouldn't this work? if there is more the fromState and toState are
misleading.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute styleName=plain
mx:states
mx:State name=blackState
mx:SetProperty target={button1} name=label value=Fade to
White/
mx:SetStyle name=backgroundColor value=0x00/
mx:SetEventHandler target={button1} name=click
handler={currentState=''}/
/mx:State
/mx:states

!-- Fade to black --
!-- When user clicks a button the screen should fade to black--
!-- After application /state fades to black switch states --
!-- After switching states fade up from black --
mx:transitions
mx:Transition fromState= toState=blackState
mx:Parallel
mx:Dissolve duration=4000 alphaTo=1 color=#00
target={this}/
/mx:Parallel
/mx:Transition
mx:Transition fromState=blackState toState=
mx:Parallel
mx:Dissolve duration=4000 alphaTo=1 color=#FF
target={this}/
/mx:Parallel
/mx:Transition
/mx:transitions
mx:Button x=120 y=139 horizontalCenter=0 verticalCenter=0
label=Fade to Black id=button1 click={currentState='blackState'}/
/mx:Application

 On 12/4/06, *Deepa Subramaniam*  [EMAIL PROTECTED] wrote:

Ah – that is because AnimateProperty is just cycling through all the RGB
values between your fromValue color and your endValue color. What you may
want to do is add an event handler for the tweenUpdate event on the
AnimateProperty effect instance and check to see what the value passed in
the TweenEvent object is. That value is what the backgroundColor is at that
moment in the lifetime of the effect. You can then add in your own logic
that sets the backgroundColor depending on where the effect is in its
lifetime (ie: simulate a progression from dark gray to light gray). I'm not
100% sure how that will work out but I'd be interested in finding out what
doesn't work about it.



Incidentally, you should check out Alex Uhlmann's Animation Package where
I think he has an effect that does exactly what you want. That will probably
be easier J

http://www.alex-uhlmann.de/flash/animationpackage/



-deepa




 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *dorkie dork from dorktown
*Sent:* Monday, December 04, 2006 2:31 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Fade from one color to another



i see. that mostly works. except now it cycles through every color giving
a flicker effect like i am on acid. try this to see:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
layout=absolute
styleName=plain
creationCompleteEffect={fadeColor}
mx:AnimateProperty id=fadeColor isStyle=true
property=backgroundColor
fromValue=0xFF toValue=0x00 target={
Application.application}
duration=2000/
/mx:Application

If i change the fromValue and the toValue to a two digit 

Re: [flexcoders] Functions as objects

2006-12-08 Thread Anatole Tartakovsky

Francis,
 It worked in betas, but was removed on production build - we had to remove
samples from the chapter. In standard mode fails for us on access as well
with runtime error. More importantly, we can not extend Function datatype as
runtime fails instantiation stating that type Function is final. If that
restriction is removed, very cool OO tricks can be done.

Sincerely,
Anatole



On 12/8/06, Francis Cheng [EMAIL PROTECTED] wrote:


   You should be able to add properties to function objects, just as the
docs suggest. Unfortunately, it looks like this isn't working in strict mode
anymore. Oddly, it does work in standard mode, but that may not be a viable
workaround for you. I had a brief discussion about this with the engineers
that worked on it and their initial reaction was that this sounds like a
bug. I've filed it as such, and they will investigate it further.



Francis
 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Derek Vadneau
*Sent:* Wednesday, December 06, 2006 8:15 AM
*To:* flexcoders
*Subject:* [flexcoders] Functions as objects



I've tried using the example from the docs where you assign the value
to a property on the function and then use arguments.callee.prop to
get the value, but Flex Builder gives me an error saying Access of
possibly undefined property prop through a reference with static type
Function. when assigning the value to the function.

Example:
function test()
{
trace(arguments.callee.prop);
}
test.prop = testing; // Error

Global.as http://global.as/ defines Function as dynamic yet FB produces
an error.

This is supposedly possible in AS3 as per:
http://livedocs.macromedia.com/flex/2/docs/1835.html

However, if you try the last example you'll get compiler errors.

Is there a way to add properties to a function? Or is this not supported
in AS3?

--

Derek Vadneau





RE: [flexcoders] Extending ChartElement class

2006-12-08 Thread Ely Greenfield
 
 
To avoid confusing people with an avalanche of options, the mxml
namespace for the framework only contains those classes we expect people
to be using in MXML.  ChartElement is one of those that very few people
use or extend in MXML (this is the first I've heard of it). So it's not
in the http://www.adobe.com...etc. flex namespace.
 
However, you can use any publicly visible class in MXML using the
standard namespace=package approach. So this should work:
 
 
ChartElement xmlns=mx.charts.chartClasses.*
...
/
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of purcept
Sent: Friday, December 08, 2006 1:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Extending ChartElement class



Does anyone know why I can't create an MXML Component that extands the
ChartElement class.

*   I have Charting license 
*   Used the New MXML Component wizard 
*   Chose ChartElement form the Based on: list

It creates MyChartElemeny.mxml with no problems,  but when I insert it
in an App and compile it, I get a Could not resolve mx:ChartElement
to a component implementation error.  I beleive this should work.

Don

Here are some code snipets:

-

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=vertical  xmlns=* 

 MyChartElement /

-

?xml version=1.0 encoding=utf-8?
mx:ChartElement xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/20! 06/mxml 
 mx:Label text=MyChartElement /
/mx:ChartElement

-

 

 


RE: [flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Tracy Spratt
I haven't tried this but let us know:

 

In FB, go to menu Run, Run, Other.  It will bring up the launch
configuration dialog.

 

If you uncheck Use Defaults in the URL section, you can edit the url.

 

Put your parameters on that and save it and give it a try.  Please  let
us know the result.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg @ Project SOC
Sent: Friday, December 08, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add Parameters to URL for debug??

 

Hello,

 

Is there any easy way to tell flex that I want it to add parameters to
the URL when debug launching?  I've looked over the preferences are of
FlexBuilder, but I can't seem to find anything..

 

FOR EXAMPLE...

 

I've got the following debug URL for one of my applications...

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html 

 

I'd LIKE to have FlexBuilder call

 

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html?sessionID=1657

 

 

 

 

Thanks in advance for any help.

 

 

Steve

 

 

 

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]

 

 



RE: [flexcoders] backgroundGradientColors on something other than Application

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

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

Dirk.


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

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






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




winmail.dat

[flexcoders] Need light shed on Array issue

2006-12-08 Thread Robert Moss
In Adobe's dashboard sample app,
http://www.adobe.com/devnet/flex/samples/dashboard/  it assigns a
charting component's dataProvider to an ArrayCollection's source (e.g.
revenueData={slicedRegionData.source})  In the regionChange() function
it sets the array regionData and assigns it to slicedRegionData.source 
 
My question is, the delivered code
 
slicedRegionData.source = regionData.slice(slider.values[0],
slider.values[1] + 1); 
Alert.show(ObjectUtil.toString(slicedRegionData.source));
 
and
 
slicedRegionData.source = regionData; 
Alert.show(ObjectUtil.toString(slicedRegionData.source));
 
Without the .slice,  output the exact same data, but the region detail
does not auto update without using the .slice code. WHY???  Thanks for
any insight on this.
 
Robert



** Confidentiality Notice: This e-mail and any files transmitted with it are 
confidential to the extent permitted by law and intended solely for the use of 
the individual or entity to whom they are addressed. If you have received this 
e-mail in error please notify the originator of the message and destroy all 
copies. **


RE: [flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Steve Kellogg @ Project SOC
Thanks for the suggestion.  I'll try it in the next few hours (currently
traveling).

 

Best

 

Steve

 

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, December 08, 2006 2:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Add Parameters to URL for debug??

 

I haven't tried this but let us know:

 

In FB, go to menu Run, Run, Other.  It will bring up the launch
configuration dialog.

 

If you uncheck Use Defaults in the URL section, you can edit the url.

 

Put your parameters on that and save it and give it a try.  Please  let us
know the result.

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg @ Project SOC
Sent: Friday, December 08, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add Parameters to URL for debug??

 

Hello,

 

Is there any easy way to tell flex that I want it to add parameters to the
URL when debug launching?  I've looked over the preferences are of
FlexBuilder, but I can't seem to find anything..

 

FOR EXAMPLE.

 

I've got the following debug URL for one of my applications.

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html 

 

I'd LIKE to have FlexBuilder call

 

 

C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html?sessionID=1657

 

 

 

 

Thanks in advance for any help.

 

 

Steve

 

 

 

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]

 

 



Re: [flexcoders] Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-08 Thread Douglas McCarroll
Hi Kenny,

1.

NewScreenEvent - Hmm... This isn't a CairngormEvent - rather it extends 
flash.events.Event. It is used only in Checkout.mxml and its 
subcomponents. It makes sense to me to keep this within this part of the 
view as nothing else 'needs to know'. If something else did need to know 
I'd use a CairngormEvent/Command, change a property on the model, and 
let binding take care of updating the part of the view that needed to know.

UpdateShippingCostEvent - I think that this may simply be a feature that 
has (intentionally?) been left unimplemented. I have the vague 
impression that I read something about this somewhere but Google doesn't 
find it anywhere...

2.

There's been an interesting thread on this list lately entitled 
Cairngorm’s Anaemic Domain Model. Have you seen it?

http://tech.groups.yahoo.com/group/flexcoders/message/57803

It talks about how much logic to put on the model...

  aren't we coupling the business logic to the view a little too tight?

There's a lot of flexibility in Cairngorm to do things in different ways 
but much of what I'm seeing (in examples like CairngormStore, articles, 
and posts on this list) points to an approach where we keep the view 
fairly dumb and put client-side business logic on the model. That said, 
I can see how you'd think that one would keep sorting and filtering on 
the view. It certainly doesn't appear that anything else needs to know 
about how this view is sorted and filtered. I suspect that the store's 
authors simply concluded that its sorting and filtering logic were 
complex enough that they decided to put it in an object (Comparator) on 
the model.

If you want to follow this approach in your app you might do something 
like the following: Create an object on the model that keeps track of 
selectedStates list and also maintains a displayStatesUS list in 
addition to your STATES_US constant. Every time the user drags a state 
have a command call a method on this object, which updates these two 
properties. Bind your dropdown to displayStatesUS.

My 2c - I'm fairly new to Cairngorm... :-)

Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-





lostinrecursion wrote:

 Hi all,

 I just had the pleasure of stepping through the Cairngorm Store (v2.0)
 and checking it out. (I2, Great Work)

 I have two event questions regarding the store.

 1. I notice that there are two events (UpdateShippingCostEvent and
 NewScreenEvent) which do not map to a command in the Controller. What
 is the motivation behind that? Meaning, is there a specific reason why
 one would choose to have some events not handled by a command in a
 Cairngorm app?

 2. The other is separation of logic from presentation. There are two
 events mapped to Commands in the controller (FilterProductsEvent and
 SortProductsEvent) which are nothing more than view manipulation of
 the data. By putting these in a command, aren't we coupling the
 business logic to the view a little too tight?

 2. (Explained) I ask number two because I have a Component in my
 application that is a List with the US States in it. Users can drag
 the states from the List and drop them in a grid, where I have setup
 additional data entry capabilities. The state List dataProvider is a
 copy of a model variable called STATES_US. The List is re-sorted and
 filtered as states are pulled from it. (Essentially to prevent the
 user from adding the same state twice)

 Following the logic of the Cairngorm Store, I would need to map an
 event to a command and bounce it to the model. But in this case,
 that's not possible since it is a component property we are sorting.

 Thanks for any insight you can offer.

  



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Flex Presentation Server vs Flex Data Services

2006-12-08 Thread Charles
Hi all,

Can anyone tell me the difference between Flex Presentation Server and
Flex Data Services.  I'm aware of FDS, and I've used it myself.  But I
haven't found much info on Flex Presentation Server and I'm a little
curious as to what it's for.

Thanks in advance


Charles



[flexcoders] Styling p tags inside of mx:Text

2006-12-08 Thread gotgoose09
I want to add margin to p tags inside of a mx:Text control.  How
can I do this?



RE: [flexcoders] Flex Presentation Server vs Flex Data Services

2006-12-08 Thread Matt Chotin
Flex Presentation Server is essentially Flex 1.5.  For Flex 2 we
separated out the presentation logic into the Flex SDK and improved the
data portion into FDS.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charles
Sent: Friday, December 08, 2006 4:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Presentation Server vs Flex Data Services

 

Hi all,

Can anyone tell me the difference between Flex Presentation Server and
Flex Data Services. I'm aware of FDS, and I've used it myself. But I
haven't found much info on Flex Presentation Server and I'm a little
curious as to what it's for.

Thanks in advance

Charles

 



[flexcoders] Re: Add Parameters to URL for debug??

2006-12-08 Thread Mike Morearty
Unfortunately you can't add parameters for a file: URL.  If you want
to add parameters, you'll have to follow Tracy's instructions but
change it to an http: URL that points to the file, e.g.
http://localhost/MyApp.html?sessionID=1657.  (If it's a file on your
hard disk then of course you'll have to run a local web server for
that to work.)


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

 I haven't tried this but let us know:
 
  
 
 In FB, go to menu Run, Run, Other.  It will bring up the launch
 configuration dialog.
 
  
 
 If you uncheck Use Defaults in the URL section, you can edit the url.
 
  
 
 Put your parameters on that and save it and give it a try.  Please  let
 us know the result.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Steve Kellogg @ Project SOC
 Sent: Friday, December 08, 2006 4:13 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Add Parameters to URL for debug??
 
  
 
 Hello,
 
  
 
 Is there any easy way to tell flex that I want it to add parameters to
 the URL when debug launching?  I've looked over the preferences are of
 FlexBuilder, but I can't seem to find anything..
 
  
 
 FOR EXAMPLE...
 
  
 
 I've got the following debug URL for one of my applications...
 
  
 
 C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html 
 
  
 
 I'd LIKE to have FlexBuilder call
 
  
 
  
 
 C:\ SVN\trunk\NewApplication\bin\chat_window-debug.html?sessionID=1657
 
  
 
  
 
  
 
  
 
 Thanks in advance for any help.
 
  
 
  
 
 Steve
 
  
 
  
 
  
 
 Steve Kellogg
 
 Peak8 Solutions
 
 1401 14th Street
 
 Boulder, Colorado
 
 80302, USA
 
 Fax: 303.415.2597
 
 E-Mail: [EMAIL PROTECTED]





[flexcoders] Webservice WSDL ActionScript authentication and operations - n00bie

2006-12-08 Thread phipzkillah
Hi,

I am trying to create a web service in pure action script.  I need to
authenticate and then call the proper method from the web service.

I have not seen any good tutorials explaining how to do this...

This is my current snippet:

private function init():void{

 var ws:WebService = new WebService;

 ws.wsdl =
http://sc-vmx-03/clarusipc/services/InventoryService?wsdl;;
 ws.useProxy = false;


ws.loadWSDL(http://sc-vmx-03/clarusipc/services/InventoryService?wsdl;);

}

What is the format to add in an operations object that will include
the method and parameters that I'm going to call?

How would I go about editing the http request to include a username
and password to authenticate against?

Any help would be greatly appreciated!!!  It's driving me nuts!



[flexcoders] Re: Unable to bind Warning

2006-12-08 Thread Paul Whitelock
Thanks for the suggestion. I tried changing the name of the
ArrayCollection, but I'm still getting the Unable to Bind warning. 

Any other ideas?

Paul

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

 from the looks of the code it seems that you'll have to change the
name of
 your ArrayCollection. Try myDataProvider
 
 hope it works,
 -sam
 
 On 12/8/06, Paul Whitelock [EMAIL PROTECTED] wrote:
 
I hoping someone might know why I am getting an unable to bind
warning
  with the following scenario. Below is a portion of my code that uses a
  DataGrid bound to an ArrayCollection data provider (text is one
of the
  fields in the collection).
 
  --
 
  [Bindable]
  public var dataProvider:ArrayCollection;
 
  mx:DataGrid id=dg dataProvider={dataProvider} 
  mx:columns
  mx:DataGridColumn headerText=Items itemRenderer=renderer.RichText
  dataField=text editable=false /
  /mx:columns
  /mx:DataGrid
 
  --
 
  The following is a very simple component (renderer.RichText) that
simply
  converts the text data to rich text.
 
  --
 
  ?xml version=1.0 encoding=utf-8?
  mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Text id=richText htmlText={data.text} width=100%
height=100%
  selectable=false /
  /mx:Canvas
 
  --
 
  When the application is run, I get the following error:
 
  warning: unable to bind to property 'text' on class 'Object'
(class is
  not
  an IEventDispatcher)
 
  Note that the data from data.text is correctly displayed in the
  DataGrid.
 
  Any idea why I am getting the unable to bind warning and how I
might get
  rid of it? Thanks!
 
  Paul
 
  ---
  Paul Whitelock
  Denver, Colorado
 
   
 





[flexcoders] How to create a nested non-visual component

2006-12-08 Thread Du, Xiaochen \(Harry\)
Hello all,

I want to create a non-visual component that can have another non-visual 
component as child. 
For example:
MyComponentA
  MyComponentB/
/MyComponentA

How to do that?

I know I should implement the AS class of MyComponentA from IMXMLObject like 
the following. But I don't know how to make it enable to accept another 
non-visual component as child.

public class MyComponentA implements IMXMLObject 
{
public function initialized(document:Object, id:String):void
{
trace(id);
trace(document);
}
}

You help is highly appreciated.

Regards,
Harry


[flexcoders] Re: XML-RPC

2006-12-08 Thread chuvakgu
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 I am not familiar with XML-RPC, but I suspect that the answer to your
 question is no.
 
  
 
 Can you do an ordinary HTTPService call successfully?
 
  
 
 This:
 
 methodauthor.login/method
 
 Looks suspicious. It is sending a querystring parameter that looks like
 this:
 
 ...?method=author.login
 
  
 
 Does the url target know how to handle that?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of z4guyuk
 Sent: Friday, December 08, 2006 11:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] XML-RPC
 
  
 
 I have spent most of today googling and searching forums looking for
 an answer to this and it's getting towards that time on a Friday so my
 brain has given up.
 
 Does Flex natively support XML-RPC? I found 1 or 2 examples of it
 being used - one of them here:
 http://tech.groups.yahoo.com/group/flexcoders/message/549
 http://tech.groups.yahoo.com/group/flexcoders/message/549 
 and when I have been able to get the example code to work (like the
 above one) I have been unable to then get it to work with my own server.
 So far each time I have tried I get an unknown method error.
 
 One comment I found was that the webservice class would be better than
 the HTTPService class. If so does anyone have an example?
 
 The code I have used is this:
 
 mx:HTTPService url={serverSettings.xmlRPCstring}
 method=GET id=service result=methodResult(true,event)
 fault=methodResult(false,event)
 mx:request
 methodauthor.login/method
 Customer108/Customer
 Nameusername/Name
 PasswordPassword/Password
 /mx:request
 /mx:HTTPService
 
 I get the result function call firing but I can't see and data. When I
 dig through all the variables in the debugger I eventually come across
 a unknown method string that is returned by the server.
 
 Can anyone help me with this or do I have to try and get a 3rd party
 AS2 library to work with Flex instead?
 
 Many Thanks
 
 Giles





[flexcoders] Re: XML-RPC

2006-12-08 Thread chuvakgu
Funny you should ask.

http://xmlrpcflash.mattism.com/ is for AS 2. I converted it to AS3, 
fixed some bugs (maybe introduced new ones :), and it seems to work
for me. I was going to seriously clean it up before annoucning,
but since you ask, here:

http://www.hrum.org/people/debedb/pro/blog/2006/12/xmlrpc_in_flex_2actionscript_3.html




[flexcoders] Re: Webservice WSDL ActionScript authentication and operations - n00bie

2006-12-08 Thread ben.clinkinbeard
I've not dealt with authentication but here is how to call an operation.

// getOperation() returns generic AbstractOperation by default
// you want mx.rpc.Operation, not mx.rpc.mxml.Operation
var op:Operation = ws.getOperation(doCoolStuff) as Operation;
op.arguments.arrayArg = new Array(foo, bar);
op.arguments.objectArg = {propA: tweedle, propB: dee};
op.send();

You can optionally capture the token created by the call and assign a
responder as well:

var call:ASyncToken = op.send();
call.addResponder(IResponder);

The IResponder interface defines a result and fault method that are
called when the operation returns.

HTH,
Ben



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

 Hi,
 
 I am trying to create a web service in pure action script.  I need to
 authenticate and then call the proper method from the web service.
 
 I have not seen any good tutorials explaining how to do this...
 
 This is my current snippet:
 
 private function init():void{
   
  var ws:WebService = new WebService;
   
  ws.wsdl =
 http://sc-vmx-03/clarusipc/services/InventoryService?wsdl;;
  ws.useProxy = false;
 
 

ws.loadWSDL(http://sc-vmx-03/clarusipc/services/InventoryService?wsdl;);
 
 }
 
 What is the format to add in an operations object that will include
 the method and parameters that I'm going to call?
 
 How would I go about editing the http request to include a username
 and password to authenticate against?
 
 Any help would be greatly appreciated!!!  It's driving me nuts!