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="{modelviewd
ata.workfl
owviewstat
e}">
<workflowNavigation:Workfl
owView
label="{(modelviewdata.doesWork
flowExist == false ? 'Create New Profile' : (modelviewdata.showWorkFlo
w == true ? modelviewdata.selectedWork
flowid : ''))}" 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="or
g.efflex.m
x.viewStac
kEffects.*
"
borderStyle="none" height="2000" xmlns:buttons="com.ms.ewq.
view.compo
nent.butto
ns.*"
creationComplete="init()">
..
<mx:Script>
<![CDATA[
private function init():void {
here i want to pass the lable value to WorkflowSearchEvent
mx.controls.Alert.show("la
bel",label
);
var workflowevent:WorkflowSear
chEvent = new WorkflowSearchEvent(
label);
workflowevent.dispatch();
}
any idea?
thanks
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.