Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 1 odgovor
  • 2.949 pregleda

Najnovija ↓

XML preloader-tutorial! 05.09.2007. u 19:07 · pre 233 meseca #1
Moze li neko da mi pomogne oko XML preloader-a? Kako da napravim isti? Ukoliko neko mozda ima link ka nekom video tutrial-u bio bih mu mnogo zahvalan.
UNAPRED ZAHVALAN..POZDRAV SVIMA
Re: XML preloader-tutorial! 06.09.2007. u 08:14 · pre 233 meseca #2
Flash 8, AS 2.0

Code:

// import the delegate class
import mx.utils.Delegate;

// declare the var for the XML
var xmlContent:XML;
xmlContent = new XML();

// ignore all the excess white space
xmlContent.ignoreWhite = true;

// load the xml file itself
// use sendAndLoad if you want to pull it from a post request
xmlContent.load("./xml/playlist.xml");

// set the event handler that will catch the load complete event
xmlContent.onLoad = Delegate.create(this, xmlLoaded);

// function that will fire when the loading is complete
function xmlLoaded(success:Boolean) {
    if (success) {
        // if loading was a success call a new function that
        // will process the xml
        processXML();
    } else {
        // crapped out
        trace("crapped out");
    }
}

// process the xml file that is loaded
function processXML() {
    trace("processXML called");
    trace("xmlContent: " + newline + xmlContent);
}

Potpis
Idle mind is the devils playground, in my case it turned out to be an amusement park.

Sustina problema ove zemlje:
Legeonar_: Sto pre treba da shvatite da je EU propast i da se tamo mora raditi,a ne samo biti zaposlen.
http://www.elitemadzone.org/p1864861

Nobody Remains Virgin, Life Fucks Everyone
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme