I found a solution to a static question. I need a quick notebook, access to which could be found anywhere in the mobile application, without editing one instance left open on another screen.
I created the mxml control for the memo pad and then placed it inside the declarations section of a top-level mxml application. In each view that I wanted the note to appear, I added:
import mx.core.FlexGlobals; import components.QuickMemo; private var memo:QuickMemo;
At the end of the creation:
memo = FlexGlobals.topLevelApplication.memo;
In the viewActivation code, I added:
memo.visible = false; addElement(memo);
In the viewDeactivation code, I included:
removeElement(memo);
The net effect is that at any time there is only one copy of the note, and one copy opens in any state that existed in the last view in which it appeared.
source share