|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Preloading a movie
Thanks you for your help Rollershade, here is something else for anybody.
1. My main page has a movie clip that loads my second page which has a second movie clip. 2. In the second page, the movie is to long so I wanted to preloaded because of an mp3 song. 3. This is what I have done now, I divided my movieclip of the second page into two scenes. The first scen has only one frame, it is an instance of a movieclip that simply says "loading...". And also that frame has an action property that is: ifFrameLoaded ("scene 2","end") { gotoAndPlay("Scene 2","start"); } Now should this work??? What I want is the scene one will display "loading..." until scene two is done and after that play scene2. Now what I find it does it stills shows the screen empty and it plays the movieclip afterwards without seeing scene 1 because it is only in one frame so you don't have time to see it. I don't mine not seeing my scene one as long as the animation is loaded instantly but not have the page loaded and wait there without seeing my scene1. My question is as follows, is my scene1 one not loading because it is part of my movie so it also waits for it to be loaded? if that is the case then my solution is fairly simple. But I will not ask for it because maybe someone will tell me what did I do wrong. www.prideimage.com You can view the animation there. First page calls the second page. Second page should have the "loading..." scene until scene 2 is complete but you just see nothing until the movie is ready. Any suggestions or answers Thank you in advance. I appreciate it!! |
|
#2
|
|||
|
|||
|
Hi, I recreated what your describing. Whats happening is that since you dont have a stop action on your preloader scene it is just playing straight through and going to the next scene. What I mean is that you have nothing holding the animation on the preloader scene. I modified the preloader scene by adding a second keyframe straight after the first.
The second has: gotoAndPlay(1); The first keyframe is slightly changed: ifFrameLoaded ("Scene 1","end") { gotoAndPlay("Scene 1","start"); } I just changed the cases, dont know if that will make a difference. Now the preloader scene will loop until the "end" frame is encountered. Try it out and let me know how it goes. Makes a pretty nice and small preloader if it does. |
|
#3
|
|||
|
|||
|
Thank you, other question
Thanks, works like a charm. www.prideimage.com
The effect is what i wanted. Now the next question is as follows. The file with the mp3 is way to big. Close to 4mg. I don't know why, is there a way of compressing more the song or maybe it is better to remove the song of the movieclip and leaving it to the webpage to call it. What do you think? |
|
#4
|
|||
|
|||
|
Hi, there was another question in the forum recently about sound formats in flash. Take a look at the link on that about minimising sound files. If you cant make it smaller after reading that then i'd say leave it to the page. I take it you mean either dynamically loading it (if the users wants) or using the html somehow
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Preloading a movie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|