Jump to content


Photo

Stop the loop on a motion tween


  • Please log in to reply
8 replies to this topic

#1 naughtybynature

naughtybynature

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 10 August 2005 - 08:31 AM

Hello, I'm very new to flash, so forgive the question.
I've searched for such a long time and couldn't find any specific help.

I finished my Motion Tween using 6 layers...fiddled with key-frames etc.
Each is a Graphic Symbol by the way.

When I test it out in the preview, I notice that it just loops again and again.

MY DESIRE: I
That it will play only when someone touches the SWF with their mouse.
And even if they release the mouse, the Flash will play once then stop.


Any help?

:D

#2 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 10 August 2005 - 08:38 AM

put a stop action on the last frame of your animation.
create a invisible button on top of that animation and give the action gotoAndPlay("frame_nr")

#3 naughtybynature

naughtybynature

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 10 August 2005 - 08:59 AM

Hi, I put the stop action on the last frame and it stopped.
Thank you for that help!

But I don't understand the second part of your suggestion.

Let me be specific...

My desire is to have the motion tweening begin if someones mouse touches the banner.
It should play one-time, even if someone releases the mouse from the banner.
Then if they touch the banner again, it shoul start over again.

Can you give me a miracle answer for this request?
Thank you again :D

PS>>>>
I only know how to add music through a button. Basically, I create a rectangle around the area of the project, then upload my sound clip.

Is this the same method for creating the button you told me about?

I got an error when I did it my way and added the actionscript.

Edited by naughtybynature, 10 August 2005 - 09:10 AM.


#4 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 10 August 2005 - 11:35 AM

just create a button (CTRL+F8) and create a rectangle as big as your banner.
go back to your mainmovie / scene and select the button you just created there you press F9 and you get the actions panel.
then just choose on mouseover gotoAndPlay("1")

#5 naughtybynature

naughtybynature

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 10 August 2005 - 12:44 PM

Hi, the only "mouseover" I can find is located in the index.
What is the path?

I put: mouseovergotoAndPlay("1")
in the action script, and it didn't do anything.

#6 HaloprO

HaloprO

    Requires Armed Escort

  • Members
  • PipPip
  • 310 posts
  • Gender:Male
  • Location:California, USA

Posted 11 August 2005 - 01:19 AM

on(mouseOver) {
gotoAndPlay(1);
}

#7 _*Žeddragon_*

_*Žeddragon_*
  • Guests

Posted 11 August 2005 - 01:30 AM

You should go to Flashkit.com

#8 naughtybynature

naughtybynature

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 11 August 2005 - 04:42 AM

Hello, yes I found that solution at another forum as well.
I finished my first project! :)

But I have one last problem.
I want to show it off at other places, and I uploaded it to ImageShack.

The problem is, the image-host expands my movie to a big size.
I guess 120%. There's no option to view at 100%


Is there a way to stop this from happening?

I've tried at a number of ImageHosts' and this problem keeps repeating.

Do you know somewhere I can upload the SWF so it will show at forums?
(Forums who allow Flash, but don't have upload feature)

Thank you everyone for all you help.
Without this wonderful tutorial search feature, I'd never have the courage to try. :D

Edited by naughtybynature, 11 August 2005 - 04:56 AM.


#9 _*Žeddragon_*

_*Žeddragon_*
  • Guests

Posted 12 August 2005 - 12:50 AM

try photobucket.

And if the forum does not support upload flash. Then it will not show flash at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users