Flasher Archive

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


Subject: Re: FLASH: targeting a nested movie clip
From: Peter Conn
Date: Fri, 17 Nov 2000 05:11:08 GMT

Helen,
I appreciate the help but whatever the problem is, these don't fix it.

> 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);
> }
> }

This syntax continues to say that it cannot find the target whether I use
"/" or "."


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

This syntax just does nothing.

To test that I'm not a total moron, I put a similar button on the same
timeline as the roofinst and it works fine. I just cannot for the life of me
trigger it to play from a timeline one down.

not only is this stopping me from finishing my real project, but it's
driving me loony.

thanx for any help

Peter

> 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
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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, 2Nerotik

Replies
  Re: FLASH: targeting a nested movie clip, Helen Triolo

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