Flasher Archive

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


Subject: RE: [flasher] Variable Question
From: AndyA
Date: Mon, 26 Mar 2001 01:25:44 -0000

Hey Steve,

I'm not very good at Flash4 notation, but here goes. You had

eval("x" add n "=" add _xmouse);

Try:

eval("x" add n) = _xmouse

What you seemd to be trying to do was to use eval() to evaluate a string to
a command. This will not work. eval() will evaluate names. You cannot use is
to evaluate whole actions or commands.

As to looping in one frame, the short answer is no. Flash redraws the screen
after running the code in a frame (or sometimes after an event). You can do
this all sorts of differnt ways though, with control movieclips that just
loop between two frames and using onClipEvenet and all sorts. It doesn't
always have to be a loop in your main timeline is what I'm saying.

Take a look at http://www.moock.org/webdesign/lectures/ff2001sfMotion/ for a
great tutorial on the possibilities.

Andy




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