Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: Variables : What am I doing wrong |
| From: | Steve Mendizabal |
| Date: | Thu, 25 May 2000 21:03:44 +0100 |
Hello. I hope that someone can help me. I am almost at my wits end.
Here is the situation:
I have a main timeline with 2 buttons (there will be a total of five)
They are blank buttons, just a rectangular hit area. Under each of
these I have text. They have this action attached them:
On (Roll Over)
Set Variable: "who" = "about"
Set Variable: "move" = "go"
End On
On (Roll Out)
Set Variable: "who" = "about"
Set Variable: "move" = "stop"
End On
I then have 2 controller movies that have the following:
frame 2:
If (/:move eq "go")
Go to and Play ("who")
Else
Go to and Play (_currentframe -1)
End If
So you roll over the button *poof* the move var get set to go. On to
frame 10 which has this:
If (/:who eq "about")
Set Variable: "MaxUp" = "295"
Go to and Play ("MaxUp")
Else
Set Variable: "MaxDown" = "320"
Go to and Play ("maxDown")
End If
on to MaxUp "frame 15":
Set Variable: "OrigY1" = GetProperty ( "../about", _y)
Set Variable: "yPos1" = GetProperty ("../about", _y)
frame 16:
Set Property ("../about", Y Position) = yPos1
frame 17 (maxUp2):
If (yPos1 <= MaxUp)
Go to and Play ("upHold")
If (/:move eq "stop")
Go to and Play ("return")
End If
Else
Set Variable: "yPos1" = yPos1 -2
Go to and Play (_currentframe -1)
End If
upHold (frame20):
nothing
frame21:
If (/:move eq "stop")
Go to and Play ("return")
If (/:move eq "stop")
If (/:who eq "about")
Go to and Play ("maxDown")
End If
End If
Else
Go to and Play (_currentframe -1)
End If
frame25:
Set Property ("../about", Y Position) = yPos1
frame26 (return):
If (yPos1 >= origY1)
Go to and Play (1)
Else
If (/:move eq "go")
If (/:who eq "about")
Go to and Play ("maxUp2")
End If
Else
Set Variable: "yPos1" = yPos1 + 1
Go to and Play (_currentframe - 1)
End If
End If
Now. This seems to work fine for the first few times. You start
moving a little quicker and then they (the buttons) start to stick at
different _y positions then I have defined. Also it seems that if
one is at its "max" and you roll to the other button it keeps them
both at "max". After awhile they just stick at "max" permanently.
There will be a total of 5 buttons and they will float down if they
aren't the ones that are rolled over.I DONT WANT THE ANSWERS just
some suggestions. Feel free to mail offlist and tell me to forget it
and become a potato farmer.
Thanks
--
s t e v e | f u s e m e d i a
m e n d i z a b a l | s t u f f t h a t d o e s s t u f f
4 0 4 . 5 2 3 . 6 7 0 0
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 help
Replies
Re: FLASH: Variables : What am I doing w, Louis L. Gambogi III
Re: FLASH: Variables : What am I doing w, Cheri Harder
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

