MP

Moshofsky/Plant Creative Services

 

ShadowText

1 Flash 4 cast member used for multiple, modifiable text sprites and translucent drop shadows with the setVariable Lingo command (requires Shockwave 7.02). Get the source DIR and FLA in a SIT archive.
Windows users, get Aladdin Expander for Windows to use this file.

I posed the idea of a Generator Xtra to Macromedia last year, but they didn't seem to think that they would ever develop such a thing at that time. Haven't heard anything else since.

That said, there are two Lingo commands usable with Flash 4 sprites that you can use to get a lot of the same functionality.

The first thing is to make sure that your Flash sprites don't use the Stop action in their main timeline. They should be either playing or in a continual loop (Go to and Play).

You can directly address variables at the main timeline level from Lingo with the getvariable and setvariable commands. (Look for Macromedia's technote 13986 on their site). The variable can just be a value or it can be a text field which will show the new value. You need to pass strings.

For commands inside movie clips and in loaded movies, you've got to be a little more creative. Set a variable in the Flash movie, then check it in your loop script.

I set a flag variable, a variable for the target name, and another for the value from Lingo. Then in FlashI check the flag, and if it's "set" I evaluate the other variables to get the name and value of the variable I want to change. Something like:

setVariable sprite 1, "flag", "true"
setVariable sprite 1, "varname", "movieclip:name"
setVariable sprite 1, "varval", "Darrel"

Then, in my Flash loop:

If (flag) = "true"
   Set Variable: Eval (varname) = varval
   Set Variable: "flag" = False
End If

You can use much the same technique to set properties and execute other commands (Duplicate, anyone?) inside the Flash movie. It's a little more work, but it's pretty cool.

visitors

Direct Oregon

 

About Us
Plant's Review of Books
DirectOregon
Writing
Links

 

 

 

 

 

 

 

Multimedia Design by Brute Force