Flasher Archive

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


Subject: Re: FLASH: targeting a nested movie clip
From: Helen Triolo
Date: Fri, 17 Nov 2000 00:55:08 GMT

Peter,

For a button on a timeline which also has "carinst" in it, and "carinst"
contains "roofinst", I think you'd need either

on (press) {
tellTarget ("carinst/roofinst") { // for F4 compatibility
gotoAndPlay (1);
}
}

or

on (press) {
carinst.roofinst.gotoAndPlay (1); // F5 syntax
}

You might need to specify the whole path in that F5 syntax -- I'm not
sure if the relative path as given will work (ie, if carinst is on the
main timeline then use _root.carinst.roofinst.gotoAndPlay(1), or if not
then include the other mc's from root on up).

Regards,
Helen
-----------------------------------------------------
i-Technica � http://i-technica.com � 301.424.6037
developer resources: http://i-technica.com/whitestuff

Peter Conn wrote:
>
> I am unable to target an instance of a movie clip which is nested in a movie
> clip on the timeline of the controller object.
>
> so,if i write action script for a button on the same timeline containing the
> instance named "carinst" which contains a movie clip which I would like to
> play whose instance is named "roofinst"
>
> on (press) {
> tellTarget ("carinst.roofinst") {
> gotoAndPlay (1);
> }
> }
>
> No matter how I call it, I get an error:
> Target not found: Target="carinst.roofinst" Base="_level0"
>
> � all instances of the movie clips are named and I actually get the
> reference by picking it in the target path picker window so it knows it's
> there.
> � i have tried relative or absolute, makes no difference
> � all the movie clips are extended to the length of the main timeline so it
> is not a matter of it not being on the stage
>
> If i put the mc in the same level as the controller, no problem.
> But as soon as i put it inside another mc, i get the error that it can not
> find it.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: targeting a nested movie clip, Peter Conn

Replies
  FLASH: targeting a nested movie clip, Peter Conn

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