İptal Edildi

I need an actionscript 3 class rewritten

The class below needs to be rewritten because the class variables are only set and accessible in one function and not throughout the class like it should be.

package [url removed, login to view]{

import [url removed, login to view];

import flash.events.*;

import flash.net.*;

public class Weather extends Sprite {

public var Country:String;

public var RegionName:String;

public var City:String;

public var Time:String

public var high:String;

public var low:String;

public var dayType:String;

public function Weather() {

var loader:URLLoader = new URLLoader();

configureListeners(loader);

var request:URLRequest = new URLRequest("[url removed, login to view]");

try {

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

} catch (error:Error) {

trace("Unable to load requested document.");

}

}

public function google() {

var loader1:URLLoader = new URLLoader();

configureListeners1(loader1);

var request:URLRequest = new URLRequest("[url removed, login to view]" +this.City+" "+this.RegionName+" "+[url removed, login to view]);

try {

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

} catch (error:Error) {

trace("Unable to load requested document.");

}

}

private function configureListeners(dispatcher:IEventDispatcher):void {

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

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

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

[url removed, login to view](SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

[url removed, login to view](HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

[url removed, login to view](IOErrorEvent.IO_ERROR, ioErrorHandler);

}

private function configureListeners1(dispatcher:IEventDispatcher):void {

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

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

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

[url removed, login to view](SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

[url removed, login to view](HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

[url removed, login to view](IOErrorEvent.IO_ERROR, ioErrorHandler);

}

private function completeHandler(e:Event):void {

var loader:URLLoader = URLLoader([url removed, login to view]);

var xmlData:XML = new XML();

xmlData=new XML([url removed, login to view]);

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

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

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

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

[url removed, login to view]();

}

private function completeHandler1(e:Event):void {

var loader:URLLoader = URLLoader([url removed, login to view]);

var xmlData:XML = new XML();

xmlData=new XML([url removed, login to view]);

[url removed, login to view] = xmlData.weather.forecast_conditions[0].low.@data;

[url removed, login to view] = xmlData.weather.forecast_conditions[0].high.@data;

[url removed, login to view] = xmlData.weather.current_conditions.condition.@data;

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

}

private function getDayType(type){

var myRegExp:RegExp = /Cloudy/ig;

var str:String = type

var result:Object = [url removed, login to view](str);

if(result == "Cloudy"){

return 1;

}

else{return 0;}

}

private function openHandler(event:Event):void {

// trace("openHandler: " + event);

}

private function progressHandler(event:ProgressEvent):void {

//trace("progressHandler loaded:" + [url removed, login to view] + " total: " + [url removed, login to view]);

}

private function securityErrorHandler(event:SecurityErrorEvent):void {

//trace("securityErrorHandler: " + event);

}

private function httpStatusHandler(event:HTTPStatusEvent):void {

// trace("httpStatusHandler: " + event);

}

private function ioErrorHandler(event:IOErrorEvent):void {

// trace("ioErrorHandler: " + event);

}

}

}

Beceriler: ActionScript

Daha fazlasını görün: xml utilities, string i, data str, actionscript .net, Data e try, VOID, trace, str, rewritten, IG, google exec, dispatcher, data loader, cloudy, actionscript 3, time class, display xml load, need sprite, dispatcher php, net object error, class xml php, xml class, import result, city country api, actionscript progress

İşveren Hakkında:
( 6 değerlendirme ) woods Cross, United States

Proje NO: #709677

5 freelancer bu iş için ortalamada 66$ teklif veriyor

Risalat1

Let me do it quickly! Looking forward for your quick response..

in 0 gün içinde105$ USD
(12 Değerlendirme)
5.1
karunafly

hi there ... check INBOX

in 0 gün içinde40$ USD
(32 Değerlendirme)
4.9
HariKJ

Hi, Very much interested in this work. Hari

in 0 gün içinde40$ USD
(2 Değerlendirme)
4.0
abstractedge

Plz. Check PMB.

1 gün içinde 60$ USD
(9 Değerlendirme)
3.9
Wopdoowop

No problem, please check your PM

1 gün içinde 50$ USD
(0 Değerlendirme)
0.0
voservices

Please see PM for details. Thanks.

1 gün içinde 75$ USD
(0 Değerlendirme)
0.0