Basic princibles of loading feature in flash movies
Hi everyone,
just a quick question,
what are the basic princibles of the loading feature,
i.e. when a bar goes across the screen indicating how much
percent is loaded.
how do they do this and keep it moveing at the same rate as
the video loads?
please answer if you know,
Thanks!
quote:
Originally posted by:
dzedward
you cant switch back and fourth from AS3 to AS2 in your movie
and expect it to work. its like somone who only speaks english,
trying to read a book in half english and half german. it just
doesnt work.. look here for a preloader tutorial for AS3
http://flashas3.flashscript.biz/stage_preloader/Stage_preloader_2.html
no no, you see when i go file> new> it gives me the
option of makeing a new as2 file or as3 file
Similar Messages
-
Loading URL after flash movie finishes
I have created a flash movie which i have taken into a html
page. when the flash movie has finished i want to load a html page
in the current window. What actionscript should i be using to do
what i want?I'm far from an flash expert but off the top of my head you
could try adding this to a blank keyframe at the end of your movie:
getURL(
http://www.whatever.com,
"_self");
worth a try -
Load webpage in flash movie?
I've been working with components for a while with a lot of
actionscript, and I really cannot find out how to put a website
inside a flash movie using the internet connection component. Am I
using the right component or am I trying the impossable? Please
respond. Thanks in advanced!You can load the raw html - if flash is told (e.g. via
flashvars) the url of the page that you want (its available in
flash as what you would think of as the browser's 'view source'
style plain text) with either as2 or as3.
But you can't do full browser-style rendering of the content
because flash just can't do all that. You could parse the raw html
(probably a custom parser as I think the internal xml parser might
choke on some of the tags in html that are not closed such as
<br> etc) and just pick out bits of text or images that you
could display but you can't achieve an embedded browser.
Adobe's AIR might be more what you want - it has embedded
browser support- but it doesn't run inside a browser like flash. -
On the development version of a site, I have created a flash
movie that uses an XML file that refers to the filenames of images
and their respective captions that are then loaded into the flash
movie.
The images are loaded 2 at a time, into movie containers
within the movie, and then the movies containing the images cycle
through the images one at a time, one movie container fading out
revealing the next image below it, etc. etc.
Basically, I have used this on the site for many photo
galleries. Each one uses the same flash file (in its own folder on
the server, with its respective "images" subdirectory) coupled with
an XML file (all in the same folder on the server) that tells the
flash file where the images are, and in what order, and their
related captions.
There are 9 photo galleries, therefore 9 folders on the
server, each with their own flash and XML and JPEG image files. For
3 specific galleries, the flash file does not load images on some
computers using IE. On the same computers, all other galleries work
fine.
Can anyone even guess what could be causing this??
Many thanks in advance,
ArmoMaybe you can try You Tube Api for flash
http://code.google.com/apis/youtube/flash_api_reference.html -
How to position a flash movie within a web page?
Hi guys.
I have a flash movie that is going to be loaded within
another flash movie via an xml list.
How can I set the position to load the inserted movie to the
center of the page?
At the moment it loads in the top left hand corner.Hi there.
Thanks for replying.
the website in question is www,ridethespiral.net and if you
click on pilot map you will see the error.
The main (Background) flash file is from a template site so I
didn't write the code.
But I think this is it.
//Function used to load external SWF files and call the
loader MC -------------------------------------------
function loadMovieClip (externalTarget:String,
targetRoot:MovieClip) {
var mcLoader:MovieClipLoader = new MovieClipLoader ();
var listenerLoad:Object = new Object ();
listenerLoad.onLoadStart = function (target:MovieClip) {
loader._visible = true;
ZigoEngine.doTween (loader,'_alpha',100,0.5,"easeOutExpo");
//Loading Progress
listenerLoad.onLoadProgress = function (target:MovieClip,
bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round (bytesLoaded / bytesTotal * 100);
loader.percentTxt.text = percent + "%";
//On Load Complete
listenerLoad.onLoadComplete = function
(target:MovieClip):Void {
ZigoEngine.doTween
(loader,'_alpha',0,0.5,"easeOutExpo",0,function () {
loader._visible = false;
ZigoEngine.doTween
(content_container,'_alpha',100,0.5,"easeOutExpo",0,function () {
content_blocker._visible = false;
mcLoader.addListener (listenerLoad);
mcLoader.loadClip (externalTarget,targetRoot); -
Flash movies title picture loading very slow
Hi!
I convert mpgs to flash movies in Flash 8 and
put them on a webpage in Dreamweaver using a
Halo skin.
There are several movies on a page and when a user
opens the page it takes a long time for the first pictures
of the movies with the Halo skin to load.
Any ideas about what is going on? This happens even on
my own computer with cable connection.
Thanks, AmdyDeveloper-specific resources include:
MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads
Tip: When posting in Developer forums, always include a link to your web site or test pages in your first post.
IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx
IE’s Compatibility Features for Site Developers
https://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility-features-for-site-develo pers.aspx
Preparing Your Site for IE9
http://blogs.msdn.com/b/ie/archive/2011/03/18/preparing-your-site-for-ie9.aspx
Expression Web SuperPreview for Internet Explorer (60-day free-trial, stand-alone visual debugging tool for all versions of Internet Explorer)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e6cc9b3e-7eab-4525-8322-14d7e2 67eb2c
Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/products/Web_ReleaseNotes.aspx
Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/ -
Flash movie doesn't load properly in IE only
I have a simple flash movie which transitions through text and photos. I have a preloader (AS3) on frame 1, which sends the playhead to frame 2, after the movie has loaded 100%. For some reason, in Internet Explorer, the preloader bar will load all the way, but fail to move the playhead to frame 2, so it'll just sit there, with the preload bar at 100%. However, this does not happen every time. For instance, right now, the flash movie will play when I initially go to the website, but when I click on another page, the same flash header (same swf on each page) will just show the preloader bar but will not play the rest of the movie. Reloading the page doesn't help. Closing the browser and reopening it doesn't help. Clearing the browser cache doesn't help either. So, the flash movie will play correctly on the first page of the website I go to (whether it be the home page or another page) but then when I go to any other page which has the flash movie, it won't play, just sits there with the preloader bar showing. And then when going back to the initial page I entered the site on, the flash movie no longer plays there, either. I haven't seen this problem in any other browser than Internet Explorer (6 and 7). I've checked in Firefox on Mac and PC and Safari on Mac. I'm using flash player 10.0.22.87 on my Mac and PC. The flash movie was made in Flash CS3, for flash player 9, actionscript 3 code.
So, to see the problem, go here in Internet Explorer: http://demo.matthewpavkov.com/adairsolar. Wait for the movie to load and start playing. It works. Then, navigate to one of the other pages and you'll see that the same swf will not play. Navigate back to the home page, the swf does not play.
Here is the preloader code:
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if (pcent>=100) {
this.gotoAndStop(2);
Also, if I remove the preloader actionscript code, the flash movie plays correctly. You can see that here: http://demo.matthewpavkov.com/adairsolar/no-preload
The .fla is available to anyone who wants to take a closer look.mjjp,
In may just be that in IE, the ProgressEvent never fires -- because your content is already cached. See what happens if you add the following new lines (very end of the code sample):
this.stop();
this.loaderInfo.addEventListener(
ProgressEvent.PROGRESS, PL_LOADING
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if (pcent>=100) {
this.gotoAndStop(2);
if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal) {
this.gotoAndStop(2);
See what's going on? This way, even of the ProgressEvent handler never fires, you're still comparing the bytesLoaded property against the bytesTotal property.
David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design." -
How can I get my Flash movie to load correctly in Internet Explorer?
I loaded an swf into an html. It loads fine in Safari, Firefox and Opera. However, in Internet Explorer the swf covers up part of the copy. I tried everything with the css to get it to work, but it nothing has helped. Among other things, I tried changing the z-index in the css, but that doesn't do anything. Is there a specific code I need to add to my html regarding the importing of the flash movie that would be specific to IE?
This thread should be in either the Flash Pro forum or the Dreamweaver forum.
This is for Flash Player and Flash Player related issues, not Flash or browser or HTML issues. -
Flash movie not loading in IE 8....??
Hi, ive made a flash site in Flash CS4 .The flash movie doesnt load either on my computer or on web server, but only in IE 8 ??, in all other browsers(FF,Safari,opera) it works????
Why does this happen?
This is the page http://www.fragojo-nekretnine.com/
and the code
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '1280',
'height', '650',
'src', 'index',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index',
'bgcolor', '#242424',
'name', 'index',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1280" height="650" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#242424" /> <embed src="index.swf" quality="high" bgcolor="#242424" width="1280" height="650" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
Please help!!!
Thankswww.micca.co.uk/1871productions/showreels.html
If you try any in IE8, they stop half way and do not give a smooth stream. I am wondering if I have to stream differently and not via the progressive download stream as I have??! -
Need Your Help with Loading SWF into another Flash Movie!
Hello,
I have created TWO Flash movies. They work just fine
individually, but I get problem when I put one into another one!
The main Flash is a Menu and the second one if a Photo Album.
The Menu is series of animation (Moving Objects) which finally
comes into rest and create the menu. The photo album is another SWF
file which is called with in the first Flash Movie (The Menu). The
SWF file is loaded as follow into the Main Flash.
MovieClip.prototype.drawRect = function(x, y, w, h) {
this.beginFill(0xFF0000, 100);
this.moveTo(0, 0);
this.lineTo(0+w, 0);
this.lineTo(0+w, 0+h);
this.lineTo(0, 0+h);
this.lineTo(0, 0);
this.endFill();
this._x = x;
this._y = y;
this.createEmptyMovieClip("mc6", 6);
mc6.lineStyle (3, 0x000000, 100);
mc6.drawRect(-77, -17, 20, 20);
mc6._xscale = 100;
mc6._yscale = 100;
loadMovie("photoAlbum.swf", mc6);
Problem arises when I click on the Play Button of the
photoAlbum.swf (Photo Album) since the execution of the play button
causes the Flash starts once again from the beginning of the entire
Flash Movie (Beginning of the animation creating the menu) and it
simply jumps into the Firm One of my Flash Movie.
Could you tell me how I can isulate what is in layer 6 (Where
the photoAlbum is loaded to) from the rest of my Flash Movie?
I hope I managed to explain my problem. I would like to take
this opportunity to thank you in advance for your help.
Cheers,
BabakHello Anya,
I have realized the problem arises from the Wait Function
which causes the Photo Album to pause for a period of time (Two
Seconds) once a Photo is fully displayed (I have Fade in/out Photo
Album). I realized everything works OK once I remove the function
and rather left the Photos to be flipped without any pausing (This
is an Auto-loading Album which simply Flips the photos!).
Here is the Wait Function which is causing all the trouble.
function wait()
stop();
var myInterval = setInterval(function ()
play();
clearInterval(myInterval);
}, 2000);
Thank you so much for your help.
Cheers,
Babak -
Flash Movie Doesn't Load in Dreamweaver
I'm trying to center my flash movie withing a 3 row table in
an HTML file that has the "Flash Detection" javascript embedded
within it. I'm really not sure if I've put the table formatting
HTML in the correct place or not. When I test the movie everything
is fine but it doesn't load online. I'll attach the code to this
post. The website is www.elkhornpeakcellars.com if you'd like to
see what this code currently produces. Thanksdvdbsqt;
You asked>
I'm really not sure if I've put the table formatting HTML in
the correct
place or not.
I don't see any html table related tags in your posted
script, or in the url
page source-Perhaps you found an acceptable solution--your
flash appears OK
(ie7/winxp/fp9)...
-Tom Unger -
Load external jpeg into flash movie
Hi, how do i load external jpeg into flash movie?
Can someone show me the actionscript? Thankshi, i pasted the code on a mc but it didn't work.
However, when i put in on frame action, it works.
However, i realised the image flickered (more like refreshed)
after afew sec...
Is this normal? Is it the loop problem? how do i get rid of
that? -
Hello
ISorry to say this but I am a newbie in Flash.
I have made a flash movie with playback control.
I hosted it on my website but the problem is whenever someone
visit the website it loads automatically even if you don't press
play.
I was just wondering how i can make the video starts loading
only after somebody press play. It is eating my bandwidth at the
moment everytime somebody visits my website because it loads
automatically even if you don't press play.
Do I have to edit the fla or flv? and how?
Thank you for your help!craete two different swf one with play back control and other
with all main content. And just load playpack swf first and write a
code on play button to load content swf like
play.onPress=function(){
loadMovie("content.swf","_root");
} -
Load flash movie by executing javascript
Hi all,
I am having one html file that is showing flash movie on
brawser.
I want to load that flash movie into my flash application
movie clip. How can I do that. Please guide me...
here is html code... put it in ad.html file and open it.
<script language='JavaScript' type='text/javascript'
src='file:///D:/SportingBet-Widget/ExtraStuff/Documents/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
http://ads.sportdog.gr/ads/adx.js
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random =
phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript'
type='text/javascript' src='");
document.write ("
http://ads.sportdog.gr/ads/adjs.php?n="
+ phpAds_random);
document.write ("&what=zone:218");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" +
escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='
http://ads.sportdog.gr/ads/adclick.php?n=a1ffd680'
target='_blank'><img src='
http://ads.sportdog.gr/ads/adview.php?what=zone:218&n=a1ffd680'
border='0' alt=''></a></noscript>Did you upload the Flash movie (the SWF file)? Doesn't appear
to be on
your server.
Alec Fehl, MCSE, A+, ACE, ACI
Adobe Community Expert
AUTHOR:
Microsoft Office 2007 PowerPoint: Comprehensive Course
(Labyrinth
Publications)
Welcome to Web Design and HTML (Labyrinth Publications)
CO-AUTHOR:
Microsoft Office 2007: Essentials (Labyrinth Publications)
Computer Concepts and Vista (Labyrinth Publications)
Mike Meyers' A+ Guide to Managing and Troubleshooting PCs
(McGraw-Hill)
Internet Systems and Applications (EMC Paradigm) -
Load flash movie which with sound problem
Hi, all,
I am doing a flash which with audio, the audio about 3-4 mins. But when i use another flash movie to load that flash mov with sound (using load movie function), cannot hear any voice. Why is it?
The flash movie with sound is use actionscript to attach the sound, when i test the movie, it is work. When it comes to load from another movie, it doesn't work. Anyone can help me to solve it?
Thanks.What version of Actionscript are you using?
Maybe you are looking for
-
Hi i use a macbook pro 17" 2.66ghz intel core i7 with 8gb ram & a 500gb@7200rpm internal drive i get this message "Disk is too slow. (Prepare) (-10001) when i am using logic 9 wiyh just a 5 vsts loaded 2 of them being esx24's . i used to not get thi
-
MBA 13" media buttons not working with iTunes
I just got my mba 13" and everything is great, but for some reason the media buttons do not work with itunes. I've tried them with vlc and other applications and they work fine. Any ideas how I can fix this? Thanks! Danny
-
Hi to all, I need to write the code to linecount for microsoft document.i.e, is code to count the number of lines in a word document. If any one know hoe to write the code please send me the code or any information regarding that. Thanks in advance.
-
Port license from Mac to Windows
I have an activated copy of MS5 and Adobe 9 for Mac. Before I deactivate these for a new Marketing Director, I would like to know if I can port this license information over to Windows. Thanks, Craig
-
Parsing text file with SGML tags
<EMAIL> <ADDRESS>>[email protected] <DESC>>Email your questions to Click Here to E-mail <POP> <ADDRESS>N/A <ZIP>N/A How do you parse above text file which has SGML tags ? thanks