lol
sometime Flash gets me nervous...I did your same steps but I do not get errors![]()
Hi Flep,
OK, here step by step:
I decompressed the zip-file again and open main.fla.
Then I compile the swf. No errors yet.
I press Button 1, "one.swf" is loaded correctly and I receive:
"I am one.swf and now I can interact with the main SWF
...and I can also interact with the MovieClip of main SWF from a nested MovieClip"
Everything OK, but then I press Button 2, "two.swf" is loaded correctly and I get the following error:
"ArgumentError: Error #2025: Das angegebene DisplayObject muss ein untergeordnetes Element des Aufrufers sein.
at flash.display::Loader/unload()
at main_fla::MainTimeline/onButtonDown()"
Now every time I press another Button, the files are loaded correctly, but I get the same ArgumentError. I think, there must be a problem by unloading the previous swfs.
Thanx,
ciao Aydin
lol
sometime Flash gets me nervous...I did your same steps but I do not get errors![]()
Hi Flep,
yes you're so right... Sometimes I think, Flash is like a woman you love and you think you know everything about, even the mistakes, you reached a lot with. And everytime you catch errors, she says it's your fault, you're not doing right... ;o)
Ciao Aydin
ha!![]()
I can load the first swf ok but when I try to load the next swf I get the error message:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::Loader/unload()
at main_fla::MainTimeline/onButtonDown()
I have seen this error many times before but do not understand what it means??/
Thanks for your help.
Hi,
as I sais I do not get any error.
Anyway, if you take off these lines:
do you still get the error ?Code:if(loader!=null) loader.unload();
Or try to change the function onButtonDown with the following:
Code:function onButtonDown(evt:MouseEvent):void { if(loader!=null) { loader.unload(); loader=null; } request=new URLRequest(my_videos[evt.target.id]); loader=new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageLoaded); loader.load(request); }
Hi Flep,
removing the 2 llines of code fix it.
But this one doesn't work.Code:if(loader!=null) loader.unload();
I don't understand why?Code:if(loader!=null) { loader.unload(); loader=null; }
Seems to be correctly. Any idea?
Ciao Aydin
Flep, I think this is perfect. Good job on the keeping the code simple.![]()
I'm building a drop down menu with four main buttons that click open 4 sub buttons.
The main buttons contain no swfs but the sub buttons buttons each contain a swf file. I'm really stuck and have no idea on how to script this. Is this a case of different levels or sub clicks or what?
Please help me...Iv'e been stuck for days.
I'll highly appreciate a reply!!
Thanks, Susanne
Bookmarks