ActionScript 2.0 :: Unable To Make Percentage Animation?
Dec 29, 2004
create a counter using actionscript? the scene is 30 frames long and it's sopposed to get a new value with every frame. something like counter++; example: 70% should turn 71%, 72%.... 100% (but not as a preloader animation)
I tried it, using the while loop like this in first frame:
while (counter < 100)
{
how to make a my swf appaer as a percentage of the screen not a defined size and I can't seem to work it out. I nee something to appear on screen at a resonable size. 640 by 480 is too big for certain users and width="480" height="360" is too small for others.
I want to make a MC called bgFade cover a percentage of the flash movie. So the MC starts at the bottom and covers 80% of the vertical space of the Flash movie. So theres 20% at the top that isn't covered. At the moment i have:
...Which places the MC at the botton of the movie, and makes it fill all the horizontal space. So what can i add to that to make it fill 80% vertically?
I want to make the HTML dimensions a percentage (so it scales with the web browser) but the problem is when i do that, aspects of my animations which i dont want visible (that start outside of the sage) become visible on the page. And if i set the size in pixels or to fit the movie, the things i dont want visible are not visible, but the artefact doesn't scale with the web browser.
I'm trying to make a simple animated movieclip act as a preloader for a larger website, and have its play reflect the percentage that has been loaded. I've seen a lot of code for various preloaders that involve text or a movieclip being scaled, but not anything regarding controlling the playhead of a movieclip.
This is what I thought would work. PreLoaderMC is the class name of a MovieClip symbol in the .fla's library. I've omitted the Loader stuff [code]...
How can I make a preloader that shows percentage/bar for a movie loaded in with LoadMovie?
I've tried using a normal preloader (the one from Kirupa) in the "to load" movie, but it doesn't work.
Is there a way to have the preloader assess how big the movie to load is, how a bar etc. and have the movie hidden until 100% is loaded (as seen on the bar)?
How can I make a preloader that shows percentage/bar for a movie loaded in with LoadMovie?I've tried using a normal preloader (the one from Kirupa) in the "to load" movie, but it doesn't work.Is there a way to have the preloader assess how big the movie to load is, how a bar etc. and have the movie hidden until 100% is loaded (as seen on the bar)?
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
I'm making a preloader and I want to make a bitmap fade in with the percentage loaded as "reference". More precise I want the ALPHA-value of the bitmap to be the same as the percentage loaded shown by the preloader.
how to make text acting as a preloader so that its color changes as preloader percentage. i dont mean how to apply the math, i mean how to mask it or whatever action to achieve that effect?
like for example imagine the red is constantly growing to the right letter by letter (actually pixel by pixel:
Im new to AS but Im working everyday to improve, Im trying to make a menu but Im having difficulties with moving the menu:
I have a bar in 500 length and mask of 100 And I have 5 buttons. When I click 1 ofthem I want it to bring the correct positon of the bar with easing. Btw the registration point of thebar is upper left corner
I was wondering how to do the box effect like on [this] site. The lines move up and across to form a box. I have tried a few things that I could think of, but have't got it.
I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.
1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.
2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.
Here's the file --> Pepper and the Vacuum of DOOM!
I have a grid that is drawn by the graphics library. I have small pieces, let's call them blocks that are the shape of a square. These blocks connect to each other to form pieces. I want the user to be able to rotate the pieces and then snap them to the grid.I've looked at the geometry libraries but I'm unsure how I would get the points of each square in a piece to match it up with the board after it has been rotated
how to make a countdown timer? I created a timer that counts down to a certain date, but I just want the timer to countdown 24 hours, not to a certain date. I also want to have a button below the timer so that when you click it, it adds 30 seconds to the timer
i wanna make a dynamic tree using a lazy loading ,each time i open a folder the tree sends a http request to the server, in this script i'm using just static text to test the tree but , i'm getting in the label of the root all the XML text assigned to the dataprovider, then when i open the root folder i got the childs with good labels , and openitem and closeitem events do not fire how could i make them
i download and try to modify a xml photo gallery from kirupa in this pagemake the buttons for "next" "back".... and one button that control the slide show, but i cant find how to activate the slide show and desactivate it.
I have a flash fullscreen and in ie it works. However the problem in firefox is that sometimes the image is centered but sometimes not (it goes to the bottom-right corner). How can I fix that?
I have a bunch of MovieClip Symbols in Library. They all need to import the same classes for timeline code. I don't want to add the import statements to every MovieClip's timeline.
I have an app wer i drag and drop images onto a canvas and then move them on the canvas to arrange them appropriately. After that i shud be able to click on those images and draw connectors between them as the user seems required. But after dragging and dropping the images on the canvas and arranging them, when i click on the image i am getting a typeerror 1009 error, i.e, "cannot access a property or method of a null object reference".
Actually after arranging the images, i add an event listener to the image(proxy) on the canvas: