Flasher Archive

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


Subject: Re: FLASH: Please help: ActionScript heck.
From: Dorian Nisinson
Date: Fri, 14 Jan 2000 18:27:29 GMT

Sung,
Make a Movie clip with nothing in it.
Give it 3 frame, each with a key frame
Put this movie clip (mc) in the movie you want to be able to have play
backwards or forwards.

In frame one- label it "park" and put a stop action in it.

In frame 2-
Comment: reverse MC f2 label=reverse
Set Variable: "Cframe" = GetProperty ("..", _currentframe )
If (Cframe <> 1)
Begin Tell Target ("..")
Go to Previous Frame
End Tell Target
Else
Begin Tell Target ("..")
Stop
End Tell Target
Go to and Stop ("park")
End If
Play

In frame 3- keyframe- no label
Comment: reverse MC
Go to and Play ("reverse")

In the button in the movie clip that you want to play backwards put an
action on whatever mouse action you want (i.e. over, press, roll over,
roll out) that tell targets the reverse movie clip with an instance
name of "reverse" with the action Play.

This should do it.


Sung Park wrote:
>
> Please help, I'm having major headaches from trying to get this to work.
> This is what I have thus far on two different buttons. button1 is suppose to
> make the play head move forward and button2 is suppose to make the play head
> go backwards. Well that's the idea anyways.
>
> (ActionScript on button1)
> On (Roll Over)
> Loop While (_currentframe < 50)
> Go to and Stop (_currentframe + 1)
> End Loop
> End On
> On (Roll Out)
> Stop
> End On
>
> (ActionScript on button2)
> On (Roll Over)
> Loop While (_currentframe > 50)
> Go to and Stop (_currentframe - 1)
> End Loop
> End On
> On (Roll Out)
> Stop
> End On
>
> My problem is this, I'd like for this to run smoothly from any frame to
> frame
> 50 and/or from any frame to frame 1, but instead it goes by so fast it looks
> like its jumping from one frame to the other. Is there a way to insert a
> delay of .5 seconds after each frame? Can anyone please help.
>
> Thanks in advance.
> -s u n g P A R K
>
> 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

--
Now Available! Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
--------------------------------------------------------------------------------------
FLASHCENTRAL.COM * The Source for Flash Information *
http://www.FlashCentral.com/

Flash Tell Target Tutorial
http://www.FlashBible.com/members/TellTarget/
The Flash Fortune Teller http://www.bway.net/~dorian/FortuneT.htm
Dorian Nisinson Design
http://www.bway.net/~dorian
dorianatbway [dot] net (mailto:dorianatbway [dot] net)
--------------------------------------------------------------------------------------


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
  FLASH: Please help: ActionScript heck., Sung Park

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