[Flashcoders] Preview of symbols in Flash IDE (CS3)

2009-12-07 Thread Glen Pike

Hi,

   I am encountering a strange problem with the IDE (CS3) drawing of my 
graphics on stage... It's happened a couple of times now, but the 
problem seems to be that the IDE is getting mixed up with what it is 
supposed to be drawing for my symbols.


   I have a clip on stage with nested clips that themselves contain 
some home-made button type symbols.  When viewing the top level of the 
movie, the IDE draws the wrong symbols for these buttons - I think this 
started happening when I dragged in some symbols from another library.


   When editing the container for these buttons, they are drawn 
correctly, but in any parent, they are drawn wrongly.  I have edited the 
properties of every clip used in the buttons to make sure they are 
attached to the FLA I have imported them into rather than the original, 
but no joy...


   The symbol being drawn is completely unrelated to the ones that 
should be drawn.


   Has anyone seen this before?  Does anyone know how to fix it?

   Thanks
  
   Glen

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Preview of symbols in Flash IDE (CS3)

2009-12-07 Thread Glen Pike

Hmm,

   Teddy bear gave me the answer - well more by accident than anything...
  
   I had two symbols in my library, in different sub-folders, with the 
same name...   Deleting one of them fixed the problem.


   Glen...

Glen Pike wrote:

Hi,

   I am encountering a strange problem with the IDE (CS3) drawing of 
my graphics on stage... It's happened a couple of times now, but the 
problem seems to be that the IDE is getting mixed up with what it is 
supposed to be drawing for my symbols.


   I have a clip on stage with nested clips that themselves contain 
some home-made button type symbols.  When viewing the top level of the 
movie, the IDE draws the wrong symbols for these buttons - I think 
this started happening when I dragged in some symbols from another 
library.


   When editing the container for these buttons, they are drawn 
correctly, but in any parent, they are drawn wrongly.  I have edited 
the properties of every clip used in the buttons to make sure they are 
attached to the FLA I have imported them into rather than the 
original, but no joy...


   The symbol being drawn is completely unrelated to the ones that 
should be drawn.


   Has anyone seen this before?  Does anyone know how to fix it?

   Thanks
 Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
Hi;
First, a bit of a rant. A lister here offered to help me by looking directly
at my code and resolving my problem. That was 10 days ago. I was patient. I
kept in touch with him. He kept saying he'd get to it. He never did. The
result is that I am now 10 days further behind on a project I'm now 2.5
months behind on. The moral of the story is that if you're not sincerely
going to help, do not offer to help, because you're just creating even
more problems.

Ok, I tried googling wherever we were on this without success, so I'm
starting where I knew the problem was. Here is an abbreviated version of my
code:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

No errors are thrown. When I step through the code to check for errors I
still come up empty handed. myLeftHand doesn't do anything. It doesn't
print to the screen. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread mark . jonkman
Hi 

Maybe I'm missing the obvious but perhaps you are hitting a variable naming 
problem. Why not try to give each variable a distinct name so that there is 
less chance of confusion. For example you have 3 different variable 
declarations for myHandInstance2, 2 of which are local and one is scoped to the 
main class. While in theory these should be independent it certainly can lead 
to confusion just in reading your code. 

I'm also at a loss as to why myLeftHand() and your init function both seem to 
be creating an instance of myHand, one as part of a framescript on 20 of the 
other, not that it is illegal to put one instance inside another, but it begs 
the question is that what you are trying to do? 

Perhaps, if you were to clean things up, in the init() function get rid of the 
declaration of myHandInstance2 and use the public variable on the class, then 
at least if you have a means of triggering a method on the main object post 
init() you will be able to see and inspect that instance and see where it is, 
and so forth. 

Sincerely 
Mark R. Jonkman 




- Original Message - 
From: beno - flashmeb...@gmail.com 
To: Flash Coders List flashcoders@chattyfig.figleaf.com 
Sent: Monday, December 7, 2009 11:30:21 AM GMT -05:00 US/Canada Eastern 
Subject: [Flashcoders] Back On Course, Still Problems 

Hi; 
First, a bit of a rant. A lister here offered to help me by looking directly 
at my code and resolving my problem. That was 10 days ago. I was patient. I 
kept in touch with him. He kept saying he'd get to it. He never did. The 
result is that I am now 10 days further behind on a project I'm now 2.5 
months behind on. The moral of the story is that if you're not sincerely 
going to help, do not offer to help, because you're just creating even 
more problems. 

Ok, I tried googling wherever we were on this without success, so I'm 
starting where I knew the problem was. Here is an abbreviated version of my 
code: 

package 
{ 
import flash.events.Event; 
import flash.events.MouseEvent; 
import flash.display.MovieClip; 
import com.greensock.*; 
import com.greensock.plugins.*; 
import com.greensock.easing.*; 
public class Main extends MovieClip 
{ 
public var mcHandInstance2:mcHand; 
public function Main():void 
{ 
} 
public function init():void { 
hatAndFace(); 
eyeball1(); 
eyeball2(); 
myRightHand(); 
var mcHandInstance2:mcHand = new mcHand(); 
addChild(mcHandInstance2) 
mcHandInstance2.addFrameScript(20, myLeftHand) 
// myLeftHand(); 
} 
private function myLeftHand(e:Event=null):void 
{ 
var mcHandInstance2:mcHand = new mcHand(); 
addChild(mcHandInstance2); 
mcHandInstance2.x = 800; 
mcHandInstance2.y = 200; 
// if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, 
{x:200, startAt:{totalProgress:1}}).reverse(); 
} 
} 
} 

No errors are thrown. When I step through the code to check for errors I 
still come up empty handed. myLeftHand doesn't do anything. It doesn't 
print to the screen. Please advise. 
TIA, 
beno 
___ 
Flashcoders mailing list 
Flashcoders@chattyfig.figleaf.com 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Merrill, Jason
Well gee after that intro, let me jump all over helping you.  You should
know people here are volunteering their free time and that's the price
you pay when someone offers to help for free.  For free.  Free that is.
I saw a LOT of people here trying to help you over the past few weeks,
you had some threads that frankly, went on annoyingly long, and several
things were Google-able.  

I don't see any traces in your code, you might start by using the trace
feature to see if things like this statement:  if
(e.target.currentFrame == 40) even runs before bothering the list with
your question.  Heck, put some traces inside of  myLeftHand to see if
it runs.  I have no idea why you're inserting frame scripts, I don't
have any history on what your reasons for that is, so if you're going to
re-post and ask questions again, start by clearly explaining your
problem, and above all, play nice.

Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of beno -
Sent: Monday, December 07, 2009 11:30 AM
To: Flash Coders List
Subject: [Flashcoders] Back On Course, Still Problems

Hi;
First, a bit of a rant. A lister here offered to help me by looking
directly
at my code and resolving my problem. That was 10 days ago. I was
patient. I
kept in touch with him. He kept saying he'd get to it. He never did. The
result is that I am now 10 days further behind on a project I'm now 2.5
months behind on. The moral of the story is that if you're not sincerely
going to help, do not offer to help, because you're just creating even
more problems.

Ok, I tried googling wherever we were on this without success, so I'm
starting where I knew the problem was. Here is an abbreviated version of
my
code:

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }
  private function myLeftHand(e:Event=null):void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

No errors are thrown. When I step through the code to check for errors I
still come up empty handed. myLeftHand doesn't do anything. It doesn't
print to the screen. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Mendelsohn, Michael
  and above all, play nice.

Well said, Jason!  Let me just say that this list is the most valuable asset in 
my Flash work by far, and I truly appreciate every response I get from it.  
Jason happens to be more than generous in the amount of questions he responds 
to and I think many others will attest to that.  Only after going through the 
help, tinkering, and searching this forum and others lead nowhere, then I post. 
 When I post, it's because I'm totally stumped.  And I always appreciate 
responses!  Never rely on this list to finish the job for you.  If you hit a 
dead end, go for Plan B.

That said, you might want to try an Event.ADDED_TO_STAGE to see if your hand is 
are even there.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Array in loop

2009-12-07 Thread Lehr, Theodore
Seems like this should be simple:

how do I replace x with arrayName[i] in the following:

_root.x._alpha = 0;

it is in a for loop...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Array in loop

2009-12-07 Thread Leandro Ferreira
_root[ arrayName[i] ]._alpha = 0;


  Leandro Ferreira


On Mon, Dec 7, 2009 at 15:28, Lehr, Theodore ted_l...@federal.dell.comwrote:

 Seems like this should be simple:

 how do I replace x with arrayName[i] in the following:

 _root.x._alpha = 0;

 it is in a for loop...
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Array in loop

2009-12-07 Thread Glen Pike

Lehr, Theodore wrote:

Seems like this should be simple:

how do I replace x with arrayName[i] in the following:

_root.x._alpha = 0;

it is in a for loop...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  

_root[arrayName[i]]._alpha = 0 ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread John McCormack

Beno,


First, a bit of a rant.

These people have given you so much, and they have to make progress too.
We know it's a struggle but you really must help yourself.


Please advise.
  

When I started I read Colin Mook's book from start to finish:
http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946

Another book you might find useful:
http://www.amazon.com/Learning-ActionScript-3-0-Beginners-Guide/dp/059652787X/ref=sr_1_1?ie=UTF8s=booksqid=1260207561sr=1-1

Invest your time in a book first, before you ask others to invest their 
time in you.


It will be worth it.

John

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Array in loop

2009-12-07 Thread Lehr, Theodore
sorry - I know I tried that before and it did not work - must have had a 
typo... thanks


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Leandro Ferreira 
[dur...@gmail.com]
Sent: Monday, December 07, 2009 12:32 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Array in loop

_root[ arrayName[i] ]._alpha = 0;


  Leandro Ferreira


On Mon, Dec 7, 2009 at 15:28, Lehr, Theodore ted_l...@federal.dell.comwrote:

 Seems like this should be simple:

 how do I replace x with arrayName[i] in the following:

 _root.x._alpha = 0;

 it is in a for loop...
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 1:00 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

   and above all, play nice.

 Well said, Jason!


Disagree. If someone tells you, Hey, I'm going to help you. Just give me a
couple of days and I'll take a personal look at your code and walk you
through it. and you believe him and he strings you along and wastes 10 of
your precious days, you mean to tell me that's all good? You mean to tell me
you'd be grateful to him doing that? I don't think so... That's abusive,
period. If you're not going to fulfill, then keep your mouth shut. Don't
offer. This person put me an additional 10 days behind schedule with
promises he didn't fulfill. That is not good. Period.


 Let me just say that this list is the most valuable asset in my Flash work
 by far, and I truly appreciate every response I get from it.  Jason happens
 to be more than generous in the amount of questions he responds to and I
 think many others will attest to that.  Only after going through the help,
 tinkering, and searching this forum and others lead nowhere, then I post.
  When I post, it's because I'm totally stumped.


Well, gee, so do I!!! I'm just brand new, that's all.


 And I always appreciate responses!  Never rely on this list to finish the
 job for you.  If you hit a dead end, go for Plan B.


And that's exactly what I'm doing. But I figured I'd give this guy enough
time to prove if he was honest. He wasn't. What a pity.

Thank you all for your code suggestions. I'm working on them now and will
respond later.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Minimizing Code: Logic Issue

2009-12-07 Thread Lehr, Theodore
OK - imagine:

_root.._alpha = 0;
_root.mc1..mc2.onRollOver = function() {
if (findValue(, arrayName) == 1) {
_root.._alpha = 100;
}
}
_root.mc1..mc2.onRollOut = function() {
_root.._alpha=0;
}


Now, I have to repeat this code like 50 times for 50 different movies with the 
'' being replaced by a different instance name My thought was to put 
the 's into an array and loop through that - but as I am finding the code 
is not called until the event (i.e. onRollOver and thus the last array member 
is the active one... Is there anyway to minimize the code instead of havign to 
repeat this 50 times - I am sure I am approaching this from the wrong 
direction
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Kerry Thompson
Beno wrote:

 That's abusive, period. 

Ok, now I'm really motivated to help Beno when I have time.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Nathan Mynarcik
That person didn't put you in a difficult position, you put yourself in it. 
What's funny is, you are relying on others to do your work. You should never 
stop just because one person said they will help. Go find the answer or 
solution yourself. I think you have received so much help with so much 
patience, and for you to come back like that? THAT'S abusive. The guy willing 
to help you is not on your payroll. You need to realize that this is no ones 
issue but yours and yours alone. You have the attitude you have right now, and 
it is going to be hard to find more help on this list. 


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: beno - flashmeb...@gmail.com
Date: Mon, 7 Dec 2009 13:48:54 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Back On Course, Still Problems

On Mon, Dec 7, 2009 at 1:00 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

   and above all, play nice.

 Well said, Jason!


Disagree. If someone tells you, Hey, I'm going to help you. Just give me a
couple of days and I'll take a personal look at your code and walk you
through it. and you believe him and he strings you along and wastes 10 of
your precious days, you mean to tell me that's all good? You mean to tell me
you'd be grateful to him doing that? I don't think so... That's abusive,
period. If you're not going to fulfill, then keep your mouth shut. Don't
offer. This person put me an additional 10 days behind schedule with
promises he didn't fulfill. That is not good. Period.


 Let me just say that this list is the most valuable asset in my Flash work
 by far, and I truly appreciate every response I get from it.  Jason happens
 to be more than generous in the amount of questions he responds to and I
 think many others will attest to that.  Only after going through the help,
 tinkering, and searching this forum and others lead nowhere, then I post.
  When I post, it's because I'm totally stumped.


Well, gee, so do I!!! I'm just brand new, that's all.


 And I always appreciate responses!  Never rely on this list to finish the
 job for you.  If you hit a dead end, go for Plan B.


And that's exactly what I'm doing. But I figured I'd give this guy enough
time to prove if he was honest. He wasn't. What a pity.

Thank you all for your code suggestions. I'm working on them now and will
respond later.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
Jason's suggestion of adding a trace to see if the class is even being
activated was excellent, thank you. No, it is not being activated.

I tried to comment out the mcHandInstance2 as per Mark's suggestion:

  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
//var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }

but it threw this error:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChild()
at Main/init()
at main_fla::MainTimeline/frame1()

Mark informs me that I need to name these calls to mcHandInstance2 different
things; however, I still am greatly struggling to understand the fundamental
logic of what I'm trying to build. Can you help me understand how these
various elements work together so that I can properly name them? I, like
you, doubt seriously that I want them all to be the same name.

I'm sure Michael's suggestion was as good as Jason's, but obviously there
was no point for it, at least at this juncture, because the class is not
being activated.

If you all care to, please suggest google kw for me to research, but please
not the general educational information, of which I have studied some and
continue to study more. The learning curve is long and steep, par for the
course in programming, but frankly (and this is not a complaint!) apparently
longer and steeper than the norm with AS3.
TIA,
beno

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }
  public function hatAndFace():void
{
TweenPlugin.activate([AutoAlphaPlugin]);
var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
addChild(mcHatAndFaceInstance);
mcHatAndFaceInstance.x = 350;
mcHatAndFaceInstance.y = 100;
mcHatAndFaceInstance.alpha = 0;
TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1});
  }
  public function eyeball1():void
{
var mcEyeballInstance1:mcEyeball = new mcEyeball();
addChild(mcEyeballInstance1);
mcEyeballInstance1.x = 380;
mcEyeballInstance1.y = 115;
mcEyeballInstance1.alpha = 0;
TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1});
  }
  public function eyeball2():void
{
var mcEyeballInstance2:mcEyeball = new mcEyeball();
addChild(mcEyeballInstance2);
mcEyeballInstance2.x = 315;
mcEyeballInstance2.y = 115;
mcEyeballInstance2.alpha = 0;
TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1});
  }
  public function myRightHand():void
{
var mcHandInstance1:mcHand = new mcHand();
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
  }
/*
  public function set totalProgress(value:Number):void
{
myLeftHand.value = 1;
  }
*/
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
if (e.target.currentFrame == 10) { trace(yes) };
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Kerry Thompson
Beno wrote:
 
 First, a bit of a rant.

Actually, Beno does have a somewhat valid gripe. I was the one who offered
to look at the code, and I wasn't able to provide him a solution.

I did look through the code, and ran it in the debugger. I also advised him
to do the same, and explained how to do it. To his credit, he did run it in
the debugger, but wasn't able to find the answer.

I got into crunch mode at work--I'm preparing an advertising campaign for
our Web site, and I've been working 12-hour days, so I hope Beno will excuse
my not having the bandwidth to help him. I did say I would, though, so we
shouldn't be too harsh on him for expressing his disappointment.

Having said that, Beno, your code really is your responsibility. Even when
you gave me a copy, you should continue to try to find the problem yourself.
People will promise to help, but they won't write your code for you.

Programming is all about understanding cause and effect. To be successful
programmers, we all have to be able to create our own logic, and figure out
why it's not working when there's a bug.

Beno has some things going on in his life that he shared with me. I don't
feel comfortable repeating what he said off-line, but his current
circumstances make it especially difficult to program effectively. In light
of that, I'm unwilling to judge him too harshly. 

I just wish I was able to help him more. I have to get back to my campaign
now, though. It's due in 3 hours.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 1:41 PM, John McCormack j...@easypeasy.co.uk wrote:

 Beno,


  First, a bit of a rant.

 These people have given you so much, and they have to make progress too.
 We know it's a struggle but you really must help yourself.

  Please advise.


 When I started I read Colin Mook's book from start to finish:
 http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946

 Another book you might find useful:

 http://www.amazon.com/Learning-ActionScript-3-0-Beginners-Guide/dp/059652787X/ref=sr_1_1?ie=UTF8s=booksqid=1260207561sr=1-1

 Invest your time in a book first, before you ask others to invest their
 time in you.

 It will be worth it.


I know you're right, but to be perfectly honest with you, I barely have
money for food right now.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 1:58 PM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Beno wrote:

  First, a bit of a rant.

 Actually, Beno does have a somewhat valid gripe. I was the one who offered
 to look at the code, and I wasn't able to provide him a solution.


S**t happens ;)
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Henrik Andersson

beno - wrote:

Disagree. If someone tells you, Hey, I'm going to help you. Just give me a
couple of days and I'll take a personal look at your code and walk you
through it. and you believe him and he strings you along and wastes 10 of
your precious days, you mean to tell me that's all good? You mean to tell me
you'd be grateful to him doing that? I don't think so... That's abusive,
period. If you're not going to fulfill, then keep your mouth shut. Don't
offer. This person put me an additional 10 days behind schedule with
promises he didn't fulfill. That is not good. Period.



So you are blaming your schedule issue on someone who doesn't get a buck 
in return not doing something for free within reasonable time? Bo ho. If 
you wanted something done within a certain timeframe, you should have 
made a contract with a punishment clause. That and actually paying for 
the job.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Merrill, Jason
 If someone tells you, Hey, I'm going to help you. Just give me a
couple of days and I'll take a personal look at your code and walk you
through it. and you believe him

and you believe him - that's the root of the problem right there- you
need to realize you can't rely on free help - people will try, but life
happens.  If you're relying on anonymous people you meet on the internet
to help you for free with your project, you're both putting your project
at great risk, and you're in the wrong profession (or at least going
about it the wrong way).  If you play that game you're very likely going
to lose from time to time, you should know that. Kerry was generous to
try and help you, and he owes you nothing.  If you feel strung along,
that's your fault.  This is why spammers are still spamming and making
money at - there will always be people who risk too much faith in the
unknown.  If you were paying him for his help, that's a different story,
but you aren't - maybe you should.

Sometimes I get the feeling you're trying to crowdsource your
Actionscript problems instead of learning the actual mechanics of it. 


Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 2:06 PM, Nathan Mynarcik nat...@mynarcik.com wrote:

 That person didn't put you in a difficult position, you put yourself in it.
 What's funny is, you are relying on others to do your work. You should never
 stop just because one person said they will help. Go find the answer or
 solution yourself. I think you have received so much help with so much
 patience, and for you to come back like that? THAT'S abusive. The guy
 willing to help you is not on your payroll. You need to realize that this is
 no ones issue but yours and yours alone. You have the attitude you have
 right now, and it is going to be hard to find more help on this list.


That's not true. Your feelings are a little hurt and this will blow over.
The fact of the matter is that, after being in the jungle with hardly any
Internet access for 5 years and coming back to the real world broke to
start over, signing up accounts to develop Flash and a Python shopping cart,
and assuming (the big error) that the outsourcing world worked on an unnamed
dot-com site like it did 5 years ago, only to discover that the world had
greatly changed, and that the server farm with which I was working had such
ancient hardware that even hello, world python scripts failed, I suddenly
found myself horribly behind the 8-ball with accounts I am now personally
fulfilling. When Kerry offered to help I trusted him and turned immediately
to the other (and thankfully last) fire I'm trying to put out; namely,
finishing the development of my shopping cart. No, I have not been sucking
down martinis at the 19th hole ;) I've been working my a** off. I'll be
working on these two areas (Flash and the Python shopping cart)
simultaneously until the shopping cart is done, and then I will turn ALL of
my attention to Flash until I put out this last fire. I just bet you'd do
the exact same thing I'm doing if you were in my shoes...or shoot yourself
;)

BTW, any answers to my questions?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Nathan Mynarcik
I really feel like you are trying to build a ferrari without taking one 
automotive class. To understand the logic, you need to establish a firm 
foundation of understand as3. Then build your skill level on that. If you build 
a house without a good foundation, you are going to have issues during the 
building process. I think this is partially what you are experiencing now. I 
know this is a huge growing point for you, but you are only capable of doing 
what you know how to do and can apply it to your project. Build that house 
first bro. 
 
Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: beno - flashmeb...@gmail.com
Date: Mon, 7 Dec 2009 14:07:20 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Back On Course, Still Problems

Jason's suggestion of adding a trace to see if the class is even being
activated was excellent, thank you. No, it is not being activated.

I tried to comment out the mcHandInstance2 as per Mark's suggestion:

  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
//var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }

but it threw this error:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChild()
at Main/init()
at main_fla::MainTimeline/frame1()

Mark informs me that I need to name these calls to mcHandInstance2 different
things; however, I still am greatly struggling to understand the fundamental
logic of what I'm trying to build. Can you help me understand how these
various elements work together so that I can properly name them? I, like
you, doubt seriously that I want them all to be the same name.

I'm sure Michael's suggestion was as good as Jason's, but obviously there
was no point for it, at least at this juncture, because the class is not
being activated.

If you all care to, please suggest google kw for me to research, but please
not the general educational information, of which I have studied some and
continue to study more. The learning curve is long and steep, par for the
course in programming, but frankly (and this is not a complaint!) apparently
longer and steeper than the norm with AS3.
TIA,
beno

package
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public var mcHandInstance2:mcHand;
  public function Main():void
{
  }
  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
myRightHand();
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//myLeftHand();
  }
  public function hatAndFace():void
{
TweenPlugin.activate([AutoAlphaPlugin]);
var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
addChild(mcHatAndFaceInstance);
mcHatAndFaceInstance.x = 350;
mcHatAndFaceInstance.y = 100;
mcHatAndFaceInstance.alpha = 0;
TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1});
  }
  public function eyeball1():void
{
var mcEyeballInstance1:mcEyeball = new mcEyeball();
addChild(mcEyeballInstance1);
mcEyeballInstance1.x = 380;
mcEyeballInstance1.y = 115;
mcEyeballInstance1.alpha = 0;
TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1});
  }
  public function eyeball2():void
{
var mcEyeballInstance2:mcEyeball = new mcEyeball();
addChild(mcEyeballInstance2);
mcEyeballInstance2.x = 315;
mcEyeballInstance2.y = 115;
mcEyeballInstance2.alpha = 0;
TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1});
  }
  public function myRightHand():void
{
var mcHandInstance1:mcHand = new mcHand();
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
  }
/*
  public function set totalProgress(value:Number):void
{
myLeftHand.value = 1;
  }
*/
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
if (e.target.currentFrame == 10) { trace(yes) };
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread mark . jonkman
Hi Beno 

What I meant was to start with something like this: 

public function init():void { 
hatAndFace(); 
eyeball1(); 
eyeball2(); 
myRightHand(); 
mcHandInstance2 = new mcHand(); 
addChild(mcHandInstance2) 
} 

What you did would have thrown an error because you hadn't assigned a value ot 
mcHandInstance2, can't add null to the display list. 

What you haven't told is whether all the other handlers work, is myRightHand() 
creating the right hand and placing it on stage? What's different about 
myRightHand() and myLeftHand()? Does myRightHand() also create an instance of 
mcHand and put it visibly onstage? Does it use positional code to put in a 
particular location? 

I have to admit, not seeing the full code and knowing what works and what 
doesn't makes it difficult to make any type of prediction. But if hatAndFace() 
and all the rest worked and only myLeftHand() wasn't and that was the reason 
for all the extra code in the init() method, I'd go back rip out the code in 
the init that creates the mcHandInstance2, make the myLeftHand() call directly 
as you did the rest. I'd double check that myRightHand() matched myLeftHand() 
with a positional only difference. Then I'd make certain that the position I 
was placing the left hand in was infact a visible screen location. I'd do like 
Jason suggested, put in a trace in myLeftHand 

public function init():void { 
hatAndFace(); 
eyeball1(); 
eyeball2(); 
myRightHand(); 
myLeftHand(); 
} 

I'd also put a trace after myRightHand() call, just to make sure that the stack 
didn't quit out execution prior to hitting the myLeftHand() if all the traces 
worked but no left hand, I'd assign the left hand to a public property and do 
an inspection on x, y, alpha etc during debug to see what was going on. Be 
methodical. Change one thing at a time from what is known to work ie. asusming 
myRightHand() worked, duplicate that as myLeftHand() and change only the x 
position. See if it works, etc. 

Sincerely 
Mark R. Jonkman 



- Original Message - 
From: beno - flashmeb...@gmail.com 
To: Flash Coders List flashcoders@chattyfig.figleaf.com 
Sent: Monday, December 7, 2009 1:07:20 PM GMT -05:00 US/Canada Eastern 
Subject: Re: [Flashcoders] Back On Course, Still Problems 

Jason's suggestion of adding a trace to see if the class is even being 
activated was excellent, thank you. No, it is not being activated. 

I tried to comment out the mcHandInstance2 as per Mark's suggestion: 

public function init():void { 
hatAndFace(); 
eyeball1(); 
eyeball2(); 
myRightHand(); 
// var mcHandInstance2:mcHand = new mcHand(); 
addChild(mcHandInstance2) 
mcHandInstance2.addFrameScript(20, myLeftHand) 
// myLeftHand(); 
} 

but it threw this error: 

TypeError: Error #2007: Parameter child must be non-null. 
at flash.display::DisplayObjectContainer/addChild() 
at Main/init() 
at main_fla::MainTimeline/frame1() 

Mark informs me that I need to name these calls to mcHandInstance2 different 
things; however, I still am greatly struggling to understand the fundamental 
logic of what I'm trying to build. Can you help me understand how these 
various elements work together so that I can properly name them? I, like 
you, doubt seriously that I want them all to be the same name. 

I'm sure Michael's suggestion was as good as Jason's, but obviously there 
was no point for it, at least at this juncture, because the class is not 
being activated. 

If you all care to, please suggest google kw for me to research, but please 
not the general educational information, of which I have studied some and 
continue to study more. The learning curve is long and steep, par for the 
course in programming, but frankly (and this is not a complaint!) apparently 
longer and steeper than the norm with AS3. 
TIA, 
beno 

package 
{ 
import flash.events.Event; 
import flash.events.MouseEvent; 
import flash.display.MovieClip; 
import com.greensock.*; 
import com.greensock.plugins.*; 
import com.greensock.easing.*; 
public class Main extends MovieClip 
{ 
public var mcHandInstance2:mcHand; 
public function Main():void 
{ 
} 
public function init():void { 
hatAndFace(); 
eyeball1(); 
eyeball2(); 
myRightHand(); 
var mcHandInstance2:mcHand = new mcHand(); 
addChild(mcHandInstance2) 
mcHandInstance2.addFrameScript(20, myLeftHand) 
// myLeftHand(); 
} 
public function hatAndFace():void 
{ 
TweenPlugin.activate([AutoAlphaPlugin]); 
var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); 
addChild(mcHatAndFaceInstance); 
mcHatAndFaceInstance.x = 350; 
mcHatAndFaceInstance.y = 100; 
mcHatAndFaceInstance.alpha = 0; 
TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1}); 
} 
public function eyeball1():void 
{ 
var mcEyeballInstance1:mcEyeball = new mcEyeball(); 
addChild(mcEyeballInstance1); 
mcEyeballInstance1.x = 380; 
mcEyeballInstance1.y = 115; 
mcEyeballInstance1.alpha = 0; 
TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1}); 
} 
public function eyeball2():void 
{ 
var mcEyeballInstance2:mcEyeball = new 

Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Paul Andrews

beno - wrote:

On Mon, Dec 7, 2009 at 2:06 PM, Nathan Mynarcik nat...@mynarcik.com wrote:

  

That person didn't put you in a difficult position, you put yourself in it.
What's funny is, you are relying on others to do your work. You should never
stop just because one person said they will help. Go find the answer or
solution yourself. I think you have received so much help with so much
patience, and for you to come back like that? THAT'S abusive. The guy
willing to help you is not on your payroll. You need to realize that this is
no ones issue but yours and yours alone. You have the attitude you have
right now, and it is going to be hard to find more help on this list.




That's not true. Your feelings are a little hurt and this will blow over.
The fact of the matter is that, after being in the jungle with hardly any
Internet access for 5 years and coming back to the real world broke to
start over, signing up accounts to develop Flash and a Python shopping cart,
and assuming (the big error) that the outsourcing world worked on an unnamed
dot-com site like it did 5 years ago, only to discover that the world had
greatly changed, and that the server farm with which I was working had such
ancient hardware that even hello, world python scripts failed, I suddenly
found myself horribly behind the 8-ball with accounts I am now personally
fulfilling. When Kerry offered to help I trusted him and turned immediately
to the other (and thankfully last) fire I'm trying to put out; namely,
finishing the development of my shopping cart. No, I have not been sucking
down martinis at the 19th hole ;) I've been working my a** off. I'll be
working on these two areas (Flash and the Python shopping cart)
simultaneously until the shopping cart is done, and then I will turn ALL of
my attention to Flash until I put out this last fire. I just bet you'd do
the exact same thing I'm doing if you were in my shoes...or shoot yourself
;)
  
One part of me thinks you were foolish and arrogant to build a 
commitment to a client on the basis of technology that you have little 
grasp of. It's not as though it's a natural choice for anyone, despite 
bad circumstances. Most people head for more mundane solutions. It's 
good to know that technology solutions are so easy to produce from a 
level of no expertise. I'm sure many clients share that opinion.


The other part of me admires your nerve but not your disrespect for 
people who at least have good intentions.


A bit more humility always helps when asking for the assistance of others.

I'm always sympathetic towards people facing difficullt times - I've 
been there myself - but that's tempered by knowing that you are ready to 
bite the hand that helps you at any moment.


I have a feeling that you will eventually come up roses.


BTW, any answers to my questions?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Greg Ligierko
Beno, Jason mentions trace. This one is really essential.

You can use trace inside any part for code, it is inside methods or
directly in frame code. Add these trace lines to your code and start
playing with them:

public function Main():void
{
   trace(Who I am ? I must be:  + this);

   trace(The following are my properties... );
   for(var k in this)
   {
 trace(   + k +  has value  + this[k]);
   }
   trace(That's all nice. Perhaps somebody calls now the init() method.);

   // probably you need to call init() here..
}
public function init():void
{
// if you do not see the following trace text in the output
// window, this means the init() method was never called

trace(Some part of code called init() and now I entered the the init() 
method... Let's see what we got here !);

hatAndFace();
eyeball1();
eyeball2();
myRightHand();

var mcHandInstance2:mcHand = new mcHand();

trace(We have a new instance of mcHand. Let's see its value, so 
mcHandInstance2 is  + mcHandInstance2);

addChild(mcHandInstance2)
mcHandInstance2.addFrameScript(20, myLeftHand)
//

}

Now... instead of using the addFrameScript(), try this, step by step:
- doubleclick the mcHand (or whatever the hands name is) in the
Flash IDE Library.
- click right-click on the 20th frame of you hand animation and select
- press F9 (- you should see now the actions window for that 20th frame)
- write this.stop(); in the frame's code,
- go back to your .as code and comment out (//) the addFrameScript... line
- add init(); in the scope of Main() function,
- save,
- compile

In free time ... please try to press F1 in Flash IDE and just start
reading. Read about the timelines, debugging, and native classes that
you will like to use in your work. Try Help examples. Analyze them.
Pay particular attention to chapters:
1. Using Flash
2. Programming ActionScript 3.0
3. ActionScript 3.0 Language and Components Reference

Most issues you are asking about are described in a detailed way
there just in the Flash Help. Google is another really powerful option
to get into Flash in general and AS3 in particular.


Greg




Monday, December 07, 2009 (5:43:37 PM) Jason Merrill wrote:

 Well gee after that intro, let me jump all over helping you.  You should
 know people here are volunteering their free time and that's the price
 you pay when someone offers to help for free.  For free.  Free that is.
 I saw a LOT of people here trying to help you over the past few weeks,
 you had some threads that frankly, went on annoyingly long, and several
 things were Google-able.  

 I don't see any traces in your code, you might start by using the trace
 feature to see if things like this statement:  if
 (e.target.currentFrame == 40) even runs before bothering the list with
 your question.  Heck, put some traces inside of  myLeftHand to see if
 it runs.  I have no idea why you're inserting frame scripts, I don't
 have any history on what your reasons for that is, so if you're going to
 re-post and ask questions again, start by clearly explaining your
 problem, and above all, play nice.

 Jason Merrill 

  Bank of  America  Global Learning 
 Learning  Performance Soluions

 Join the Bank of America Flash Platform Community  and visit our
 Instructional Technology Design Blog
 (note: these are for Bank of America employees only)






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of beno -
 Sent: Monday, December 07, 2009 11:30 AM
 To: Flash Coders List
 Subject: [Flashcoders] Back On Course, Still Problems

 Hi;
 First, a bit of a rant. A lister here offered to help me by looking
 directly
 at my code and resolving my problem. That was 10 days ago. I was
 patient. I
 kept in touch with him. He kept saying he'd get to it. He never did. The
 result is that I am now 10 days further behind on a project I'm now 2.5
 months behind on. The moral of the story is that if you're not sincerely
 going to help, do not offer to help, because you're just creating even
 more problems.

 Ok, I tried googling wherever we were on this without success, so I'm
 starting where I knew the problem was. Here is an abbreviated version of
 my
 code:

 package
 {
  import flash.events.Event;
  import flash.events.MouseEvent;
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
   {
   public var mcHandInstance2:mcHand;
   public function Main():void
 {
   }
   public function init():void {
 hatAndFace();
 eyeball1();
 eyeball2();
 myRightHand();
 var mcHandInstance2:mcHand = new mcHand();
 addChild(mcHandInstance2)
 mcHandInstance2.addFrameScript(20, myLeftHand)
 //myLeftHand();
   }
   private function myLeftHand(e:Event=null):void
 {
 var mcHandInstance2:mcHand = new mcHand();
 

Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 2:46 PM, mark.jonk...@comcast.net wrote:

 Hi Beno

 What I meant was to start with something like this:

 public function init():void {
 hatAndFace();
 eyeball1();
 eyeball2();
 myRightHand();
 mcHandInstance2 = new mcHand();
 addChild(mcHandInstance2)
 }


Changes tested. Must continue with:
var mcHandInstance2 = new mcHand();
or nothing prints to swf.


 What you haven't told is whether all the other handlers work, is
 myRightHand() creating the right hand and placing it on stage? What's
 different about myRightHand() and myLeftHand()? Does myRightHand() also
 create an instance of mcHand and put it visibly onstage? Does it use
 positional code to put in a particular location?


Everything else works. Here are the differences:

  public function myRightHand():void
{
var mcHandInstance1:mcHand = new mcHand();
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
  }
/*
  public function set totalProgress(value:Number):void
{
myLeftHand.value = 1;
  }
*/
//  private function myLeftHand():void
  private function myLeftHand(e:Event=null):void
{
if (e.target.currentFrame == 10) { trace(yes) };
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
//if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
{x:200, startAt:{totalProgress:1}}).reverse();
  }
 }
}

What I am trying to accomplish is to make the left hand start from the end
of the general hand instance movie and go backwards. Think of having your
two hands at waist height pointing outward, then you point inward, as if you
were pointing to your bellybutton. The hands are mirror images, and that is
what I'm trying to print. It's that final commented-out line I need to work.
Of course, I started out with the same declarations in my init() function
for both hands, but that didn't satisfy the tweenMax needs.


 I have to admit, not seeing the full code and knowing what works and what
 doesn't makes it difficult to make any type of prediction. But if
 hatAndFace() and all the rest worked and only myLeftHand() wasn't and that
 was the reason for all the extra code in the init() method, I'd go back rip
 out the code in the init that creates the mcHandInstance2, make the
 myLeftHand() call directly as you did the rest. I'd double check that
 myRightHand() matched myLeftHand() with a positional only difference. Then
 I'd make certain that the position I was placing the left hand in was infact
 a visible screen location. I'd do like Jason suggested, put in a trace in
 myLeftHand


Did it. Didn't trace.

I'd also put a trace after myRightHand() call, just to make sure that the
 stack didn't quit out execution prior to hitting the myLeftHand() if all the
 traces worked but no left hand, I'd assign the left hand to a public
 property and do an inspection on x, y, alpha etc during debug to see what
 was going on. Be methodical. Change one thing at a time from what is known
 to work ie. asusming myRightHand() worked, duplicate that as myLeftHand()
 and change only the x position. See if it works, etc.


That's a good idea. I changed it to this:

  public function myRightHand():void
{
var mcHandInstance1:mcHand = new mcHand();
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
if (e.target.currentFrame == 10) { trace(yes) };
  }

which naturally threw an error, because there is no declaration of e. At
least that seemed to indicate that the code was executing all the way
through the class. Then I removed consecutively the e (got same error on
target, as I assumed) and the target, and much to my (naive) surprise
the command was totally ignored!
 TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread beno -
On Mon, Dec 7, 2009 at 3:04 PM, Paul Andrews p...@ipauland.com wrote:

 One part of me thinks you were foolish and arrogant to build a commitment
 to a client on the basis of technology that you have little grasp of. It's
 not as though it's a natural choice for anyone, despite bad circumstances.
 Most people head for more mundane solutions. It's good to know that
 technology solutions are so easy to produce from a level of no expertise.
 I'm sure many clients share that opinion.


You would be right if I didn't feel I had things totally under control.
Before I left for the jungle 5 years ago, I had a programmer fully employed
working from Belarus, a graphic artist in Russia, and a Flash designer (par
excellence, I might add) in the Ukraine. I simply assumed, with disastrous
consequences, that I could as easily outsource today as I did 5 years ago. I
was caught off-guard. I don't think you can fault me for that.


 The other part of me admires your nerve but not your disrespect for people
 who at least have good intentions.


The path to hell is paved with good intentions. My clarion-call is to be
responsible. Good intentions without responsibility is malfeasace.


 A bit more humility always helps when asking for the assistance of others.


There is nothing arrogant about pointing out people's errors, especially
when you are truly trying to help them become better people. Indeed, it is
just the opposite. It's good work :)


 I'm always sympathetic towards people facing difficullt times - I've been
 there myself - but that's tempered by knowing that you are ready to bite the
 hand that helps you at any moment.


I have not bitten any hand, nor would I. Are you offended when people point
out to you your faults? If so, how can you ever mature? The greatest of the
great are known by their eagerness to have their faults *correctly* pointed
out to them. It is the foolish that hate that, you know.


 I have a feeling that you will eventually come up roses.


LOL! Of course! And you know why? My attitude is joyous. I always reach out
to help others. I am usually misunderstood...but never by myself! So I
always come up roses!!
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Dave Watts
 First, a bit of a rant. A lister here offered to help me by looking directly
 at my code and resolving my problem. That was 10 days ago. I was patient. I
 kept in touch with him. He kept saying he'd get to it. He never did. The
 result is that I am now 10 days further behind on a project I'm now 2.5
 months behind on. The moral of the story is that if you're not sincerely
 going to help, do not offer to help, because you're just creating even
 more problems.

Unfortunately, you drew the wrong moral from that story. The moral of
the story is, if you absolutely need timely professional help, you
will need to pay for it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread John McCormack

Beno,

Persuade a library to buy the books.

Without the grounding you will grow into the subject with all sorts of 
misunderstanding that will bite you later.


I really didn't feel ready to code until I had fully digested Mook's book.

John


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Merrill, Jason
 I have not bitten any hand, nor would I. Are you offended when people
point out to you your faults? 
 If so, how can you ever mature? 
 The greatest of the great are known by their eagerness to have their
faults *correctly* pointed out to them. 
 It is the foolish that hate that, you know.

Man this guy's got cojones. Try doing that in a bar and see how fast you
land on the floor, lol.

In my twisted mind, I'm actually kinda enjoying watching this thread
self-destruct under its own weight.


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Back On Course, Still Problems

2009-12-07 Thread 2lakes

Hi Beno,

If i ever get into intolerable difficulties I ;

1. Go back to the books - grow insight.
2. Buy help or
3. Re-think the project from inside current skill-set and from  
functional/expressive intention.


Since you have no time i recommend 2
Cheers Ian

On 08/12/2009, at 6:40 AM, flashcoders-requ...@chattyfig.figleaf.com  
wrote:


I really didn't feel ready to code until I had fully digested Mook's  
book.


Ian Hobbs
Ian Hobbs Media


phone 61+ 02 89874520
mobile 0411032601
skype: ianhobbs
aim: ianhobbs11

email: 2la...@ianhobbs.net
WEB:   http://ianhobbs.net



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Bill Jones
After reading all of the back and forth on this, I'm reminded of Forgetting
Sarah Marshall.

I was gonna listen to that, but then, um, I just carried on living my
life.

But I have to agree with Jason. That kind of talk will get you a pool cue
across the jaw at our watering hole.

_
Bill Jones
Interface Developer
Backe Digital Brand Marketing
35 Cricket Terrace Center
Ardmore, PA 19003
Voice: 610-896-9260 x280
Fax: 610-896-9242
bjo...@backemarketing.com

If you want to go forward, click Backe.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread jared stanley
let me get this straight:

1. you had some talented offshore web contacts in the Ukraine 5 years ago.
2. you 'went into the jungle' and were off the grid for 5 years.
3. you get back and agree to a flash ecommerce project, not having
talked to a flash outsourcer(5 years ago an ecommerce site in flash?
we're talking Generator days right?) and for some reason cannot find
anyone able to build it(why not? how did you even scope this ecommerce
flash project?)
4. rather than keep looking for someone to do it you decide to build
it yourself, despite not touching flash for at least 5 years or more.
5. people say to get books, showed you where you could get books used
on amazon for like $8, but you're too poor to even eat, let alone
spend $8 on the books.
6. your project is two months behind schedule.


seems like the problem isn't really a flash problem.


my advice would be to
a) walk away from the project
or
b) hire someone to do it
then
c) go get a job at taco bell or the movieplex so that you have food to eat
d) catch up on the web stuff, a lot has changed in the last 5
years(youtube and facebook, they are so crazy check 'em out)
e) in a few months when you've saved up your $8 buy the books and try
getting into flash more
f) THEN start pitching clients


Best of luck!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Karl DeSaulniers
My suggetion to you bueno is to rewrite your code using the  
suggestions provided by this list. Keep all variables different. If  
your attaching multiple instances , use the for loop to assign their  
names. Trace trace trace.


Sometimes rewriting your code line by line (while gruling it can be)  
will expose it's faults to you. Somtimes our eyes wash over the same  
thing time and time again.


Oh and never ask someone to help you for free and get mad that they  
don't. Just bite your tongue and move forward on your own. Letting the  
list know how you had distain for it, just works against you in your  
search for an answer.


Oh and one other thing. I would google they type of project you making  
and see if it's already done. You may get farther adopting Somone  
elses code and morphing it into your project, and at the same time,  
see how it really works. Try this. Google a sentance of what your end  
goal of this project is.


IE: flash and python based shopping page

GL

Karl

Sent from losPhone

On Dec 7, 2009, at 4:07 PM, jared stanley jared.stan...@gmail.com  
wrote:



let me get this straight:

1. you had some talented offshore web contacts in the Ukraine 5  
years ago.

2. you 'went into the jungle' and were off the grid for 5 years.
3. you get back and agree to a flash ecommerce project, not having
talked to a flash outsourcer(5 years ago an ecommerce site in flash?
we're talking Generator days right?) and for some reason cannot find
anyone able to build it(why not? how did you even scope this ecommerce
flash project?)
4. rather than keep looking for someone to do it you decide to build
it yourself, despite not touching flash for at least 5 years or more.
5. people say to get books, showed you where you could get books used
on amazon for like $8, but you're too poor to even eat, let alone
spend $8 on the books.
6. your project is two months behind schedule.


seems like the problem isn't really a flash problem.


my advice would be to
a) walk away from the project
or
b) hire someone to do it
then
c) go get a job at taco bell or the movieplex so that you have food  
to eat

d) catch up on the web stuff, a lot has changed in the last 5
years(youtube and facebook, they are so crazy check 'em out)
e) in a few months when you've saved up your $8 buy the books and try
getting into flash more
f) THEN start pitching clients


Best of luck!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Minimizing Code: Logic Issue

2009-12-07 Thread Glen Pike

Hi,

   Not sure what your findValue function does, but I am guessing you 
are looking for the name in an array of names


   Anyway, you could create an array of names that you are going to use 
and loop throught these to attach your onRollover / onRollout 
functionality.  To make if work for each clip, you can attach the 
current name to your clip so it can use it in the onRollover function, 
etc. 
  
   Something like below might work:


  
   //Create your array somehow - this is just for show

   var myFiftyClips:Array = [, AAAB, ... AABX];

   var len:Number = myFiftyClips.length;  //don't have to do this if 
you don't want to...


   //Loop through the clips
   for(var i:Number = 0; i  len;i++) {
 
  //Grab the name we are going to use

  var nm:String = myFiftyClips[i];
 
  //now we can start accessing our clips using the name as an index...

  _root[nm]._alpha = 0;

  //Because this is AS2, you can dynamically attach properties to 
your movieclip, so assign the name as a variable of the clip so the clip 
can find it later...

  _root.mc1[nm].mc2.nm = nm;

  _root.mc1[nm].mc2.onRollover = function() {
 trace(Hello I am onRollover for  + this +  my name is  + 
this.nm);

 if(findValue(this.nm, arrayName) == 1) {
//hey presto, you can still access stuff!
_root[this.nm]._alpha = 100;
 }
  }

  _root.mc1[nm].onRollout = function() {
 _root[this.nm]._alpha = 0;
  }
   }

Lehr, Theodore wrote:

OK - imagine:

_root.._alpha = 0;
_root.mc1..mc2.onRollOver = function() {
if (findValue(, arrayName) == 1) {
_root.._alpha = 100;
}
}
_root.mc1..mc2.onRollOut = function() {
_root.._alpha=0;
}


Now, I have to repeat this code like 50 times for 50 different movies with the 
'' being replaced by a different instance name My thought was to put 
the 's into an array and loop through that - but as I am finding the code 
is not called until the event (i.e. onRollOver and thus the last array member 
is the active one... Is there anyway to minimize the code instead of havign to 
repeat this 50 times - I am sure I am approaching this from the wrong 
direction
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Kerry Thompson
Bill Jones wrote:

 I was gonna listen to that, but then, um, I just carried on living my
 life.

Reminds me of my favorite English folk singer, Bill Jones.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Kerry Thompson
Ian Hobbs wrote:

 If i ever get into intolerable difficulties I ;
 
 1. Go back to the books - grow insight.
 2. Buy help or
 3. Re-think the project from inside current skill-set and from
 functional/expressive intention.

There's a fourth option. I recently got a long-term contract offer I
couldn't pass up, but I had another short-term gig. I found another
contractor willing to take over the short-term gig. He's happy, I'm happy,
and the client loves his work.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Dave Watts
That made me snort soda up my nose. Thanks!

On Mon, Dec 7, 2009 at 17:07, jared stanley jared.stan...@gmail.com wrote:
 let me get this straight:

 1. you had some talented offshore web contacts in the Ukraine 5 years ago.
 2. you 'went into the jungle' and were off the grid for 5 years.
 3. you get back and agree to a flash ecommerce project, not having
 talked to a flash outsourcer(5 years ago an ecommerce site in flash?
 we're talking Generator days right?) and for some reason cannot find
 anyone able to build it(why not? how did you even scope this ecommerce
 flash project?)
 4. rather than keep looking for someone to do it you decide to build
 it yourself, despite not touching flash for at least 5 years or more.
 5. people say to get books, showed you where you could get books used
 on amazon for like $8, but you're too poor to even eat, let alone
 spend $8 on the books.
 6. your project is two months behind schedule.


 seems like the problem isn't really a flash problem.


 my advice would be to
 a) walk away from the project
 or
 b) hire someone to do it
 then
 c) go get a job at taco bell or the movieplex so that you have food to eat
 d) catch up on the web stuff, a lot has changed in the last 5
 years(youtube and facebook, they are so crazy check 'em out)
 e) in a few months when you've saved up your $8 buy the books and try
 getting into flash more
 f) THEN start pitching clients


 Best of luck!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Steven Sacks

 There is nothing arrogant about pointing out people's errors, especially
 when you are truly trying to help them become better people. Indeed, it is
 just the opposite. It's good work :)

 I have not bitten any hand, nor would I. Are you offended when people point
 out to you your faults? If so, how can you ever mature? The greatest of the
 great are known by their eagerness to have their faults *correctly* pointed
 out to them. It is the foolish that hate that, you know.

http://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People

Dale Carnegie wrote the manifesto on this subject in 1934. Human nature being 
what it is, what he wrote then is still true today.  I recommend that you 
include Dale Carnegie's book when you purchase Colin Moock's Essential 
Actionscript 3 book.


Here are a few chapter titles.  Take a look and see if some of the titles apply 
to your situation and approach.



Begin in a friendly way.
Call attention to other people's mistakes indirectly.
Show respect for the other person's opinions. Never tell someone they are wrong.
Ask questions instead of directly giving orders.
Don't criticize.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Glen Pike

If I were in your shoes, I would shoot myself too for being such an idiot.


I just bet you'd do
the exact same thing I'm doing if you were in my shoes...or shoot yourself
;)

BTW, any answers to my questions?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Dave Watts
 If I were in your shoes, I would shoot myself too for being such an idiot.

OK, it's probably a good idea to end this pile-on, enjoyable as it
might be. Otherwise, I might be forced to shoot myself. And then I
will shoot all of you. And since I'm the list admin, I have all your
email addresses, and therefore know where you live.

Well, anyway, let's try to stick with technical stuff. Thanks in advance!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Karl DeSaulniers

Nice.

Karl

On Dec 7, 2009, at 6:14 PM, Steven Sacks wrote:

 There is nothing arrogant about pointing out people's errors,  
especially
 when you are truly trying to help them become better people.  
Indeed, it is

 just the opposite. It's good work :)

 I have not bitten any hand, nor would I. Are you offended when  
people point
 out to you your faults? If so, how can you ever mature? The  
greatest of the
 great are known by their eagerness to have their faults  
*correctly* pointed

 out to them. It is the foolish that hate that, you know.

http://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People

Dale Carnegie wrote the manifesto on this subject in 1934. Human  
nature being what it is, what he wrote then is still true today.  I  
recommend that you include Dale Carnegie's book when you purchase  
Colin Moock's Essential Actionscript 3 book.


Here are a few chapter titles.  Take a look and see if some of the  
titles apply to your situation and approach.



Begin in a friendly way.
Call attention to other people's mistakes indirectly.
Show respect for the other person's opinions. Never tell someone  
they are wrong.

Ask questions instead of directly giving orders.
Don't criticize.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Karl DeSaulniers

Beno,
New or used? Take your pick.
Hell what's your address I'll buy you one for Christmas if it means  
this thread can end.

Pay it forward I always say.. :)

http://www.amazon.com/gp/offer-listing/0596526946/ref=rdr_ext_uan

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders