Im trying to make a preloader. this is my first attempt and from a tutorial and some minor adjustments on my part this is what ive come up with. i was wondering if there was a way to add a percent, and also why this doesnt disapear after its done loading. it remains on the stage throughout the loaded swf.
i'm using movieClipLoader and i want to attach a loadbar graphic instead of text...but my loadbar doesn't load the text works but not the bar... anywho here is my code:
On Actionscript I found this really cool smooth preloader [URL]..In my example you see a pink button. This button sets the to be loaded SWF in a var and commands the Cover Over image to play (cover). After the Cover MC had reached the over-state (frame 15), there is a loadBar + an action giving a loadMovie command (it needs to be loaded into a MC called content)
That was supposed to be my first preloader dealing with an XML file and external jpgs ... searched the forum, found something that looked/sounded like it would work, tried to adapt it to my particular situation and ... (surprise!) ... it doesn't work. Let me add at this point that I'd consider myself a "very casual" ActionScripter (if there is such a thing), meaning that most of the time, I try to learn as I go along, without any *real* background knowledge. Here's my situation - methinks it's rather straightforward: SWF file (project.swf), XML file (config.xml) and a bunch of jpgs all in the same directory - nothing exotic so far. Here's the AS I (try to) use in my SWF file to load the xml and the imgs therein:
Im trying to make a character get propelled upwards when he steps inside a bubblejet, but as i am very new to actionscript i have no idea where to start. heres what im trying to do:I hope that makes sense! im sure it will be a simple thing to do just i really am clueless!
Ie the preloader and steps through a preloader animation filling the logo (ie loader)Now I have tried changing a few things but having problems tried loading into a container and a level
In order to learn the ins and outs of preloaders in ActionScript 3.0 I've been working on a program in Flash CS4. The problem I'm having is that the preloader is not throwing/recieving the Progress and Complete events.I decided to make the preloader an independant class and put it in a seperate package from the document class. I also made a second independant class to serve as a progress bar, which the preloader includes. Basically the structure of my program is Flash File>Document Class>Preloader Class>ProgressBar Class.So far the Document Class creates the Preloader and puts it on the screen (a black box with a progress bar on it so far, I'll add text later). What I'm working on now is getting it to actually preload, so that on the Progress events it increases the size of the bar untill it's completed, and then puts a play button on the stage when it recieves the Complete event.The examples and tutorials I've read on preloaders suggest that all you have to do is monitor the loaderInfo property of the stage object using various events. In order for the external Preloader Class to access the loaderInfo property of the stage, I pass the stage.loaderInfo property to the external Preloader Class constructor as an argument, and the _targetLoaderInfo property of the Preloader Class has that argument assigned to it. I then set up the Progress and Complete events on the _targetLoaderInfo property, expecting it to pass through to the loaderInfo property of the stage. It's not working.
that is just a part of the hole function, but I think it will be enough. It traces "lele" once, not when mc enters a new frame. I've also tried to call it with different ways like:
i'm making a preloader for my banner rotator, but the reason to be here writing this post is to ask for help to fix a bug in my preloader, for example: When I click on a button to change the image while the preloader is counting it simply starts counting the the bytesLoaded of old image + the new image(bytes) of the button I've clicked. Then the percentage goes over the 100% ... I didn't want to disable the button, I know is possible in some way but I am not finding success.
I am trying to build a preloader class for loading external content (images in a gallery). I have no experience in this area and I could not find many examples of making preloader classes. I was wondering if and how would it be possible to trace bytesLoaded and bytesTotal from within the preloader custom class. I was trying to pass the Loader's variable into the class and then try to trace the bytes but no luck with that.
When I test the site with the preloader.swf file I made for it, it loads, but then some of my button functions do not work in the site. When I test the site fla file everything works fine. I have been trying things out with the preloader code, but not sure what would cause this.
This is my preloader code: var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent .PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLET E, done); l.load(new URLRequest("sample.swf")); prog_mc.stop(); function loop(eventrogressEvent):void { [Code] .....
if i delete the preloader code/mc the image of the building displays shape but if i keep the proloader code in the movie and publish the building is fussy
I am trying to make a preloader that has some cool liquid effects. I want it to look like a gas tank being filled up, viewed from the side. I am trying to script it so that the surface of the fuel sloshes around as it fills up the tank, but I just can't figure out a good way to go at it.
ive tried making a image fill preloader using masks etc. When publishing its just showing my preloader not continuing to my content.which is on frame 11. I was wondering if anyne can help me with code?
I have created a video player in AS3 using some of the code from Lee's tutorials to create the loadBar and Srcubber. My video works, the play, pause and rewind buttons work. However, I cannot get the loadBar and scrubber to work.
I followed exactly like the video tutorial[URL]... and so far everything is working fine except that my loader bar starts from the middle and progressively fill up the left and right area.I can't seem to get the loadbar to start from left to right.
I have a loader mc which scales to the width of the Stage. The loader mc has 3 nested mc's.A bg mc, progressBar mc, and loadBar mc.The loader and all nested mc's scale properly when I test it in the flash IDE but once I place the swf in a html page then the width is not accurate anymore. Another issue is since the loader stretches across the stage it needs to resize correctly in fullscreen mode. Click here here to view the example
// This is the code // ----- [ Stage Align ] ----- // Stage.scaleMode = "noScale";
I'm having troubles with my scrubber on my loadbar again.As a picture says a 1000 words heres a screenshot of the problem.Basically the scrubber bar is going waaaay past the 373px I asked to stop at.I've tried messing about with telling scrubber_mc to stop at the end of ._x of the loadbar clip but have had no luck.Here's the code:
/*These are the scrubber functions*/ var scrubInterval;[code].....
What do I have to change so it doesn't load the whole movie but only the scene it's in, I don't want to load everything at the same time... And if I load a external swf in my movie does the loadBar load this or do I have to put this script in the external swf file.
I have my preloader set up rightnow to display a loadbar and the load percentage. However, what i would like to do is have the Dynamic text box display, for example: "56 of 200 kilobytes loaded"
I am working with the scrub element in my custom video player. The code for this in AS2 is as follows (this is the whole of it). How the scrub portion is coded in AS3?
HTML Code: var nc:NetConnecttion = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); theVideo.attachVideo(ns); ns.play("vegas.flv"); [Code] .....
I'm making a working scrubber on a video, but having problems. The scrub itself it starting out in the middle of the loadbar. I've looked everywhere, trying to find out what is wrong with it.
I am not exactly new to Flash in that I can do several things with it. However, I am not anywhere near expert status. I am working on an interactive map of a college campus for my employer. I am employing buttons that, when moused over, display a large image of each campus building. The question is this: is there a way to also have maybe an actionscript that would center that image automatically?
In other words, if the building I want to show is on the right hand side of an internet explorer window and I mouse over it, is there a way to have the map auto scroll the window to center the image that pops up on mouse over?
I have been asked to loop an existing FLV file that someone else created. I do not know what version of Flash was used to create this file, however I do have an older version 7.2 Flash MX Pro. Currently the FLV starts automatically and stops and the end of the movie. The owner of the site would like the movie to start over with a continuous loop. I'm pretty much of a rookie with Flash and with HTML5 coming out soon, I don't think I'll get a chance to become a pro at this.