
Originally Posted by
Kid Charlie
i don't see anything wrong in your code on a quick glance. Are you getting an error? You might not need to use a string t figure out what is on the stage. if(contains(bild1Loader)){...} would trace true it bild1loader is a child.
Hi!
Yeah, I got it to work your way using contains, which is great! But I would still like to know what's wrong with my text variable thingie (since I would like to use similar stuff in the future on stuff where contains isn't applicable)...
When I export the movie with my string variables I get these compile messages:
Code:
Line 56 Warning: 3596: Duplicate variable definition. var lastChange:String = "bild3child";
Kube 62 Warning 3596: Duplicate variable definition. var lastChange:String = "bild1child";
It changes image one time, and then I get this error:
Code:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at banner_fla::MainTimeline/changeBild()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()