ActionScript 2.0 :: Making Preloader Having Cool Liquid Effects?
Jul 26, 2005
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.
I am working on an as3 slideshow class and I came across a blog post that gave me the idea to use better transitions than the sliding out and fading I originally intended to use. [URL]The source for that class is available and it is a good starting point but I wanted to check and see if anyone know of similar projects that had more effects. Right now I just have the random explode effect from the above link and before I start working on effects I wanted to see what was out there.
I am having trouble working out exactly what is happening behind the scenes when dynamic menus/ submenus get displayed with some effect.I am able to read in an xml file, create a menu, and display submenus with the use of a rollover event. The submenus appear immediately, all at once. However i would like the submenu items to appear with some effect.The "models" button in the top left corner has the features i want.1. With a mouse over i want a menu to appear. The first submenu item to be appear is the last on the list.2. when the mouse drifts off the list, the submenu retracts in the same order it appeared
I am making a liquid layout in flash using as3,it worked pretty well with the following code, for the movie clips that are going to be on stage from the very beginning.
But when I try to load a movie clip by clicking a button and using the ddEventListener , it dose load, but doesn't float here is the code that I think have some problem:
demon_mc.addEventListener(MouseEvent.CLICK, getSlider); function getSlider(event:MouseEvent):void {[code]....
as you can see I have defined the variables Width adn Height inside the function as well and I am using WIDTH/2 to define the x position,Well it laods in the exact position but won't float as I minimize the stage
i know i've seen this before, maybe on that flash experimental math site that was all black and white and had a picture of a kid swatting at some molecular looking flies? anyone remember the name of that/well anyway, what i'm trying to pull off here is like a circle of some sort, all of sudden growing a small little circle and then both of them dividing, or possibly, a two circles(modules, atoms, particles) join to be one.
I am pretty new with AS3 . I am making a liquid layout in flash using as3, it worked pretty well with the following code, for the movie clips that are going to be on stage from the very beginning.
[Code]....
as you can see I have defined the variables Width adn Height inside the function as well and I am using WIDTH/2 to define the x position, Well it laods in the exact position but won't float as I minimize the stage
Basically I have a full screen liquid flash site that I just added a preloader.swf to using the method from the tutorial on this site. The problem is that since I'm externally loading it now the liquid functionality doesn't work anymore. If you want to see the problem in action please check out these 2 links to see what I'm talking about.URL...Notice that it's not scaling the background to fit the screen anymore on the link with the preloader. Does anyone know how to solve this issue without resorting back to the old way of doing preloaders all in 1 swf?
Anyone tried TextAnim? It's brilliant for making your own text effects.I am making something real simple but cannot get it to work. I am sure just pure AS3 thinkers could probably solve this without even knowing the class.I store some lines of text in an array, and each time I click the stage - the text anim kicks into do its magic on the new line of text pushed at it.here's the code - i have an instance of myTextField already on the stage
Code: var t1:String = "This is my first line to write";var t2:String = "This is the black hole I was talking about"; var t3:String = "And now TO END WITH CAPITALS"; var txt_ary:Array = new Array(t1,t2,t3);[code].....
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
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.
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
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?
In "flash website templates" we see some amazing transition effects between the pages, I wonder how they do it? Are they made of flash? or those effects are created in some other application like "after-Effect"? or are there any special tween engine to make effects?I have been searching for a while...but still confused and looking for guidance.
i attach a image on what i must make..but i have like a blackout.. so i hoped u can inspire me for some cool effect?please if so help me also to the code? or at least a demo code so i can make me own?
so i have a project where i will be making a website. I will be using flash to make it interactive and visually appealing. I found a website with a really cool entrance page, iew it n't really know much about the action script language so be as precise and clear
what was done to create the cool effect at this site? [URL]..When the links on the left are rolled-over an image appears in a small window that follows the cursor. Very cool.
I was hoping to learn how to do that, myself, but can't figure it out. No need for a step-by-step tutorial, just a word or two to point me in the right direction.
so maybe this animation is not that cool. But line 'draw-on's like this are quite common and I cannot find an easy way to do this in flash. I have tried masks, but (as far as I can tell) the line path is too complex for a mask. I have tried animating it using shape hints, but flash just gets hopeless confused as to how I want the line to animate on. I could export this as an swf out of AfterEffects, but the file size seems way too big for what the animation is. I have begun to realize that maybe this type of animation is often achieved using actionscript.