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