# Help, before I kill myself

**URL:** <https://forum.kirupa.com/t/help-before-i-kill-myself/265020>\
**Category:** flash\
**Created:** [July 3, 2008, 12:28am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020 "2008-07-03T00:28:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![minilabworld](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@minilabworld](https://forum.kirupa.com/u/minilabworld)\
**Post date:** [July 3, 2008, 12:28am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/1 "2008-07-03T00:28:05Z")

</div>

Hi, I was learning action script 2 at school (Miami Ad School). I was doing more or less fine… then, I purchased Flash CS3 thinking that it was going to be better/best/easier/more fun… And, no, nothing accomplished. Action Script 3 is sort of chinese to me (english is not even my language).

But anyway, I am stuborn, and I won’t stop until I get it.  
I am not looking to create amazing web sites, just enough to navigate using buttons, uploading movies, pictures and some design stuff. The problem is that I followed a [Lynda.com](http://Lynda.com) course on how to use action script to navigate with buttons, I copied the code exactly as the instructor was writing it. Everything worked for him, nothing for me.

This is the code for just a miserable button (its instance name is equipo\_btn):  
[FONT=Verdana]----------------------------------------------------[/FONT]  
[FONT=Verdana]stop();[/FONT]  
[FONT=Verdana] [/FONT]  
[FONT=Verdana]function onEquipoClick(evt:MouseEvent):void{[/FONT]  
[FONT=Verdana] gotoAndStop(“equipo”);[/FONT]  
[FONT=Verdana]}[/FONT]  
[FONT=Verdana]equipo\_btn.addEventListener(MouseEvent.CLICK. onEquipoClick);[/FONT]  
[FONT=Verdana] [/FONT]  
[FONT=Verdana]----------------------------------------------------------------[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]And when I publish it I get this error:[/FONT]  
[FONT=Verdana]1119: Access of possibly undefined property onEquipoClick through a reference with static type String.[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]and this one:[/FONT]  
[FONT=Verdana]1136: Incorrect number of arguments. Expected 2.[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]Why does the instructor get it right and I don’t.[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]I went 30 time through these 4 lines of code and everything is exactly the same except that I named the frame “equipo” and he named it “home”[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]I have ready a razor, a gun and I have my head in the oven as I type…[/FONT]  
[FONT=Verdana][/FONT]  
[FONT=Verdana]Thank you from the buttom of my heart to those who can help me:|[/FONT]

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [July 3, 2008, 12:34am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/2 "2008-07-03T00:34:07Z")

</div>

You need to change the 2nd “.” to a “,” - in this line:

```auto

equipo_btn.addEventListener(MouseEvent.CLICK. onEquipoClick);

```

It should read:

```auto

equipo_btn.addEventListener(MouseEvent.CLICK, onEquipoClick);

```

:thumb:

---

<div class="post-metadata">

**Author:** ![minilabworld](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@minilabworld](https://forum.kirupa.com/u/minilabworld)\
**Post date:** [July 3, 2008, 1:21am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/3 "2008-07-03T01:21:15Z")

</div>

That’s what it was… I can’t believe it.  
I spent 2 hours banging my head to the pc screen.

Thank you very much. No, really, THANK YOU VERY MUCH!

Did I mentioned how lucky I feel of being born in the middle of the most peaceful revolution there has ever been?  
Which one?  
The internet, of course.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [July 3, 2008, 1:30am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/4 "2008-07-03T01:30:05Z")

</div>

But if there was no internet you wouldn’t have this problem in the first place. Think about it.

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [July 3, 2008, 9:51am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/5 "2008-07-03T09:51:07Z")

</div>

[QUOTE=minilabworld;2352773]  
Did I mentioned how lucky I feel of being born in the middle of the most peaceful revolution there has ever been?  
Which one?  
The internet, of course.[/QUOTE]

You’re so right. I always talk about that with my friends: the internet is going to be even more important than the gutenberg print, or the phone.

> **[Johannes Gutenberg](https://en.wikipedia.org/wiki/Johannes_Gutenberg)**
>
> Johannes Gensfleisch zur Laden zum Gutenberg (/joʊˈhɑːnɪs ˈɡuːtənˌbɜːrɡ, -ˈhænɪs-/ yoh-HA(H)N-iss GOO-tən-burg; c. 1400 – February 3, 1468) was a German blacksmith, goldsmith, printer, and publisher who introduced printing to Europe with the printing press. His introduction of mechanical movable type printing to Europe started the Printing Revolution and is regarded as a milestone of the second millennium, ushering in the modern period of human history. It played a key role in the develo Gutenber...

Once I read something really interesting. When the phone came up there was someone famous (don’t remember who) that stated that nobody would use such a machine for communicating… that was around the end of 19th century I think.

Of course the phone has become a pillar of hte modern society during the 20th century.

My point is that internet is still very very young. Like what? 20 years old in the most advanced countries?.. this is exactly the same point where the phone was at the end of the 19th century. And look what happened in the following years with the phone.

Internet is still doing baby steps, and most of the people can’t even start imagining how big this revolution is going to be.

Just 10 years ago in Spain, where I live, internet was considered a geek thing… and now everyone is buying computers just to have internet at home.

Sorry for going off topic… 🙂

BTW don’t kill yourself. Dealing with frustation is a natural part of life, wether you like or not. 👼

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [July 3, 2008, 9:58am UTC](https://forum.kirupa.com/t/help-before-i-kill-myself/265020/6 "2008-07-03T09:58:46Z")

</div>

[QUOTE=TheCanadian;2352778]But if there was no internet you wouldn’t have this problem in the first place. Think about it.[/QUOTE]

So your point is that it would be better to not have internet in the first place?

you know what they say… the medium is the message 🙂

> **[Marshall McLuhan](https://en.wikipedia.org/wiki/Marshall_McLuhan)**
>
> Herbert Marshall McLuhan, CC (July 21, 1911 – December 31, 1980) was a Canadian professor, philosopher, and public intellectual. His work is one of the cornerstones of the study of media theory. Born in Edmonton, Alberta, McLuhan studied at the University of Manitoba and the University of Cambridge. He began his teaching career as a professor of English at several universities in the U.S. and Canada before moving to the University of Toronto in 1946, where he remained for the rest of his li McLuh...
