;

PDA

Click to See Complete Forum and Search --> : Following MovieClip


Mpjraaij
06-15-2009, 11:29 AM
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:
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.

Mavrisa
06-21-2009, 02:50 PM
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..