A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Following MovieClip

  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    55

    Following MovieClip

    If you take a look at http://img269.imageshack.us/i/afbeelding3e.png/ you see I created a timeline motion tween on the blue transparent image. Now I want to load this image via actionscript and follow the exact guidelines I gave there.

    This is what I use in AS3:
    Code:
    loader = new Loader();
    			loader.load(new URLRequest(lastImage));
    			
    			thisMovie.imageLoader.addChild(loader);
    It does load the image, however it does not place it in the imageLoader I created in Flash (yes I gave it an instance name)

    This is the error I get (ie it doesn't access the imageLoader). It does when I put it in the first frame on the timeline, but then it doesn't follow the guidelines I gave in the timeline. How do I fix this?
    TypeError: Error #1009: Cannot access a property or method of a null object reference.

  2. #2
    Señor Member Mavrisa's Avatar
    Join Date
    Oct 2005
    Location
    Canada
    Posts
    506
    You have several keyframes on your object and you would have to give the name to the instance on every keyframe rather than just the first. That should work, although it will take a little while..
    Haikus are easy
    But sometimes they don't make sense
    Refrigerator

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center