Flasher Archive

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


Subject: FLASH: string literal or expression
From: M. Joos
Date: Tue, 30 May 2000 19:06:05 +0100

Hi to all, (very nice list btw - except for Louis)
I have a problem which drives me grazy and I suspect that it has
something to do with using either string literal or expression in set
property.
Usually I set property of an mc by the following:
set property ("/mc",x scale,199)

But what if I want to use a string function like substring ?
I wanted to do some textfx ... doesn4t work.
Below is the action script of the four key frames.

In frame one I have 27 mc instances called a,b,c representing symbols
of letters.

Frame one:
Set Variable: "text" = "if this would work"
Set Variable: "abc" = "abcdefghijklmnopqrstuvwxyz"
Set Variable: "count" = 1
Set Variable: "xpos" = xpos+20

Frame 2: (I want the letters to dissapear ... this part works)
Loop While (count <27)
Set Property (substring(abc,count,1), Visibility) = 0
Set Variable: "count" = count+1
End Loop
Set Variable: "count" = 1

Frame 3: (here it doesn't work)
If (count <=Length (text))
Set Property (substring(text,count,1), Visibility) = 1
Set Property (substring(text,count,1), X Position) = "xpos"
Set Variable: "xpos" = xpos+20
Set Variable: "count" = count+1
End If

Frame 4:
Go to and Play (3)

I am very grateful for any hint what's wrong here

Markus

* Markus Joos (Dipl. Psych.)
* Dresden University of Technology
* joosyatpsy1 [dot] psych [dot] tu-dresden [dot] de







flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
World Animation Celebration - Big Internet Animation Pow Wow Discount Offer

Register before May 25 mention flasher and save 25%!! www.wacfest.com

Be discovered, get a job or have your web series picked up. A big talent search for Shockwave
and Flash animators is happening May 30-June 4 in Hollywood. Featuring Rob Burgess, Matt
Groening, Brad Bird and more. www.wacfest.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]