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"  />

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

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx=""
 borderStyle="none" height="2000" xmlns:buttons="*"
private function init():void {
here i want to pass the lable value to  WorkflowSearchEvent"label",label);
var workflowevent:WorkflowSearchEvent = new WorkflowSearchEvent(label);

any idea?
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros