Flasher Archive

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


Subject: RE: FLASH: load movie and location
From: Paul Willoughby
Date: Mon, 11 Dec 2000 12:07:50 GMT

Clock86ataol [dot] com wrote on 10 December 2000:

> Also, did I understand the manual to say the tellTarget is
> less prefered than
> the "with" command? Can anyone give me a simple script for
> using "with"
> instead of tellTarget. Or where to look for help?
>
> thanks
> david

You don't need any 'with' or 'TellTarget' to perform a single operation
on a movieclip. In expert mode you can type stuff like:

_root.myMC1.gotoAndPlay(2);
_root.myMC2.gotoAndPlay(10);

The 'with' action lets you perform a number of operations 'with' a movie
clip or other object. It's all documented in the manual. Here's an
example:

with (_root.myMC){
_x = 250;
_y = 150;
gotoAndPlay(2);
}

However, on another list I was told that using 'with' is harder on the
player/processor than writing each action individually (like in the
first example) because it takes more CPU cycles. Also, 'with' has been
deprecated in the latest ECMA standard revision, so it may become
deprecated in the next version of Flash.
If you find yourself repeatedly having to set a whole bunch of similar
properties for an MC it might be better to write a function you can call
from the MC.

hth

paul

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


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