ActionScript 2.0 :: Create A Load Bar That Fills Up Then Goes Back Down
Mar 6, 2007I'd like to create a load bar that fills up, then goes back down (where back to start would == a fully loaded page), almost like an 'elastic loader'.
View 8 RepliesI'd like to create a load bar that fills up, then goes back down (where back to start would == a fully loaded page), almost like an 'elastic loader'.
View 8 RepliesI've attempting to create a tiling image that fills the stage using AS3. Its all well and good until the stage is resized - once this happens things being to look very poor. At first I thought it was a smoothing issue but now I realise that the same image is being drawn over itself again and again. As I want to eventually have this over video, I need the transparency. If I use an opaque image, obviously you cant see the problem.
I've tried adding a condition to remove the child that is being drawn to in several ways but this dosen't seem to work. You can see these commented out in the code below.
[URL]
Code:
import flash.display.Bitmap;
import flash.display.BitmapData;
var _stageHeight = (stage.stageHeight);
[code].....
I am working on a having external swfs get loaded into the main swf one by one from an array.I can get the first one to load, but it just keeps on playing the first item in the array over and over, instead of loading the next movie. I have a container on my stage, cleverly named "container" and I am using AS2 and loadMovie.
I am guessing my conditon on my if statement is off, but I am not sure how to tell the onEnterFrame to check the currentframe of the loaded swf and not the container itself. I might be way off, but in my mind I feel like this mostly makes sense, but knowing Flash it is probably not nearly enough coding.I might also add this won't be running on the web, so I don't need to worry about preloading swfs since it will be running directly off a PC onto a screen in our office.Here is my code:
Code:
var myClips:Array = ["movie1.swf", "movie2.swf", "movie3.swf", "white_logo.swf"];
var i:Number = 0;
_root.container.onEnterFrame = function() {[code].....
This is my current code and i would like to include a next and back function [code]...
View 3 RepliesHow to create a back button, like you see in all the flash games instruction pages. I am using Flash Professional 8
View 7 RepliesAny tutorials out there on how to make a zoom in button and a zoom out button?
View 1 RepliesI wanted to create a rain movieclip with the actionscript below, but i wanted the rain to appear at the back of a layer. How do i change the script?
//Creating an empty movieclip to attach the clip from library
_root.spring_mc.rain_mc.createEmptyMovieClip("hold er",this.getNextHighestDepth(0));
//settig variables
[code]......
I would like to create a back button within a Flash movie that remembers the last Scene the user came from. I have about 12 scenes in my Flash movie.
I am using Flash MX 2004.
how to create a two-sided movieclip and load a different image on each side.
View 1 RepliesWe have some dozens of SWF files and we need remove a certain fill of each SWF file, to each frame! That fill is purple color and it should help, but we aren't SWF experts.
What we want is developing a tool (in Delphi, C++ or any language) able to read each SWF file and modify it, generating a new version without that purple fill.
Is it possible to create text to speech application in flash without any back end?
View 1 RepliesI'm working on a flash module that basically needs to offer the ability for the user to scroll through a series of thumbnails in a carousel format. I currently have the following code which is creating my thumbails horizontally which is all working fine. [code]...
View 1 RepliesI would like to create multiple swf files that play from beginning to end, then load the next one without users clicking buttons. For example, I may have files A, B, C, D, E, and F. A plays and loads B. B playes and loads C. C plays and loads D..... until F finishes playing then loads A and it starts all over. What is the best way to approach this?
View 1 RepliesSwf loads fine in all browsers. In any browser but IE 6+, navigating away then back using history/the back button causes the page and swf to reload fine.
With ie however, the swf fails to (re)load without throwing an error.
I'm using SWFObject 2.3 for the embed.
I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?
View 1 RepliesI was wonder how i can make a bar that fills up as part of the movie progresses.
View 1 RepliesI am very new to Flash CS4, however I was able to create a preloader with help from a Dan Carr tutorial.Here is my source
import fl.video.*;import fl.controls.ProgressBarMode;
// Set Variablesvar flvControl = display;var flvSource = "op.flv";[code]....
The movie loads and plays but the preloader only loads part of the way. How would I go about having the preloader progress bar load all the way then have the movie start?
I need to build a flash application In which I load a jpg, make a selection of it (a mask or something like crop tool) and save it back. Loading the picture and making the mask are not a problem. saving the edited picture back.
View 6 RepliesIn my Flex app I give the user the ability to open up a new item form ( s:Panel ) and create multiple items on the page.Sometimes for some odd reason bringing up the panel (simple task) seems to take a really long time to load (like 30 seconds or so) However, the weird thing is that if right after I click to open I navigate away from the Tab and back again to the Flex app tab it shows up right away.
I'm not sure if this has to do with refresh rate or some setting or is it general performance/memory issue with my app that I have to consider. When the application work it works fairly fast which is making me think it's not memory/performance issue.
My application is almost set, load the image, made the crop, save It to a server with a php and all good until here. Now I want to drag the image, make a scale of it and for that I used an Matrix (also done).
My problem is if I scale it less then initial value, my crop is not good. Can you please take a look at my code here, because its drives me crazy and I cant figure it out.
I've got a situation where .swfs are loaded by buttons from another .swf to a higher level.each button loads its own external movie. What I would like to know is how to load these external .swfs in succession, either forward or backwards, with forward and back buttons, as well as keeping the specific buttons in effectI guess it would be kinda like the way you search through the forums. You can either click the number that corresponds to the next page, like "2" for example, or you can click the forward button that looks like ">". Same for the back situation. So it would look something like this: "<12345>". You could either click the ">" button to move all the way to 5, or click each number separately
View 1 RepliesHow to create realistic smoke coming out from the back of a missile flying on stage?
it's for a top-view arcade-type game, where the player shoots a missile from a plane...
Is it possible to draw a rectangle dynamically using 'lineTo()' and have it fill with a gradient that is 100% alpha on one side and 0% on the other?
View 2 RepliesI am trying to draw a box shape on screen which fills with a gradient, but according to the angle between your start and end mouse points. ie, if you draw from 100x100 to 200,200, the angle will be 45 degrees and it will draw your gradient fill within 100x100 to 200,200 on a 45 degree angle.
Trouble is, I can EITHER get the angle working just fine if I fill the entire shape, or the angle isn't right but the fill area is correct. Please see the attached fla and click drag within the red box, trying out the 2 matrix arrays in thereto see the 2 x scenarios listed above.
I am creating an interactive slideshow, like a PowerPoint effect, I have a main scene, 4 Buttons, a Home Button, Play Button, Forward Button & Back Button.
I want the Home Button to take me back to the start of the scene, Forward Button to Load a External swf slide and when the Forward Button is clicked again to Unload External swf and load in the next swf slide, I also want the Back Button to do a similar thing![code]...
the basic idea is i have a forward button and a back button.. I have 3 swf's that i want to load/unload with these buttons..
[Code]...
this is what ive started with for the forward button... as it is now when i click the button it automatically executes the else and loads scene_3.swf so i know i have something wrong.. the idea is that if the viewer is on scene_1.swf hitting forward will load scene_2.swf, if they are on scene_3.swf nothing should happen when they click it as (at this time i only have 3 swfs available, but eventually i will have 8 ) of course i would be using this as well on the back button...
I am creating a chart using mxml. The mxml tags only create a chart with a horizontal axis and vertical axis. My result event handler has actionscript code that loops through the xml result set and creates all the series (line series and stacked bar). This part of the code works fine. Now I need to use the functionfill function to set individual colors to each series. All the examples I have found call the functionfill from within an MXML tag, like so:
[Code]...
I wanted to e to replace the standard flex bar chart bars with my own image. This worked by embedding the image and setting as a bitmapfill. however these images dont scale well even tho i have applied 9 slice scaling when embedding.
[Code]...
how I can have my swf fill the entire browser (as in publish settings 100% w & h etc) but not stretch/distort the text and images in the swf.
There is a site [URL] that does this. It fills the whole screen yet when you resize, the objects do not become distorted.
I may have the wrong approach with publish settings width & height 100%??
I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example:
[Code]...
However when displaying these files as Sprites only some of the gradients are surviving the embeding process. From what I've found simple (2 step) horizontal gradients seem to stand the best chance of being preserved, but sometimes other kinds of gradients are as well. In one case simply rotating an object 90 degrees causes the gradient to vanish when displayed in flash. Does anyone know a rough set of rules to use when creating svg gradient fills so they are preserved when rendered in flash? BTW: I used Inkscape to create the images in question.
Update: Bizarrely the solution to this seems to be setting the opacity of any object in the svg file whose gradient isn't displayed properly to a value below 1. Don't ask me why this works but it does. It does however have the unwanted side effect of the objects edges not being rendered as smoothly.