View Full Version : Very Urgent-how to stop externally loading swf from going back to start
Arunima
October 5th, 2005, 06:32 AM
Hi
I am making a website and am having a very hard time with the actionscripting and external loading involved. I have managed to auto load the background externally but the problem is that once the bgload movie(which is loading externally in main.swf) is loaded, it goes back to start.
Could any body please let me knw the code to make the "bgload" movie stop right there after its played once....
this is very urgent
Thanks
Arunima
surya_mayekar
October 5th, 2005, 06:49 AM
place stop() action at the end of your bgload movie... thats it..
Arunima
October 5th, 2005, 06:55 AM
Hi Surya
Thanks...but i already did that...dsnt seem to work..my bgload movie still disappears after its played in the main movie...:(
what do i do..any other suggestions
I would really appreciate it
Thanks
Arunima
surya_mayekar
October 5th, 2005, 06:59 AM
how many frames you have in your main movie... is it playing back....
Arunima
October 5th, 2005, 07:09 AM
The main movie has 5 frames right now...on the 1st frame of main swf this is the code
loadMovie("bgload.swf",_root.contentload);
//contentload is instance name of the blank mc im loading the bgload.swf in.
and the last frame has this code,
contentload.bgclip.play();
stop();
// where bgclip is the instance name of the bgload movie
Since the background is not working (ie it disappears once its played) i am not able to make navigation in the main movie
:(
surya_mayekar
October 5th, 2005, 07:14 AM
can u post the fla.
Arunima
October 5th, 2005, 07:30 AM
Yep sending on ur rediffmail id
thanks a lot
prakash_rc
October 5th, 2005, 07:45 AM
Hi,
Try this for your clip
Create a BLANK Movie Clip and name it as abc
Then from where you are calling the external file in that frame write this code
According to me that frame must have a stop(); function else after one play the frame will move forward so you need to call the external swf from a frame where you have stopped your flash using stop();.
_root.createEmptyMovieClip("abc", 1);
loadMovie("bgload.swf", "abc");
This will probably solve your problem
Further in the bgload file at the last frame you need to stop();
Hope it solves your problem
Prakash
Arunima
October 5th, 2005, 08:04 AM
Hi Prakash
Thanks for the help....but stop (); at the end of bgload movie still dsnt help...my movie is loading fine but as soon as it plays once it disappears ie. it comes to back to the 1st frame of bgload movie, which has the alpha 0 of the background (background is a tween from alpha 0 to full)
Hope u get what im trying to put fwd here ....any other suggestions :(
prakash_rc
October 6th, 2005, 11:15 AM
Sorry for the delay Can you please send you fla file across to me. Let me check out and let u know
Prakash
Hi Prakash
Thanks for the help....but stop (); at the end of bgload movie still dsnt help...my movie is loading fine but as soon as it plays once it disappears ie. it comes to back to the 1st frame of bgload movie, which has the alpha 0 of the background (background is a tween from alpha 0 to full)
Hope u get what im trying to put fwd here ....any other suggestions :(
Arunima
October 7th, 2005, 07:43 AM
Hi Prakash
Thanks for the help...i did play around with it and did manage to get the problem solved...but since im a beginner with action script the thing is killing me...I am a student and am making a website for my uni project. I want to get the navigation like in www.modernista.com (http://www.modernista.com) , like in this iste when u click on Work and the menus appear in center and then u click on any work and menu goes to bottom as a smaller one...Do u any way that i can get even closer to this one????????????????
Cheers
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.