Hi folks,
Apologies if this has been answered. I don't think I'm searching for
the right words.
I have a "global" control which is in a separate MXML file included
by the master file. Very simple, here's a scaled down version:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%">
<mx:Script><![CDATA[
public function setMasterDate(d:Date,fmt:String):void
{
MasterDate.text = d.format(fmt);
}
]]>
</mx:Script>
<mx:Label id="MasterDate" text="October 13, 2006"
fontFamily="Georgia" fontSize="16" textAlign="left" x="85"
width="201.5" height="26" fontWeight="bold" top="9"/>
</mx:Canvas>
>From another MXML file, I would like to update the "MasterDate" in
this file, or call setMasterDate().
I've tried "import dir.file;", "dir.file.setMasterDate()", and
numerous other ways.
Is there a way to access functions inside another file?
Or alternatively, is there a way to do this that I'm missing?
TIA
Mike
--
diabetic? http://www.diabetesforums.com
Albert Einstein - "It's not that I'm so smart, it's just that I stay with problems longer." __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- Re: [flexcoders] Pass Data or call function in another MXML ... Clint Tredway
Reply via email to
how are you including this in the master file?
On 10/18/06, Mike Crowe <[EMAIL PROTECTED]> wrote:

