Flasher Archive

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


Subject: Re: Getting worse RE: FLASH: Action Script problem using telltarget
From: Helen Triolo
Date: Thu, 19 Oct 2000 13:55:47 +0100

Samir,

On second look, I see what the problem is (or might be) and it's a
familiar one. framechange is a variable on the main timeline, but your
tellTarget thinks it's in the gallery movieclip. If this is to be
exported as F4, change your statement to

tellTarget ("gallery") {
gotoAndStop (/:framechange);

or, if you don't need to export to F4, then no tell target needed:

_root.gallery.gotoAndStop(_root.framechange);

(And if neither of those works, then put a statement like this

trace("xchange=" + xchange + " framechange=" + framechange);

before the tellTarget to make sure the vars are what you think they are.
(And make sure the mc instance name is gallery and that the frame
pointed to by var framechange is already loaded when you do the command,
etc etc)

Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist

Samir Ahmed wrote:
>
> Hey Helen,
>
> It seems to be the telltarget/goto (expression) command, soesnt work at all.
>
> I couldnt find any reference of this command aswell.
>
> Samir Ahmed
> Web Development Team Leader
> http://www.SheikhMohammed.co.ae
> Tel: +9714-3322220
> Fax: +9714-3322202
>
> -----Original Message-----
> From: Helen Triolo [designerati-technica [dot] com (mailto:designerati-technica [dot] com)]
> Sent: 19 October 2000 16:01
> To: flasheratchinwag [dot] com
> Subject: Re: Getting worse RE: FLASH: Action Script problem using
> telltarget
>
> Put a trace statement (or several) in to see which of your variables is
> not what you expect.
>
> Regards,
> Helen
> ---------------------------------------------------
> Flash 5 Journal: http://i-technica.com/flash5
> Flash Q&A archive: http://i-technica.com/flashlist
>
> Samir Ahmed wrote:
> >
> > Hi Guys,
> >
> > Still waiting in peril for an answer!
> >
> > Hi Guys,
> >
> > I am working with flash 5 and I am facing a scripting problem. I want a
> > movie clip to go to a certain frame which is calculated by a simple
> > mathematic formula. The script is as follows:
> > startDrag ("move", true);
> > x = 225-move._x;
> > frame = getProperty (gallery, _currentframe);
> > tframe = getProperty (gallery, _totalframes);
> > xmain = mover._x;
> > xchange = int (-((x^2)/10));
> > xnew = xmain-xchange;
> > framechange = frame-xchange;
> > setProperty ("mover", _x, xnew);
> > tellTarget ("gallery") {
> > gotoAndStop (framechange);
> > }
> >
> > The movie clip in question is the <gallery> clip which i am
> <telltarget>ing
> > to the new frame. Nothing happens!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: Getting worse RE: FLASH: Action Scri, Samir Ahmed

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