Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Variable in nested MC
From: Margo
Date: Tue, 14 Mar 2000 17:02:19 GMT

Daniel Guerrier <dan_guerrieratyahoo [dot] com> wrote:

>What is the syntax to access and set a text variable
>in a MC that is nested with in another MC?
>I have a MC named child with a textfield called title,
>nested inside a MC called parent. How do I set the
>title variable from the main time line or another MC?

Hi, Daniel...

FRAME SCRIPT ON MAIN TMELINE:
Begin Tell Target ("/parent/child")
Set Variable: "title" = "This is text that should appear in text
field."
End Tell Target

FRAME SCRIPT ON TIMELINE OF MC NAMED PARENT2:
Begin Tell Target ("../parent/child")
Set Variable: "title" = "This is text that should appear in text
field."
End Tell Target

FRAME SCRIPT ON TIMELNE OF MC NAMED CHILD2:
Begin Tell Target ("../../parent/child")
Set Variable: "title" = "This is text that should appear in text
field."
End Tell Target

The Child2 MC is nested in the Parent 2 MC, just as the original Child and
Parent MCs. Every ../ makes Flash look one level higher than where the
script is placed.

Hope this helps,

Margo Matthew
margoattechead [dot] com




flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]