Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
Maybe I am confusing you . This is what is my understanding of Menu .
In genral we builld Menus and Their Childern we want users to be taken to the 
page on which the item is clicked . it similar to View Stack (in terms of Flex)
Say Suppose  I have Menu  
 Menu1 - When User Clicks on Menu I want the user to be taken to a diiferent 
page for which Menu 1 is linked to . 
  Menu2 -Similarly on Menu 2 .

I am not even sure this is possible in Flex .
Something similar to this 
http://developer.yahoo.com/yui/examples/menu/example07.html
This is the Yahoo UI menu , when user clicks on Communication- Alerts - it 
takes to alerts.yahoo.com
Similar;ly Shopping it takes to shopping.yahoo.com











From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Saturday, April 25, 2009 10:01:05 PM
Subject: RE: [flexcoders] Flex Menu Basic Question





So you question has nothing to do with
menu, is that correct?
 
What exactly do you mean by “redirect to
test.swf”?  What is you application architecture?  Is test.swf an application,
a component, a module, or what?
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of guess what
Sent: Saturday, April 25, 2009
11:26 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Menu Basic Question
 




To be precise what do i do on the click event . I got the value of
Action set on the menu item . Can you kindly explain how do i recdirect to
test.swf.
menuitem label=Example data=top
  
 menuitem label=MenuItem A action=test. swf/
  
 menuitem label=MenuItem B
data=1B/
/menuitem
 // Event handler for the MenuBar controlapos;s itemClick
event.
private function
menuHandler( event:MenuEvent) :void  {
  
   Alert.show(event. it...@action) ;   



}


 
From:Tracy
Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009
8:10:58 PM
Subject: RE: [flexcoders] Flex
Menu Basic Question
On your menu, specify a handler for the itemClick event.  That
event will have a reference to the item clicked, fro mwhich you can determine
what action to take.  I typically include a “command” or “action” or
“index” attribute in the menu data, then get that value in the handler, and use
a switch() statement to define the processing.
 
A side note, the top-level menu items do not dispatch itemClick
events.  If you want to take action from a top-level menu item, you also
need to listen to the plain click event, and conditionally process only the 
correct
clicks.
 
Tracy Spratt,
Lariat Services, development services available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of myworld100us
Sent: Saturday, April 25, 2009 11:02
PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Menu
Basic Question
 



I am
posting a very basic question . I am trying to use Flex menus on my web page .
I have built the menu but I am not sure how to do navigation . All i could do is
if set Data for menu item i could do an alert to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file ,
similarly if user clicks on Menu B it should redirect or load a separate file.
It similar to something link View Stack . But problem with View Stack is I cant
define children for MX: View Stack .
 



  

RE: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Tracy Spratt
Menu is more generic(flexible) than that.  Its only function is to display
the options to the user and respond to their gesture.  You have the ability
to act on the users choice however you choose.

 

So your issue is more basic than that.  You need to think about and decide
on your applications architecture.  Look in the developers guide under the
sections dealing with designing applications.

 

It will not serve you well to continue thinking in terms of pages when
developing in Flex.  Page is a term from html development (like Yahoo) and
Flex application architecture is very different.

 

Typically you begin with a navigation component.  Popular ones are
TabNavigator, Tree, and ViewStack.  ViewStack is particularly useful with a
menu.  You have your click handler set the ViewStack.selectedIndex according
to some value in the menu data item.  Setting a ViewStack index causes the
view (kinda like a page) at that index to be displayed.

 

So before you build your navigation interface(like menu), you at least need
to identify your navigation architecture.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of guess what
Sent: Sunday, April 26, 2009 4:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 






Maybe I am confusing you . This is what is my understanding of Menu .

In genral we builld Menus and Their Childern we want users to be taken to
the page on which the item is clicked . it similar to View Stack (in terms
of Flex)

Say Suppose  I have Menu  

 Menu1 - When User Clicks on Menu I want the user to be taken to a diiferent
page for which Menu 1 is linked to . 

  Menu2 -Similarly on Menu 2 .

 

I am not even sure this is possible in Flex .

Something similar to this http://developer.
http://developer.yahoo.com/yui/examples/menu/example07.html
yahoo.com/yui/examples/menu/example07.html

This is the Yahoo UI menu , when user clicks on Communication- Alerts - it
takes to alerts.yahoo.com

Similar;ly Shopping it takes to shopping.yahoo.com

 

 

 

 

 

 

 

  _  

From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Saturday, April 25, 2009 10:01:05 PM
Subject: RE: [flexcoders] Flex Menu Basic Question

So you question has nothing to do with menu, is that correct?

 

What exactly do you mean by redirect to test.swf?  What is you application
architecture?  Is test.swf an application, a component, a module, or what?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of guess what
Sent: Saturday, April 25, 2009 11:26 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 





To be precise what do i do on the click event . I got the value of Action
set on the menu item . Can you kindly explain how do i recdirect to
test.swf.

menuitem label=Example data=top

menuitem label=MenuItem A action=test. swf/

menuitem label=MenuItem B data=1B/

/menuitem

 // Event handler for the MenuBar controlapos;s itemClick event.

private function menuHandler( event:MenuEvent) :void  {

  Alert.show(event. it...@action) ;   







}

  _  

From: Tracy Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009 8:10:58 PM
Subject: RE: [flexcoders] Flex Menu Basic Question

On your menu, specify a handler for the itemClick event.  That event will
have a reference to the item clicked, fro mwhich you can determine what
action to take.  I typically include a command or action or index
attribute in the menu data, then get that value in the handler, and use a
switch() statement to define the processing.

 

A side note, the top-level menu items do not dispatch itemClick events.  If
you want to take action from a top-level menu item, you also need to listen
to the plain click event, and conditionally process only the correct clicks.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of myworld100us
Sent: Saturday, April 25, 2009 11:02 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Menu Basic Question

 

 

I am posting a very basic question . I am trying to use Flex menus on my web
page . I have built the menu but I am not sure how to do navigation . All i
could do is if set Data for menu item i could do an alert to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file
, similarly if user clicks on Menu B it should redirect or load a separate
file. It similar to something link View Stack . But problem with View Stack
is I cant define children for MX: View Stack .

 

 





Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
Thanks That was useful . I did realize I had to use View Stack . But the 
problem in using View Stack was , (maybe again its my lack of knowledge )
Can I be able to have Children for View Stack . if so how .
In Example this ok .

 nx:vewStack
   HomeView
   SeacrhView
  LogoutView
/mx:ViewStack

But Can Home View have Childern say HomeView1. HomeView 2 under Home View ?





From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Sunday, April 26, 2009 9:42:53 AM
Subject: RE: [flexcoders] Flex Menu Basic Question





Menu is more generic(flexible) than that. 
Its only function is to display the options to the user and respond to their
gesture.  You have the ability to act on the users choice however you
choose.
 
So your issue is more basic than
that.  You need to think about and decide on your applications
architecture.  Look in the developers guide under the sections dealing
with designing applications.
 
It will not serve you well to continue
thinking in terms of “pages” when developing in Flex.  “Page”
is a term from html development (like Yahoo) and Flex application architecture
is very different.
 
Typically you begin with a navigation
component.  Popular ones are TabNavigator, Tree, and ViewStack.  ViewStack
is particularly useful with a menu.  You have your click handler set the 
ViewStack.selectedI ndex
according to some value in the menu data item.  Setting a ViewStack index
causes the “view” (kinda like a “page”) at that index
to be displayed.
 
So before you build your navigation
interface(like menu), you at least need to identify your navigation
architecture.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of guess what
Sent: Sunday, April 26, 2009 4:30
AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Menu Basic Question
 




Maybe I am confusing you . This is what is my understanding of Menu .
In genral we builld Menus and Their Childern we want users to be taken
to the page on which the item is clicked . it similar to View Stack (in terms
of Flex)
Say Suppose  I have Menu  
 Menu1 - When User Clicks on Menu I want the user to be taken to a
diiferent page for which Menu 1 is linked to . 
  Menu2 -Similarly on Menu 2 .
 
I am not even sure this is possible in Flex .
Something similar to this http://developer. yahoo.com/ yui/examples/ 
menu/example07. html
This is the Yahoo UI menu , when user clicks on Communication- Alerts -
it takes to alerts.yahoo. com
Similar;ly Shopping it takes to shopping.yahoo. com
 
 
 
 
 
 
 


 
From:Tracy
Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009
10:01:05 PM
Subject: RE: [flexcoders] Flex
Menu Basic Question
So you question has nothing to do with menu, is that correct?
 
What exactly do you mean by “redirect to
test.swf”?  What is you application architecture?  Is test.swf
an application, a component, a module, or what?
 
Tracy Spratt,
Lariat Services, development services available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of guess what
Sent: Saturday, April 25, 2009
11:26 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Menu Basic Question
 



To be precise what
do i do on the click event . I got the value of Action set on the menu item .
Can you kindly explain how do i recdirect to test.swf.
menuitem
label=Example data=top
  
   
 menuitem label=MenuItem A action=test.
swf/
  
   
 menuitem label=MenuItem B data=1B/
/menuitem
 // Event
handler for the MenuBar controlapos;s itemClick event.
  
 private function menuHandler( event:MenuEvent)
:void  {
  
   Alert.show(event.
it...@action) ;   
  
 
  
 
  
 
  
 }


 
From:Tracy Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009
8:10:58 PM
Subject: RE: [flexcoders] Flex
Menu Basic Question
On your menu, specify a handler for the itemClick event.  That
event will have a reference to the item clicked, fro mwhich you can determine
what action to take.  I typically include a “command” or
“action” or “index” attribute in the menu data, then
get that value in the handler, and use a switch() statement to define the
processing.
 
A side note, the top-level menu items do not dispatch itemClick
events.  If you want to take action from a top-level menu item, you also
need to listen to the plain click event, and conditionally process only the
correct clicks.
 
Tracy Spratt,
Lariat Services, development services available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of myworld100us
Sent: Saturday, April 25, 2009
11:02 PM

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Pedro Sena
If HomeView is some kind of container, yes, you can have it.(Containers
examples: Canvas, Box(VBox, HBox), and so on)

But for organization purpouses, I suggest you to put the homeView's child
inside your HomeView mxml component.

HTH

On Sun, Apr 26, 2009 at 6:35 PM, guess what myworld10...@yahoo.com wrote:



 Thanks That was useful . I did realize I had to use View Stack . But the
 problem in using View Stack was , (maybe again its my lack of knowledge )
 Can I be able to have Children for View Stack . if so how .
 In Example this ok .

  nx:vewStack
HomeView
SeacrhView
   LogoutView
 /mx:ViewStack

 But Can Home View have Childern say HomeView1. HomeView 2 under Home View
 ?



 --
 *From:* Tracy Spratt tr...@nts3rd.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Sunday, April 26, 2009 9:42:53 AM
 *Subject:* RE: [flexcoders] Flex Menu Basic Question

   Menu is more generic(flexible) than that.  Its only function is to
 display the options to the user and respond to their gesture.  You have the
 ability to act on the users choice however you choose.



 So your issue is more basic than that.  You need to think about and decide
 on your applications architecture.  Look in the developers guide under the
 sections dealing with designing applications.



 It will not serve you well to continue thinking in terms of “pages” when
 developing in Flex.  “Page” is a term from html development (like Yahoo) and
 Flex application architecture is very different.



 Typically you begin with a navigation component.  Popular ones are
 TabNavigator, Tree, and ViewStack.  ViewStack is particularly useful with a
 menu.  You have your click handler set the ViewStack.selectedI ndex
 according to some value in the menu data item.  Setting a ViewStack index
 causes the “view” (kinda like a “page”) at that index to be displayed.



 So before you build your navigation interface(like menu), you at least need
 to identify your navigation architecture.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
 *On Behalf Of *guess what
 *Sent:* Sunday, April 26, 2009 4:30 AM
 *To:* flexcod...@yahoogro ups.com
 *Subject:* Re: [flexcoders] Flex Menu Basic Question






   Maybe I am confusing you . This is what is my understanding of Menu .

 In genral we builld Menus and Their Childern we want users to be taken to
 the page on which the item is clicked . it similar to View Stack (in terms
 of Flex)

 Say Suppose  I have Menu

  Menu1 - When User Clicks on Menu I want the user to be taken to a
 diiferent page for which Menu 1 is linked to .

   Menu2 -Similarly on Menu 2 .



 I am not even sure this is possible in Flex .

 Something similar to this http://developer. yahoo.com/ yui/examples/
 menu/example07. 
 htmlhttp://developer.yahoo.com/yui/examples/menu/example07.html

 This is the Yahoo UI menu , when user clicks on Communication- Alerts - it
 takes to alerts.yahoo. com

 Similar;ly Shopping it takes to shopping.yahoo. com














  --

 *From:* Tracy Spratt tr...@nts3rd. com

 *To:* flexcod...@yahoogro ups.com
 *Sent:* Saturday, April 25, 2009 10:01:05 PM
 *Subject:* RE: [flexcoders] Flex Menu Basic Question

 So you question has nothing to do with menu, is that correct?



 What exactly do you mean by “redirect to test.swf”?  What is you
 application architecture?  Is test.swf an application, a component, a
 module, or what?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
 *On Behalf Of *guess what
 *Sent:* Saturday, April 25, 2009 11:26 PM
 *To:* flexcod...@yahoogro ups.com
 *Subject:* Re: [flexcoders] Flex Menu Basic Question





   To be precise what do i do on the click event . I got the value of
 Action set on the menu item . Can you kindly explain how do i recdirect to
 test.swf.

 menuitem label=Example data=top

 menuitem label=MenuItem A action=test. swf/

 menuitem label=MenuItem B data=1B/

 /menuitem

  // Event handler for the MenuBar controlapos;s itemClick event.

 private function menuHandler( event:MenuEvent) :void  {

   Alert.show(event. it...@action) ;







 }
   --

 *From:* Tracy Spratt tr...@nts3rd. com
 *To:* flexcod...@yahoogro ups.com
 *Sent:* Saturday, April 25, 2009 8:10:58 PM
 *Subject:* RE: [flexcoders] Flex Menu Basic Question

 On your menu, specify a handler for the itemClick event.  That event will
 have a reference to the item clicked, fro mwhich you can determine what
 action to take.  I typically include a “command” or “action” or “index”
 attribute in the menu data, then get that value in the handler, and use a
 switch() statement to define

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
I know I am going on and on . I seriously coudnt get Children Working . Can 
anyone link me to a basic example which has Naviagtors for View Stack with 
Children.





From: Pedro Sena sena.pe...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Sunday, April 26, 2009 3:29:00 PM
Subject: Re: [flexcoders] Flex Menu Basic Question





If HomeView is some kind of container, yes, you can have it.(Containers 
examples: Canvas, Box(VBox, HBox), and so on)

But for organization purpouses, I suggest you to put the homeView's child 
inside your HomeView mxml component.

HTH


On Sun, Apr 26, 2009 at 6:35 PM, guess what myworld100us@ yahoo.com wrote:




Thanks That was useful . I did realize I had to use View Stack . But the 
problem in using View Stack was , (maybe again its my lack of knowledge )
Can I be able to have Children for View Stack . if so how .
In Example this ok .

 nx:vewStack
   HomeView
   SeacrhView
  LogoutView
/mx:ViewStack

But Can Home View have Childern say HomeView1. HomeView 2 under Home View ?





From: Tracy Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Sunday, April 26, 2009 9:42:53 AM

Subject: RE: [flexcoders] Flex Menu Basic Question


Menu is more generic(flexible) than that. 
Its only function is to display the options to the user and respond to their
gesture.  You have the ability to act on the users choice however you
choose.
 
So your issue is more basic than
that.  You need to think about and decide on your applications
architecture.  Look in the developers guide under the sections dealing
with designing applications.
 
It will not serve you well to continue
thinking in terms of “pages” when developing in Flex.  “Page”
is a term from html development (like Yahoo) and Flex application architecture
is very different.
 
Typically you begin with a navigation
component.  Popular ones are TabNavigator, Tree, and ViewStack.  ViewStack
is particularly useful with a menu.  You have your click handler set the 
ViewStack.selectedI ndex
according to some value in the menu data item.  Setting a ViewStack index
causes the “view” (kinda like a “page”) at that index
to be displayed.
 
So before you build your navigation
interface(like menu), you at least need to identify your navigation
architecture.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of guess what

Sent: Sunday, April 26, 2009 4:30
AM

To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Menu Basic Question 
 




Maybe I am confusing you . This is what is my understanding of Menu .
In genral we builld Menus and Their Childern we want users to be taken
to the page on which the item is clicked . it similar to View Stack (in terms
of Flex)
Say Suppose  I have Menu  
 Menu1 - When User Clicks on Menu I want the user to be taken to a
diiferent page for which Menu 1 is linked to . 
  Menu2 -Similarly on Menu 2 .
 
I am not even sure this is possible in Flex .
Something similar to this http://developer. yahoo.com/ yui/examples/ 
menu/example07. html
This is the Yahoo UI menu , when user clicks on Communication- Alerts -
it takes to alerts.yahoo. com
Similar;ly Shopping it takes to shopping.yahoo. com
 
 
 
 
 
 
 


 
From:Tracy
Spratt tr...@nts3rd. com

To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009
10:01:05 PM
Subject: RE: [flexcoders] Flex
Menu Basic Question
So you question has nothing to do with menu, is that correct?
 
What exactly do you mean by “redirect to
test.swf”?  What is you application architecture?  Is test.swf
an application, a component, a module, or what?
 
Tracy Spratt,
Lariat Services, development services available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of guess what
Sent: Saturday, April 25, 2009
11:26 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Menu Basic Question
 



To be precise what
do i do on the click event . I got the value of Action set on the menu item .
Can you kindly explain how do i recdirect to test.swf.
menuitem
label=Example data=top
  
   
 menuitem label=MenuItem A action=test.
swf/
  
   
 menuitem label=MenuItem B data=1B/
/menuitem
 // Event
handler for the MenuBar controlapos;s itemClick event.
  
 private function menuHandler( event:MenuEvent)
:void  {
  
   Alert.show(event.
it...@action) ;   
  
 
  
 
  
 
  
 }


 
From:Tracy Spratt tr...@nts3rd. com
To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009
8:10:58 PM
Subject: RE: [flexcoders] Flex
Menu Basic Question
On your menu, specify a handler for the itemClick event.  That
event will have a reference to the item clicked, fro

RE: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Tracy Spratt
Google: flex viewstack example

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of guess what
Sent: Monday, April 27, 2009 12:11 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 






I know I am going on and on . I seriously coudnt get Children Working . Can
anyone link me to a basic example which has Naviagtors for View Stack with
Children.

 

 

  _  

From: Pedro Sena sena.pe...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Sunday, April 26, 2009 3:29:00 PM
Subject: Re: [flexcoders] Flex Menu Basic Question

If HomeView is some kind of container, yes, you can have it.(Containers
examples: Canvas, Box(VBox, HBox), and so on)

But for organization purpouses, I suggest you to put the homeView's child
inside your HomeView mxml component.

HTH

On Sun, Apr 26, 2009 at 6:35 PM, guess what myworld100us@ yahoo.com
mailto:myworld10...@yahoo.com  wrote:

 

Thanks That was useful . I did realize I had to use View Stack . But the
problem in using View Stack was , (maybe again its my lack of knowledge )

Can I be able to have Children for View Stack . if so how .

In Example this ok .

 

 nx:vewStack

   HomeView

   SeacrhView

  LogoutView

/mx:ViewStack

 

But Can Home View have Childern say HomeView1. HomeView 2 under Home View
?

 

 

  _  

From: Tracy Spratt tr...@nts3rd. com mailto:tr...@nts3rd.com 
To: flexcod...@yahoogro ups.com mailto:flexcoders@yahoogroups.com 

Sent: Sunday, April 26, 2009 9:42:53 AM


Subject: RE: [flexcoders] Flex Menu Basic Question

 

Menu is more generic(flexible) than that.  Its only function is to display
the options to the user and respond to their gesture.  You have the ability
to act on the users choice however you choose.

 

So your issue is more basic than that.  You need to think about and decide
on your applications architecture.  Look in the developers guide under the
sections dealing with designing applications.

 

It will not serve you well to continue thinking in terms of pages when
developing in Flex.  Page is a term from html development (like Yahoo) and
Flex application architecture is very different.

 

Typically you begin with a navigation component.  Popular ones are
TabNavigator, Tree, and ViewStack.  ViewStack is particularly useful with a
menu.  You have your click handler set the ViewStack.selectedI ndex
according to some value in the menu data item.  Setting a ViewStack index
causes the view (kinda like a page) at that index to be displayed.

 

So before you build your navigation interface(like menu), you at least need
to identify your navigation architecture.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of guess what


Sent: Sunday, April 26, 2009 4:30 AM

To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 





Maybe I am confusing you . This is what is my understanding of Menu .

In genral we builld Menus and Their Childern we want users to be taken to
the page on which the item is clicked . it similar to View Stack (in terms
of Flex)

Say Suppose  I have Menu  

 Menu1 - When User Clicks on Menu I want the user to be taken to a diiferent
page for which Menu 1 is linked to . 

  Menu2 -Similarly on Menu 2 .

 

I am not even sure this is possible in Flex .

Something similar to this http://developer. yahoo.com/ yui/examples/
menu/example07. html
http://developer.yahoo.com/yui/examples/menu/example07.html 

This is the Yahoo UI menu , when user clicks on Communication- Alerts - it
takes to alerts.yahoo. com

Similar;ly Shopping it takes to shopping.yahoo. com

 

 

 

 

 

 

 

  _  

From: Tracy Spratt tr...@nts3rd. com


To: flexcod...@yahoogro ups.com
Sent: Saturday, April 25, 2009 10:01:05 PM
Subject: RE: [flexcoders] Flex Menu Basic Question

So you question has nothing to do with menu, is that correct?

 

What exactly do you mean by redirect to test.swf?  What is you application
architecture?  Is test.swf an application, a component, a module, or what?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of guess what
Sent: Saturday, April 25, 2009 11:26 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 

 

To be precise what do i do on the click event . I got the value of Action
set on the menu item . Can you kindly explain how do i recdirect to
test.swf.

menuitem label=Example data=top

menuitem label=MenuItem A action=test. swf/

menuitem label=MenuItem B data=1B/

/menuitem

 // Event handler for the MenuBar controlapos;s itemClick event.

private function menuHandler( event:MenuEvent) :void

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Sam Lai
1 thing that might help is that ViewStack children all have to inherit
from Container I think. So are the children subclasses of VBox, Canvas
or similar?

On 4/27/09, Tracy Spratt tr...@nts3rd.com wrote:
 Google: flex viewstack example



 Tracy Spratt,

 Lariat Services, development services available

   _

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of guess what
 Sent: Monday, April 27, 2009 12:11 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex Menu Basic Question








 I know I am going on and on . I seriously coudnt get Children Working . Can
 anyone link me to a basic example which has Naviagtors for View Stack with
 Children.





   _

 From: Pedro Sena sena.pe...@gmail.com
 To: flexcoders@yahoogroups.com
 Sent: Sunday, April 26, 2009 3:29:00 PM
 Subject: Re: [flexcoders] Flex Menu Basic Question

 If HomeView is some kind of container, yes, you can have it.(Containers
 examples: Canvas, Box(VBox, HBox), and so on)

 But for organization purpouses, I suggest you to put the homeView's child
 inside your HomeView mxml component.

 HTH

 On Sun, Apr 26, 2009 at 6:35 PM, guess what myworld100us@ yahoo.com
 mailto:myworld10...@yahoo.com  wrote:



 Thanks That was useful . I did realize I had to use View Stack . But the
 problem in using View Stack was , (maybe again its my lack of knowledge )

 Can I be able to have Children for View Stack . if so how .

 In Example this ok .



  nx:vewStack

HomeView

SeacrhView

   LogoutView

 /mx:ViewStack



 But Can Home View have Childern say HomeView1. HomeView 2 under Home View
 ?





   _

 From: Tracy Spratt tr...@nts3rd. com mailto:tr...@nts3rd.com 
 To: flexcod...@yahoogro ups.com mailto:flexcoders@yahoogroups.com

 Sent: Sunday, April 26, 2009 9:42:53 AM


 Subject: RE: [flexcoders] Flex Menu Basic Question



 Menu is more generic(flexible) than that.  Its only function is to display
 the options to the user and respond to their gesture.  You have the ability
 to act on the users choice however you choose.



 So your issue is more basic than that.  You need to think about and decide
 on your applications architecture.  Look in the developers guide under the
 sections dealing with designing applications.



 It will not serve you well to continue thinking in terms of pages when
 developing in Flex.  Page is a term from html development (like Yahoo) and
 Flex application architecture is very different.



 Typically you begin with a navigation component.  Popular ones are
 TabNavigator, Tree, and ViewStack.  ViewStack is particularly useful with a
 menu.  You have your click handler set the ViewStack.selectedI ndex
 according to some value in the menu data item.  Setting a ViewStack index
 causes the view (kinda like a page) at that index to be displayed.



 So before you build your navigation interface(like menu), you at least need
 to identify your navigation architecture.



 Tracy Spratt,

 Lariat Services, development services available

   _

 From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
 Behalf Of guess what


 Sent: Sunday, April 26, 2009 4:30 AM

 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] Flex Menu Basic Question







 Maybe I am confusing you . This is what is my understanding of Menu .

 In genral we builld Menus and Their Childern we want users to be taken to
 the page on which the item is clicked . it similar to View Stack (in terms
 of Flex)

 Say Suppose  I have Menu

  Menu1 - When User Clicks on Menu I want the user to be taken to a diiferent
 page for which Menu 1 is linked to .

   Menu2 -Similarly on Menu 2 .



 I am not even sure this is possible in Flex .

 Something similar to this http://developer. yahoo.com/ yui/examples/
 menu/example07. html
 http://developer.yahoo.com/yui/examples/menu/example07.html

 This is the Yahoo UI menu , when user clicks on Communication- Alerts - it
 takes to alerts.yahoo. com

 Similar;ly Shopping it takes to shopping.yahoo. com















   _

 From: Tracy Spratt tr...@nts3rd. com


 To: flexcod...@yahoogro ups.com
 Sent: Saturday, April 25, 2009 10:01:05 PM
 Subject: RE: [flexcoders] Flex Menu Basic Question

 So you question has nothing to do with menu, is that correct?



 What exactly do you mean by redirect to test.swf?  What is you application
 architecture?  Is test.swf an application, a component, a module, or what?



 Tracy Spratt,

 Lariat Services, development services available

   _

 From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
 Behalf Of guess what
 Sent: Saturday, April 25, 2009 11:26 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] Flex Menu Basic Question





 To be precise what do i do on the click event . I got the value of Action
 set on the menu item . Can you kindly explain how do i recdirect to
 test.swf.

 menuitem label=Example data=top

 menuitem label

RE: [flexcoders] Flex Menu Basic Question

2009-04-25 Thread Tracy Spratt
On your menu, specify a handler for the itemClick event.  That event will
have a reference to the item clicked, fro mwhich you can determine what
action to take.  I typically include a command or action or index
attribute in the menu data, then get that value in the handler, and use a
switch() statement to define the processing.

 

A side note, the top-level menu items do not dispatch itemClick events.  If
you want to take action from a top-level menu item, you also need to listen
to the plain click event, and conditionally process only the correct clicks.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of myworld100us
Sent: Saturday, April 25, 2009 11:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Menu Basic Question

 






I am posting a very basic question . I am trying to use Flex menus on my web
page . I have built the menu but I am not sure how to do navigation . All i
could do is if set Data for menu item i could do an alert to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file
, similarly if user clicks on Menu B it should redirect or load a separate
file. It similar to something link View Stack . But problem with View Stack
is I cant define children for MX: View Stack .





Re: [flexcoders] Flex Menu Basic Question

2009-04-25 Thread guess what
Thanks . I am so newbie. Can you provide me a sample example .




From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Saturday, April 25, 2009 8:10:58 PM
Subject: RE: [flexcoders] Flex Menu Basic Question





On your menu, specify a handler for the
itemClick event.  That event will have a reference to the item clicked, fro
mwhich you can determine what action to take.  I typically include a “command”
or “action” or “index” attribute in the menu data, then
get that value in the handler, and use a switch() statement to define the
processing.
 
A side note, the top-level menu items do
not dispatch itemClick events.  If you want to take action from a top-level
menu item, you also need to listen to the plain click event, and conditionally
process only the correct clicks.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of myworld100us
Sent: Saturday, April 25, 2009
11:02 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Menu
Basic Question
 




I am posting a very basic question . I am trying to
use Flex menus on my web page . I have built the menu but I am not sure how to
do navigation . All i could do is if set Data for menu item i could do an alert
to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file ,
similarly if user clicks on Menu B it should redirect or load a separate file.
It similar to something link View Stack . But problem with View Stack is I cant
define children for MX: View Stack .



  

Re: [flexcoders] Flex Menu Basic Question

2009-04-25 Thread guess what
To be precise what do i do on the click event . I got the value of Action set 
on the menu item . Can you kindly explain how do i recdirect to test.swf.
menuitem label=Example data=top
menuitem label=MenuItem A action=test.swf/
menuitem label=MenuItem B data=1B/
/menuitem
 // Event handler for the MenuBar controlapos;s itemClick event.
private function menuHandler(event:MenuEvent):void  {
  Alert.show(event.it...@action);   



}


From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Saturday, April 25, 2009 8:10:58 PM
Subject: RE: [flexcoders] Flex Menu Basic Question





On your menu, specify a handler for the
itemClick event.  That event will have a reference to the item clicked, fro
mwhich you can determine what action to take.  I typically include a “command”
or “action” or “index” attribute in the menu data, then
get that value in the handler, and use a switch() statement to define the
processing.
 
A side note, the top-level menu items do
not dispatch itemClick events.  If you want to take action from a top-level
menu item, you also need to listen to the plain click event, and conditionally
process only the correct clicks.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of myworld100us
Sent: Saturday, April 25, 2009
11:02 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Menu
Basic Question
 




I am posting a very basic question . I am trying to
use Flex menus on my web page . I have built the menu but I am not sure how to
do navigation . All i could do is if set Data for menu item i could do an alert
to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file ,
similarly if user clicks on Menu B it should redirect or load a separate file.
It similar to something link View Stack . But problem with View Stack is I cant
define children for MX: View Stack .



  

RE: [flexcoders] Flex Menu Basic Question

2009-04-25 Thread Tracy Spratt
So you question has nothing to do with menu, is that correct?

 

What exactly do you mean by redirect to test.swf?  What is you application
architecture?  Is test.swf an application, a component, a module, or what?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of guess what
Sent: Saturday, April 25, 2009 11:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Menu Basic Question

 






To be precise what do i do on the click event . I got the value of Action
set on the menu item . Can you kindly explain how do i recdirect to
test.swf.

menuitem label=Example data=top

menuitem label=MenuItem A action=test.swf/

menuitem label=MenuItem B data=1B/

/menuitem

 // Event handler for the MenuBar controlapos;s itemClick event.

private function menuHandler(event:MenuEvent):void  {

  Alert.show(event.it...@action);   







}

  _  

From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Saturday, April 25, 2009 8:10:58 PM
Subject: RE: [flexcoders] Flex Menu Basic Question

On your menu, specify a handler for the itemClick event.  That event will
have a reference to the item clicked, fro mwhich you can determine what
action to take.  I typically include a command or action or index
attribute in the menu data, then get that value in the handler, and use a
switch() statement to define the processing.

 

A side note, the top-level menu items do not dispatch itemClick events.  If
you want to take action from a top-level menu item, you also need to listen
to the plain click event, and conditionally process only the correct clicks.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of myworld100us
Sent: Saturday, April 25, 2009 11:02 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Menu Basic Question

 





I am posting a very basic question . I am trying to use Flex menus on my web
page . I have built the menu but I am not sure how to do navigation . All i
could do is if set Data for menu item i could do an alert to get Data .
What I want is if user click on Menu A it should redirect or load a SWF file
, similarly if user clicks on Menu B it should redirect or load a separate
file. It similar to something link View Stack . But problem with View Stack
is I cant define children for MX: View Stack .