# Activating an animation

**URL:** <https://forum.kirupa.com/t/activating-an-animation/45361>\
**Category:** Uncategorized\
**Created:** [March 13, 2004, 5:40pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361 "2004-03-13T17:40:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![berkoWitZ](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@berkoWitZ](https://forum.kirupa.com/u/berkoWitZ)\
**Post date:** [March 13, 2004, 5:40pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/1 "2004-03-13T17:40:11Z")

</div>

sorry for the stupid subject name…  
this is what I need, I made a 3d model of a PC, What I want is to clic on the monitor and turn on the computer, I have the animation of the computer monitor turning on, but I don´t know how to activate it…thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 5:43pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/2 "2004-03-13T17:43:50Z")

</div>

Hi there, is it 3D imported as .mov, .flv, or is it simulated as such directly in Flash.  
Is it keyframe animated?  
Or have you already figured it out?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 5:44pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/3 "2004-03-13T17:44:57Z")

</div>

If you have your animation in a MC called monitorMC, and a stop in your first frame, you can use this in a frame:

```auto

_root.monitorMC.onRelease=function(){
this.gotoAndPlay(2)
}

```

or something like that to get it to jump to the frames that play the animation.

\*\*edit-oops, guess divarch beat me to it 😉

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 5:47pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/4 "2004-03-13T17:47:38Z")

</div>

I made the computer in swift and exported into flash, I´ll try that script

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 5:59pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/5 "2004-03-13T17:59:58Z")

</div>

ok…This is what happened when I preview…

Scene=Scene 1, Layer=Layer 4, Frame=1: Line 1: Statement must appear within on/onClipEvent handler  
\_root.monitorMC.onRelease=function(){

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 6:06pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/6 "2004-03-13T18:06:17Z")

</div>

You are putting the event on the clip, put it on the timeline, if you define it that way.  
If you put it on the clip(monitor\_mc):  
on(release){  
}  
But that has nothing to do with your imported anim, just the code isn’t being in the right place

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 6:10pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/7 "2004-03-13T18:10:33Z")

</div>

ok, I don´t get the message anymore but still don´t know how to activate it, I have in frame 1 the PC monitor and in frame 2 the PC monitor animation and in another layer the stop in frame one and in another layer the AS, now what?? and thanks for helping me…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 6:25pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/8 "2004-03-13T18:25:42Z")

</div>

Have a look at this, and if you have any questions, let me know.

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 6:51pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/9 "2004-03-13T18:51:05Z")

</div>

Or post here your zipped .fla

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 9:57pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/10 "2004-03-13T21:57:09Z")

</div>

woohoo! it worked, thanks Adam and Divarch!!🍺

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 10:18pm UTC](https://forum.kirupa.com/t/activating-an-animation/45361/11 "2004-03-13T22:18:23Z")

</div>

you’re welcome 😃

Adam
