Preloader questions
Ok, I checked up on some internet tutorials and think I have
a pretty good idea how to make a 2 frame preloader. Three
questions...
1. What if I wanted to create this preloader but not have the
percentage #'s, just the bar increasing with maybe a graphic next
to it, how would I have to change the action script?
http://www.webwasp.co.uk/tutorials/b05-preload/tutorial.php
2. What if I wanted to make a rad animated preloader like
this one? Is it hard?
http://www.hypertemplates.com/templates/11645.html
3. Would others out there recommend using the preloader
component? Is there pro's and cons to using it as compared to
making the 2 frame preloader from question 1?
Thanks everyone, this board is a big help!
xslamx wrote:
> Ok, I checked up on some internet tutorials and think I
have a pretty good idea
> how to make a 2 frame preloader. Three questions...
>
> 1. What if I wanted to create this preloader but not
have the percentage #'s,
> just the bar increasing with maybe a graphic next to it,
how would I have to
> change the action script?
>
>
http://www.webwasp.co.uk/tutorials/b05-preload/tutorial.php
>
> 2. What if I wanted to make a rad animated preloader
like this one? Is it
> hard?
>
>
http://www.hypertemplates.com/templates/11645.html
>
> 3. Would others out there recommend using the preloader
component? Is there
> pro's and cons to using it as compared to making the 2
frame preloader from
> question 1?
>
> Thanks everyone, this board is a big help!
The % could be easily left out. All you need is skip the
dynamic text field part.
Let me show you one easy loader, with % indicator tho it's
for your future use
if you happen to need one.
On first frame of your timeline place the following action :
stop();
this.onEnterFrame = function () {
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
if (bt <= 0) {bt = 99;}
offPreloader.gotoAndStop(Math.floor((bl / bt) * 100));
preload_txt.text = Math.round((bl / bt) * 100) + " %";
if ((bl == bt) && (bt > 0)) {
delete this.onEnterFrame;
gotoAndPlay (3);
Than on the very same frame make a movie clip with some shape
tween from small to large, this will be your progress bar
animation.
Make it 100 frames long. Once done give it instance name
"offPreloader"
To give movie clip instance name you need to select it on
stage and
hit CTRL F3 to open the properties panel, there you will find
INSTANCE
name box.
Last thing is to place dynamic text field with instance name
"preload_txt"
Which for now you can skip.
Pretty much it.
Just make sure that the progress bar is not too large, like
made
out of bitmap images, you want to keep the preloader frame
as small as possible so flash can load it quickly.
Than start your content from frame 3 and you all done ---- TA
DAAA !!!!
Also, it can be all kind of frame based animation, just make
sure it is 100
frames long :)
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Similar Messages
-
What I need is a preloader that can begin playing the first
in a series of external swfs before all are loaded. I am building a
preloader based on a MediaLoader class created by Macromedia years
ago - the class is designed to load external swf files into an
on-stage holder clip (the clip is passed into the MediaLoader
object by reference), store these clips in an array, and then
dispatch the array back to the main swf, which can then manipulate
the clips.
The pre-loader works fine as originally designed - that is,
as long as no clips are played until all are loaded. I have tried
many modifications to the preloader and associated code so the main
movie will play the first clip gracefully before all are
downloaded, with no success. Problems occur along these lines - the
holder clip must be made visible and so show the downloading clips,
if only for a fraction of a second before they are hidden; I tried
using a second holder to start playing them in, and I tried loading
off-stage. However, attempts to duplicate the loaded external swf
affect - as they probably refer to - the original. (I read you
cannot duplicate a loaded swf like other clips, but must reload it,
which defeats the purpose of a preloader).
I have asked about techniques and searched for examples, on
many forums, of preloaders which can begin playing the first clip
before all are downloaded, and have yet to see one.
What are some techniques for doing this, if it is possible in
AS 2? Are there examples?The containing clip of all downloaded swf clips must be shown
to play the first clip - so the others are shown, if only for a
second. Maybe the whole problem is that there is a lag between the
clip being loaded and the code stopping the loaded clips - is this
a common problem with an easy solution? Otherwise, I am very
interested to hear about how you use two target clips.
Can you describe a technique, or link to an actual example of
a preloader that allows a clip to play while others are still
downloading? -
Loading frames before images (preloader question)
I've got an .swf of which is 83% images and weighs ~4mb.
For that big size I decided I would do an preloader, however, the preloader's frame will only load after images and other resources are loaded.
Basically, the preloader will only appear after 83% of that .swf is loaded, which leaves the white screen for a big time, and only then displays the preloader.
In even simpler words, I want to set the loading priority of something(a resource? a scene? a frame?), or, load only a single frame and then let that frame load the rest.
Please point out if you didn't understand what I mean.No, I'm using Flash CS5.5. Maybe it was fault of my interpretation.
I'm currently editing a .fla file, not an .swf. This .fla file has two scenes, whose the first is used for the preloader, which will skip to the next scene when the movie is loaded.
If that is revelant, here is the code of the preloader:
var total:Number;
var loaded:Number;
this.onEnterFrame = function()
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
if(loaded >= total){
delete(onEnterFrame);
nextScene();
_root.ppl = (Math.floor((loaded/total)*100)).toString() + "%";
stop();
"ppl" is the variable which holds the contents of an dynamic text which shows the percentage. -
I have a preloader that a friend made for me. It's a movie clip on Actionscript 2 that has 100 frames, showing each number and then reading Play at the end of it. Having just upgraded from Flash CS4, I noticed a bunch of differences in code. How do I get the preloader to work so that when "Play" is clicked, it goes to the next scene?
Thanks in advance for the help!
~Ashleymake sure this code is attached to a button
are there any other lines of code in the project?
if there are please post them (especially keyframe code and other codes like this button code). -
Hi,
I have seen big improvement in Select + Update performance when I use Database.preload() + load all objects expliclty into memory by walking a cursor. I am not sure how much preload helps. Should I continue to call preload ?
With 5 Million users, the disk size of the JE db (shutdown) is around 30Gigs. Does it means it will require 30 Gigs to load everything into memory ?. Java 1.5 64 bit can accomodate 4G at the most, I will have serious issues, without preloading into memory, operations are slow. Can I just load keys - not the values would that help at all ? How can I save footprint and gain the speed ?
Thanks for any tips
VissuHi Charles and Mark,
Thank you for your comments. Here are the stats at the end of my test.
Currently my test does this (insert have been done before):
1. Database.preload(3Gigs)
2. Open a cursor and walk thru all records (takes really long time as you cited)
3. Create 5 threads that are ready to do selects on random keys
4. Create 5 threads that are ready to do updates
5. Start all 10 thraeds
6. Main thread waits on join of all 10 threads
7. Each thread when done posts the time it took and how many updates or selects it has done
8. Main thread wakes up when all are done, computes average and prints it, output is as follows:
Cumulative time for all updates = 820763 millisecs and # of updates = 1265633
Cumuluative time for all selects = 167253 millisecs and # of selects performed = 9525
9. Main thread prints JE stats, as below. I have only pasted non-zero values.
From the foll. stats, do you see any room for improvements ? Thanks a lot,
Vissu
processedBins=3
nEvictPasses=33410
nNodesSelected=3805500
nNodesScanned=38788430
nNodesExplicitlyEvicted=2101130
nBINsStripped=1704370
requiredEvictBytes=525320
nCheckpoints=7
lastCheckpointId=1766
nFullINFlush=6804
nFullBINFlush=5165
nDeltaINFlush=21762
lastCheckpointStart=0xf9d/0x97b2ab
lastCheckpointEnd=0xf9e/0x603498
nCleanerRuns=25
nCleanerDeletions=23
nINsObsolete=25975
nINsCleaned=1522
nINsDead=556
nINsMigrated=966
nLNsObsolete=1311240
nLNsCleaned=118475
nLNsDead=31387
nLNsMigrated=79164
nLNsMarked=98393
nLNQueueHits=91033
nMarkedLNsProcessed=88191
nToBeCleanedLNsProcessed=2278
nCleanerEntriesRead=1457242
nNotResident=143078946
nCacheMiss=143078901
nLogBuffers=3
bufferBytes=3145728
cacheDataBytes=3196616656
cacheTotalBytes=3199762384
nFSyncs=7
nFSyncRequests=7
nRepeatFaultReads=280102 -
Hi All,
now before I start let me say I'm lucky to be even able to type my own name, so my quest of learning code in FB/Flex has heartache written all over it, but I'm pressing on.
FC is a fantastic tool and i've already built some great stuff ( subjective ) but now tweeking in FB is the next step. My first hurdle was pre loaders and thanks to some great help from lui in the FC forum and this tute http://www.flexer.info/2008/02/07/very-first-flex-preloader-customization/
I got custom loaders working.. As if to tempt fate I now wondered if rather that have a basic color that I can set in the first lines of mxml in FB, is there any way to have an image under the preloader?
Also does this small piece of the preloader ascript code
private function centerPreloader():void
x = (stageWidth /2) - (wcs.width /2);
y = (stageHeight /2) - (wcs.height /2);
control the position and size of the loader, I have a 900x450 swf loader that for the life of me I cant get to that size in FB it is always center about 250x100 px
Sorry for such a long winded post, any help is badly needed ( so is talent but I hear there is a plug-in coming for that )
cheers
LazHi Kyle - I think this will work for you. The commented lines are just for testing.
// double number1 = 20.0;
// double number2 = 60.0;
// double percent;
percent = (number1 * 100)/number2;
NSString *strPercent = [[NSString alloc] initWithFormat:@"%2.2f", percent];
// NSLog(@"strPercent=%@", strPercent);
myLabel.text = strPercent;
[strPercent release]; -
hello all,
just uploaded my first ever website.
i fixed it so it will preload the entire swf, but now i want
to add a movie clip somewhere in one of the pages.
is there any way to still preload the site without the clip
(the clip is 2mb long) so it wont take too much time,
and when people want to see the clip they will wait for it to
load (somewhat like in youtube, where every clip loads by itself).
my site is:
www.joel.co.il
with thanks, joelif, by library folders, you mean folders that contain objects
in your fla's library you can force flash to load objects when the
playhead enters a frame other than 1, but not with actionscript.
you can untick export in the first frame, and attach an
instance of the object (off-stage if unneeded) to the frame you
want. you must repeat this for each object you want to load with a
frame other than 1. -
Flash 8 preloader problems PLEASE HELP
Hello;
I have read all the questions about preloaders out here with
no solutions for this project. I am trying to use 2 scenes.
I have a preloader on the first scene, there is a TV with the
dynamic text in it and I am using static text as the "offPreloader"
the dynamic text is called "preload_txt" using 3 layers. I put this
code in the first frame with the dynamic text:
stop();
this.onEnterFrame = function () {
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
if (bt <= 0) {bt = 99;}
offPreloader.gotoAndStop(Math.floor((bl / bt) * 100));
preload_txt.text = Math.round((bl / bt) * 100) + " %";
if ((bl == bt) && (bt > 0)) {
delete this.onEnterFrame;
gotoAndPlay (3);
My second scene is the same TV with a streamed .flv file, but
the preloader just hangs up at 100% and does nothing. What am I
doing wrong? Should it all be in one sceen? make my 100 frames as a
preloader then have the video after that at like frame 101? or
should this code be preloading the movie? I am using flash 8 pro.
Like I said, I read all the preloader questions out here and
none of them deal with video. Can someone please help me out.
Thank you.nooo I did not say or suggest they they will work, or easy or with OEM DVD.
But if you are going to use 8 go ahead but plan to redo (unlikely to be an upgrade install).
You still have to look around and see what others have managed to do with some not working drivers. -
Preloader loads very late after importing sound files
ok, here's another preloader question for you people out
there. i finally had a working preloader code, everything was in
frame 2, my preloader was in frame 1, and it worked quite nice.
however, after importing some sound files to the library my
preloader started to appear very late on the stage (like after 90
percent). could someone tell me what can i do? i'm guessing it has
something to do with "export at first frame" option.bump
edit: never mind, the solution at this link works fine
http://www.newgrounds.com/bbs/topic/773335
:) -
Hi, I want to downgrade from OSX LEOPARD to OSX TIGER but I have a few questions regarding this. My iMac is originally from Sep 2007 it came preloaded with tiger. I have original install (2) tiger discs version 10.4.10. I want to know if it is safe and what are the necessary steps to do so. Also by downgrading im wondering if a lot of apps nowadays support tiger for example I have photoshop version 5 and 4 these are very important to me. One last question does anyone know of any reliable virus protection for mac that doesnt slow down your computer? because I have read that a lot of them do so. If anyone can help me I would greatly appreciate it! Here are the specs for my iMac
Model Name:
iMac
Model Identifier:
iMac7,1
Processor Name:
Intel Core 2 Duo
Processor Speed:
2 GHz
Number Of Processors:
1
Total Number Of Cores:
2
L2 Cache:
4 MB
Memory:
2 GB
Bus Speed:
800 MHzMost of the time a perception of general slow performance is the result of installing third party junk alleged to speed up, "clean" or "optimize" your Mac, or to look for viruses that don't exist. Ideally you would know what you installed so you can uninstall it, but if you don't know or aren't sure there are techniques such as Safe Mode and creating a temporary user account to confirm that suspicion.
If you open Activity Monitor it may show a process, or processes, that occupy a lot of your system's time.
Slowness confined solely to web browser activity is often the result of an inexorable progress toward websites that demand ever more processor-intensive tasks. If your slow performance is strictly limited to web browsing, you might try disabling Flash by either uninstalling it, or use utilities such as ClickToFlash that allow you to control what Flash content gets loaded. Flash in itself is not inherently evil, but there is nothing to stop websites or the advertisers who pay for them from writing horrible Flash code that can do everything from hogging 100% of your CPU's time to causing random crashes. You can watch Activity Monitor as in the above to correlate these troublesome web pages with performance degradation.
You are correct; if your computer shipped with Tiger you may certainly revert to it. I forgot that Tiger was shipping on new Macs as recently as five years ago. To downgrade it would be necessary to completely erase your hard disk and boot with the Tiger installation DVD, followed by installing it anew. Such drastic measures are not necessary and you are unlikely to be satisfied with the results anyway.
Assuming your system is free of third party parasitic junk attached to OS X in an ill-conceived attempt to improve upon it, that your hard disk drive is sound and the boot volume has enough free space to work with, by far the best performance-enhancing improvement would be to add more memory. Buy as much as your computer can use and that you can afford. 2 GB is not that much any more.
Read the following for some recommended troubleshooting techniques from Apple:
General purpose Mac troubleshooting guide: Isolating issues in Mac OS X
Creating a temporary user to isolate user-specific problems: Isolating an issue by using another user account
Memory limitations: Using Activity Monitor to read System Memory and determine how much RAM is being used
Identifying resource hogs and other tips: Runaway applications can shorten battery runtime
Starting the computer in "safe mode": Mac OS X: What is Safe Boot, Safe Mode? -
Flex 4 preloading modules and moduleFactory question?
Hi,
I've run some tests and taking into consideration this info about preloading modules: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64277-7ffd.html#WS2d b454920e96a9e51e63e3d11c0bf64277-7feb
Here are 2 scenarios:
1) If you preload a module like the link example above, then you can't load it with moduleFactory any more, since it was preloaded without one. So there will be no styles inherited at all.
2) If you preload a module like the link example above, but this time you pass moduleFactory, then it will be preloaded with the moduleFactory and when you load it into your application the styles will be inherited, no matter if you pass or not the moduleFactory here. It only depends on the moduleFactory u pass when you preload it.
Now here is the summary question which I think is not possible at this point but just want to make sure if there isn't a way and maybe request a feature for it:
Is it possible to have 1 module loaded 2 times in an application with 2 different moduleFactories passed to each ?
Example: If for the first you pass moduleFactory = null, and for the second you pass the main app moduleFactory
Note:
I think it doesn't matter if we talk about preloading or loading the same module more than once at the same time
I'm pretty sure that the first time it is loaded it will get the moduleFactory and the second time it will use the moduleFactory specified the first time, not the one which is specified when loading.
So if we take this example we pass null for the first time the module is loaded, which means the second time it's loaded no matter we pass the main app moduleFactory, it will still be null and no styles will be inherited.
I'm not sure but I think that if you trace the moduleFactory it will correctly display the object you passed so in our example in the second loading, moduleFactory won't be null but the main app moduleFactory, but styles won't be inherited anyway..Hi,
I've run some tests and taking into consideration this info about preloading modules: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64277-7ffd.html#WS2d b454920e96a9e51e63e3d11c0bf64277-7feb
Here are 2 scenarios:
1) If you preload a module like the link example above, then you can't load it with moduleFactory any more, since it was preloaded without one. So there will be no styles inherited at all.
2) If you preload a module like the link example above, but this time you pass moduleFactory, then it will be preloaded with the moduleFactory and when you load it into your application the styles will be inherited, no matter if you pass or not the moduleFactory here. It only depends on the moduleFactory u pass when you preload it.
Now here is the summary question which I think is not possible at this point but just want to make sure if there isn't a way and maybe request a feature for it:
Is it possible to have 1 module loaded 2 times in an application with 2 different moduleFactories passed to each ?
Example: If for the first you pass moduleFactory = null, and for the second you pass the main app moduleFactory
Note:
I think it doesn't matter if we talk about preloading or loading the same module more than once at the same time
I'm pretty sure that the first time it is loaded it will get the moduleFactory and the second time it will use the moduleFactory specified the first time, not the one which is specified when loading.
So if we take this example we pass null for the first time the module is loaded, which means the second time it's loaded no matter we pass the main app moduleFactory, it will still be null and no styles will be inherited.
I'm not sure but I think that if you trace the moduleFactory it will correctly display the object you passed so in our example in the second loading, moduleFactory won't be null but the main app moduleFactory, but styles won't be inherited anyway.. -
Preloader and Document Class BIG question (yeap please help)
Hy,
I know that this its a question posted many, many times, but
after searching the net, reading a lot of books and searching this
forum too, I cant get out with a solution. If I'd say for sure
there is no possibility to create something like this, I just go
back to old methods but is not the scope of Adobe with AS3 to
encourage the use of OOP principle or not?
The problem:
I have a single fla file (AS3) with a single frame on
timeline, frame that its there when you will create the file with
flash. In the library I have different symbols, that for simplicity
are only jpg image, (BitmapData) checked for export for
ActionScript and exported on frame one. An external .as file called
DocumentClass its off course my Document Class
This its all that I want to do with the fla, the goal its to
create, animate etc. only with AS3 in external classes, no timeline
script. I don't want to load external files, XML, or else in this
movie. I just want a single swf after compilation, no additional
files.
Ok, how do I create a preloader that will take care of
starting the logic after the whole swf its loaded and in the same
time shows the user a percentage or a load bar or something that
its not the blank screen when the swf its downloading. I want to do
this without another swf that load this swf, or timeline scripts,
or place all the content on second frame and then gotoAndStop to
the third frame. All this are not solution but cheap tricks, that
are against all this OOP principle that I just continue to read in
books and here from guru programmers.
The big question is:
It is possible to create a preloader, when use a document
class with your fla? And if yes, how?
I know that the Document Class its not instantiated if its
not fully loaded, if that's true when the document class will be
fully loaded? maybe after the whole movie its loaded? And, if its
true, it will never show a percentage bar "while" the movie its
loaded. And if that's true WHY use a document class anyway?
Thank you for reading this and I really wait to get some
answer.I am pretty sure you cannot do self preloader with one frame
and all the objects in the library. I guess the key here is
one-frame design. Screen refreshes (renders) only when all the
scripts in the frame are executed - this is a very important thing
to understand about how Flash works. Yes, you can force screen
refresh with updateAfterEvent() method but it is attached to a
handful of events only (MouseEvent and TimerEvent) but, again, all
this functionality is available only after first frame scripts are
executed. Thus, it seems like the only way to create preloader from
within SWF is to use multiple frames and set library objects to
load in later (not first) frame.
quote:
And if that's true WHY use a document class anyway?
Well, preloader is the last thing that would be on my mind in
terms of using AS3 ability to link DocumentClass to the top movie.
This feature allows for very sophisticated architectural
approaches. It has no connection to preloader as to any other
features developer wants to implement. Neither it depends on or
negates timeline. As a matter of fact, although I love one-frame
applications, I find on numerous occasions that my application
would be more efficient if I used several (at least two) frames.
gotoAndStop is not deprecated. It is a valid MovieClip class'
method. After all, having only one frame doesn't mean not having
frames at all - there is one already. Frames are fundament of
Flash. AS3 did introduce frameless entities like Sprite, etc. but
it doesn't mean that frames are going anywhere.
I would agree that timeline code is inferior to
classed/packaged (read: better organized) code but, still, how is
it not OOP? Frame is an Object, right? Why using timeline is cheap
and not a solution?
On a side note, I see too many times how some authors (and
managers) are pushing their agenda (or close mindedness) onto their
audience with no real substantiation. Claiming that timeline in
Flash is not valid architectural decision from OOP standpoint is
totally wrong. As wrong as strict adherence to design patterns. I
don't think there is sharply defined "right" or "wrong" in
programming. One finds the best optimal solution. The goal is to
create something that works fine. Unless, of course, the process is
the goal - but very few of us can afford focusing on the process. -
Hi, All,
I just find a problem in my Flash builder generated .swf file. We used "Merged into code" option when I compiled the project, My preloader was showed just fine.
But if I use "RSL" and also use some exteranlly loaded library files, the preloader will not be shown until near the end of the application downloading. This will make the screen blank during the downloading time. And this will make the Preloader nonsense.
Just wonder someone has experience on it? I cannot find a good soultion on internet. So want to try to post the questions here.
Thanks a lot.The preloader should show a countdown of the RSLs loading, but then the
actual application won't be as big so the preloader won't show.
There is also an issue where if you put a # in the URL, the preloader will
not be shown. -
Preloader and loading MovieClips Question
I've been making seperate files for each of my pages which are around a megabyte in size for my webpage, and I was wondering is there a way to make a preloader all in one file, and when it loads the page it goes straight to the preloader instead of the screen going white for a few seconds while it loads? If so I played around with it and lemme know what's wrong with the code:
I added this section of the code before all the vars for the actual site, but it still didn't work the way I wanted it to
import com.greensock.TweenLite;
import com.greensock.easing.*;
var scrollTimer:Timer = new Timer(2000,1);
scrollTimer.addEventListener("timer",scrollShow);
this.addEventListener(Event.ENTER_FRAME,myProgress);
scrollGallery_mc.alpha = 0;
function scrollShow(e:TimerEvent):void {
TweenLite.to(scrollGallery_mc,2,{alpha:1});
function myProgress(e:Event):void {
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
var total:Number = this.stage.loaderInfo.bytesTotal;
var pct:Number = loaded/total;
load_mc.loader_mc.scaleX = pct;
preload_txt.text = "Loading: " + (Math.round(pct*100)) + "%";
if (pct == 1) {
myComplete();
function myComplete():void {
startPage();
this.removeEventListener(ProgressEvent.PROGRESS,myProgress);
this.removeEventListener(Event.COMPLETE,myComplete);
load_mc.visible = false;
preload_txt.visible = false;
scrollTimer.start();
play();
stop();
Second question is there a way to load a movie clip object using as3 as an a separate interactive object without directly adding it to the stage in the fla file?It's a stupid simple intro clip with no depencies to the application. The crazy thing about is, that it's loads the most time... So i think i make something wrong? I start loading after the preloader was added to stage.
-
Preloader for External file Template question
I used the CS5 Flash templates>sample files>preloader for external file, to create my preloader.
The problem is that when the preloader is done and my SWF is loaded, my SWF has already started playing.
It is an animation that builds for 200 frames then buttons appear. By the time the SWF appears it has already gotten to the button frame.
Depending on connection speed I have caught the animation building.
Is there some action script I should put in my preloader or the first frame of my SWF to pause play?
Here is the preloader action:
var contentLoader:Loader;
loadContent("stage002.swf");
function loadContent(url:String):void {
contentLoader = new Loader();
contentLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
contentLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, contentLoaded);
contentLoader.load(new URLRequest(url));
function contentLoaded(evt:Event):void {
//Optionally change to a clip holder and set progressbar visibility.
addChild(contentLoader);
function loading(evt:ProgressEvent):void {
var loaded:Number = evt.bytesLoaded / evt.bytesTotal;
setBarProgress(loaded);
function setBarProgress(value:Number) {
progressbar.bar.scaleX = value;
Thanks in advance!put a stop() on the first frame of your external swf in an otherwise empty first frame. when preloading is complete apply a play() to your loader's content cast as a movieclip:
function contentLoaded(evt:Event):void {
//Optionally change to a clip holder and set progressbar visibility.
addChild(contentLoader);
MovieClip(contentLoader.content).play();
Maybe you are looking for
-
Cost of Sales activation in Controlling area
Hi Friends, Please let me know the IMG activity where we can check if 'Cost of sales accounting' is active in a controlling area or not. Please help me navigate. Thanks & regards, Shilpi
-
Non-Partitioned Global Index on Range-Partitioned Table.
Hi All, Is it possible to create Non-Partitioned Global Index on Range-Partitioned Table? We have 4 indexes on CS_BILLING range-partitioned table, in which one is CBS_CLIENT_CODE(*local partitioned index*) and others are unknown types of index to me?
-
Can you change a single color in InDesign on the entire document?
In an InDesign document, is it possible to change one of many colors in the document, throughout the document? This would be like a Find/Change for colors.
-
Bapi or function module to update rstgr field in bseg table
what is the bapi or function module used to update the fields in bseg table particularly "rstgr" field?
-
Excise Registers updation for the Blcckout period transactions
Dear Friends, After Going Live how should we update the Excise Registers for the sales happened during Blackout period. Ideally the sales shouldnot happen but it is inevitable. The cutover strategy planned is to create freshly the sales orders and de