Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Setting properties through a variable |
From: | Jose M. Rubio/DoubleYou |
Date: | Sun, 4 Jun 2000 21:14:51 +0100 |
Hi all,
There's something here I'm doing wrong, but I cannot figure it out at the moment.
That's the situation:
-I've got a movieclip called "bar" which has its x_position set to 100 at the beginning.
-In my first frame I have a variable called "myx" set to "100" and another one called "masterx" set to "0".
-Some frames later I've put a stop action and three buttons. Each one sets "masterx" to a specific value (100, 200, 300) and makes the movie go to frame 30.
In that frame I have the following code:
If (myx<masterx)
Go to and Play (40)
Else If (myx>masterx)
Go to and Play (50)
End If
-On frame 40 there's the following code:
Set Property ("bar", X Position) = "myx"
-On frame 41 that one:
Set Variable: "myx" = myx+1
Go to and Play (30)
-Frame 50 and 51 have the same code except that in the Set Variable action which is
Set Variable: "myx" = myx-1
The idea is to control the position of the "bar" movieclip through the buttons. It seems quite simple, but I can't make it work. The movie just gets to frame 30 and begins to loop between frame 41 and 30, but the "bar" MC doesn't move.
Any idea?
TIA
-----------------------------
Jose M. Rubio
DoubleYou
josedoubleyou [dot] com
http://www.doubleyou.com
Tel. +34 93 292 3110
Fax. +34 93 292 2197
ICQ Number: 68390036
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 helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]