Dimitrios,

 

Thanks very much for your response.  I’ll put the offending code back into my app to generate the error.

 

I had tried using data binding, but I ran into another problem, so I’m not sure what I’m doing wrong.

 

The currentState that I’m trying to modify is the APPLICATION’S currentState.

 

I’m defining my variable like this:

 

public var theCurrentAppState:String="";

 

In my <mx:Application tag, I’m saying :

 

currentState=”{theCurrentAppState}”                  

                                   

When I save, the problems screen shows…

 

‘Data binding will not be able to detect assignments to "theCurrentAppState".’    

 

If I put the variable into a class, I’m seeing ‘classes must not be nested’.  I checked the compiler errors section of the docs for more information about what that means (since I’m NOT knowingly nesting classes), but there’s no explanatory text.

 

I’m sure that this is just a newbie RTFM issue, but I can’t seem to find the RIGHT MANUAL to F’ing read!

 

Thanks in Advance for any additional information

 

 

Steve

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas
Sent: Monday, September 18, 2006 7:02 AM
To: [email protected]
Subject: RE: [flexcoders] limits to function during 'callback' events?

 

Hi,

 

Can you post the full error message and stacktrace to the list so we can help you? But to you what u need, use data binding! A powerful thing it is.

 

1) Create a variable on your ModelLocator:

 

class ModelLocator {

   public var someState:String = "";

}

 

2) Then bind that variable to the state of the view:

 

<bla:SomeView currentState="{ModelLocator.someState}"/>

 

3) Once the command completes, then change the value of the variable:

 

ModelLocator.someState = 'someViewState';

 

Hope that helps!

 

Dimitrios Gianninas

RIA Developer

Optimal Payments Inc.

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Kellogg @ Project SOC
Sent: Sunday, September 17, 2006 12:15 PM
To: [email protected]
Subject: [flexcoders] limits to function during 'callback' events?

Hello,

I've run into a problem that I hope someone can help me with.

When using WebServices, I'm needing to change the VIEWSTATE of the application when an operation completes, so I tried to attach "result='myCompletionFunction'" to the operation.  In the function, I simply say "currentState='myNewState'", and that's it.

When I try to run this, I'm getting errors saying some elements could not be created because they're already parented, and a host of other random errors.

My GUESS is that the 'result' event of an operation is performed at an interrupt-like level where I don't have the same priviledges that I have during other areas of my application.  That's fine, but the problem is that I can't seem to find any documentation as to what's restricted, and when, and how to get around it.

Can anyone point me to the proper documentation on why these events don't allow ViewStates?

Can anyone point me to (or suggest) a solution?

Best regards,

Steve

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]com

AVIS IMPORTANT

WARNING

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

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

__._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

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

__,_._,___

Reply via email to