What Is Faster?
I would like to hear your comment on this...
In this case, what is supposed to be faster. Calculate the value and put it in a Variable or just calculate the value needed in the function call?
ActionScript Code: // With VariabledoTween = function (w, h) { var xP = square_mc._x; var yP = square_mc._y; var xMoveTo = (550/2)-(w/2); var yMoveTo = (400/2)-(h/2); someFunction(xP, yP, xMoveTo, yMoveTo);};// Without VariabledoTween = function (w, h) { var xP = square_mc._x; var yP = square_mc._y; someFunction(xP, yP, (550/2)-(w/2), (400/2)-(h/2));};
Ultrashock Forums > Flash > ActionScript
Posted on: 2003-06-24
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Player Is Jumping Faster And Faster Each Time You Go To Frame 2(flash 7 Script 2)
whenever i want to gotoAndPlay(2) from frame 3, my player jumps faster and faster each time. this is the code i used on frame 2:
Quote:
stop();
var jumpRate:Number = 4;
var dropRate:Number = 0.5;
var overallAmountofTime:Number = 10;
var groundPosition:Number = 119;
var dropping:Boolean = false;
var jumping:Boolean = false;
var jumpAllowed:Boolean = true;
var jumpInterval = setInterval(boardJump, overallAmountofTime);
function boardJump() {
jumping ? (skateBoarder._y -= jumpRate, jumpRate -= .1, jumpAllowed = false, skateBoarder.gotoAndStop("Jumping")) : null;
dropping ? (skateBoarder._y += dropRate, dropRate += .1, skateBoarder.gotoAndStop("Dropping")) : null;
jumpRate <= 0 ? (jumpRate = 4, jumping = false, dropping = true) : null;
skateBoarder._y >= groundPosition ? (skateBoarder._y = 119, dropRate = 1, dropping = false, jumpAllowed = true, skateBoarder.gotoAndStop("Stationary")) : null;
}
onEnterFrame = function () {
jumpAllowed && Key.isDown(Key.SPACE) ? jumping = true : null;
};
frame3:
Quote:
stop();
again.onRelease = function(){
gotoAndStop(2);
}
here's the swf(hit the blue things and click again to see what i mean):
http://skate.websitedork.com/skateboard_game.swf
please help
XML Photo Slideshow Going FASTER And FASTER On Click
Please help! I'm kind of new at actionscript and this is what I've got:
I have a slide show which is on a timer and fades the images (being called from XML) one after the other.
On the bottom of the slide show I have a next and back button. ( I would like to add a pause button too but don't know how)
This all works except when I click the next button the slideshow speeds up faster and faster! The faster I click the faster the slides go.
HELP!
Code:
delay = 3000;
// -----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
// ///////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
// ///////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
Animation Goes Faster And Faster On Reload
i have a spiraling animation in my preloader, each time it reloads (inside the same .swf), it spins faster and faster, I have no clue why. Can anyone help me figure it out?
The action on the frame:
Code:
// nbrFullTurn represents milliseconds required for full 360 degree rotation.
nbrFullTurn = 1000;
nbrInterval = 15;
nbrRotInc = nbrInterval*360/nbrFullTurn;
nbrGM = 1;
trace("nbrGM: "+nbrGM);
nbrScaleIcr = Math.pow(nbrGM, nbrInterval/nbrFullTurn);
trace("nbrScaleIcr: "+nbrScaleIcr);
nbrDepth = 0;
rfcClip.nbrID = nbrDepth;
itvLaunch = setInterval(function () {
clearInterval (itvLaunch);
}, 7200);
the code on the spiral mc:
Code:
onClipEvent(load){
nbrRotate = this._rotation;
fncRotate = function(){
nbrRotate = (nbrRotate+_root.nbrRotInc)%360;
_rotation = nbrRotate;
}
itvRotate = setInterval(fncRotate, _root.nbrInterval)
}
thanks for any help
Linear Presentation Getting Faster And Faster
Hi,
Has anyone of you heard of this (a comment of one of our clients running a linear presentation;
I'm still having the same problem. I played this version with only Lotus Notes and Windows Explorer running. It seems to get faster each time it goes through the presentation. By the third repetition it sounds really weird and offbeat. I emptied the trash bin on my computer and deleted everything from my desktop. Do you know of anything else I can try?
The presentation does not contain any scripting, and the music is imported into and resides on a separat layer. At the last frame it contains a go to frame 1 and play command. It is dsitributed to our clients as a Flash-created .exe file and was create dn Flash CS3.
I have no idea what is going on here ...
Thank ful for any hints ....
Nik C
There Must Be A Faster Way
hello,
i am in the process of making a site for a client, she wants text going from small to large displaying all she does, the thing is, she does an awful lot, infact she wants about 100 headers going from small to large then dissapearing, is there a faster way to do this using actionscript or do i have to make all these animations seperatly.
many thanks in advance.
Brian
How Further How Faster
I need to know how you can get an object to move into the direction of the mouse. But how further the object is from the mouse how faster it has to go. How can I do this?
Is It Still Faster Without AC3.0?
Hello. I've been wondering. With ac3.0, SWFs are now faster because of the new AVM2 right? I'm wondering, if i choose to use the new AVM2 without using any actionscript, would my flash animations be rendered fast too?
What Is Faster ?
Sending many connections via local connection , as in sending 100 times with one variable , or send ONCE with like a array converted to a string ?
Which Is Faster?
Does anyone know which typically creates more overhead:
Having an imbedded animation attached to a MovieClip,
or to manipulate a Sprite in the code itself.
Example:
Say we have a ball that's going in and out of opacity.
Would it be faster to create an animation in the timeline, or to
cycle the alpha levels of the ball as a Sprite using a timer?
-Oranjoose
WOW AS3 Is So Much Faster
We've heard about it, but nobody has posted hard numbers for specific things.
I'm doing a large amount of matrix math – multiplying two large matrices together. We are talking about approximately 4,718,592 additions and multiplications.
Under AS2 my class takes about 79 to 80 seconds to calculate the answer. Under AS3 the same class takes about 10 to 11 seconds. I know that is still quite awhile, but an amazing performance boost. Dontchathinkso? This really is going to make an amazing difference in the things we can do with Flash.
Now if only the AS3 documentation was any good. :)
Run Faster?
Which do you think would run faster, 2 loops running 10 times, or 10 loops running 2 times?
This Needs To Be Faster
Ok. I'm working on a project for a museum. It's a kiosk about a sculpture and it will be created in FlashMX2004 and run on a dual 2.3ghz, 2gb ram, 256mb vid card computer at 1280x1024 fullscreen on a planar touchscreen 19" monitor.
Anyway, everything WORKS fine, it's just that it's SOO slow. Even on the godly computer (which, by the way, is godly because later this is going to go in a director file, which will slow it down EVEN MORE so that it can play HD video) it's slow. Are there any tricks or any kind of optimization we can do to keep it from running so slowly?? It's all vectors, and it's crazy but, since it's obviously not the computer, Flash can't handle it's own vectors moving around slightly.
Here are the links for the files you'll need:
http://www.servercorp.com/~rlseaton/digitalCatalyst.fla
http://www.servercorp.com/~rlseaton/test.fla
So could some of you take a look at this? Don't mind the code, I'm just a beginner. The art wasn't done by me, but by the graphic artist for this project.
At any rate, when you click on a person (except for the guy on the right, this is a work in progress) they are to light up and display who they are. When you click them again, they are to zoom in and a section about them will appear. The zooms work fine, but only because I make everything else invisible. The middle guy (bill) and the sculpture itself will zoom in, but I havn't added a section for them yet. The lady on the left, Beverly, will zoom and if you click on the test section will go back to where she belongs. There is a squirrel and some birds in the background. All color fades are done in Actionscript, as well as the zooms. The colored parts of the sculpture change color slowly.
Anyway, this thing is supposed to run so much faster, but something is dragging it down. I mean we can take out the people and that will speed it up, but we NEED the people in their for the exhibit. We can take the squirrels and birds out, but they don't help much.
So, does anyone have any ideas on what I could do to speed this up? It USED to be 60fps, but we slowed it to 30 and that helped a little as well lol. Don't know what we were thinking.
Thanks to anyone who replies with some help!
If you have any questions just ask. There are a lot of plans for this project so I can't really take things out, but if there are some tricks to making things work faster, let me know!
By the way, the figures need to shuffle around slightly, and their bodies are cut up into many vectors. Is there a way we could cut down the number of vectors, and would this help speed it up? (even the squirrel has MANY parts to him). And remember, this was designed for a touchscreen, so rollovers weren't used. Oh, and the menu on the top left is still in progress as well!
Again thanks ahead of time!!!
--xezton
:( I There A Faster Way Too...
divide seperate images over a timeline? See i got 240 images that need to be placed in 1 layer. each image has it sererate frame. Is there an fast way of doing this?
Thanks in advance!
Faster Doc Without FPS
Hi,
Im currently working on a website for a customer. Half way through the flash work he told me that he wanted the whole site to load faster. The problem is that I have my FPS for the fla already set to 120fps(the max fps allowed). Is there anyway to speed up the document without changing the FPS?
Andrew
Faster On The Web? What
I am having, what I think, is a wierd problem.
For some reason, my swfs run SLOWER when they are directly on the comp, like with test movie, or just published, then when I am running them in the web browser. I need this to be runable from a CD in the long run, so I'm totally confused!
Thanks
There Must Be A Faster Way...?
Hi,
This codes works for what I need, but I'm sure there would be a more efficent way to write it using an array, but I'm not having much luck. Any ideas?
Code:
#include "lmc_tween.as"
stop();
s1.onRelease = function() {
s1.colorTo(0x0099FF, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s2.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x0099FF, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s3.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x0099FF, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s4.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x0099FF, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s5.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x0099FF, 0.5, easeoutSine);
}
Thank you for any advice.
Paul.
Will It Run Faster?
Hey Guys and Girls,
If a movie clip is not visible during runtime. Would it be beneficial to the frame rate to remove that movie clip? and attach it again when it is needed?
Cheers,
Dave
Run Faster?
Which do you think would run faster, 2 loops running 10 times, or 10 loops running 2 times?
This Needs To Be Faster
Ok. I'm working on a project for a museum. It's a kiosk about a sculpture and it will be created in FlashMX2004 and run on a dual 2.3ghz, 2gb ram, 256mb vid card computer at 1280x1024 fullscreen on a planar touchscreen 19" monitor.
Anyway, everything WORKS fine, it's just that it's SOO slow. Even on the godly computer (which, by the way, is godly because later this is going to go in a director file, which will slow it down EVEN MORE so that it can play HD video) it's slow. Are there any tricks or any kind of optimization we can do to keep it from running so slowly?? It's all vectors, and it's crazy but, since it's obviously not the computer, Flash can't handle it's own vectors moving around slightly.
Here are the links for the files you'll need:
http://www.servercorp.com/~rlseaton/digitalCatalyst.fla
http://www.servercorp.com/~rlseaton/test.fla
So could some of you take a look at this? Don't mind the code, I'm just a beginner. The art wasn't done by me, but by the graphic artist for this project.
At any rate, when you click on a person (except for the guy on the right, this is a work in progress) they are to light up and display who they are. When you click them again, they are to zoom in and a section about them will appear. The zooms work fine, but only because I make everything else invisible. The middle guy (bill) and the sculpture itself will zoom in, but I havn't added a section for them yet. The lady on the left, Beverly, will zoom and if you click on the test section will go back to where she belongs. There is a squirrel and some birds in the background. All color fades are done in Actionscript, as well as the zooms. The colored parts of the sculpture change color slowly.
Anyway, this thing is supposed to run so much faster, but something is dragging it down. I mean we can take out the people and that will speed it up, but we NEED the people in their for the exhibit. We can take the squirrels and birds out, but they don't help much.
So, does anyone have any ideas on what I could do to speed this up? It USED to be 60fps, but we slowed it to 30 and that helped a little as well lol. Don't know what we were thinking.
Thanks to anyone who replies with some help!
If you have any questions just ask. There are a lot of plans for this project so I can't really take things out, but if there are some tricks to making things work faster, let me know!
By the way, the figures need to shuffle around slightly, and their bodies are cut up into many vectors. Is there a way we could cut down the number of vectors, and would this help speed it up? (even the squirrel has MANY parts to him). And remember, this was designed for a touchscreen, so rollovers weren't used. Oh, and the menu on the top left is still in progress as well!
Again thanks ahead of time!!!
--xezton
Faster Fps
Hi there,
Is it possible to increase the speed of one particular MC in a movie?
thx
What Is Faster?
for my menu,
embedding 40 times a shared flash movie that represents a button?
or creating 40 buttons at runtime in 2-4 movies every time the page loads?
and whats better you think?
i need 4 buttons slightly different....1 is 21KB
would you make 4 of 21KB, or 'style' them at runtime? (creatfill and stuff)
What Loads Faster?
Hi,
I may be showing my ignorance here (and likely stupidity), but if you have one movie that is say 250 kbs, would this load at exactly the same speed as say 5 movies on the same page that are say 50kbs?
Also, should all movies on a page have a preloader, in the case of having say 5 swfs on the page?
Any help appreciated,
Jged
Faster Loading
My current site takes about a 45 seconds to load. What I dont quite understand is that the swf file is only 185KB, which I believe is pretty small. So it really shouldnt take no time at all to load. Does anybody have any suggestions on what might be slowing it down or any suggestions on what I might be forgetting to do.
I would appreciate any suggestions.
Thank You
How Do I Move This Car Faster?
Greetings.
I am new to Flash and I have Flash 4 installed. My problem lies HERE:
http://www.geocities.com/scorponok.rm/CityTest.swf
I want the car to move fast or slow depending on which button is mouseover'd.
Basically, the car is stationary and the background buildings move. The buildings are on a seperate layer BEHIND the car and side frames, and they are a movie clip. I want the animation on the building layer to move faster or slower depending on which button is mouseover'd. Is there a way to do this? I'm sure I have seen this done before, but I have no idea on how to do it or what actionscript to use. Any help is appreciated, and thank you.
Must.... Animate... Faster....
i know, its been asked a million times. so, lets get right to it! how in the sam hell do i make my animation run faster (smoothely)?
here's a link:
http://robkamphausen.com/v6/
my main concern, at this point, is the lower frame -- the left, right, and top frames are just templates as of now. the middle frame has a old batman animation from my old site (which means its very un-optimized, but i placed it in there as a "worst case scenario" to test the rest of the beta).
(and, yes, i know frames are inherently evil, but its necessary so i can include forums, and as of now, frames are the "best" way).
the lower section is my main navigation area, and thats where im focusing now. its just vector lines, text, gradient fills, shape and motion tweens, etc. and lots of'em. SET to run at 30 fps. (no bitmap graphics, and i've yet to add sound)
the animation is fairly simple, relatively speaking, and the swf output file is maybe 7 kb. but, obviously, it struggles, in terms of running smoothely and/or bandwith/processor muckups.
is it easier on a processor to run 2 simultaneous shape tweens? or motion tweens? or one of each? or no tweens, just key frames to simulate the tween?
am i screwing myself by allowing the 4 outside frames (top, bottom, left, and right) to "exact fit" instead of just setting on a pixel width?
is tinting a symbol more cpu intensive than, say, brightening?
does the "soften fill edges" option eat up processors? (because of all the added and varied alpha layers?)
does having an object animate beneath a mask drain much more than that same animation without the mask?
i know im a pain in the butt for askin, but... well... thats it. im a pain in the butt for askin
any and/or all help, suggestions, answers, and tips are GREATLY appreciated.
Faster Method
I have a tile map that uses attatchMovie to add 20x20 tiles. This can be very slow if the tiles are detailed or the map is big. Would it be any faster to just use duplicateMovieClip...Or is there a better way?
Faster Download?
My flash movies take 10 minutes to download on a non-broadband service. Does anyone know of a way to make them download faster? Thanks.
Scrolling Faster
I am using a scrollpane, and in the scrollpane I use a movie clip that consists of a bunch of text and a few pictures. The text at the beginning of the movie clip fades in. Everything works great, except for one thing: The movie clip scrolls SLOWLY!!! To the point where it's not worth using. Anyone have any suggestions? If there's any way to fix the scrolling problem without getting rid of the scrollpane, that would be idea, but if not, I'm open to other suggestions.
Thanks!
Whats Faster?
Code:
for(i=0; i<10; i++){
trace(i);
}
Code:
i=0;
while(i<10){
i++;
trace(i);
}
Wich one is less CPU intensive?
Which Method Is Faster
For an onEnterFrame event i have to use the z variable...
can any one please tell me that which method is faster one..
Method 1:
x = Math.sin(b/2)*c
y = Math.cos(a)*c
z= (x+y)/(1+y)
_root.txtbox = z
Method 2:
z = ((Math.sin(b/2)*c) + (Math.cos(a)*c))/ (1+ Math.cos(a)*c)
_root.txtbox = z
Faster Video From CD
Folks,
I've searched the archives as best I can, and cannot find anything to help me out.
I've made a CD containing 16 video clips -- packaged into their own SWF file and called externally from my CD. They load quickly on my computer (a PC with all the bells and whistles), but load time is unacceptable on other, slower PCs.
Since I'm working from a CD, is the slower load time inevitable? Is compressing the video to a pancake the best way to speed up my load time? Are there smarter ways to link to the video -- or even preload?
Someone please tell me if I'm barking up the wrong tree.
Thank you for your time.
Pug
Faster Preloading?
I am loading large images one by one wich works fine, but I want to use thumbnails instead of just a next button.
If I load the originals into small mc's, I got my thumpnails, but the great thing about thumbs is their smaller size and faster download time.
So is it possible to somehow load the big ones faster maybe with loss of data, into small mc's, so I don't have to upload both originals and thumbnails?
Faster AS Loop
Is it possible to make frame loop faster. I`m using flame loop to check some variable changes. It works but it works to slow.
this is what i`m doing:
first frame
if (i==z){
_root.myMc.gotoAndStop ("test");
}
second frame
gotoAndPlay (1);
so that works OK, but I need something faster then regullar frame loop..
Is it some other kind of loop that works simmilar like that. Offcourse it needs to be infinite.
Thanks!
Which Is Faster? (Text Or XML)
Which file format is faster to save and load?
1) Text File (.txt)
2) XML (.xml)
What are the advantages and disadvantages of each in Flash 5?
Help With Faster Code
Hey,
I have attached x number of movieclip "squares" that has to change color when you are dragging over them with the mouse, i.e when you have clicked the mouse and have the mouse over them.. I have a solution that works but gets Really lazy when you have a lot of squares.
I tried to change it to onDragOver but that was not what I wanted, I need something like a modified onRollOver that triggers even if the mouse is clicked and held down.
This is the code I have now, thank you very much if you can help me!
Code:
duplicate.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.rita) {
var colorful = new Color(this.bg);
colorful.setRGB(_root.farg);
} else {
var colorful = new Color(this.bg);
colorful.setRGB(0xFFFFFF);
}
}
};
... where duplicate is the instance I get from attachMovie() and _root.rita is just a Boolean that is set if you click the mouse and unsetted if you release it.
[F8] Faster SpeedFunction
Hi im making a game similar to the old flash game "NANACA†CRASH!!" if you guys know about it... anyway... got most of it working but the power function is a bit to slow and easy.
The power function works like this... I got a green "powerbar" that gose up and down by a function and when u hit a sertain button the value of a variable is sent to the application but the bar is moving a bit slow so wanna speed it up, I can increse the amout the variable is incred each frame but that leave less possibilities for the value since it is between 1-100 and if I increes it whit 5 insted of 1 each frame I can only get 20 differanct values insted of 100... I could increes the framerate but that just make the rest of the game go to fast so need to tips on how to do this...
the code for the function is:
Code:
if(plus == true)
{
speed = speed + 1;
if (speed == 100)
{
plus = false;
minus = true;
}
};
if ( minus == true)
{
speed = speed - 1;
if (speed == 0)
{
plus = true;
minus = false;
}
};
A Faster Way To Use Alpha?
with my current project kind of getting big, I'm beginning to see some significant difference between instants where I have lots of alpha stuff going on, as opposed to instants that barely have any. The difference is even more apparent when viewing on a mac.
So, now the question is, is there any other way of doing alpha? Or hould I avoid it to keep things simple? I guess in a design/looks cool or not sense, I can do away with semitransparent objects and stuff.. but here's a problem.
I have a viewing window/pane object that loads in several pictures at a time, simultaneously. Each picture is loaded into an array, with each array item containing a movie clip. The picture is then scrolled, or flipped through using the alpha on each of the movie clips in the array, setting alpha to 100 for the picture I want to show, and setting the rest to 0. That way, I can always know for sure that there will be no load time for any picture I want to show.
But obviously, this slow because if I have like, 20 pictures, that's already 20 movie clips with alpha stuff going on...
Now a way around this would be to use 2 movie clips, one for show, and another for buffering (for zero load time). So, while one is showing, I'd load the buffer image. I'd still have to fade using alpha, but that'll atleast be only 2 images... does this sound like the most efficient way to do this?
this is the site in question:
http://www.ututu.com/~magronbass/fla...ain_panes.html
please tell me if there is anything I'm doing horribly wrong. It's my first "site" that's full flash, so, I'm prone to stupid first timer mistakes. Only the "concept" and "how to play" button working from the makeup case. Notice how smooth the "how to play" page is. It's got minimal alpha usage.
Faster URL Request
Hi,
At the moment I'm using URLRequest to retrieve XML files from Amazon S3.
At the first attempt before my browser caches the XML, the actual request takes about 30 second to complete!! For 1 XML file!?!
I dont understand why it's soooooo slow. If I type the address of the xml file into a web browser it comes up instantly.
ActionScript Code:
private function loadXML(pFileSet:String):void
{
var _xmlLoader:URLLoader = new URLLoader();
//pFileSet is my amazon bucket address along with the filename
var _xmlRequest:URLRequest = new URLRequest(pFileSet + ".xml")
_xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded, false, 0, true);
_xmlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_xmlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_xmlLoader.load(_xmlRequest);
}
Would anyone know of ways to improve this speed? Maybe an alternative to using URLRequest.
Faster Loadvars
I'm loading over 12k of data into flash from another URL using the loadVars function. I'm wanting to know if there is any way that I can make the loading of this data faster, if i turn the frames per second up then it seams to load faster but I don't know if it just me or if it is actually loading that data faster. Does any one have any idea's or documentation on this it would really really help.
thanks
About FMS's Audio Faster A Little
Hi all i am happened a question that i use FMS to record a rapper audio follow music,then complete i listen the flv audio files it seem a little faster then music, in 1 minute's it will faster about 0.1 seconds in 3 minute's it will faster about 0.3 seconds because of the song is rapper so it's faster appearence.
Has anyone else experienced similar problems?
Thanks.
Faster Loading Of Swf...HOW?
i have my main page in Flash.what should i do to make the loading of swf be faster?is there a way for me to cached the downloaded swf so that when i click a link and wanted to get back to the previous page(w/ a Flash file)it will not feel like eternity before i get reload the file !!!
Making It Faster
How do I make an animation fluid/smooth and not all choppy and stuff? Are there any ways to do this? Thanks.
Faster SetInterval
Hello
I've got function that I call using setInterval. The problem is I need to call that function on an interval faster than 1 millsec. Is that possible?
thanx.
Move More Faster
Hi, I have a button that every time we press it it moves one unity down (button._y++)
However how to make move it faster or moves more than an unity at a time?
thanks
|