Swf movie starts before preloader is finished
Hi,
I tried to implement a simple preloader for an existing swf movie. I've created a new flash document and added the Loader as well as a ProgressBar component. In the action script of the key frame 1, I implemented the following:
import mx.controls.ProgressBar;
loader.contentPath = "myMovie.swf";
pBar.setStyle("themeColor", "0xF49417");
pBar.setStyle("color","0x3D566F");
pBar.labelPlacement = "bottom";
pBar.label = "LOADING %3%%"
pBar.scaleY = 150;
pBar.conversion = 1024;
pBar.source = loader;
pBar.mode = "polled";
loader.load();
The problem is now that the movie starts playing (i.e. its sound) before the progress bar is completely finished. This usually happens around 80%. How can I avoid that the movie starts before the progress bar reaches 100%?
Thanks,
Patrik
Thanks for your replay! I added an empty keyframe to the first scene of the existing flash movie with a stop() action in it. Additionally, I modified the preloader with an action listener that is called in case the movie is loaded completely. The action script of the preloader does now look like follows (without sytle settings):
import mx.controls.ProgressBar;
loader.contentPath = "myMovie.swf";
var pbListener:Object = new Object();
pbListener.complete = function(evt_obj:Object) {
trace("movie loaded");
play();
pBar.addEventListener("complete", pbListener);
pBar.source = loader;
pBar.mode = "polled";
loader.load();
It seems now that this play() does not reference to the swf movie (myMovie.swf) with the stop in the first frame since the movie does not start playing after its loaded. How do I reference the play action to the loaded movie?
Thanks,
Patrik
Similar Messages
-
SWF Plays Before Preloader Finishes
I have a container file that contains a preloader and calls
on an swf file to load once it is finished loading...however once
the preloader gets to about 80% you can hear the music start
playing from the swf that is being loaded and the animation has
already begun to play by the time we can view the main swf....why
is this happening? i tried putting a stop() on the first frame of
the swf being loaded but it doesn't help
web link is here: www.salonroyalecourt.comMaybe I should be more clear in the way I set it up...I have
one swf that is a container within my index file in
dreamweaver...that container swf contains the preloader code on the
first keyframe, and calls for the main swf to be loaded when the
preloader is finished in the second frame...however as I said
before the preloader finishes the main swf starts playing, and i
have a stop() on the first empty keyframe of the main swf, the only
thing that does is prevent the swf from playing at all...any more
advice? -
The movie I rented on iTunes has stopped right in the middle of the movie because it hasn't finished loaded. How do I get it to start playing again before the rental expires?
Hello zooeyme,
I'd suggest reporting the issue to the folks in our iTunes Store.
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
http://support.apple.com/kb/HT1933
Cheers,
Allen -
I've just rented a movie on iTunes, and I tried to start it before the download finished, and now even though it has finished when I try to play it nothing happens. Is there a way to reload it without paying again??
I'm not convinced that starting it before it was downloaded has anything to do with it, you should be able to do that. I'd try restarting the computer and if that doesn't help, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.
-
Blank screen between preloader and beginning of SWF movie
I'm having a problem with a published SWF. A long lag time is occurring between the end of my AS3 preloader and the beginning of my SWF movie. Once the preloader disappears, the SWF screen goes blank for up to 10 seconds before the movie begins. I've monitored the SWF's download progress using Firebug, and the preloader disappears once 45% of the SWF has been downloaded, as is to be expected. But the movie does not begin until most of the SWF has been downloaded, which causes the 10 seconds of blank screen. After reading some blog posts, I suspected that the audio embedded in the Captivate presentation was causing the SWF to download all of the audio before starting the movie. I followed recommendations to add a tiny amount of silence the beginning of each slide, but it hasn't resolved the problem.
Does anyone know how to fix a long lag time between a preloader and movie? My SWF settings and other details are below. Thanks in advance.
- Using Captivate 5
- The presentation has 18 slides. Each slide has one JPG and one audio clip. (The audio clips were imported one at a time, instead of importing one large audio file and having Captivate spread it across multiple slides.)
- Each slide is .4 seconds longer than its audio clip, leaving .2 seconds of silence before and after the audio clip.
- SWF Size and Quality are set to Low
- Audio Quality is set to MP3, 64Kbps, 44.100 KHz
- Using AS3 preloader set to 45%
- The SWF is hosted on a web server and is viewed via the htm file that is generated when the SWF is published.
KimHi Vikranth,
Thanks for your help. The online SWF is here:
http://leo.lincolninst.edu/eTeach/captivate-tests/inside-focus-area/new-opt-img-mp3-chunks -full-2/inside-focus-area-new-opt-img.htm
I've also posted the same SWF with a 15% preloader here (the smaller the preloader percentage, the longer the blank screen):
http://leo.lincolninst.edu/eTeach/captivate-tests/inside-focus-area/new-opt-img-mp3-chunks -full-2-15/inside-focus-area-new-opt-img.htm
I've sent the cptx file to your email address.
Kim -
Lag after pre-loader hits 60% and before movie starts playing.
Hi all,
I’m hoping somebody can shed some light on an issue
that I’m experiencing with a Captivate project I’m
working on. I’ll try to explain this in detail so you
understand the background and scope of this project. These are
being exported as HTML/SWF and being viewed within IE6.
I’ve been tasked with taking a new employee training
course that is currently handled by a live person standing in front
of a room of people and showing them an 18 minute VHS tape and also
covering information that is presented on a PowerPoint file, and
making it into a Captivate movie.
I was able to get the original digital video cut into 4
chunks and converted to SWF by media group that produced the tape.
The four SWF files are 320x240 and range from 13 to 22 megs.
Because of the size of the files and the amount of content, I
created 8 ‘modules’ that make up the larger project.
The last slide of the first module launches the 2nd module, etc.
until the user has seen all of the modules which on their side
(other than a brief pre-loader popping up at times) is mostly
transparent and they think they are just watching a 30 minute
training course.
Basically, what I’ve done is laid out the modules so
that the whole course alternates back and forth between text slides
with voice-overs and the movie clips. The movie clip SWF’s
have been embedded into every other module, so:
Module 1: Intro to the course (text & voice-overs)
Module 2: Video clip 1
Module 3: Discussion about stuff (text & voice-overs)
Module 4: Video clip 2
Module 5: Discussion about stuff (text & voice-overs)
Module 6: Video clip 3
Module 7: Discussion about stuff (text & voice-overs)
Module 8: Video clip 4 and wrap-up
Now here is the problem:
We have 20+ offices and I am located at the main office where
the web servers are located. If I run through this, everything
works great. I tested this in one of our off-site locations today
where they have a semi-fast connection, but still going across a
WAN.
Module 1 loads fine. Hits 60%, plays, user can click Next,
Next, Next to proceed through the training. At the end of Module 1,
we prompt them with some text to let them know there may be a brief
delay before they see the upcoming video clip. Click Next, loads
Module2.swf which has the videoclip1.swf embedded in it (21 megs).
Takes a little while to load which is expected. Hits 60%.
Preloader goes away and then just white screen for at least 10
seconds (sometimes 20-30 seconds, depending on the size of the
embedded movie clip) before the movie actually starts playing.
This is not acceptable as the user will think that something is
broken. If the movie is not completely loaded, then it
shouldn’t have hit 60% and the preloader graphic disappear,
right?
I think that the problem revolves around the movie clip not
being able to play until it is fully loaded, although the Module
has loaded the 60% that it needs to begin playing. The only way
around this that I see is re-arrange my slides so that the video
clip is not the first slide to play in any given module.
We tried this on at least 7 computers, all of which were just
rolled out new last fall, so the machines are definitely beefy
enough to handle this.
Any ideas?
Thanks,
Mikequote:
Originally posted by:
CatBandit
I just read your title, Mike (I don't have time for the whole
article - sorry), but felt it might help to point out that 60% is
40% less than 100%.
Nope, I am not being a wise guy, but I know it's possible to
have so much "weight" in the content of the last 40% that
additional delay might be required while a (early) required element
or object completes down-streaming. Just a thought...
Hi Larry,
Good to see you back on the forums and thanks for the reply.
What you posted further proves my point. From what I've been taught
about Captivate, it loads to 60% and begins to play while the
remaining 40% loads. Not loads to 60% and then some portion of the
remaining 40% may or may not have to load before it starts. If
that's the case, why not just load 100% before it starts and then
have no problems?
It shouldn't matter how large the file is, right? The only
difference is that larger files would take longer to reach the 60%
mark. 60% is 60% is 60%. Compare a feather to a car. 60% of the
weight of each item is still 60%, it doesn't matter how much it
weighs.
60% of a cubic foot of rock is the same percentage
as 60% of a cubic foot of marshmallows.
Anyway, I think the solution here is to fudge the problem by
putting a few 'less weighty' slides in front of the slide with the
embedded video so that the user has something to look at other than
a blank screen. I was just hoping somebody else might have
experience this and had a magic button I could press to make it all
better.
I could handle this if the preloader continued running so the
user had some clue that it was still working, but when the
preloader hits 60% and disappears and then nothing happens for
another 10-20 seconds, that's a problem. -
I am very disappointed with iTunes. I have 1200 songs and I can’t play them. I try to play them and before one song finisha song starts playing. This then results in hearing two songs at the same time.I will like to know if you can fix this. I feel like listening with the iTunesplayer is useless.
I don't know man I too hope apple will do something this new I-tunes blow my top lost my whole tune!!!
-
with i dvd, using onestep dvd from movie (which I have done, successfully, many time before) but now the comuter ejects the disk 5 minutes before it is finished, and the disk is blank, any thoughts anyone?
with i dvd, using onestep dvd from movie (which I have done, successfully, many time before) but now the comuter ejects the disk 5 minutes before it is finished, and the disk is blank, any thoughts anyone?
-
I downloaded an HD movie onto my laptop from i-tunes. It plays fine on my laptop, but when I plug in my HD projector, the movie quits. When I unplug the projector, the movie starts again. I have never had a problem with projecting an itunes movie before this. Someone told me that i-tunes changed something so that movies can no longer be projected. We have a home theatre and have watched movies this way quite regularly, so it would be a drag if Apple will prevent us from doing this in the future.
I don’t know about projection, but I’m unable to watch HD content in iTunes because my Apple 30-inch Cinema Display is not HDCP-compliant (which is part of an HD copy-protection scheme).
The other movies you’ve projected, were they HD as well? If not, it could be the same problem: your projector is not HDCP-compliant. -
How to Restart a SWF movie (from in the SWF)
Hello all:)
My designer has a flash movie that is heavily actionscript
(it has only 1 frame on the timeline!) Is it possible to create a
button that will either replay the movie from the beginning
(ignoring any input info) or refresh the HTML page it is on so the
movie starts over? We can't use the "Go to Frame 1" action because
it does not clear the variables already input (it's already in
Frame 1).
I appreciate any help anyone can come up with...
Again, we need to either refresh the HTML page the SWF file
is on from inside the SWF, or make the SWF play again from scratch,
erasing any variables it may have.Delete it.
-
Hi,
I've been working on a CD-Rom presentation with Flash and so
far I was mostly using AS1 and AS2 to built it. I started to learn
some AS3 for a part of the presentation but now I'm running into
issue, here's the main one:
I'm loading different SWF movie one on top of the other, and
unloading them as needed, now this is very easy with AS1 (loadmovie
and unloadmovie function are simple to use), but when I'm loading
my file built with AS3 I can't figure out how to unload it. The AS3
movie is loaded on the Level 5, I just want to make sure that when
I'm unloading the file it's not unloading everything else.
Can anyone help me.
Yann PoirierDisregard, I found my answer
-
Using loadVariables with nested SWF movies
I have a .swf with a dynamic text box that loads an external
text file. Using both loadVars and loadVariables I can see the that
text is loaded when i play just that file but when i nest the .swf
into a movie clip in a container movie the text doesn't appear.
I've used many different path and variable variations but with no
joy. The nested .swf is loaded using this syntax...
loadMovie("storyboard.swf",'_root.mainmask.inside_loader');
the syntax I'm using on the storyboard.swf movie to load the
text are variations on
loadVariables("news.txt" this);
I've tried playing with _parent and _root to get from the top
level of the container movie to the nested one but can't hit the
spot.
Thanks in advance for any help.if you use loadVariables() (AND you correct your syntax) in
storyboard.swf, then you should check to see if the variables are
loaded before assigning their value(s) to the text property of your
textfield. if the textfield is on the same timeline that contains
the loadVariables code, you don't need to use an explicit path.
in any case, you can always use trace(this) on
1. the timeline where you want to put your code assigning the
text property and
2. on the timeline that contains your loadVariables()
statement and
3. on the timeline that contains your textfield.
with those three trace statements you can get explicit help
for the correct path if you're still having trouble. -
¿How i make a Browser Detect swf movie?
Hi, i use a simple embed swf movie in one of many pages i own, but recently I build a new page in html5. But i tested in Internet Explorer and doesnt work well. What i need its a script code in AS3 to use in my swf movie that detect the browser and if the browser its IE9 load an old page, but if its other browser is like mozilla or chrome, load the new page in html5.
It is possible to do that in AS3 right?
Thanks to all
FirefawxYou can simply say "I want an animation to play before it decides which page to load" and we'd get it. So you want to show your logo animation.
Use the tutorial link I gave you and look at the code. It is a full example of browser detection using both actionscript and javascript. ActionScript needs JavaScript to get the information on what browser it is. All of the information and code examples are there to show you how to detect the browser.
Spanish translation:
Usted puede simplemente decir "yo quiero una animación para jugar antes de que decida lo que se cargue la página" y que sería para nosotros. Así que usted quieremostrar su animación de la insignia.
Utilice el enlace tutorial que te di y mirar el código. Se trata de un ejemplo completo dela detección del navegador utilizando tanto ActionScript y JavaScript. ActionScriptnecesita JavaScript para obtener la información del navegador que es. Todos los ejemplos de la información y el código están ahí para mostrar la forma de detectar el navegador. -
Captivate/Flash Movie Starts Automatically
I'm learning to use RoboHelp X5 and tried placing an .swf
(Flash movie) that I created with Captivate within my WebHelp. In
Captivate I added a playback control bar (forward, pause, play,
etc.), which works great standalone. However, after generating the
WebHelp, when I view the page that the movie is on, the movie
starts automatically---actually it waits about 8 seconds, but then
just starts. I would expect the person viewing the movie to have to
use the playback control to manually start the movie. Is there an
option somewhere that I need to turn on/off?
Thanks,
JohnHi John and welcome to the community
There are two ways I'm aware of that can be used to
accomplish this.
The first and possibly simplest way is to simply insert a
click box at the very beginning of the movie. By default, click
boxes are configured to pause the movie until the user interacts by
clicking the click box area. Actually, if you are presenting your
movie in .EXE format, I believe this is the only way you can
accomplish it.
The second way is to configure the HTML code used in the HTML
Companion page. Obviously this only works if you are presenting
your movie in .SWF format and using the companion HTML page to
display the movie.
Captivate creates the following code when you create Flash
(SWF) output and select the Export HTML option.
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<title>Movie Title</title>
</head>
<body>
<center>
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="640" height="480" ID="Captivate1">
<param name="movie" value="MovieName.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="loop" value="0">
<embed src="MovieName.swf" width="640" height="480"
loop="0" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" menu="false"></embed>
</object>
</center>
</body>
</html>
If you amend this code by inserting <param name="play"
value="false" /> and play="false", you achieve the goal of
displaying the movie in a "paused to begin with" state.
Amended code is below
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<title>Movie Title</title>
</head>
<body>
<center>
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="640" height="480" ID="Captivate1">
<param name="movie" value="MovieName.swf">
<param name="play" value="false" />
<param name="quality" value="high">
<param name="menu" value="false">
<param name="loop" value="0">
<embed src="MovieName.swf" play="false" width="640"
height="480" loop="0" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" menu="false"></embed>
</object>
</center>
</body>
</html>
Hope this helps... Rick -
Hello,
I'm trying to create a virtual world but every time I try and publish it, it says error creating swf movie file. Here's a video to show you what i mean:
http://www.youtube.com/watch?v=WRAAGoQK80A&feature=youtu.beHi foxxy123,
Two things that I noticed in the video:
1) You are not saving the file before publishing.
2) Flash warns you about the fonts missing from your system while opening the file.
"The document contains one or more fonts not available on your system. The text will display and publish with the font mapping below:"
So download and install the fonts on your computer "Blaster" and "Blaster Infinite" and save the file before publishing.
It doesn't seem to be saying error creating swf movie file, it just says something about the font not being right.
The message warn you that you have an anti-alias mode set on text and it requires you to have embedded fonts to use anti-aliasing. If you do not want to see that message anymore, then select your text blocks and set the anti-alias types to Use Device Fonts.
You can disable the warning message in the preferences dialog
Edit > Preferences > Warnings > uncheck "Warn on text needs embedded font".
Hope this helps,
Thanks!
Bhawna
Maybe you are looking for
-
Cant hear anything in my macbook pro
i cant hear anything just when i move something to the trash
-
Firefox is slow to shutdown and therefore cannot open again for a few minutes or a restart.This is on 2 different PC's 1 running XP and the other Windows 7.Could you throw some light on this problem Latest version running Thanks
-
My Lumia 920 frequently refuse to power on
I have had d phone for up to 12 months. Although a good phone, I experience frequent refusal to power on. This requires taking it to Nokia care almost on monthly basis. I use only Nokia chargers, & don't allow the battery to drain b4 charging. What c
-
SSD Install Question. Does it need to be formatted?
I guess what I am trying to say is, do I have to format the new SSD before I install it or can I simply remove the old HD and install the new SSD, turn on the MBP and Command+ R when the gray screen comes on and restore from the last TimeMachine back
-
AAA static IP address for RA VPN Client
Hi, my vpn group and VPN POOL is locally created in Cisco VPN router but users are authenticated through ACS, AAA server via TACACS. Now I want to assign the static ip address to VPN Client. Everything is fine but due to the application problem I wa