# How did they do that

**URL:** <https://forum.kirupa.com/t/how-did-they-do-that/2792>\
**Category:** flash\
**Created:** [April 4, 2002, 1:46am UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792 "2002-04-04T01:46:34Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [April 4, 2002, 1:46am UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792/1 "2002-04-04T01:46:34Z")

</div>

How did they do the timeline at [www.nancymoranphoto.com/.](http://www.nancymoranphoto.com/.) It is in the biography section. I especially like the pop-upenlargements with the close (X) box.

---

<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:** [April 6, 2002, 11:15am UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792/2 "2002-04-06T11:15:12Z")

</div>

its just a dragable mc when you click on the x it make the mc invisable\r\rtry this code.\r\rmake a button that will open up the window(in your example it is a picture) give it this code\r\ron (release) {\r&nbsp &nbsp &nbsp &nbsp tellTarget (“thewindow”) {\r&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp gotoAndPlay (2);\r&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp \_visible = true;\r&nbsp &nbsp &nbsp &nbsp }\r}\r\rmake a movie movie clip with the first frame blank in the second frame draw your window. add a stop() to the second frame.\r\rthen draw a close button put it in the mc to make it close add this script\r\ron (release) {\r&nbsp &nbsp &nbsp &nbsp \_visible = false;\r}\r\rto make it drag i used this script on a button inside the movie clip\r\ron (press) {\r&nbsp &nbsp &nbsp &nbsp startDrag ("");\r&nbsp &nbsp &nbsp &nbsp T = getTimer();\r&nbsp &nbsp &nbsp &nbsp if (Number(T-oldT)\<500) {\r&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp play ();\r&nbsp &nbsp &nbsp &nbsp }\r&nbsp &nbsp &nbsp &nbsp oldT = T;\r}\ron (release, releaseOutside) {\r&nbsp &nbsp &nbsp &nbsp stopDrag ();\r}\r\rfor some reason it didnt show up properly but i repeated the second frame and it works\rdont forget to give the mc and instance name in this code it is “thewindow”

---

<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:** [April 9, 2002, 2:04pm UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792/3 "2002-04-09T14:04:21Z")

</div>

What the hell this thing means?\r\r if (Number(T-oldT)\<500) {\r play ();\r }\r oldT = T;

---

<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:** [April 11, 2002, 10:56pm UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792/4 "2002-04-11T22:56:11Z")

</div>

Yeah, I don’t get that timer bit either. Can’t see what it does, since her time line just drags left and right, and has a bug in it that sometimes doesn’t stop dragging when you release outside of the hotspot.

---

<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:** [April 11, 2002, 11:15pm UTC](https://forum.kirupa.com/t/how-did-they-do-that/2792/5 "2002-04-11T23:15:38Z")

</div>

That looks like double click to me. But it’s bad syntax. You could loose the Number :

```auto
 on (press) {\r\r startDrag ("" );\r\r T = getTimer(); //time now. on load, oldT=0\r\r if (T-oldT<500) { // if the time between this press and the \r\r//one before is < half a second\r\r play (); //then play the movie\r\r }\r\r oldT = T; // reset the timer\r\r}

```

That’s a nice code.\rpom 0]
