En cours

Optimise facebook app (as3) plus additional features

Hi, i currently have an as3 project that has been integrated into facebook and i'm hoping to go live within a few days.

everything is working fine except for a couple of fuctions that seem to slow it down.i'm looking for an experienced optimiser to give it the once over and fix any problems that are found.

As far as i can see there are only a couple of issues that need optimising. Firstly there is a marquee that accepts upto 80 characters upto a font size of 50. This has been created in the traditional way of moving a movie clip right to left then looping. This creates a massive movieClip and i suspect that this is the reason for the app slowing down.

I have amended the as2 code originally used for the marquee. I think this would fix it but as i'm not proficient in as3 i'll need it integrating into the existing as3 unless a better alternative is offered.

here is the rewritten as2 code it stacks all the letters on top of each other then moves them when required. It then deletes them when they hit their target x(-300). then when all the letters are deleted it re-runs the function(copy and paste into flash and it will work fine):

var text = "qwertyuiopasdfghjklzxcvbnm,./";

var format = new TextFormat("Verdana", 10);

var spacing = 5;

var radius = 5;

var speed = [url removed, login to view];

var rootChars;

charCount = 0;

[url removed, login to view]("flag", 9876);

flag._x=350;

flag._y=200;

createTextArray = function(){

for (var index = 0, x = 0, chars = []; index<[url removed, login to view]; index++) {

[url removed, login to view]("char"+index, index, x, 0, 0, 0);

var char = flag["char"+index];

[url removed, login to view] = false;

[url removed, login to view] = "left";

[url removed, login to view] = [url removed, login to view](index);

[url removed, login to view](format);

[url removed, login to view] = [url removed, login to view]*2*index/[url removed, login to view];

x =0;

//x += char._width+spacing;

[url removed, login to view](char);

rootChars = chars;

}

}

createTextArray();

[url removed, login to view] = function() {

for (var index = 0; index<[url removed, login to view]; index++) {

var char = rootChars[index];

[url removed, login to view] += speed;

char._y = [url removed, login to view]([url removed, login to view])*radius;

}

flag.char0._x-=3;

for (var index = 0; index<[url removed, login to view]; index++) {

//trace(flag["char"+index]);

if(flag["char"+index]._x <=0-(flag["char"+(index)]._width + spacing)){

flag["char"+(index+1)]._x -=3;

}

if(flag["char"+index]._x <0-300){

removeMovieClip(flag["char"+index]);

charCount+=1;

}

}

if(charCount ==[url removed, login to view]){

charCount=0;

createTextArray();

}

}

This app is an audio-visual messaging system. It relies on blending and alpha options of xml loaded images (16 in total). CPU intensive i know!, although the images are only between 2 and 5kb each and are going to be in black and [url removed, login to view] this is the second function that needs looking at. I currently have no recommendations although the alpha and zoom effect occur onEnterFrame and maybe it would work quicker if the images are called as required and writen in a seperate function(maybe?).

I also require a couple of more facebook/paypal features.

Firstly the app is getting stuck at the logging in page on IE 8. A quick google search pointed my to:

placing this in the php:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

or

changing the DNS servers to: [url removed, login to view] and 208.67.220.220.

but i don't know where to do this.

next i need the friends list to load a profile picture and add a check box next to their name + a paypal subscribe button next to the current donation button + a like button too.

Think that's it.

link: [url removed, login to view]

Compétences : Adobe Flash

Voir plus : facebook app as3, top problems, stuck work, page plus, found app, facebook apps project, as3 or, as3 0, as3 facebook, psd google apps, paypal plus, sin, psd app, plus size, paypal donation page, name app, movie box, messaging app, math problems, idc, google plus like, facebook target, facebook header, dns issues, devi

Concernant l'employeur :
( 3 commentaires ) Sheffield, United Kingdom

N° du projet : #1058019

Décerné à :

auroramedia06

Please check PMB for details.

300 $ USD en 4 jours
(73 Commentaires)
7.5