Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Flash loading problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
fun.ky



Joined: 05 Jan 2006
Posts: 365
Location: Mostar

PostPosted: 31.03.2009 23:59    Post subject: Flash loading problem Add user to your forum ignore list Reply with quote

Poz.

Ima pravo čudan problem, koristim as3 i učitavam xml file u kojem se nalaze liste audio zapisa. Prvi put kada učitavam flash sve se normalno izvrši, učita se xml file i prikaže se playlista koja radi kako treba. Nakon refresha swf se učita ali kao da se neokine Event.COMPLETE na URLLoader-u i zbog toga se predpostavljam ne prikaže playlista.


AS za učitavanje playliste je recimo:

var url:URLRequest = new URLRequest("music.xml");;
var xmlLoad:URLLoader = new URLLoader(url);
xmlLoad.addEventListener(Event.COMPLETE, xmlComplete);

private function xmlComplete(event:Event):void
{
//Kreiraj playlistu;
}

i to je to.

Sličan kod koristim i za učitavanje xml-a za prikaz slika kao slideshow i isti bug imam.

Dali ste imali sličan problem i dali imate prijedlog za riješenje. Flash nisam koristio odavno i neznam dali nešto pogrešno radim.

Poz.

PS: Privremeno sam problem riješio sam timerom koji se okine ako se xml file ne učitava al na duge staze, to mi nije riješenje

_________________
There is no style definition for good music!
Back to top
View user's profile Send private message Visit poster's website Twitter profile
sarma



Joined: 02 Nov 2004
Posts: 99
Location: Osijek/ZG, Croatia

PostPosted: 26.06.2009 19:24    Post subject: Add user to your forum ignore list Reply with quote

var url:URLRequest = new URLRequest("music.xml");
var xmlLoad:URLLoader = new URLLoader(url);
xmlLoad.addEventListener(Event.COMPLETE, xmlComplete);

private function xmlComplete(event:Event):void
{
xmlLoad.removeEventListener(Event.COMPLETE, xmlComplete);
//Kreiraj playlistu;
}
--> obrisao sam ti dupli ; na kraju prve linije koda i dodao u funkciju liniju koda koja ti poništi event
btw. pričaš o refreshu u browseru jel?

_________________
-- 45th generation Roman --
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group