# EKG/ECG monitor effect

**URL:** <https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818>\
**Category:** Uncategorized\
**Created:** [March 28, 2003, 5:43pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818 "2003-03-28T17:43:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![KazchiX](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@KazchiX](https://forum.kirupa.com/u/KazchiX)\
**Post date:** [March 28, 2003, 5:43pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/1 "2003-03-28T17:43:03Z")

</div>

Hi all,

Does anybody know how to create EKG/ECG monitor effect on flash mx?

---

<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 28, 2003, 6:08pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/2 "2003-03-28T18:08:54Z")

</div>

maybe you could be more specific… what do you mean exactly?

---

<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 28, 2003, 6:30pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/3 "2003-03-28T18:30:22Z")

</div>

Syko, i think he is trying to make an electrocardiograms monitor…:-\

---

<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 28, 2003, 6:36pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/4 "2003-03-28T18:36:52Z")

</div>

here’s something to start…

```auto
this.createEmptyMovieClip("line", 0);
line.lineStyle(1, 0, 100);
this.onEnterFrame = function() {
	x += 10;
	line._x -= 10;
	!Math.floor(Math.random()*10) ? line.lineTo(x, Math.round(-40+Math.random()*80)) : line.lineTo(x, 0);
}

```

now i’m leaving… i have a lot of work :hair: :-\

---

<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 28, 2003, 7:18pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/5 "2003-03-28T19:18:20Z")

</div>

Hi Kax,

I tried to understand your code but I couldnt. I need a little more explanation on that. Is \_x property of “line” set to some value as a default?

---

<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 28, 2003, 7:49pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/6 "2003-03-28T19:49:12Z")

</div>

> _Originally posted by KazchiX_  
> **Is \_x property of “line” set to some value as a default?**

when you create or attach a movie clip is positioned at x:0 y:0 by default, if that’s what you meant… 🙂

---

<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 28, 2003, 7:59pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/7 "2003-03-28T19:59:09Z")

</div>

Thanks Kax,

I initialized variables to some other numbers to fit my movie and it all worked fine. is there any way to make the line just created a symbol by scripting? for examble, duplicate the line.

---

<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 28, 2003, 8:16pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/8 "2003-03-28T20:16:15Z")

</div>

ehmm… the line already is a symbol? 😛

seriously, i think i’m not getting you question… ? :-  
do you want to duplicate all the lines or just a section?

---

<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 28, 2003, 11:36pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/9 "2003-03-28T23:36:01Z")

</div>

Hi Kax,

I want to use this as a transition. ECG line go from left to right and once it reaches the right edge it will devide underneath symbol into two separate symbols. So I want to make the exact same line combine with underneath symbol then separate top and buttom symbols.

---

<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 29, 2003, 12:12am UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/10 "2003-03-29T00:12:22Z")

</div>

and you need scripted? why don’t you simply animate it frame by frame? i think it would be way easier… :-\

---

<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 29, 2003, 9:49am UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/11 "2003-03-29T09:49:03Z")

</div>

Hi!

I read your post earlier today. I tried making a EKG thingy using a green dot and duplicateMC. I couldn’t get it to work. It’s actually been bugging me all day. Hahaha. I will get it eventually, because now it’s bugging me.

However, why not make a MC that does what you want using tweens instead of AS and it will repeat just like an AS. Unless you want it randomized - but then that would be an abnormal EKG -right?

I’ll keep trying. Might want to check out this site that has a lot of examples of AS movement:  
[http://www.bit-101.com](http://www.bit-101.com)

…Love that site!  
(-:

---

<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 29, 2003, 10:08am UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/12 "2003-03-29T10:08:00Z")

</div>

Yes, I’ve watched EKG monitor all day today and still couldnt figure out how I set up using AS. It really bugged me. Now I’m working on different effects. I could make a normal ekg line using either AS or MC but mines not reusable. Once I change the underneath symbol, its useless. and random line doesnt create a normal ekg line. I think I have to come up with the versatile code correspond to the underneath symbols height and width. and I suppose its very difficult.

---

<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 29, 2003, 7:42pm UTC](https://forum.kirupa.com/t/ekg-ecg-monitor-effect/16818/13 "2003-03-29T19:42:52Z")

</div>

Okay, sounds good. You totally lost me.  
Anyhow, I think I’m going to put this out there as a start even though you are working on something else. This is as close as I can get to it. I wanted to duplicate it so the main dot would have a trailer that fades out - no such luck. I also told that original MC to remove himself, about five different ways that I know of, but he’s not listening to me.

So, here you go, good luck!!
