Flasher Archive

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


Subject: Re: FLASH: Re: Newbie Scripter-variables in "go to frame"?
From: Robert Bleeker
Date: Fri, 7 Apr 2000 01:49:15 +0100

OOPS,

Have to change the targeting for the variable!!!

Go to and Stop (../:i+1) <-- PROBLEM 2

Sorry, you can see how easy it is to get this wrong.

Robert



on 7/4/00 9:50 AM, Robert Bleeker at rbleekeratcadre [dot] com [dot] au wrote:

> Hi Greg,
>
> I think there are two problems in your script.
>
> Set Variable: "i" = 1
> Loop While (i <= vCounts)
> COMMENT: In this if statement you were missing the last bracket and
> what I think you were trying to do with the get() statement should be
> Eval().
> If (Var1 < Eval("Var2"&i)) <-- PROBLEM 1
> Begin Tell Target ("/MC")
> Comment: Within this tell target statement your "i"
> variable has to be addressed as if you are looking for it from the target
> location.
> Go to and Stop (/MC:i+1) <-- PROBLEM 2
> End Tell Target
> Else
> -- Blah Blah
> End If
> Set Variable: "i" = i + 1
> End Loop
>
>
> Hope you can work out the comments and fixes above.
>
> Robert
>
>
> on 7/4/00 7:45 AM, Greg Nelson at gnelsonatlamar [dot] colostate [dot] edu wrote:
>
>> Hello all,
>> My first posting after reading and picking up good hints for
>> a long time ...
>>
>> I've been using FLASH for animation for years, but now I
>> have to script, and I'm no whiz even though I can get by
>> with Lingo. I would appreciate some help.
>> My animation loops on two frames
>> Everything works except:
>> I have a subroutine that includes the following Loop While
>>
>>
>> Set Variable: "i" = 1
>> Loop While (i <= vCounts)
>> If (Var1 < get("Var2"&i)
>> Begin Tell Target ("/MC")
>> Go to and Stop (i+1) <-- PROBLEM?
>> End Tell Target
>> Else
>> -- Blah Blah
>> End If
>> Set Variable: "i" = i + 1
>> End Loop
>>
>> Apparently, when I use the Expression option in the tell
>> target "go to frame" I can't get it to recognize any
>> variables--just hard wired numbers (although I get no error messages).
>>
>> What is the Expression option for in this dialog box and is
>> there a way to script this?


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Re: Newbie Scripter-variables, Greg Nelson

Replies
  Re: FLASH: Re: Newbie Scripter-variables, Robert Bleeker

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