Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

XML preloader-tutorial!

[es] :: Flash :: XML preloader-tutorial!

[ Pregleda: 2361 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

vilenjak_

Član broj: 152031
Poruke: 5
195.252.78.*



Profil

icon XML preloader-tutorial!05.09.2007. u 18:07 - pre 202 meseci
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
 
Odgovor na temu

Vranac
Vranac Srdjan
Software developer
Novi Sad, Vojvodina

Član broj: 3493
Poruke: 353
*.ptt.yu.

Jabber: vranac@elitesecurity.org
ICQ: 64150005
Sajt: www.linkedin.com/in/vrana..


+1 Profil

icon Re: XML preloader-tutorial!06.09.2007. u 07:14 - pre 202 meseci
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);
}


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
 
Odgovor na temu

[es] :: Flash :: XML preloader-tutorial!

[ Pregleda: 2361 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.