Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

passing label value on view click

Avatar of royjayd
royjayd asked on
Apache Flex
5 Comments1 Solution308 ViewsLast Modified:
hi guys
I am tring to pass a label from outer mxml to inner mxml

I have a view stack like this
<mx:ViewStack id="workflowViewStack" width="100%" borderColor="#000000" cornerRadius="4" selectedIndex="{modelviewdata.workflowviewstate}">              
<workflowNavigation:WorkflowView label="{(modelviewdata.doesWorkflowExist == false ? 'Create New Profile' : (modelviewdata.showWorkFlow == true ? modelviewdata.selectedWorkflowid : ''))}" height="3000" width="3000"  />
</mx:ViewStack>      

this is my WorkflowView.mxml. When WorkflowView is clicked i want to invoke the init() function and pass the label value to it.

WorkflowView.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:viewStackEffects="org.efflex.mx.viewStackEffects.*"  
 borderStyle="none" height="2000" xmlns:buttons="com.ms.ewq.view.component.buttons.*"
creationComplete="init()">
..
<mx:Script>
             
<![CDATA[
private function init():void {
here i want to pass the lable value to  WorkflowSearchEvent
mx.controls.Alert.show("label",label);
var workflowevent:WorkflowSearchEvent = new WorkflowSearchEvent(label);
workflowevent.dispatch();
}

any idea?
thanks
ASKER CERTIFIED SOLUTION
Avatar of dgofman
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers