PDA

View Full Version : dynamic classes that extends MovieClip and TransitionManager


GFX Complex
02-03-2009, 04:05 PM
I have a super class that extends MovieClip. I also have a child class that extends that super.

I want to be able to use the TransitionManager to the apply transitions to the child class. I know that by setting the child class to a dynamic class that this will over come the "Error #1069: Property __transitionManager not found" error, but I don't know why that works or what a dynamic class is doing that a regular class that extends MovieClip is not.

Using a dynamic class would be just fine if I did not get other errors that are to due with Event.RESIZE. I have an Event.RESIZE resize listener with stage resize logic in the super class that causes news errors if the stage resized durring the TransitionManager.start() method. The worst part is the error that the stage resize logic create is Error #1009: Cannot access a property or method of a null object reference.

Dam that Error#1009!

Can some one tell me what is a dynamic class and why I need to use it to create properties that wont create if only extending MovieClip?

Thanks... :confused:

GFX Complex
02-03-2009, 09:46 PM
Ok, so I have learned that a dynamic class is a class the can create new Propertys and mothods at run time.

So why does extendsing a movieclip class brake the creation of the __transitionManager property and how is it being made at run time by passing to the TransitionManager.start() method?

As for the error about rescalling the browser I think it has to do with the fact that I am using the Iris transition and that it needs the look at the stage to set the starting point of the effect, but why that would be stopping that just by resizing is over head.