Flasher Archive

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


Subject: Re: FLASH: LoadMovie, pathnames, and tell targeting
From: Muzak
Date: Fri, 8 Dec 2000 05:28:57 GMT

I have attached the AS to a movieclip in the main movie (level0) and with an 'enterframe' event, so it loops.
The if statement needs a double '=' --> comparisson, not an assignment.
i also used F5 dot syntax, so no 'tell target'.

onClipEvent (enterFrame) {
percent = _level1.getBytesLoaded()/_level1.getBytesTotal();
if (percent == 1) {
_level1.main.Play();
_level0.gotoAndPlay("introstart");
}
}

HTH,
Muzak

oh, the target mc 'main' has to be present (in the current keyframe) in the level1 timeline.

----- Original Message -----
Subject: Re: FLASH: LoadMovie, pathnames, and tell targeting


> While we are on the subject here is a simple question,
>
> I have a movieX in _level0. I load MovieY into level 1 of Movie X.
> I have a movie clip that is set to stop inside of movie Y with instance name
> "main".
> When movie Y is fully loaded, I want Movie X to tell the movie clip inside
> MovieY to 'play'. Simple right?
>
> here is my script:
> ----------
> percent = _level1.getBytesLoaded()/_level1.getBytesTotal();
> if (percent = 1) {
> tellTarget ("_level1/main") {
> play ();
> }
> gotoAndPlay ("introstart");
> }
> ------------
> The preload thing works great, what doesn't work is the tell target. When I
> run this movie I get an error saying, " Target not found:
> Target="_level1/main" Base="_level0"".
>
> Is there a special way of tell targeting in flash 5 that i don't know about?
> Is _level1/main improper syntax? Am I losing it? I have tried a million
> combinations and nothing works.
>
> I've been staring out this for quite a while now and maybe I am not seeing
> something simple.
> If someone could just put me out of my misery, it would be much appreciated.
>
> -sohrab



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: LoadMovie and pathnames, ryan schroeder
  Re: FLASH: LoadMovie, pathnames, and tel, Sohrab Pirayesh

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