# Double click = success?

**URL:** <https://forum.kirupa.com/t/double-click-success/9831>\
**Category:** Uncategorized\
**Created:** [December 19, 2002, 7:40am UTC](https://forum.kirupa.com/t/double-click-success/9831 "2002-12-19T07:40:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![redanchor](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@redanchor](https://forum.kirupa.com/u/redanchor)\
**Post date:** [December 19, 2002, 7:40am UTC](https://forum.kirupa.com/t/double-click-success/9831/1 "2002-12-19T07:40:21Z")

</div>

on (release) {  
button\_biography.onRelease = function() {  
tellTarget (“transition\_in”) {  
gotoAndPlay(3);  
loadMovieNum(“biography.swf”, 1);  
}  
};  
}

Basically, I have a button on frame 3 on the ‘main.swf’. When the button is clicked, it plays frame 3 in a movie clip entitled ‘transition\_in’ and loads the movie ‘biography.swf’ onto level 1. The action works; however, it, for some reason, is necessary for the button to be clicked twice for either action (tell target or loadmovie) to occur. How can I reduce this to one click? Thanks for your time.

---

<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:** [December 19, 2002, 7:44am UTC](https://forum.kirupa.com/t/double-click-success/9831/2 "2002-12-19T07:44:30Z")

</div>

I’m pretty new to this too, but try this:

```php
on (release) {
	transition_in.gotoAndPlay(3);
	loadMovieNum("biography.swf", 1);
}

```

If that one doesn’t work then try this one

```php
on (release) {
	_root.transition_in.gotoAndPlay(3);
	loadMovieNum("biography.swf", 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:** [December 19, 2002, 8:12am UTC](https://forum.kirupa.com/t/double-click-success/9831/3 "2002-12-19T08:12:21Z")

</div>

Thanks for the quick and effective response. It is much appreciated. I think that this would be a good time to express how much I hate actionscript. Ok, I don’t hate it, it’s worth it’s weight in gold, just a bit confusing at times, especially when you’re a coder like me. Anyways, that’s all besides the point. Thank you electrongeek.

---

<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:** [December 19, 2002, 8:13am UTC](https://forum.kirupa.com/t/double-click-success/9831/4 "2002-12-19T08:13:19Z")

</div>

Did it work? I’m a bit curious cause I sort of guessed on it. :-\

---

<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:** [December 19, 2002, 8:33am UTC](https://forum.kirupa.com/t/double-click-success/9831/5 "2002-12-19T08:33:41Z")

</div>

It most definitely worked. Thanks again.
