ActionScript 2.0 :: Make A Preloader For A Little Flash Project That Involves Re-assembling A Load Of Rectangles To Make Up A Pattern?
Aug 4, 2007
I'm trying to make a preloader for a little flash project that involves re-assembling a load of rectangles to make up a pattern.Idea is that instead of the usual load bar i wanted to make use of this pattern that is relevant to the project and have it rebuild it self with these rectangles flying in from the side. So far I have got the tweening sorted using the tween class and staggered the 42 (yes took a little while, probably an easier way so let me know on that also) rectangles using 'setTimeout' so it releases each 100milliseconds after the one one before it. This probably the wrong way to do it but i wanted to check how it looked and this was the one way i knew how to do it.
I want to make it so that these rectangles fly in a complete the pattern once the loading has finished, but on a fast connection I don't want it to rush the animation but for a slow connection I obviously want it to adjust the release time and maybe even the travel speed to compensate.
I had an idea of maybe working out the percentage loaded divided by 42 and then run an if statement to see if that percentage for that segment had been reached before 100millseconds had passed, if 100 had passed then release the rectangle, if not then hold the rectangle until 100 m/s had passed. Not sure if that is the best way to do but that's why I'm looking for some suggestions from more experienced developers.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// declare variables
[code]....
View 1 Replies
Similar Posts:
Apr 6, 2011
Basically I have a background image which is loaded while the rest of the flash file is loaded. So once the preloader has finaly appeared its already half way through which I dont want.
Is there a way I can specify a certain image to be loaded before everything else in the flash file and before the first frame to start?
View 2 Replies
Feb 9, 2009
i learned how to load an external SWF and JPG and make a preloader of it. Now I need to preload a MP3 and I can't. The code I did my self was:[code]
View 2 Replies
Jul 3, 2009
I am undergoing a huge flash project at the moment and as wondering whether or not an approach would work for something. Basically everything in the project involves loading data and movie clips dynamically in certain arrangements etc. I have built everything already bar a couple of things to create demos including dynamically loading mcs from the library etc all with as3, but now I am moving on to loading data dynamically and before I immerse myself completely I was wondering whether or not something is possible. Basically as I mouse over an mc i want a couple of things to come up which would be held in a database, such as a question and an answer, but this data will change quite frequently when the demo is up and running, is it possible for the data to be updated in the dynamic text boxes without mousing out and mousing over again? That is one of my concerns ( I have a couple ).
I had thought of maybe using a timer to query the database every 2 to 3 minutes and use php and mysql with as3 to then load the data into the text boxes, hopefully without having to mouseover the mc again and simply leaving the cursor over the mc the whole time. My main concern is whether or not I can query the database on a regular basis... using a timer method as described above, or is this simply stagnant data? i.e. can i use php and mysql in as3 to continuously query a database?
View 2 Replies
May 5, 2011
I am currently working with Flex 4. I successfully use custom preloader by s:application ... preloader="path"..., but i want the preloader to load external file as well, can it do that? How can i call the variables in the preloader?
View 1 Replies
Nov 7, 2008
I have been working on a site of mine, and I wanted to make a 360 rotation view thing with some pictures (12 shots all from different angels around the same axis). I need to make a preloader load everything up front, so there wont be any legging.
My best guess was making a slide show kinda thing, with an rotation and zoom bar. And before the slide show, a frame that holds the preloader. But the preloader doesn't loads the right images. I load my images from an XML file, and then parse them into an array (something I got from here I believe). That parts seems to work all fine, but when I load the images using a "container.loadMovie(image[i]);" code, it isnt loading anything, except for an error :s
[Code]...
There are some loose ends (like the gotoAndPlay(3) things, but that is because I may wanted to add a thumbnail gallery in frame 3... )
View 3 Replies
Jan 16, 2004
I want to make a preloader for flash mx 2004 that when it finish becomes to decrement another time. I would like to do it to modify the flash preloader component.
View 2 Replies
Oct 14, 2011
Im starting to learn about how RTMFP works in Flash, and I want to know what do I need to make this happen. I got this game, flash game, and I'd like to use RTMFP so other players can play versus/coop with each other.
Think of a RTS (Starcraft), I build units, some other guy do the same, and units fights with each other.
If I understand correctly, Cirrus is enough to make this happen, but I also heard some guys saying that FMS (Flash Media Server) is required for this, wich is, if Im correct, quite expensive at least for my low budget.
So, let say, I got N players, and they can connect with each other like in a regular RTS online game, is Cirrus enough for this?, or do I need to pay for FMS? I'd also want to record some data after the match is over, so I can give some points/gold/etc to each player
View 4 Replies
Mar 23, 2011
im trying to make a gallery in flash for a project and the coding isnt right Array 1 will play but arary 2 wont
[Code]...
View 3 Replies
Jan 19, 2011
I'm an MA student, and I am looking to make a simple theremin in Flash as part of a project. Can it be done? Has anyone done it before?
View 3 Replies
Jun 3, 2011
I'm looking to make a fisheye effect on a textfield for a project. I've already found some code on the internet but it doesn't quite render how i'd like for it to (the text is pixelated and deformed, I want a nice round fisheye).
View 1 Replies
Apr 16, 2010
I have a flashbuilder project with a big image. The problem is that the default preloader does not load the images/swf's inside the project. Is there a way to preload them?
View 1 Replies
Apr 24, 2010
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:
View 2 Replies
Mar 27, 2012
So i have a fake preloader going... doesnt actually preload, but just does the 'action'. my issue it gets to 100% way too fast. As its not really loading anything, how do i slow this down so its takes about 3 seconds to "complete loading?"
[Code]...
View 2 Replies
Jun 17, 2010
I wish to do my project in mvc pattern. so I chose cairngorm framework and just read some of the document about this framework.But I cant understand deeply to do project using this framework. Have any methods or examples to study doing project in cairngorm framework??
View 1 Replies
Mar 28, 2010
I have the following AS code to draw a single rectangle using mouse, but I need a different code that allows drawing multiple rectangles and the selection/exclusion of individual rectangles like a modeling tool (eg.: MS Visio).
View 2 Replies
Jun 17, 2011
How i make export my Flex project for IOS.I am using Flash Builder 4.5 .
View 2 Replies
Sep 8, 2010
I am using Flex Builder for an Actionscript which apparently has a dependency on IMXML object. I'd never heard of this object, and there is nothing on the project site about any dependencies. I assume it's a Flex component library, though. Which library should I include in order for this program to resolve its dependency issues?
View 1 Replies
Aug 2, 2011
I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS. I have some custom UI classes, like buttons, that I want to use it in another projects. How can I make an actionscript mobile library project? I'm using Flash Builder 4.5, and I'm not using Flex in my code.
View 2 Replies
Apr 26, 2011
I'm trying to make a simple test for my current project and I have som problems with Vector class. I'm assigning BitmapData to the MovieClip and store this MovieClip to an Array. Then I'm able to access BitmapData.If I do the same but use Vector instead of Array class, I get this error if I want to access BitmapData:1119: Access of possibly undefined property bitmapData through a reference with static type flash.displayDisplayObject.
Code:
//var store:Array = new Array(); // - THIS ONE WORKS!
var store:Vector.<MovieClip> = new <MovieClip>[];
var itemBitmap :Bitmap = new Bitmap();
itemBitmap.bitmapData = new BitmapData(100, 150, false, 0x990000);
[code]..
View 3 Replies
Jan 30, 2012
Just getting used to AS3 and I'm trying to make a generic button class that can be used on any project.
View 9 Replies
Feb 3, 2010
trying to make the close button work on this homework project. This app scatters photos on the stage, randomly and at random angles. They are drag and droppable and the clicked photo comes to the fore. Each photo has a close button intended to remove the photo from the stage, this last is what won't work. I know its a common topic, but nothing I've tried has worked so far. onClickCloseBtn is the problem.
Code:
package
{
import flash.display.*;[code]........
View 1 Replies
May 11, 2011
i am trying to make preloader in flash builder. I wanna scale my load bar while all of items loading . But when i start my game its just waiting on white screen and skips load screen. Can anyone help me to fix this problem
[Code]...
View 1 Replies
Nov 9, 2011
my default document is the swf file.
View 1 Replies
Feb 25, 2011
In my university a have to make a project: XMPP client on Adobe Flex. On this occasion I've decided to learn any architectural framework and to use it in my project. Could you advise me, what framework would be the best one for the XMPP client? What are advantages and disadvantages of this or that framework?
View 7 Replies
Aug 8, 2011
I have a flex maven project written by externel company that I need to modify. I dont have a Flash Builder licence yet (it takes forever to buy anythng in my company) I installed Netbeans 6.5 and FlexBean but when i opended flex maven project the action script code is ont recognized as action script by the IDE. Ho to make it "flex aware" ?
View 1 Replies
May 8, 2010
I've been using the following code to make the soundtrack for my project loop over and over again until it is told to stop:
[Code]....
It's working for me, but it's not particularly smooth. There's a bit of a delay between the previous iteration of the loop and the next one - it pauses for a second between loops.
View 3 Replies
Jan 4, 2012
how can i change my list component in Flex 4.6 mobile project with that when an item is pressed it would dynamicly resize and show an article description and a button [URL]
View 1 Replies
May 19, 2009
I've created a flash interface with action script and the whole shebang for the web. It takes hours to load and I've seen sites with even more pictures and information load faster. I've compressed all my pictures and implemented various UI loaders to spread the load time out but it still takes a while. Does anybody have any tips and tricks to make my flash load faster?
View 1 Replies
Oct 17, 2010
I am finally finished with my flash website and i cant figure out how to make a preloader.
View 3 Replies