Ok, I give, reading beno's posts have become something of a guilty pleasure. Steven's hamster computer comment actually did make me laugh out loud.

Dave, I wish that you would just ban beno from the list. Clearly, while he is generating a lot of traffic, it's all just OT crap.

As a lurker, I just use this list to populate my google account as a repository for Flash coding searches. I use Flash rarely. I spend most of my time doing ASP .NET (c#) coding.

If I conducted myself like beno on any list, I would expect to be banned and I would deserve to be banned.

--
Bill Napier

On Feb 2, 2010, at 4:47 PM, "Cor" <[email protected]> wrote:

That's a buck to me!

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gustavo
Duenas
Sent: dinsdag 2 februari 2010 22:41
To: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

from an artist to another, explain me what are you trying to do in
plain english and maybe the people in the list would start seeing
things your way...I don't know, but when I ask for help (a lot of
times in the past, present and the future) I've always explained what
am I looking to obtain first, then I submit the code for
consideration, that helps me a lot...my two cents.

Gus
"call me pussy or moron I use to trace , but if you want to teach me
breackpoints, no problem, i'll bring my sharpest pencil to defend
myself"
;)




On Feb 2, 2010, at 1:08 PM, beno - wrote:

Frankly I'm glad things have slowed down. Let me play Devil's
Advocate and
state explicitly I don't want you to do my work for me. I want you
to help
me understand what it is I need to do. This morning, two very kind
people
reached out to help me simultaneously. Their methodology was
completely
different the one from the other. Their attitude was stellar but their
delivery beyond what they should have offered. Make_me_work. I'm not
afraid
of working. I like it. I need to learn this for myself.
Suggest...and make
me sweat. As it was, I was doing everything I could to keep up with
the two
of you! Now that things have calmed down, I've had a chance to
review your
suggestions and try to make sense of the vis-a-vis my code.

One lister commented I'm the most expensive programmer on the
planet. I
laughed my a$$ off. It may be true. However, it's equally true I am
sincerely trying my best. Again, I'm an artist, and positively
gifted at
that. (Or, as I would say, I'm really good at listening to the
Muses. I'm
not the artist. They are.) This will be incorporated into my art, so
it's
more than just a revenue generator. But as an artist, I really have
a very
difficult time thinking like a left-brain programmer. Please believe
me when
I tell you I'm doing the very best I can. I would never abuse your
help,
even though it may seem that way to some of you left-brainers. If
you could
walk a mile in my moccasins, you would have an entirely different
perspective on this matter, I assure you.

Lastly, before I get into the code, let me state that the Moock book
should
arrive by Friday. Hopefully I'll be able to answer most of my own
questions
by then, which--believe it or not--is what I would prefer to do. I
don't
want to be the "most expensive programmer in the world." I want to
do it
myself, at least as much as I possibly can. I want your respect, not
your
charity.

So, the code. Working with Glen Pike's suggestions of keeping it all
in the
same class, I've refined my code to this:

package
{
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.easing.*;
  public class Main2 extends MovieClip
 {
trace('hi');
public var myThumb:CloseThumb;
private var counter:int = 0;

public function Main2()
{
trace('Main2');
init();
addEventListener(Event.ENTER_FRAME, checkFrame);
}

public function init():void
{
trace('init');
theThumb();
}

public function checkFrame(e:Event):void
{
if (counter == 10)
{
doTween();
counter = 0;
} else
{
counter++;
trace(counter);
}
}

public function doTween():void
{
trace('doTween');
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

public function onFinishTween():void
{
removeChild(myThumb);
}

public function theThumb():void
      {
trace('theThumb');
myThumb = new CloseThumb();
              myThumb.x = 365;
              myThumb.y = 355;
       }
 }
}

Notice all the traces I have. Not a single one prints. It would help
me to
know why. The mc CloseThumb does not play, either. What traces is the
following:

at Main2/theThumb()
at Main2/init()
at Main2

I would like to know what that means since I've seen it so many times.


Here's Cor's version of separating out a new class called
CloseThumb() and
calling it from the main class. First, the Main2.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;
import CloseThumb;
public class Main2 extends MovieClip
{
trace('hi');
private var myThumb:CloseThumb = new CloseThumb();


public function Main2()
{
trace('Main2');
init();
}


public function init():void
{
trace('init');
                      CloseThumb();
}

}
}



Now, here's CloseThumb.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;

public class CloseThumb extends MovieClip
{
public var myThumb:CloseThumb;


public function CloseThumb()
{
init();
}


public function init():void
{
theThumb();
trace('init CloseThumb');
}

public function doTween():void
{
trace('doTween');
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

public function onFinishTween():void
{
removeChild(myThumb);
}

public function theThumb():void
{
myThumb.x = 365;
myThumb.y = 355;
addChild(myThumb);
doTween();
trace('theThumb');
}
}
}

This throws the following error:

Main2.as, Line 28           1136: Incorrect number of arguments.
Expected 1.

I don't understand why it expects any arguments at all!

Now please. Take your time responding. I've decided I'm going to
ignore this
thread for the remainder of the day and look at it again tomorrow.
Don't
rush. And thank you very kindly for all your gracious help.
Sincerely,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2663 - Release Date: 02/02/10
08:35:00

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to