Flasher Archive

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


Subject: FLASH: going to frame-X
From: John King
Date: Wed, 1 Dec 1999 01:46:20 GMT

This is kind of long but it might be helpful for everyone to see the problem and a solution.
I have a pair of sliderbars that control what displays in the movieclip above them. They control the MC by using telltarget to
goto and play the appropriate frame.

-Each bar has 5 points to stop at (1,2,3,4, and 5)
-I can have a series of nested if-then-else statements that will issue a telltarget and will goto and play the appropriately
labeled frame in a timeline. For one bar, that's 5 statements.
-For two bars, that's 25.

Alternatively:
-I can concatenate to create a variable that has the information of both bars (e.g., if sliderbarA and B were set to 1 and 2 ... I
would make a variable that says that.
var "bar_info" = "barA_" & position-of-barA & "_barB_" & position-of-barB
would give: "barA_1_barB_2"
-On the MC's timeline there are frames, each labeled with a different one of the 25 possibilities (barA1barB1 through barA5barB5)
...
-Then I could just issue a tell target and say goto and play "barA_1_barB_2"

This doesn't work.

You can get the "goto ("[a variable]") to work if you setvar within the telltarget tags.
Here's an example using a desired frame number, the same applies to a desired tag.

set var "gotoframe" = 5
begin tell target ...
goto and play (gotoframe)
end tell target
DOESN'T work

begin tell target ...
set var "gotoframe" = 5
goto and play (gotoframe)
end tell target
WORKS great

and this doesn't work either:
set var "yes" = 5
begin tell target ...
set var "gotoframe" = yes
goto and play (gotoframe)
end tell target

Using eval( ) doesn't help.
Everything within the telltarget tags is its own universe. (?)

I haven't tried making separate MC's for each of the possibilities. I could have blank frames for frame 1 of each MC but ...
could I say something like ... telltarget ([a_variable]), goto and play ???

There may be a different approach. I'm sure I've missed something in setting up the overall architecture. That'd be fine, it's
starting to make me nuts. Hope you can help. johnkatu [dot] arizona [dot] edu



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: going to frame-X, Colin Moock

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