Filling A Cup With Liquid Folder...
Does anyone no how to make a preloader that looks like a object is filling with liquid instead of just a horizontal line going up?
I am assuming that it could be done with some actionscript of have no idea really
Thanks in advace...
-Brian
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-13-2003, 06:35 PM
View Complete Forum Thread with Replies
Sponsored Links:
Water / Liquid Filling Effect
Hi guys,
Anybody knows how to simulate the water filling effect by using FLASH and use it as a mask over a text content.
I've search around Kirupa forum, i have this code from stermer which is used to create a sine wave with fill underneath it
Code:
NbrControlPoints = 20;
StartX = 0;
EndX = Stage.width;
BottomY = Stage.height;
WaterLevel = Stage.height / 2;
WaveHeight = 30;
WaveSpeed = .0005;
mc.onEnterFrame = function() {
this.clear();
this.beginFill(0xFE9919, 100);
this.moveTo(EndX, BottomY);
for (x = 0; x < NbrControlPoints; ++x) {
var r = x / (NbrControlPoints - 1);
px = EndX + r * (StartX - EndX);
py = WaterLevel + WaveHeight * Math.sin(r * Math.PI * 2 + getTimer() * WaveSpeed);
this.lineTo(px, py);
}
this.lineTo(StartX, BottomY);
this.lineTo(EndX, BottomY);
this.endFill();
};
attemping to use this as a mask over a picture, all I can see is the sine wave it self. Any ideas ?
thanks.
View Replies !
View Related
Linking To Files That Are In The Folder That Hold The Folder Where Ur File Is
i'm trying to get my website to run as it would on the internet but not actually on the internet for a college exhibition. most of my website is in one flash doc but a few pages are seperate that hold some media. all the pages are in one folder (except one) and link to each other with this code:
on (release) {
getURL("whateverfile.htm");
}
the other page is my music page, which is in a folder within the folder that all the other pages are in. to get to the music page from the rest of my website, i did this:
on (release) {
getURL("musicfolder/mymusic.htm");
}
if you even know what im talking about how to i get back out of that folder to the main folder with a link to the main website page?
this is what i tried:
on (release) {
getURL("websitefolder/mywebsite.htm");
}
it didnt work.
i'm quite new to action scrpiting, as in i started learning 3 days ago. im more of an animator to be honest. thanks
View Replies !
View Related
Xml Loads When Path Is To The Same Folder,but Not From The Folder I Need To Load Fro
hey there! here is my problem if anyone is so kind to point me in the right direction:
i have a Part2_Resources.swf that loads assets/resources.swf into a container on it's root timeline. no problem. assets/resources.swf then loads in config.xml for its content. i think the problem comes in relation to my file structure even though I have already made sure that my path is relative to my root swf.
this presentation will be on cdom so i want to keep my main projector file out in the open and then store all the other files into an 'assets' folder. so here is my file structure:
cd / Part2_Resources.swf (will end up being a projector file)
assets folder / resources.swf and config.xml
when i play my resources.swf by itself with the config.xml loaded directly it works perfectly (ie path: configxml.load("config.xml")
but when i play the Part2_Resources.swf, which then loads assets/resources.swf, wich in turn loads config.xml from the assets folder (ie: path to xml file in resources.swf changed to configxml.load("assets/config.xml") the data doesnt load, or isn't visible for some reason. I am not getting any errors, just no content from the xml file.
i can't figure out where im going wrong except that i might need to use absolute paths which i don't know how to do from a cdRom!
maybe it is another problem altogether?? i attached my files if anyone wants to give it a go!
Help please!!!
Much appreciated!!!
View Replies !
View Related
Shared Folder, Resource Folder ...
This is a bit of an open question, but in terms of application development, project development, systems architecture, etc, in what situation would you have a 'Resource Folder' and a 'Shared Folder'. I believe these are common, so where are they used. Anyone heard of these terms before ?
View Replies !
View Related
Filling Bar?
How do i make a bar start filling on keydown if you are in the zone?
I've tried:
Code:
player.onEnterFrame = function() {
with (player) {
If (zone.hitTest(_x, _y, true) {
inzone = true;
zoneicon.gotoAndPlay("visible");
} else {
inzone = false;
zoneicon.gotoAndPlay("invisible");
}
if (Key.isDown(Key.SPACE)){
if (inzone = true){
bar+=1;
movieclip_bar.gotoAndPlay(bar+1) //The bar is supposed to animate
if (bar>99){ //If the bar is full
gotoAndPlay("finish") //Advance to next level
}
}
}
What is wrong?
View Replies !
View Related
Filling A Bar
hi there all you Flash Gurus!
im a newbie to the flash world, i have a project im working on, its like a preloader, but i want to fill the bar depending on a 2 values passed from the browser variables a & b
varA = total
varB = progress
Check out the attached image. thats the bar
the part im totally stuck with is making the green bar move from 0 to the point specified in the variable... so basically the green bar stops at the percentage of varA. the total width of the movie is the same as depicted in the image, its just the internal variables that change.
if you could help me out it would be MUCH appreciated. i know ActionScript is needed, its just that crap im lost with. I guess all im asking for is how do i get that symbol to move across the screen.
View Replies !
View Related
Filling A Bar
hi there all you Flash Gurus!
im a newbie to the flash world, i have a project im working on, its like a preloader, but i want to fill the bar depending on a 2 values passed from the browser variables a & b
varA = total
varB = progress
Check out the attached image. thats the bar
the part im totally stuck with is making the green bar move from 0 to the point specified in the variable... so basically the green bar stops at the percentage of varA. the total width of the movie is the same as depicted in the image, its just the internal variables that change.
if you could help me out it would be MUCH appreciated. i know ActionScript is needed, its just that crap im lost with. I guess all im asking for is how do i get that symbol to move across the screen.
View Replies !
View Related
New Raising Of Liquid
Hey,
I have a new idea for my liquid problem. I have a "sealed vile of liquid". It starts off slightly full, then when you move the mouse (any direction) the liquid starts to raise from the bottom up. As soon as the mouse stops, the liquid proceeds to lower. When you move the mouse again the liquid rises, if it is lowering it will raise from the point at which it lowered to. I also need it to work if I am using frames anywhere on the page. Is this possible ?
Thanks for your help
Doomsday
View Replies !
View Related
Liquid Effect
Can anyone tell me a way to create a liquid effect. It should be something like water filling a glass. If you have any ideas of how to create it, don't be shy
View Replies !
View Related
Liquid Site
Hi,
I would like to make a flash site that uses every resolution full browser, not full screen but full browser, but don't know how to start?
I need to set 100% width and height in the publish settings (HTML)
Ok, but how big does my swf has to be ?
I don't get it ?
Someone who can explain me a little?
thx
View Replies !
View Related
Moving Liquid....
Not sure how much of a "noob" question this is, but I need to represent fluid moving through a system of pipes,,a couple types of fluids at that. Masking movie clips is how I have been doing it, but it gets very complex, very quick, and the result is so-so. If someone is interested in helping, I could send a link to what I've been working on if it would help.
Any pointers on how to get something like this going? Mayeb I am doing all that can be done? I guess there is probably some really complicated AS that can be done too, but that is where I fall short. I just am familiar with basic stuff. TIA.
View Replies !
View Related
Liquid Layout
Hey, I was looking throught this link to figure out how to do a liquid flash layout http://board.flashkit.com/board/show...t=liquid+flash. I can get stage to not scale, but the MCs still scale at the same rate. Thing is I can't figure out where to put the codes on the page. Any ideas? Thanks
View Replies !
View Related
Liquid Stage
Hi,
i have a wondering about how Puma.com have made the stage in flash stretch over the whole window and how the contents are following the windows size?
Any help is appreciated
/VInter
View Replies !
View Related
[F8] LIQUID Flash
just found a site where the flash movie rejigs itself just like a liquid column in html. how do you do this?
its not resizing the swf, the images stay the same scale but jump down a line when the browser window changes width.
check it out at:
http://www.milesaldridge.com/
all advice on how to do this much appreciated!
cheers,
dave.
View Replies !
View Related
Liquid Layout
Hi,
I'm trying (unsuccessfully) to make a liquid gui layout.
I would like the background red "strip" to extend completely to fit the users screen size or however far the viewer wants to open the browser window. Then, I want the other movieclips to stay in place.
Meaning, if you drag the window, and the red strip extends, I don't want the other mc's to stay to the left. There will be more mc's on the stage when I'm finished, so I guess they would have to move in exact increments, so the rest of the site is always "centered" in the red strip.
Hope this makes sense!
Thanks so much.
View Replies !
View Related
Pouring Liquid
I've scoured the forums and the rest of flashkit, as well as other sites... I have found a few samples of pouring liquid (water into a glass) done in swish, as well as actionscript (lava flowing down) - ironically all years old. Unfortunately I can't see any source files to figure out how they were done, and haven't had any replies to PMs I have sent.
I am trying to simulate pouring liquid... and I just can't wrap my mind around it.
Does anyone know of a good way to do this? If so, can I get help with the AS?
View Replies !
View Related
Liquid GUI - Flash 8
In a previous post, I saw an example of how to create a liquid GUI in Flash. Very nice, but how can I get an element to remain in the center as the interface expands. For example, in the file I've attached, I just want the movie clip instance of "statement" to remain centered within the stage as it resized. Any help would be greatly appreciated!
View Replies !
View Related
How To Do Liquid Layout?
Hi,
I'm doing a 100% flash site, there is source file:
http://www.sopranai.lt/super/lemonray.swf
and the main code is:
Stage.scaleMode = "noScale";
Stage.align = "TL";
var width;
var height;
function resizeEvent() {
width = Stage.width;
height = Stage.height;
dimensions.text = 'width : '+width+' height : '+height;
tr._x = width;
bl._y = height;
br._y = height;
br._x = width;
fonas._width = Stage.width;
tamsa._width = Stage.width;
}
resizeEvent();
var stageListener = new Object();
stageListener.onResize = resizeEvent;
Stage.addListener(stageListener);
There is everything ok, but I want to do some kind layout amortization effect then web page is resized, like in this page center layout :
http://gskinner.com/site2_5/
Please help with code
View Replies !
View Related
Liquid Layout
I am trying to do a fluid/liquid layout so I can have center content and my menu at the bottom left 'BL' . Here is the script that I am using and I can't get the menu to go to the 'BL' it just dissapears. Right now im using '._x=0 and ._y = Stage.height'. Also it only works in Safari and not Firefox. Any suggestions or simple solutions?
Stage.align = "TL";
Stage.scaleMode = "noScale";
stop();
fluid._x = (Stage.width)/2;
fluid._y = Stage.height/2;
tutoriobutton._x = 0;
tutoriobutton._y = Stage.height;
sizeListener = new Object();
sizeListener.onResize = function() {
topstretch._width = Stage.width;
fluid._y = Stage.height/2;
fluid._x = (Stage.width)/2;
tutoriobutton._x = 0;
tutoriobutton._y = Stage.height;
};
Stage.addListener(sizeListener);
View Replies !
View Related
Liquid Transition
hello, I have a question.
If you go to the url, http://www.flashlevel.com/
And click on one of the thumbnails you will see a liquid transition to the photos.
I need to know how to make a liquid transition for a photo.
I know this can be done in flash rather then another program, although if im wrong please let me know.
View Replies !
View Related
Liquid Layouts
I have seen several sites designed with flash that use liquid layouts where the whole browser window is the site, so when you resize, site elements and movie clips reposition accordingly and sometimes the background uses a photograph that resizes and keeps the proper scaling so the image doesn't distort. Check out for instance the Volver movie site:
Volver Site
What would be an example of the ActionScript used to control that image background behavior?
Thanks in advance guys!
View Replies !
View Related
Liquid Animation
Hi,
I want to create a tube that has some liquid moving through it but I do not know how to create this liquid to make it actually look real. I was wondering if anyone could point me to a tutorial or tell me how to create the effect?
regards
Jon.
View Replies !
View Related
Liquid Images
Hi!
I have a question to the best flash peops...
I have seen this done somewhere, and I don't remember where... Basically, what I am trying to do is to have an image, sort of leak into the screen from the right. So what you see first is the luquid image and than it's coming into focus, very fast... The effect it creates is really cool, I can't find anywhere of how to implement it, aside for finding liquify images on kirupa, but what I am trying to do is a little different... Any ideas?
THanks in advance.
- dmitry.
View Replies !
View Related
Liquid Preloader
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. Can anybody offer me some suggestions on how to achieve this with actionscripting? Maybe you have seen a similar effect somewhere that I could check out?
View Replies !
View Related
Creating Liquid
Ok heres my Idea I want make a website and it kind of has this oil in water look about it now what I want to do it make the background image(bits of oil splatter and the like) move like oil paint in water when you touch it similar to the effect here www.senocular.com/flash/source.php?id=0.176
except I dont want to have to drag the paint i want it to be pushed by the mouse and float away. also the liquid generate out of nothing I want it to actually change the shape of the background completly. basicly just like pushing paint around in the water. Oh and it dosen't need to be beveled of look like anything cos my image is just blue. So yeh Big ask but any help advice tutorials would be great because i'm quite excited about the idea I think it would look great. Thanx
View Replies !
View Related
Liquid Form
Hi im trying to make a liquid form similar to that on http://lab.mathieu-badimon.com/, does anyone know how to do this.
Basically i want to have random circles generated on the page which collide and break apart from each other. When they collide i want the form to join together, but then continue in the direction they were going and break apart. In a similar way to water droplets on a surface.
Any help would be appreciated!
View Replies !
View Related
Liquid Layout
Im tryng to upload a swf inside a swf that have this code, do the rezise if the user change the stage with and height.
PHP Code:
import flash.display.*;import flash.events.*;import flash.utils.*;import flash.display.Loader;import flash.display.MovieClip;import flash.display.LoaderInfo;import flash.net.URLRequest;import flash.text.TextField;import flash.events.Event;import flash.events.ProgressEvent;import caurina.transitions.Tweener;import flash.display.MovieClip;import flash.display.StageAlign;import flash.display.StageScaleMode;stage.align=StageAlign.TOP_LEFT;stage.scaleMode=StageScaleMode.NO_SCALE;stage.addEventListener(Event.RESIZE, resizeHandler);addEventListener(Event.ENTER_FRAME, resizeHandler);var aCarregar:Loader = new Loader();carregarSwf("index2");function resizeHandler(event:Event):void { preloaderBarra.x = (stage.stageWidth/2); preloaderBase.x = (stage.stageWidth/2); preloaderLogo.x = (stage.stageWidth/2); menuTopo.x = (stage.stageWidth)/2; footerTexto.x = (stage.stageWidth)/2; footer.width=(stage.stageWidth); footer.align=StageAlign.LEFT;} function carregarSwf(teste:String) { var swfACarregar:String=teste; var swfQueCarrega:URLRequest = new URLRequest(swfACarregar+".swf"); preloaderBarra.alpha=0; preloaderBase.alpha=0; preloaderLogo.alpha=0; menuTopo.y=menuTopo.y-70; aCarregar.load(swfQueCarrega); aCarregar.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader); aCarregar.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress); aCarregar.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResult);}function showPreloader(evt:Event):void { Tweener.addTween(preloaderBase, {alpha:1, time:1, transition:"easeInOutExpo",delay:1.5});}function showProgress(evt:ProgressEvent):void { var numero:uint = (evt.bytesLoaded/evt.bytesTotal)*100; preloaderBarra.width = (numero*1.55);}function showLoadResult(evt:Event):void { preloaderLogo.visible=false; preloaderBase.visible=false; preloaderBarra.visible=false; addChildAt(aCarregar,0);}
----------
Then in the second swf, that is load by the first i have:
-----------
PHP Code:
import flash.display.Loader;import flash.display.MovieClip;import flash.display.LoaderInfo;import flash.net.URLRequest;import flash.text.TextField;import flash.events.Event;import flash.events.ProgressEvent;import caurina.transitions.Tweener;import flash.display.MovieClip;import flash.display.StageAlign;import flash.display.StageScaleMode;stage.align=StageAlign.TOP_LEFT;stage.scaleMode=StageScaleMode.NO_SCALE;stage.addEventListener(Event.RESIZE, resize);addEventListener(Event.ENTER_FRAME, resize); function resize(event:Event):void { Logo.x = (stage.stageWidth/2); }
but only the fist resize, can some one help?
View Replies !
View Related
[AS 2.0] Help.. Liquid Layout.
I was a bit tired this morning so I posted my question in the wrong forum (sorry) so I'll post it here.
What I want is something similar to http://www.hampusolsson.com/start/flash.html
If you resize your browser you'll see that the background image rescale while the content stay in place and size.
Don't know if it helps but the script looks like this in AS 3.0:
Code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
pic.x = 0;
pic.y = 0;
pic.width = stage.stageWidth;
pic.height = stage.stageHeight;
stage.addEventListener(Event.RESIZE, onStageResize);
function onStageResize(event:Event):void
{
pic.width = stage.stageWidth;
pic.height = stage.stageHeight;
}
I need it to work in AS 2.0 please
Thanks
//Simon
View Replies !
View Related
SWF In A Liquid Layout
Hello everyone
I have three flash presentations in a liquid layout that remain static when viewed in different browser sizes and the whole design gets thrown out. Is there a way of rescaling them along with the rest of the page when the browser size changes?
Thank you very much in advance.
View Replies !
View Related
Liquid Animation
Hi,
I want to create a tube that has some liquid moving through it but I do not know how to create this liquid to make it actually look real. I was wondering if anyone could point me to a tutorial or tell me how to create the effect?
regards
Jon.
View Replies !
View Related
Liquid Images
Hi!
I have a question to the best flash peops...
I have seen this done somewhere, and I don't remember where... Basically, what I am trying to do is to have an image, sort of leak into the screen from the right. So what you see first is the luquid image and than it's coming into focus, very fast... The effect it creates is really cool, I can't find anywhere of how to implement it, aside for finding liquify images on kirupa, but what I am trying to do is a little different... Any ideas?
THanks in advance.
- dmitry.
View Replies !
View Related
Liquid Preloader
hi,
i would like to build a preloader which looks like 'waves filling up' as the data is downloading, but cant find any examples of this. I need a 'liquid effect' for my preloader. can anyone point me in the right direction?
thanks
View Replies !
View Related
AS - Liquid Love
What's good shockers?
I was wondering, does anyone have any tips on adding elasticity to movie clips in a liquid layout? If there's a tutorial, or anything, please let me know.
View Replies !
View Related
Liquid Effect
hello everybody, i would like to know how can i do to make the liquid effect which appears afters the model woman http://www.eccentris.com/splash.htm
thanks.
View Replies !
View Related
Filling Arrays
how can i fill an array with the names of variables in a for loop instead of strings?
for instance, I can do this.
myarray = new Array(l1,l2);
but lets say I want to fill this array with the instance names of 50 movies, l1 through l50, it is very tedious to right out all of those names, but I cant get the array to add a variable name. It only wants to add it as a string. for example.
for (i=0;i<50;i++){
myarray[i]=("l"+i);
}
the above statement will add 50 strings to the array, I want to add 50 variable names.
I have made this as clear as possible, I hope someone can help me out because I've been pulling my hair out over this one.
thanks
ps - another way to solve this problem would be to somehow convert a string to a variable name, how would i do that?
View Replies !
View Related
Filling A Box Via ActionScript. Possible?
What I'm trying to do is fill a 4-point box with a solid color. The box consists of four points that the user can interact with.
Basically, I dont know how to go about doing this. I consider myself very welloff in actionscript, but I am stuck trying to figure out a method. I've tried using a method of finding the midpoint of a line segment opposite a verticie, then taking that midpoint and dividing it up and drawing a line to each point, but that method is cpu intensive and ends up with tons of instanced movie clips.
ANY help is appreciated! Thanks!
View Replies !
View Related
Filling Out A Form
hello...
Im creating a contact form in flash and in each field i have there appropriate names, for example in the name field i have the word name already written in the field so the user knows were to put their name.... i was wondering if it was possible for when the user clicks in the name field, the word name which is already there disappears ?
View Replies !
View Related
Filling The Spaces
well i have a HTML page with 2 FRAMES and i have a space between them.. how can i fill in this spaces.. i know it has to do with the HTML code.. please help... if u are unsure wha i mean go here:
http://kotrclan.com/main/flashkit.html
ui can notice a gap on the bottom right where the blue picture in the back ends :-/
thx in advance
View Replies !
View Related
Filling Up Preloader..?
i've created an wiremesh animation of a logo (initially there will be an outline of the logo and it slowly fills up with color).. now i need to make this as a preloader..How do i do it..???? i tried a tutor from FK.. but it doesnt seem to work(!!)..
please send me script / link to tutorial on how to do it...thnkx
View Replies !
View Related
Filling In An Imported Jpg
Hey...
Is it possible to import a .jpg and then somehow just fill in certain parts of the jpg with the fill tool? I want to use the lines that are already part of the jpg as the lines to contain the fill...
Hopefully someone will understand what I am trying to say!
I have included a pic below... I am trying to use the lines in the face as if I have created the entire face in Flash so I can fill it in...
Thank you!
View Replies !
View Related
Filling Image
I need to fill an image with color via actionscript. here's what I've got so far:
// actionscript
imgFormat = new ImageFormat();
imgFormat.fill = #000000;
imgbox.setImageFormat(imgFormat);
image has a frame tag named imgbox. is this possible? right now the image is a vector Freehand graphic. does that need to be saved in format in particular to effect this?
View Replies !
View Related
|