Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: moving movie clips with ActionScript |
| From: | rod |
| Date: | Fri, 4 Feb 2000 13:02:34 GMT |
In creating a menu system I am duplicating a movie clip which contains a
Button and Text field.
I have been able to set the text of each button and its position.
By I have been really struggling to animate their creation e.g.
Rather than each button suddenly appearing in its place, I would like them
to move into place from a fixed position.
I'm having trouble setting up the score.
This is how I am trying to do it....
Frame 1
/* set a variable to the number of MenuItems
Set Variable: "NoOfMenuItems " = 6
/* Make all the menu item by using duplicate MC.
set variable "i" = 1
Loop While (i < NoOfMenuItems + 1)
Duplicate Movie Clip ("/MyBaseMenu", "Menu" & i, i)
Set Variable: "/Menu" & i & ":MenuText" = i
Set Property ("/Menu" & i, Y Position) = 50 * i
Set Variable: "i" = i +1
End Loop
/*set a variable to the width of the movie clip
set variable("menuWidth") = GetProperty("/MyBaseMenu", _width)
/*set a counter to 1
set variable "Step" = 1
Frame 2
call("mover")
Frame 3
If (Step < menuWidth)
Go to Previous Frame
End If
Frame 4
Stop
Frame 5 "Mover"
Set Variable: "j" = 1
Loop While (j < NoOfMenuItems + 1)
Set Property ("/Menu" & j, X Position) = Step*j
Set Variable: "j" = j + 1
End Loop
Set Variable: "Step" = Step + 1
-----------------------------------------------------
The Menus move Down (set in frame 1) but they don't move across as specified
in frame 5
Any thoughts/comments...
rod gosse
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

