PDA

View Full Version : Please need help with CreateMovieClip!



Bacello
October 24th, 2007, 03:01 PM
Hello i need some help with AS.
I have a 3 buttons
button 1
button 2
button 3


when somebody clicks on one botton(button1) it should create a new movieclip and load a external swf( lets call it 1.swf) in it. meanwhile it loads the swf there should be a preloader that follows the mouse.

then when you click on another button(button2) it should create again a NEW movieclip, load another external swf (2.swf) and again the thing with the preloader. BUT the first movieclip should be deleted when the secound has finished loading.

i hope this is understandable.
:puzzle:
I really need help with this.
Please i would be really thankful!!

Thanks !!
Bacello

andreq
October 24th, 2007, 03:07 PM
search term :

createEmptyMovieClip

MovieClipLoader

Bacello
October 24th, 2007, 04:18 PM
I searched everywhere , but i cannot find what i need.

Maybe i explain it detailed.

Ok,

we have 3 buttons
button1_mc
button2_mc
button3_mc

we have a mc
content_mc

and we have a preloader
preload_mc

User comes to page -> now a new Movieclip called "one" should be created in content_mc and 1.swf should load in the new movieclip.
SWF loads -> preload_mc should appear
SWF finished loading -> preload_mc disappears.

User clicks on button2_mc -> now a new Movieclip called "two" should be created in content_mc and 2.swf should load in the new movieclip.
SWF loads -> preload_mc should appear //
Movieclip "one" should stay until "two" has finished loading
SWF finished loading -> loading preload_mc disappear , Movieclip "one" disappears.

User clicks on button3_mc -> now a new Movieclip called "three" should be created in content_mc and 3.swf should load in the new movieclip.
SWF loads -> preload_mc should appear //
Movieclip("one" or "two") thats loaded before should stay until "three" has finished loading
SWF finished loading -> loading preload_mc disappear , Movieclip "one or two" disappears.

Please if someone knows how to do this.
I need help with this...
!!
Thanks A LOT!!