Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 5th, 2003, 07:41 AM
gomez6760 gomez6760 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 12 gomez6760 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 28 sec
Reputation Power: 0
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!!

Reply With Quote
  #2  
Old December 5th, 2003, 11:03 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,632 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 14 h 52 m 21 sec
Reputation Power: 538
Facebook MySpace
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.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 6th, 2003, 01:15 AM
gomez6760 gomez6760 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 12 gomez6760 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 28 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old December 6th, 2003, 05:43 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,632 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 14 h 52 m 21 sec
Reputation Power: 538
Facebook MySpace
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Preloading a movie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway