On Fri, Nov 27, 2009 at 3:47 PM, Anthony Pace <anthony.p...@utoronto.ca>wrote:

> oops, it should have said oops...lol, I screw up a ton too.
>
> Sorry. This is what's on frame one of the only layer in the timeline:

var main:Main = new Main();
addChild(main);
main.init();
stop();

Here is the code again:

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 {
// This code works as well (or not) in Main

    var mcHandInstance2:mcHand = new mcHand();
    addChild(mcHandInstance2)
    mcHandInstance2.
addFrameScript(20, myLeftHand)
  }
// The following two lines work as well (or not)
//  private function myLeftHand():void
  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();
  }
 }
}

I'm sure you're right about working with the timeline and IDE in general.
However, you obviously speak from a wealth of experience which at this point
I can only admire from a distance. I believe I will learn what you have
indicated as time goes on, and I still believe, as you have somewhat
affirmed, that my present course of action is the most intelligent.

I look forward to your help in determining why mcHandInstance2 isn't
playing, despite the fact that it doesn't throw any errors.
TIA,
beno
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to