RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-23 Thread David Terry
Thank you Stephen.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Gilson
Sent: Tuesday, January 23, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



It is covered in the doc in the chapter on the Application container:
 
http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html
http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html

 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 6:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



I'm on the Flex framework team in San Francisco. Glad to be of help.

I'm not sure where (if?) this is covered in our doc set. Where would you
expect to look?

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

GORDON!

Where the hell are you in the country?  I'm coming to kiss you.  :)~

J/K

But really, thank you!!!

When you are just starting out in a language, the simplest things are
the hardest.  I've been coding C++, VB, C#, VB.NET for 12 years (3 on
the later), but learning this - has been like jumping into the abyss.

Thanks again.

~David T.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

The answer is by using the parentDocument property.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

If it was that simple I would not be asking for help.

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

~David T.

?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
xmlns:comp=assets.components.* currentState=Login

 mx:Style source=../assets/css/main.css/

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.

 


RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread Merrill, Jason
1st suggestion, since there is a LACK of flex 2 books, go onto
lyndia.com,  
 
Adobe Flex 2 Training from the Source is really quite good IMO and it
goes over states and transitions pretty well.  Lynda.com is great, but I
think this book is more extensive than the current Lynda courses.  

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  



RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread David Terry
sigh!
 
I have searched all day and I still can't figure out how to do this.
 
Did I ask something that was hard to do?
 
This is what I have learned...
I can add an event to my custom component that, when clicked, will alert
the parent to change state - if the parent is listening.
 
But heck if I can find some sample code that will help me get started.
 
~David T.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Monday, January 22, 2007 1:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



1st suggestion, since there is a LACK of flex 2 books, go onto
lyndia.com,  
 
Adobe Flex 2 Training from the Source is really quite good IMO and it
goes over states and transitions pretty well.  Lynda.com is great, but I
think this book is more extensive than the current Lynda courses.  

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 


RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread David Terry
If it was that simple I would not be asking for help.
 
I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.
 
If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?
 
~David T.
 
 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:comp=assets.components.* currentState=Login
 
 mx:Style source=../assets/css/main.css/
 
 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states
 
/mx:Application
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions



It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.



 


RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread Gordon Smith
It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

 

The answer is by using the parentDocument property.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

 

If it was that simple I would not be asking for help.

 

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

 

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

 

~David T.

 

 

?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
xmlns:comp=assets.components.* currentState=Login

 

 mx:Style source=../assets/css/main.css/

 

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

 

/mx:Application

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.

 



RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread David Terry
GORDON!
 
Where the hell are you in the country?  I'm coming to kiss you.  :)~
 
J/K
 
But really, thank you!!!
 
When you are just starting out in a language, the simplest things are
the hardest.  I've been coding C++, VB, C#, VB.NET for 12 years (3 on
the later), but learning this - has been like jumping into the abyss.
 
Thanks again.
 
~David T.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

The answer is by using the parentDocument property.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

If it was that simple I would not be asking for help.

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

~David T.

?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
xmlns:comp=assets.components.* currentState=Login

 mx:Style source=../assets/css/main.css/

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.

 


RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread Gordon Smith
I'm on the Flex framework team in San Francisco. Glad to be of help.

 

I'm not sure where (if?) this is covered in our doc set. Where would you
expect to look?

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

 

GORDON!

 

Where the hell are you in the country?  I'm coming to kiss you.  :)~

 

J/K

 

But really, thank you!!!

 

When you are just starting out in a language, the simplest things are
the hardest.  I've been coding C++, VB, C#, VB.NET for 12 years (3 on
the later), but learning this - has been like jumping into the abyss.

 

Thanks again.

 

~David T.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

The answer is by using the parentDocument property.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

If it was that simple I would not be asking for help.

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

~David T.

?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
xmlns:comp=assets.components.* currentState=Login

 mx:Style source=../assets/css/main.css/

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.

 



RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-22 Thread David Terry
Here is a good section name for V3 docs.
 
MXML Component/Parent Application Communications
 
I compare it to referencing a UserControl in .NET.  I was hoping there
was a simple way of communicating with the parent, but I had no idea
where to look.  Of course my boss wasn't to happy that it took me all
day to figure this out, but that is what he gets for not accepting XBAP
as our Web 2.0 solution.
 
I blame the 7% that are not using Microsoft.  :)
 
The rest of this application will be a real challenge, and I'm sure the
community will be hearing from me again if I get stuck.
 
Best regards,
~David T.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 5:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



I'm on the Flex framework team in San Francisco. Glad to be of help.

I'm not sure where (if?) this is covered in our doc set. Where would you
expect to look?

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

GORDON!

Where the hell are you in the country?  I'm coming to kiss you.  :)~

J/K

But really, thank you!!!

When you are just starting out in a language, the simplest things are
the hardest.  I've been coding C++, VB, C#, VB.NET for 12 years (3 on
the later), but learning this - has been like jumping into the abyss.

Thanks again.

~David T.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

The answer is by using the parentDocument property.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

If it was that simple I would not be asking for help.

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

~David T.

?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
xmlns:comp=assets.components.* currentState=Login

 mx:Style source=../assets/css/main.css/

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.