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 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]
[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.
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.